Accessing objects inside a ZClass from and instance
Zopsters, Is there any way to access the objects inside a ZClass from an instance of that class using objectValues()? I'd like to get a list of usable methods that a user can access. But everything inside the ZClass doesn't show when I call objectValues() from an instance. Thanks in advance, -- Jason Spisak 444w@hiretechs.com
I don't know if you can do this with objectValues(). If you know the product name and zclass name, you should be able to get to it with: manage_addProduct('ProductName').ZClass This doesn't really take inheritance into account, but it will let you get to the ZClass. James. -- Email: james@daa.com.au WWW: http://www.daa.com.au/~james/ On Mon, 21 Feb 2000, Jason Spisak wrote:
Zopsters,
Is there any way to access the objects inside a ZClass from an instance of that class using objectValues()? I'd like to get a list of usable methods that a user can access. But everything inside the ZClass doesn't show when I call objectValues() from an instance.
Thanks in advance,
-- Jason Spisak 444w@hiretechs.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
James, Thanks for the tip. I'll give it a whirl. I am actually trying to have a list of methods that will show up as tabs, like the management interface. Just not that particular interface. All my best, Jason Spisak 444@hiretechs.com
I don't know if you can do this with objectValues(). If you know the product name and zclass name, you should be able to get to it with: manage_addProduct('ProductName').ZClass
This doesn't really take inheritance into account, but it will let you get to the ZClass.
James.
-- Email: james@daa.com.au WWW: http://www.daa.com.au/~james/
On Mon, 21 Feb 2000, Jason Spisak wrote:
Zopsters,
Is there any way to access the objects inside a ZClass from an instance of that class using objectValues()? I'd like to get a list of usable methods that a user can access. But everything inside the ZClass doesn't show when I call objectValues() from an instance.
Thanks in advance,
-- Jason Spisak 444w@hiretechs.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (2)
-
James Henstridge -
Jason Spisak