Ticket #7492 (closed Bug: fixed)
Content Rules: Add condition 'workflow state' fails in 3.0.4 in Placeless Translation Service
| Reported by: | aclark | Owned by: | hannosch |
|---|---|---|---|
| Priority: | major | Milestone: | 3.0.5 |
| Component: | Internationalization | Keywords: | |
| Cc: |
Description
Not sure what is going on here re: this traceback, and no other open ticket on it (that I could find) so here it is. This is reproducible in 3.0.4 by going to Site Setup -> Content Rules -> Some Rule. and doing Add condition -> Workflow State. PTS bug? I did see a few other content rules bugs regarding PTS but I'm not sure if this is the same issue.
2007-12-16 15:11:21 ERROR Zope.SiteErrorLog http://localhost:8080/Plone/++rule++rule-6/+condition/plone.conditions.WorkflowState Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module zope.formlib.form, line 769, in call Module Products.Five.formlib.formbase, line 55, in update Module zope.formlib.form, line 732, in update Module zope.formlib.form, line 856, in setUpWidgets Module zope.formlib.form, line 301, in setUpInputWidgets Module zope.schema._field, line 354, in bind Module zope.schema._field, line 243, in bind Module zope.app.schema.vocabulary, line 34, in get Module plone.app.vocabularies.workflow, line 34, in call Module zope.i18n, line 110, in translate Module Products.PlacelessTranslationService.utility, line 23, in translate
AttributeError: contains
Change History
comment:3 Changed 4 years ago by mj
- Component changed from Content Rules to Internationalization
For prosperity's sake, so bug searchers can find this one: Also occurs when visiting the calendar control panel (@@calendar-controlpanel). TB in readable form:
Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module zope.formlib.form, line 769, in __call__ Module Products.Five.formlib.formbase, line 55, in update Module zope.formlib.form, line 732, in update Module plone.fieldsets.form, line 30, in setUpWidgets Module zope.formlib.form, line 379, in setUpEditWidgets Module zope.schema._field, line 354, in bind Module zope.schema._field, line 243, in bind Module zope.app.schema.vocabulary, line 34, in get Module plone.app.vocabularies.workflow, line 34, in __call__ Module zope.i18n, line 110, in translate Module Products.PlacelessTranslationService.utility, line 23, in translate AttributeError: __contains__
comment:4 Changed 4 years ago by aclark
Thanks! As MJ notes, this happens on @@calendar-controlpanel as well, which I can confirm is also fixed. (Incidentally, is there any sane way to use plone.recipe.plone to get 3.0.4 and *just* replace the plone.app.vocabularies egg? I tried adding it to src/ and specifying > 1.0.1 in [instance] but i get a version conflict. I'm guessing "no" is the answer, and I'll have to use ploneout, or something :-)
comment:5 Changed 4 years ago by hannosch
You can checkout plone.app.vocabularies into src and add the following bits:
[buildout]
develop =
src/plone.app.vocabularies
[plone]
recipe = plone.recipe.plone
eggs = plone.app.vocabularies
That should override the p.a.vocabularies egg with the develop egg. As there's no release with the fix out yet, this is probably the easiest way.

Hanno - this looks serious; is it plone.app.vocabularies or PTS that's at fault here?