[Zope] manage_addProperty problem....

Steve Spicklemire steve@estel.uindy.edu
Thu, 25 Feb 1999 10:46:08 -0500 (EST)


Hi Folks,

	I've got a Product I've been working on... it works great on
1.9.0, but I just tried running it under 1.10.2 and I get the
following error... (on both ZServer, and ZopeHTTPServer):

<html>
<head>
<title>exceptions.AttributeError</title>
</head>
<body>
Sorry, an error occurred.<p>
<!--
Traceback (innermost last):
  File /usr/local/etc/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 877, in publish_module
  File /usr/local/etc/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 590, in publish
    (Info: /manage_addEMarket)
  File /usr/local/etc/Zope-1.10.2-src/lib/python/Products/EMarket/EMarket.py, line 82, in addEMarket
    (Object: ApplicationDefaultPermissions)
  File /usr/local/etc/Zope-1.10.2-src/lib/python/OFS/PropertyManager.py, line 245, in manage_addProperty
    (Object: Navigation)
  File /usr/local/etc/Zope-1.10.2-src/lib/python/OFS/PropertyManager.py, line 184, in _setProperty
    (Object: Navigation)
  File /usr/local/etc/Zope-1.10.2-src/lib/python/OFS/PropertyManager.py, line 163, in valid_property_id
    (Object: Navigation)
AttributeError: aq_base

-->
</body>
</html>

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

So it's something to do with my setting a property of a folder... I check my code

      newMainF = EMarket()  # EMarket is a subclass of folder.....
      newMainF.id = id
      newMainF.title = title
      newMainF.manage_addProperty( 'RegistrationSubject', "Registration Information", 'string')
      newMainF.manage_addProperty( 'RegistrationFrom', "manager@" + gethostname(), 'string')

      self._setObject(id, newMainF)


OK... I comment out the "manage_addProperty" and it works (except the properties are not
defined now!). From the error it sounds like RegistrationSubject is illegal as a 
property name....but if I add such a property to a folder by 'hand' it works fine.


Any ideas?

thanks,
-steve