Hi Dave,
You're right.
After the release of 0.8, it became clear that the PackageHub wasn't
the right answer anyhow. If you're hooking up multiple apps, you'd
really need to be able to specify a URI for each path. (If everything
is in one database, this is not a problem). A path-based hub is
possible, but will also require some additional tool support in
tg-admin sql.
This should improve as more work is done to deploy multiple apps
behind one server.
Kevin
On 11/1/05, Dave Warnock <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Using svn revision 128
>
> [EMAIL PROTECTED]:~/tg/Worship-Lister$ tg-admin sql create
> Database URI not specified in the config file (dev.cfg).
> Please be sure it's on the command line.
>
> That is with dev.cfg including (no spaces at start of lines):
> [global]
>
> # DATABASE
> worshiplister.dburi="sqlite:///home/.../worship.sqlite.db"
>
> and with model.py of
>
> from sqlobject import *
> from turbogears.database import PackageHub
>
> hub = PackageHub("worshiplister")
> __connection__ = hub
>
> class WorshipService(SQLObject):
> ServiceDate=DateTimeCol(alternateID=True)
> Description=StringCol()
>
> If I change dev.cfg to use sqlobject all works fine ie with.
>
> [global]
>
> # DATABASE
> sqlobject.dburi="sqlite:///home/.../worship.sqlite.db"
>
> I get
>
> [EMAIL PROTECTED]:~/tg/Worship-Lister$ tg-admin sql create
> Using database URI sqlite:///home/.../worship.sqlite.db
>
> I think the problem is only with sql create, once created everything
> else picks up the package hub ok.
>
> Regards
>
> Dave
>
--
Kevin Dangoor
Author of the Zesty News RSS newsreader
email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com