On 10/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Friends:
> In cherrypy, the following is how one sets the directory structure:
>
> cherrypy.root = Root()
> cherrypy.root.entries = Entry()
>
> I used a text editor for this with cherrypy. In Turbogears, what is the
> recomended way of creating these entries in the cherrypy code created, or
> should I use another approach for indicating the directory structure of
> pages?
This works the same in TurboGears as it does in CherryPy. The way a
quickstarted project is set up, the "project"-start.py script sets the
cherrypy.root to "project".controllers.Root
In your controllers.py file, you'd then make your Root class look
something like this:
class Root:
entries = Entry()
Kevin