On Sun, Mar 18, 2012 at 8:12 PM, Chris McDonough <[email protected]> wrote: > On Sun, 2012-03-18 at 21:58 -0500, Lukasz Szybalski wrote: >> On Sun, Mar 18, 2012 at 11:07 AM, Chris McDonough <[email protected]> wrote: >> > On Sun, 2012-03-18 at 10:58 -0500, Lukasz Szybalski wrote: >> >> Hello, >> >> I was wondering how can I build a plugin for pyramid, that would be as >> >> easy to install and setup as >> >> >> >> easy_install myplugin >> >> >> >> in development.ini add >> >> >> >> [components] >> >> myplugin.* = enabled >> >> >> >> or if my plugin was called "admin" >> >> [components] >> >> admin.* = enabled >> >> >> >> >> >> http://martyalchin.com/2008/jan/10/simple-plugin-framework/ >> >> >> >> How to declare a mount point for plugins in pyramid? >> >> How to register a plugin at a particular mount point in pyramid? >> >> How is pyramid system retrieving the plugins that have been registered? >> >> >> >> Thanks, >> >> Lucas >> > >> > You're probably going to want to investigate Pyramid's existing plugin >> > system before creating another one: >> > >> > http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/environment.html#including-packages >> > >> > http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/advconfig.html#including-configuration-from-external-sources >> > >> >> Great! >> >> Is there a "sample" plugin that I could use as a reference. For >> example a plugin: >> >> /whoamI >> or >> /addressbook (/add/edit/delete aka /addressbook/add) >> >> or takes something from a database, and displays it in a different way? > > Not really, sorry. Included things can add views.
So it sounds like Lukasz is asking for a way to make a view with customizable output. I can see a possibility for this if the view is written to use "something" that can be overridden. I'm not sure where to go from there, or what kind of plugin mechanism would be suitable. Can overriding assets be used for more than just static files? Or would ZCA be useful in this case (and not overkill)? Lukasz, when you have a more precise specification of the kind of plugin articile you want, you can add it to the TODO page in the Pyramid Cookbook or file a bug report on it. The more precise you make the request (with a use case and which kind(s) of plugin systems), the more likely somebody will write it. -- Mike Orr <[email protected]> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
