RedTurtle / collective.captchacontactinfo

A simple customization for Plone contact-info that add recaptcha for anonymous users
https://plone.org/products/collective.captchacontactinfo
1 stars 1 forks source link

Not compatible with plone.app.contenttypes #4

Closed chrismilway closed 4 years ago

chrismilway commented 9 years ago

Contact for fails when using plone.app.contenttypes. Fails with the following error when trying to get policy text: 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 Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
Module Products.CMFFormController.BaseControllerPageTemplate, line 31, in _call
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 237, in _exec
Module Products.CMFCore.FSPageTemplate, line 177, in pt_render
Module Products.PageTemplates.PageTemplate, line 79, in pt_render
Module zope.pagetemplate.pagetemplate, line 132, in pt_render
Module zope.pagetemplate.pagetemplate, line 240, in __call__
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 888, in do_useMacro
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 954, in do_defineSlot
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 858, in do_defineMacro
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 954, in do_defineSlot
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 946, in do_defineSlot
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 852, in do_condition
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
URL: file:/usr/local/echamp/buildout-cache/eggs/collective.captchacontactinfo-1.2.1-py2.7.egg/collective/captchacontactinfo/skins/captcha_contact_info/contact-info.cpt
Line 177, Column 8
Expression: <PathExpr standard:u'contact_support_view/getPolicyText'>
Names:

{'container': <PloneSite at /Plone>,
 'context': <PloneSite at /Plone>,
 'default': <object object at 0x7fa9de5ab510>,
 'here': <PloneSite at /Plone>,
 'loop': {},
 'nothing': None,
 'options': {'args': (),
             'state': <Products.CMFFormController.ControllerState.ControllerState object at 0x7fa9bcef9090>},
 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x7fa9c481a100>,
 'request': <HTTPRequest, URL=http://echamp.textmatters.com/contact-info>,
 'root': <Application at >,
 'template': <FSControllerPageTemplate at /Plone/contact-info>,
 'traverse_subpath': [],
 'user': <PropertiedUser 'chrism'>}

Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 155, in _eval
Module Products.PageTemplates.Expressions, line 117, in render
Module collective.captchacontactinfo.browser.contactinfo_support_view, line 35, in getPolicyText

AttributeError: getText

cekk commented 4 years ago

2.0.0 is compatible with p.a.contenttypes..this pr is quite old, so i am closing it