[Zope] ZClass inheritance

Patrick Stinson ajole-1@gci.net
Sun, 8 Dec 2002 03:45:22 -0000


yes, exactly. Up to this point I've never thought about the names of
[sub-superclass] propertysheets after I'd followed the tutorials in the Zope
Book.

-P

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Dieter Maurer
Sent: Saturday, December 07, 2002 8:02 PM
To: Patrick Stinson
Cc: zope
Subject: Re: [Zope] ZClass inheritance


Patrick Stinson writes:
 > why is it that this doesn't set the inherited site_url property in the
newly
 > created instance of PK_MusicTrack?
 >
 > request = context.REQUEST
 > instance = container.PK_MusicTrack.createInObjectManager(request['id'],
 > request)
 > request.set('site_url', instance.absolute_url())
 > instance.propertysheets.common.manage_editProperties(request)
 >
 >
 > I realize that if PK_MusicTrack inherits site_url, it won't be in
 > propertysheets.common, but HOW do you set it then?
In what property sheet have you defined "site_url"?

If the name of this property sheet is "PS", then you
change it with

      instance.propertysheets.PS.manage_change/editProperties(...)


Dieter

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )