On Mon, 2012-03-19 at 11:04 -0700, Mike Orr wrote:

> 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)?

ZCA is probably not really useful here.

What I think Lukasz is asking for is an example of how to use the
existing include() machinery to include some configuration that
registers one or more views.  That's just a matter of:

def includeme(config):
    config.add_view(...)

if __name__ == '__main__':
   config = Configurator()
   config.include(includeme)

But I think he wants to see a more complicated example that does
something else.  I don't really know.

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

Talking about "plugin systems" is probably overeager here.  I think what
Lukasz may need to do is to enumerate the goals implied by his use of
the term "plugin system" and maybe describe one (read: not all!) of
those goals in concrete detail so we can provide an example of how he
might accomplish it using the existing machinery.

- C


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

Reply via email to