Thanks, I think I'll follow these steps for new apps and see how it
goes. Cheers :-)

On 12/04/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote:
>
> Hi Rob,
>
> On 4/11/06, Robin Haswell <[EMAIL PROTECTED]> wrote:
> > I was wondering what the situation with multiple applications is?
>
> Aspects of multiple application support (particularly configuration)
> are not where I'd like them to be. Beyond configuration, I also want
> to see a mechanism for template overrides. This is the primary subject
> of the next major release of TurboGears (codename First Class, if you
> see us mentioning that).
>
> In the meantime, I have these suggestions:
>
> 1) use CherryPy 2.2's tree.mount() feature. (I don't have a doc link
> handy, but it's one of the main new features in CP 2.2). This will
> ensure that your configuration is sane between apps. Using
> tree.mount() is something you'd do externally to your main tree (ie
> you don't just instantiate your subapp and attach it to your Root).
> You can do this in your start script. First Class should allow you to
> just instantiate and attach to your Root in normal CherryPy style.
>
> 2) Put each app in its own quickstarted project, rather than just a
> separate package in one project. Each app will get its own egg, and
> one app can easily depend on another (even a specific version of
> another). Again, configuration will become saner in First Class. Note
> that the tg-admin sql command takes an -egg parameter so that you can
> specify that you want to create the database that goes along with a
> specific app.
>
> If you don't put each app in a quickstarted project, its Root should
> at least extend controllers.Root, so that URL generation works
> correctly.
>
> HTH,
>
> Kevin
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to