yes. something like this will do. you will need to pass the appname as
well.

Massimo

On Oct 20, 6:00 pm, Richard <richar...@gmail.com> wrote:
> I could do this over the weekend.
> Is the following interface what you expect?
>
> def pack_plugin(plugin_name, w2p_filepath):
>     """Pack the given plugin into a w2p file at w2p_filepath.
>     """
>     ...
>
> def unpack_plugin(w2p_filepath):
>     """Unpack the given w2p file plugin. If the plugin already exists
> it will be overwritten.
>     """
>     ...
>
> And do you also need remove_plugin(plugin_name)?
>
> Richard
>
> On Oct 20, 4:53 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > We really need a method to pack and unpack plugins, i.e. all files in
> > "youarpp" matching this pattern:
>
> > applications/yourapp/*/plugin_[name].py
> > applications/yourapp/*/plugin_[name]/*
>
> > we need a pack_plugin and unpack_plugin added to admin.py
>
> > the packed file should be web2py.plugin.[name].w2p
>
> > any volunteer?
>
> > Massimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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