thanks
2009/12/29 mdipierro <mdipie...@cs.depaul.edu> > There are two ways. > > 1) In admin if you create a model or controller called > plugin_<somrthing>.py you will se at the bottom of the edit page a > plugin item already created for you. Click on it and you get to the > plugin page. There is a [pack plugin] button that will give you the > w2p. > > 2) For more fancy plugins use the shell > > cd applications/yourapp > tar zcvf /somewhere/web2py.plugin.name.w2p models/plugin_name.py any/ > other/file/in/folder > > > > On Dec 29, 5:13 pm, Alexandre Andrade <alexandrema...@gmail.com> > wrote: > > I want to know how create a w2p file of plugin, like in themes.w2p > > > > 2009/12/29 mdipierro <mdipie...@cs.depaul.edu> > > > > > > > > > This was discussed. I did not rule it out but now as then I have to > > > point out that things are more complex than it seems. > > > > > If plugins have models in their own folder, then should all models be > > > executed when a non-plugin controller is called, including plugin > > > models? If so, there would be a lot overhead to new directory > > > structure. Moreover in which order would they be executed? Whatever > > > you choose would not be obvious. If plugin modules where only to be > > > executed when plugin controllers are called then they would be > > > accessible by appadmin and they would have very limited functionality. > > > for example they would not be able to act on non-plugin modules. > > > > > A similar arguments applies to controllers. We would need special > > > routing rules for a plugin. Can it be done in backward compatible way? > > > What if there is already a controller with the same name as a plugin? > > > > > What about a plugin designed to overrides views/layout.html or views/ > > > web2py_ajax.html or static/base.css? It would not be possible. You > > > would not be able to use your proposed structure to create a plugin > > > that applies a layout to an existing app. > > > > > I think the current plugin mechanism is more general and therefore it > > > is better. For me a plugin is just a subset of an app that you can > > > extract from an app and you can apply over an existing app. Some > > > plugin have files that start with plugin_... so you can avoid naming > > > conflicts and you know how to call them when applied. > > > > > Massimo > > > > > On Dec 29, 7:43 am, Alexandre Andrade <alexandrema...@gmail.com> > > > wrote: > > > > Sugestion: > > > > > > I think that a better spec would be a directory to plugins, with a > > > diretory > > > > for the plugin, and a application-like struture. So web2py read it as > > > read > > > > application directory. > > > > > > - application > > > > --cache > > > > --controllers > > > > .. > > > > --models > > > > --modules > > > > .. > > > > --plugins > > > > ---myplugin > > > > ----cache > > > > ----controllers > > > > ----docs (instructions, examples) > > > > .. > > > > ----models > > > > ----modules > > > > .. > > > > ----views > > > > --views > > > > > > it make easy install/uninstall plugins, just creating/delete the > > > directory. > > > > > > More ideias? > > > > > > 2009/12/29 mdipierro <mdipie...@cs.depaul.edu> > > > > > > > I cannot find it either. > > > > > > > On Dec 28, 8:51 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > > > > > > Buried beyond 100's of google posts. > > > > > > > > Good Luck! > > > > > > > > There is also a screen cast on plugins at vimeo. > > > > > > > >http://www.vimeo.com/7182692 > > > > > > > > The reason there is no "official" spec is because the system most > > > > > > likely change. In my recent efforts making plugins, it leads to a > > > > > > quite archaic design pattern for the plugins... and honestly, the > > > > > > current spec is not a "plugin" its a naming convention. A "true" > > > > > > plugin system really needs to be developed, but the reason it > hasn't > > > > > > is because there is no reason for them at this point in the > ballgame. > > > > > > > > So here is the spec in a nutshell. > > > > > > > > Take web2py controllers/modules/views... and append the word > plugin_ > > > > > > in front of the filename, database tables, etc. > > > > > > > > You now have a web2py plugin, congratulations. > > > > > > > > -Thadeus > > > > > > > > On Mon, Dec 28, 2009 at 6:29 AM, Alexandre Andrade > > > > > > > > <alexandrema...@gmail.com> wrote: > > > > > > > where we find the "not finalised" plugin spec? > > > > > > > > > 2009/12/9 Darcy Clark <d4r...@gmail.com> > > > > > > > > >> sorry to answer my own (dumb) question ..... looks like the > plugin > > > > > > >> spec isn't finalised yet, so understandably there aren't many > docs > > > > > > >> floating around yet > > > > > > > > >> On Dec 9, 4:08 pm, Darcy Clark <d4r...@gmail.com> wrote: > > > > > > >> > where would I look if I was interested in learning how to > > > develop > > > > > > >> > plugins for web2py ? > > > > > > > > >> -- > > > > > > > > >> You received this message because you are subscribed to the > Google > > > > > Groups > > > > > > >> "web2py-users" group. > > > > > > >> To post to this group, send email to web...@googlegroups.com. > > > > > > >> To unsubscribe from this group, send email to > > > > > > >> web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> > > > > > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> > <web2py%252bunsubscr...@googlegroups.com<web2py%25252bunsubscr...@googlegroups.com> > > > > > > > > > . > > > > > > >> For more options, visit this group at > > > > > > >>http://groups.google.com/group/web2py?hl=en. > > > > > > > > > -- > > > > > > > Atenciosamente > > > > > > > > > -- > > > > > > > ========================= > > > > > > > Alexandre Andrade > > > > > > > Hipercenter.com > > > > > > > > > -- > > > > > > > > > You received this message because you are subscribed to the > Google > > > > > Groups > > > > > > > "web2py-users" group. > > > > > > > To post to this group, send email to web...@googlegroups.com. > > > > > > > To unsubscribe from this group, send email to > > > > > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> > > > > > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> > <web2py%252bunsubscr...@googlegroups.com<web2py%25252bunsubscr...@googlegroups.com> > > > > > > > > > . > > > > > > > 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 web...@googlegroups.com. > > > > > To unsubscribe from this group, send email to > > > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> > > > > > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> > <web2py%252bunsubscr...@googlegroups.com<web2py%25252bunsubscr...@googlegroups.com> > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/web2py?hl=en. > > > > > > -- > > > > Atenciosamente > > > > > > -- > > > > ========================= > > > > Alexandre Andrade > > > > Hipercenter.com > > > > > -- > > > > > You received this message because you are subscribed to the Google > Groups > > > "web2py-users" group. > > > To post to this group, send email to web...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/web2py?hl=en. > > > > -- > > Atenciosamente > > > > -- > > ========================= > > Alexandre Andrade > > Hipercenter.com > > -- > > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegroups.com. > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > > -- Atenciosamente -- ========================= Alexandre Andrade Hipercenter.com -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.