[Zope3-Users] Looking up the schema of an adapter?

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Feb 6 06:14:56 EST 2006


On Saturday 07 January 2006 13:46, Alec Munro wrote:
> I would like a straightforward way to lookup the schema and create the
> Add Form without having to instantiate the ProductOrder.
> Alternatively, if anyone can suggest any modifications to my overall
> system that will allow me the same functionality, that would be great.

implementedBy(SomeClass) returns all implemented interfaces. You can even 
determine the content type using this API call, if you have the instance:

from zope.app.content import queryContentType
queryContentType(SomeClass())

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list