Mercurial > getan > getan
diff getan/main.py @ 318:27fc5f43a69b
Move setting the ProjectList and EntryList instances into the controller
It doesn't make sense to pass classes for both to the GetanController
constructor. Be don't have different implementations for these classes.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 11 Oct 2013 14:12:03 +0200 |
parents | dc7c1a894e21 |
children | 266634f3712a |
line wrap: on
line diff
--- a/getan/main.py Fri Oct 11 14:08:44 2013 +0200 +++ b/getan/main.py Fri Oct 11 14:12:03 2013 +0200 @@ -20,7 +20,6 @@ import getan.config as config from getan.backend import DEFAULT_DATABASE, Backend -from getan.view import ProjectList, EntryList from getan.controller import GetanController logger = logging.getLogger() @@ -61,7 +60,7 @@ backend = Backend(database) logging.info("Use database '%s'." % database) - controller = GetanController(backend, ProjectList, EntryList) + controller = GetanController(backend) try: controller.main()