Ticket #2205 enhancement new
Documentation codelistings need updating and tests
|Reported by:||jerub||Owned by:|
|Component:||core||Keywords:||documentation, finger, doctests|
|Cc:||thijs, exarkun, kehander1, tom@…||Branch:||
(diff, github, buildbot, log)
|Author:||thijs, jerub||Launchpad Bug:|
The code used in .tac files is too complicated. I'd like to be able to create an application object with a minimum of verbage.
What we have:
application = Application('myapp', uid=1, gid=1) serviceCollection = IServiceCollection(application) service1.setServiceParent(serviceCollection) service2.setServiceParent(serviceCollection)
What I'd like
application = Application('myapp', uid=1, gid=1, servies=[service1, service2])
The tutorials and documentation would have to be updated to include this new form, and probably to continue to acknowledge how to do both ways.