On 3), we already have a 'special' app - the admin app. We already use
it to deploy/manage other apps, why not use it to deploy/manage
plugins ? It's aggregation by convenience, but nonetheless....

On Jan 14, 9:19 am, mdipierro <[email protected]> wrote:
> 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.writable=False ### NEW (*)
> db.person.secret.readable=False ### 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='xxx'  ### 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(db.person.name,db.person.se
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to