You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Plone 4.2.5. When I attempt to use get_item() against anything in my site, I see the following:
from collective.jsonify import get_item
site=app['SITENAME']
print get_item(site['foo'])
results in the following:
ERROR: exception wrapping object: isDiscussionAllowedFor
[' File "/home/mcv21/falconsvn/light/src/collective.jsonify/collective/jsonify/methods.py", line 29, in get_item\n context_dict = Wrapper(self)\n',
' File "/home/mcv21/falconsvn/light/src/collective.jsonify/collective/jsonify/wrapper.py", line 25, in __init__\n getattr(self, method)()\n',
' File "/home/mcv21/falconsvn/light/src/collective.jsonify/collective/jsonify/wrapper.py", line 365, in get_archetypes_fields\n value = self._get_at_field_value(field)\n',
' File "/home/mcv21/falconsvn/light/src/collective.jsonify/collective/jsonify/wrapper.py", line 334, in _get_at_field_value\n return getattr(self.context, field.accessor)()\n',
' File "/home/mcv21/zope/eggs/Products.Archetypes-1.8.6-py2.7.egg/Products/Archetypes/ExtensibleMetadata.py", line 245, in isDiscussable\n return dtool.isDiscussionAllowedFor(self)\n']
After some discussion on plone-users, Daniel Jowett suggested I try his fork of this code, https://github.com/djowett/collective.jsonify/ which has a few differences in how it handles archetypes fields. That works fine, though I'm not sure exactly what the necessary change is, and I'm guessing you can run git diff as well as I can ;-)
Thanks,
Matthew
The text was updated successfully, but these errors were encountered:
Hi @mcv21,
are you in a position to try rerunning this against master to check if it's fixed there? @thet has kindly merged in my code, so it should run OK.
Hi,
I'm using Plone 4.2.5. When I attempt to use get_item() against anything in my site, I see the following:
results in the following:
After some discussion on plone-users, Daniel Jowett suggested I try his fork of this code, https://github.com/djowett/collective.jsonify/ which has a few differences in how it handles archetypes fields. That works fine, though I'm not sure exactly what the necessary change is, and I'm guessing you can run git diff as well as I can ;-)
Thanks,
Matthew
The text was updated successfully, but these errors were encountered: