Thats a flamin excellent idea.
You may need a init script and a rollback script.
So that on install tables could be generated etc and then a rollback would
gracefully cleanout the w2p.
Especially plugins or modules that you might want to try and then feel that
its not worth it etc.
Maybe the files could be:

__init__w2pname.py
__rollback__w2pname.py

(ie __init__gridhelpers.py and __rollback__gridhelpers.py)

If we use a py then the plugin developer is free to make any type of code
they like. (ie like a ruby rake task)



On Sat, May 9, 2009 at 2:46 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:

>
> More about the metadata thing...
>
> In my view a .w2p can also contain a subset of an app, for example a
> plugin.
>
> Imagine a layout plugin that contains only
>
>   views/layout.html
>   static/pluginname/images/*
>
> Or a module plugin
>
>   modules/pluginname/*
>
> Or a set of helpers
>
>   models/pluginname-helpers.py
>
> A plugin could be expanded over an existing app to provide added
> functionality. We need a metadata protocol to describe them.
>
> Massimo
>
>
>
> On May 8, 9:29 pm, Álvaro Justen [Turicas] <alvarojus...@gmail.com>
> wrote:
> > On Fri, May 8, 2009 at 4:01 PM, mdipierro <mdipie...@cs.depaul.edu>
> wrote:
> > > On May 8, 1:56 pm, Yarko Tymciurak <yark...@gmail.com> wrote:
> > >> This is great!
> > >> 2 questions:
> >
> > >>    - has this been tested with 2.6* (or 2.7 now)  tar / cross 2.5 -
> 2.6 use?
> > >>     (If tar is the only 2.6* problem, seems eventually we should just
> fix the
> > >>    2.6 tar module... )
> >
> > > I do not think so but the bug is only in 2.6.1 and not in 2.6.2
> >
> > I really don't know. Maybe Douglas Soares can help with this.
> >
> > >>    - what is the reason / purpose for the new extension - if I
> understand,
> > >>    it is JUST what already exists - *.tgz / *.tar.gz?
> >
> > > Because we do not want the browser to automatically unzip the file
> > > when downloading.
> >
> > > Notice we will also be able to identify a web2py app from its
> > > extension and that will tell us how to handle it.
> >
> > I think in future web2py apps can have meta information (like
> > dependencies etc.) and a standard will be defined to those features.
> > .w2p extension efforts that this is not a simple .tar.gz - it is an
> > application packed in web2py format/standard.
> >
> > --
> >  Álvaro Justen
> >  Peta5 - Telecomunicações e Software Livre
> >  21 3021-6001 / 9898-0141
> >  http://www.peta5.com.br/
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to