So I am up to here 
http://turbogears.readthedocs.org/en/latest/turbogears/wiki20.html#initializing-the-tables
 
on 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].
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