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

Use portal_catalog instead of uid_catalog to avoid Unauthorized getObject #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nebuleu
Copy link

@nebuleu nebuleu commented Apr 8, 2014

The plonebooking_add script raised the following error when you are coming from the plonebooking_add_form

Module script, line 23, in plonebooking_add
    <FSPythonScript at /plonebooking_add used for />
    Line 23
Unauthorized: You are not allowed to access 'getObject' in this context

The reference_catalog and uid_catalog getObject methods are no more callable in Python (Script) and Page Templates in recent Plone versions.

We can use instead the portal_catalog to get the object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant