Skip to content

Plone 5 compatibility #24

Description

@jkubaile

Hi,

i am trying to use plone.app.ldap in a Plone 5 environment. Installation via buildout was fine. Quick Installing in Plone works also. But using the control panel view and adding a new server or a new schema leads in the following error:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module Products.PDBDebugMode.runcall, line 71, in pdb_runcall
  Module ZPublisher.Publish, line 48, in call_object
  Module zope.formlib.form, line 800, in __call__
  Module zope.formlib.form, line 920, in render
  Module zope.formlib.form, line 790, in render
  Module plone.app.form._named, line 42, in __call__
  Module Products.Five.browser.pagetemplatefile, line 125, in __call__
  Module Products.Five.browser.pagetemplatefile, line 59, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module five.pt.engine, line 93, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 257, in render
  Module chameleon.template, line 190, in render
  Module chameleon.template, line 172, in render
  Module 8a51f2b01b43baec52fa6a94857d1613d392a885.py, line 123, in render
  Module five.pt.expressions, line 154, in __call__
  Module five.pt.expressions, line 126, in traverse
  Module zope.traversing.adapters, line 136, in traversePathElement
   - __traceback_info__: (<Products.Five.metaclass.PropertyAdding object at 0x7fbae510aa90>, 'main_template')
  Module zope.traversing.adapters, line 50, in traverse
   - __traceback_info__: (<Products.Five.metaclass.PropertyAdding object at 0x7fbae510aa90>, 'main_template', ('macros', 'master'))
LocationError: (<Products.Five.metaclass.PropertyAdding object at 0x7fbae510aa90>, 'main_template')

 - Expression: "context/main_template/macros/master"
 - Filename:   ... pp.form-2.3.2-py2.7.egg/plone/app/form/addingpageform.pt
 - Location:   (5:23)
 - Source:     ... etal:use-macro="context/main_template/macros/master">
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0x7fbae6ed6b10>
               views: <ViewMapper - at 0x7fbae499d090>
               modules: <instance - at 0x7fbaef769a70>
               args: <tuple - at 0x7fbafa641050>
               here: <ImplicitAcquisitionWrapper +ldapschema at 0x7fbae70d1e10>
               user: <ImplicitAcquisitionWrapper - at 0x7fbae70e2780>
               nothing: <NoneType - at 0x7b1070>
               container: <ImplicitAcquisitionWrapper +ldapschema at 0x7fbae70d1e10>
               request: <instance - at 0x7fbae6f00998>
               wrapped_repeat: <SafeMapping - at 0x7fbae4b65628>
               traverse_subpath: <list - at 0x7fbae3564560>
               default: <object - at 0x7fbafa617bc0>
               loop: {...} (0)
               context: <ImplicitAcquisitionWrapper +ldapschema at 0x7fbae70d1e10>
               view: <PropertyAddForm plone.LdapProperty at 0x7fbae510aad0>
               translate: <function translate at 0x7fbae4bc9410>
               root: <ImplicitAcquisitionWrapper Zope at 0x7fbae71bcf00>
               options: {...} (0)
               target_language: <NoneType - at 0x7b1070>

I would suggest, that it has something todo with the formlib based forms, which are used here. It was possible to set servers and schemas via the debugger. Than the access to the users and authentication seems to work also...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions