TG shell error when commit changes & exit..."NameError: name 'hub' is not defined"

4 views
Skip to first unread message

sebe...@spawar.navy.mil

unread,
Apr 9, 2007, 1:27:27 AM4/9/07
to TurboGears
Please help! I moved some files around but was able to enter shell
and instantiate an object. I got a weird error when I tried to exit
the shell and save my work....

>>> import financial.models.models
>>> financial.models.models.Income(category="ff", per_pay_period=2.1)
<Income 1 category='ff' per_pay_period=2.1000000000000001>
>>> Do you wish to commit your database changes? [yes]
Traceback (most recent call last):
File "<console>", line 1, in ?
NameError: name 'hub' is not defined

cs

Jorge Godoy

unread,
Apr 9, 2007, 6:51:36 AM4/9/07
to turbo...@googlegroups.com
"sebe...@spawar.navy.mil" <sebe...@spawar.navy.mil> writes:

G> Please help! I moved some files around but was able to enter shell

'hub' should be in project/model.py.

If you moved files around you could movem them back one at a time and see what
fixes it.

You already had problems because of moving files you don't know around before
and got some recommendations by then... Those still apply.

--
Jorge Godoy <jgo...@gmail.com>

Reply all
Reply to author
Forward
0 new messages