Hello,

I'm just starting with Turbogears.
I'm following the 20 min wiki tutorial. I've been doing every step of the
tutorial.
However, when I launch the shell (tg-admin shell) to add data to the tables
and type in the following command as suggested in the tutorial:

Page(pagename="FrontPage", data="Hello, World!")

I get the following error:

>>> Page(pagename="FrontPage", data="Hello, World!")
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/sqlobject/main.py", line 1223, in
__init__
    self._create(id, **kw)
  File "/usr/lib/python2.6/dist-packages/sqlobject/main.py", line 1271, in
_create
    self._SO_finishCreate(id)
  File "/usr/lib/python2.6/dist-packages/sqlobject/main.py", line 1294, in
_SO_finishCreate
    id = self._connection.queryInsertID(self,
  File "/usr/lib/python2.6/dist-packages/sqlobject/dbconnection.py", line
828, in __get__
    return self.getConnection()
  File "/usr/lib/python2.6/dist-packages/sqlobject/dbconnection.py", line
841, in getConnection
    "No connection has been defined for this thread "
AttributeError: No connection has been defined for this thread or process

Does anyone have an idea what I am doing wrong?

Thank you.

-- 
View this message in context: 
http://old.nabble.com/Connection-error-in-shell-tp32463588p32463588.html
Sent from the Turbogears General mailing list archive at Nabble.com.

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

Reply via email to