Re: [Zope-dev] ZClass propertysheets

2001-02-27 Thread Michel Pelletier



On Tue, 27 Feb 2001, Christian Scholz wrote:

> Hi!
>
> I am just wondering if it's possible to get hold of the properties of a propertysheet
> of a ZClass without instanciating it.
>
> So when instanciating I would just do
>
> map=object.propertysheets[1].propertyMap()
>
> and get all information of my ZClass instance object.
> So is this also possible on the class definition?

Yes, but you must use the classes absolute path:

Control_Panel.Products.ProductName.ClassName

will get you the class.  Is this what you wanted?

-Michel


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



[Zope-dev] ZClass propertysheets

2001-02-27 Thread Christian Scholz

Hi!

I am just wondering if it's possible to get hold of the properties of a propertysheet
of a ZClass without instanciating it. 

So when instanciating I would just do

map=object.propertysheets[1].propertyMap()

and get all information of my ZClass instance object.
So is this also possible on the class definition? 
(actually I would assume it is stored somewhere as I can edit it via
the management interface. I just didn't manage to get it from the
source code..)

(next question might be how to get the class when only having a 
meta type or the path to it.. but I think I will just search 
the Zope source..) 

kind regards,
  Christian

-- 
COM.lounge  http://comlounge.net/
communication & design [EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )