Mercurial > getan
diff getan.py @ 53:1d63ab21b8af
add add_project method
currently the view isn't updated after a new project is created.
the new project isn't shown immediately. only after a restartd of getan
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 04 Apr 2011 12:23:55 +0200 |
parents | a5439795ef09 |
children | 34a0f5c533bd |
line wrap: on
line diff
--- a/getan.py Mon Apr 04 12:13:40 2011 +0200 +++ b/getan.py Mon Apr 04 12:23:55 2011 +0200 @@ -144,6 +144,12 @@ self.update_project_list() logger.debug('Still running projects: %r' % self.running) + def add_project(self, key, description): + if not key or not description: + return + self.backend.insert_project(key, description) + self.update_project_list() + def shutdown(self): for project in self.running: self.stop_project()