>
> If you have the time and know how, do you know what the efficient way to
> iterate through all the class definitions in a module would be to grab
> all the classes that have a certain member?
>
> Ie If I add this field to an orm class
>
> class Page:
>         admin_fields = [blahblah]
>
> then I want to grab that class from my controller code and read the
> admin field values. ( without having to say in the controller which ones
> have that )
>

I think subclassing would be more efficient , django does this by using
metaclass.

-- 
http://codeplayer.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to