Hey Theron,

> One thing I can't figure out is how to extract the view callables from
> Pyramid (since I need them for the docstrings).  Is there someway I can get
> a list of the view callables and the associated resource?  Or perhaps given
> a resource, iterate through all associated view callables?
>

I am not sure if this helps, but I recursively traverse all site resources
and views for a sitemap:

https://github.com/websauna/websauna/blob/master/websauna/system/core/sitemap.py#L316

It's easy to get views for a given resource context object. You can
probably query all views for any context object directly from the
underlying Zope component registry.


> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/pylons-discuss/916cf024-e60e-4463-9d91-a791701c9c0d%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/pylons-discuss/916cf024-e60e-4463-9d91-a791701c9c0d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Mikko Ohtamaa
http://opensourcehacker.com
http://twitter.com/moo9000

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUtWcORQm2BJoa-bB4ZNXkousezutM4xFLY7Yoq6hZyCdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to