Hi Tobias,

Jorge submitted a bug for this one:

http://trac.turbogears.org/turbogears/ticket/199

I had this same problem, and I'm working around it by using Catwalk to
insert my data instead of using the shell.

Regards,

Mike.

Tobias Brandvik wrote:
> Hello,
>
> I'm trying to get the Identity sample project idtest to work (I'm using
> revision 315 on XP with sqlite). I'm following the steps in the
> tutorial
> (http://trac.turbogears.org/turbogears/wiki/IdentityManagement), but
> there seems to be a problem: things entered into the database from the
> shell do not seem to be stored. If I do this (step 8 in the tutorial)
>
> hub.begin()
> u = TG_User(...)
> hub.commit()
>
> and then reopen the shell and do:
> hub.begin()
> u = TG_User.get(1)
>
> I get an error. Also, TG_User.select() returns nothing. However,
> classes defined in my own model.py work fine - only the identity stuff
> seems to be affected. It was suggested on #turbogears that it might
> have something to do with some new code that enables transactions by
> default.
>
> Am I doing something wrong or is this a bug? 
> 
> Regards,
> Tobias.

Reply via email to