I found it the word "Page" in __init__.py should have been page.

Sayth

On Sunday, 16 February 2014 03:01:07 UTC+11, Alessandro Molina wrote:
>
> Can you run "gearbox setup-app" with the --debug option? It should provide 
> you with a complete traceback of the error
>
>
> On Sat, Feb 15, 2014 at 12:56 PM, Sayth Renshaw 
> <[email protected]<javascript:>
> > wrote:
>
>>
>> So I am up to here 
>> http://turbogears.readthedocs.org/en/latest/turbogears/wiki20.html#initializing-the-tableson
>>  the tutorial.
>>
>> I have changed my boostrap to look like this.
>>
>> def bootstrap(command, conf, vars):
>>     #Some comments and setup here...
>>
>>     try:
>>         #Users and groups get created here...
>>         model.DBSession.add(u1)
>>         page = model.Page(pagename="FrontPage", data="initial data")        
>> model.DBSession.add(page)
>>         model.DBSession.flush()
>>         transaction.commit()
>>     except IntegrityError:
>>         #Some Error handling here..
>>
>> When I go back to root (wiki20) and run gearbox setup-app I get this error 
>> related to cliff.app.
>>
>> (tgenv)sayth@sayth-TravelMate-5740G:~/Projects/wiki20$ gearbox 
>> setup-app22:47:53,060 ERROR [cliff.app] cannot import name page
>>
>> Not sure why this happens, using 2.3.
>>
>> Sayth
>>
>>
>>   -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TurboGears" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/turbogears.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to