Hi,
I want to use multiple controllers in my project. Unfortunately I
couldn't find any documents stating the preferred way in turbogears.
At present I have done multiple controllers in the following way.
Controllers are as follows: all inherits from controllers.Root. (I
have used TurboGears 0.8)
login_controller.py
class login_controller(controllers.Root):
def __init__ (self, conf_obj)
usermanagement_controller.py
class usermanagement_controller(controllers.Root):
def __init__ (self, conf_obj)
Start up script is as follows :
demo-start.py
cherrypy.root = demo.login_controller.user_login (conf_info )
cherrypy.root.login = demo.usermanagement_controller.user_login
(conf_info)
........
cherrypy.server.start()
(conf_info is an information object that gets initialized on start up.
Each controller has to have conf_info object)
Is this the right way of doing this? How can I make it proper?
Regards
Roopesh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---