Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not require ICategorization behavior on folder contents properties form #177

Open
thet opened this issue Feb 11, 2019 · 0 comments
Open

Comments

@thet
Copy link
Member

thet commented Feb 11, 2019

After removing the ICategorization behavior from File and Image types, I encountered a problem when editors were trying to manipulate images via the properties page. They got this error:

1549886058.340.671272700427 https://hda-graz.at/programm/veranstaltungsfotos/mostlikely-sudden-workshop/@@fc-properties
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module bda.aaf.site.browser.foldercontents_actions_properties, line 40, in __call__
  Module plone.app.content.browser.contents.properties, line 93, in __call__
  Module plone.app.content.browser.contents, line 127, in __call__
  Module plone.app.content.browser.contents.properties, line 160, in action
  Module bda.aaf.site.browser.foldercontents_actions_properties, line 66, in dx_action
  Module plone.app.content.browser.contents.properties, line 109, in dx_action
TypeError: ('Could not adapt', <Image at /Plone/hda/programm/veranstaltungsfotos/mostlikely-sudden-workshop/190130_vortrag-buchpraesentation-most-likely_-c-thomas-raggam-hda-6.jpg>, <SchemaClass plone.app.dexterity.behaviors.metadata.ICategorization>)

Here, this line:

behavior_categorization = ICategorization(obj)

should read:

 behavior_categorization = ICategorization(obj, None) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant