Re: portal_catalog.searchResults() can't see into custom ATFolder type generated with archgenxml

2 messages Options
Embed this post
Permalink
Mikko Ohtamaa () Re: portal_catalog.searchResults() can't see into custom ATFolder type generated with archgenxml
Reply Threaded More More options
Print post
Permalink
 File
"/Users/danielmckagan/Workspaces/zPhETinPlone/plone3/plone3_buildout/phet/parts/zope2/lib/python/OFS/Traversable.py",
line 232, in unrestrictedTraverse
   raise Unauthorized(name)
Unauthorized: You are not allowed to access 'java-sim' in this context

Can you enable verbose-security so you should see the exact permission you are missing?

-Mikko



------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Raphael Ritz () Re: portal_catalog.searchResults() can't see into custom ATFolder type generated with archgenxml
Reply Threaded More More options
Print post
Permalink
flydanofly wrote:
> Interesting, I'm not sure if this is related, or if this help with anything.
>
>>>> context.restrictedTraverse('/phet/simulations/simcontainer/java-sim')

Can you access this object in a browser right away?

> Traceback (most recent call last):
>   File "<input>", line 1, in ?
>   File
> "/Users/danielmckagan/Workspaces/zPhETinPlone/plone3/plone3_buildout/phet/parts/zope2/lib/python/OFS/Traversable.py",
> line 301, in restrictedTraverse
>     return self.unrestrictedTraverse(path, default, restricted=True)
>   File
> "/Users/danielmckagan/Workspaces/zPhETinPlone/plone3/plone3_buildout/phet/parts/zope2/lib/python/OFS/Traversable.py",
> line 232, in unrestrictedTraverse
>     raise Unauthorized(name)
> Unauthorized: You are not allowed to access 'java-sim' in this context

Does the 'java-sim' method or class have a docstring?
A security declaration?

Raphael

>
> I would imagine that it means that there are some permissions problems with
> the content type?  I've looked in the ZMI portal_type/ at Folder,
> SimulationContainer, JavaSimualtion, and all the security/permissions are
> set to "Acquire".  I'm running as admin (manager), so I would imagine there
> shouldn't be a problem.


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users