As result of yesterday discussions on web2pychat.com we agreed to: 1) move some of the functionality of T2 into web2py 2) leave T2 as an example of plugin that extends core functionalities 3) create an app for plugin management (a plugin being an app with a special identifier that provides function, static files and services to other apps) 4) leave T3 as a self contained app.
I am starting to work on 1) and so far I got this working (in trunk, does not require T2) db.define_table('person',db.Field('name'),db.Field('secret')) db.person.secret.hidden=True ### NEW db.person.name.label='Name' db.person.name.comment='(your full name)' ### NEW db.person.name.represent=lambda value: H2(value) ### NEW db.person.insert(name='Max') def index(): person=db(db.shape.id>0).select()[0] form1=SQLFORM(db.person,person) def f(form): form.vars.secret='oops' ### NEW if form1.accepts(request.vars,onvalidation=f): response.flash='done!' form2=SQLFORM(db.person,person,readonly=True) ### NEW persons=db(db.person.id>0).select() return dict(form1=form1,form2=form2,persons=persons) this will make t2.create, t2.update and t2.itemize much lighter than they are now. Comments? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---