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

Reply via email to