[Zope] Acqusition

Steve Spicklemire steve@spvi.com
Tue, 8 Feb 2000 09:52:14 -0500 (EST)


Hi Jacob,

   if you want 'foo' to be publishable it needs
a comment string... what error did you get?

-steve

----------------------------------------------------------------------

Hi,
Say I've got two objects:

class MyFolder(OFS.Folder.Folder,ExtensionClass.Base):

    def __init__(self,language):
        self.id = language
        self.language = language

and below that one in the zope hierachy, a:

class MyText(Acquisition.Implicit,
        OFS.SimpleItem.Item,
        Persistent,
        AccessControl.Role.RoleManager):

	def foo(self):
		return self.language

howcome foo() fails to return the language-value? If I use the property
sheet in zope to add a "language" property, it works fine.

best regards,
Jacob

_______________________________________________
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 )