On Jan 7, 6:06 am, Anthony <[email protected]> wrote:
> In case anyone is interested...
>
> http://www.reddit.com/r/Python/comments/ex54j/seeking_clarification_o...
Seriously downvoting this comment is ridiculous
=======================================
mdipierro -3 points 9 hours ago[-]
Example of full web2py program (on top of scaffolding app). Perhaps
others can write the same in Pyramid to give you an idea of the
differences:
#in model db.py append
db.define_table('person',Field('name',notnull=True),Field('address'))
#in controllers/default.py add
@auth.requires_login()
def index():
return dict(form=crud.create(db.person),
rows=db(db.person).select())
# in views/default/index.html (optional works without)
{{extend 'layout.html'}}
<h1>Hello World</h1>
{{=form}}
{{=rows}}