When can we set another meeting? 10PM was a little late, but doable.

-Thadeus





On Wed, Mar 10, 2010 at 9:43 AM, mdipierro <[email protected]> wrote:
> I would like to add what was NOT discussed.
> 1) convention for a plugin to store variables in sessions
> 2) convention for plugin-defined table names
> 3) mechanism of hooks for plugin to register stuff with the app (for
> example change the menu)
>
> Right now:
> 1) session.plugin_<name>.variable OR session.plugin_<name>_variable?
> 2) db.plugin_<name>_tablename
> while for input
> plugins.<name>.configuration_parameter
>
> we have nothing about 3.
>
> On Mar 10, 8:20 am, mdipierro <[email protected]> wrote:
>> It was late. We closed the discussion soon after you left. Thadeus
>> will summarize what we said and we will circulate a draft proposal.
>> The main issue was how to write plugin models so that they can be
>> configurable and do not pollute the name space.
>>
>> I think the structure we agreed upon was something like this...
>>
>> ### in db,py
>> plugins=PluginCentral()
>> # configure all plugins
>> plugins.<name>.db = db
>>
>> ### in models/plugin_<name>.py
>> def _(plugin):
>>    # set default values or return error on failure, for example
>>    if not plugin.db and db: plugin.db = db
>>    # you can use any local variable you want here private of _
>>    ...
>>    # define plugin tables
>>    plugin.db.define_table(....)
>>    return
>> # instantiate the plugin by passing the config parameteres
>> _(plugins.<name>)
>> # define public functions here
>>
>> but let us follow on the discussion and a write a better document with
>> more examples and motivations.
>>
>> Massimo
>>
>> On Mar 10, 8:04 am, Álvaro Justen [Turicas] <[email protected]>
>> wrote:
>>
>> > Could someone please send a short description of what was decided
>> > yesterday? Massimo?
>>
>> > On Wed, Mar 10, 2010 at 10:47, Timothy Farrell <[email protected]> wrote:
>> > > Disregard.  I see the other thread.
>>
>> > > On 3/10/2010 7:44 AM, Timothy Farrell wrote:
>>
>> > >> So for those of us who couldn't make it, what were the conclusions?
>>
>> > >> On 3/9/2010 8:28 PM, mr.freeze wrote:
>>
>> > >>> Yes - plugins, plugins, plugins!!! I'm anxious to start converting all
>> > >>> of my modules to plugins once the spec is somewhat backwards
>> > >>> compatible.
>>
>> > >>> On Mar 9, 8:18 pm, mdipierro<[email protected]>  wrote:
>>
>> > >>>> We have a meeting on IRC tonight at 10om central time, right?
>>
>> > > --
>> > > You received this message because you are subscribed to the Google Groups
>> > > "web2py-users" 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.
>>
>> > --
>> > Álvaro Justen - Turicas
>> >  http://blog.justen.eng.br/
>> >  21 9898-0141
>
> --
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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