-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hanno Schlichting wrote:
> > What does the code of the dgho...UserDataSchemaProvider class look > like? I'm assuming it's similar to the one from plone.app.users that > looks like: > > class UserDataSchemaProvider(object): > implements(IUserDataSchemaProvider) Jup - basically a stripped down version of http://svn.plone.org/svn/collective/collective.examples.userdata/trunk/collective/examples/userdata/ with only one field. > > That one is registered as a global utility via a utility declaration > with a factory. > > What part of your code tries to store this utility in the ZODB? There's only the code with the setter/adder methods for two properties 1 from plone.app.users.browser.personalpreferences import UserDataPanelAdapter$ 2 $ 3 class EnhancedUserDataPanelAdapter(UserDataPanelAdapter):$ 4 """$ 5 """$ 6 def get_phone(self):$ 7 return self.context.getProperty('phone', '')$ 8 def set_phone(self, value):$ 9 return self.context.setMemberProperties({'phone': value})$ 10 phone = property(get_phone, set_phone)$ 11 $ 12 def get_accept_rules(self):$ 13 return self.context.getProperty('accept_rules', '')$ 14 def set_accept_rules(self, value):$ 15 return self.context.setMemberProperties({'accept_rules': value})$ 16 accept_rules = property(get_accept_rules, set_accept_rules)$ The other boilerplate from userdataschema.py is basically the same as from the repository above. Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJNx9k6AAoJEADcfz7u4AZjOpsLv31Zc2VLE7Yrm3/S+Wlw/xa5 w2sQGnNwk97pqtcwVCaX+hP+MykAsjvIPzOXo8DwwuPKJzYyKTyhnzXOwLXuRZE4 MFKGm4qF1tOWJt7lAUTlgcP5ItHewtzH3V1XAHv4yO2LJW2f/uxoTUep05hVKHi7 G/xkCB7p3texU9JAV+s+VW2lVmvwabya8Tg2+JZ9DBYt8nTif7ImI9nFjolcOemW 0cM9/qOdJgRB7Wx8GjuJraQPiWyC63vA8oqixStPdL3GPZ5KGsUn9BdogqIe6Qy9 CbAWyFxTYkuvSGjMEE9yaIHiPJ1jtC+ymY6p1IuIkWZekiV13TUqvOCyfUW8e79m 129eet0w7QsANpREMiZQ5Y7iHISQ5w+Rq0Qy9MYD3sm1ivqWYQYd8j1vimB4l8NH 5qml+Lz96eb9mdOqcUUSfWxrU2PDDgiRDsRcTKpueMA5RVsIpjhXu/IXJxpTQCnF tAkrdfjU7rLY3vgYEx0mepBkS46vL2A= =Of8b -----END PGP SIGNATURE-----
<<attachment: lists.vcf>>
_______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev