Florian/Martin:
I was able to reproduce the issue on a brand new Plone 3.0 instance, so
it should be a schemaextender problem:
steps:
* start with a new Plone 3.0 instance
* download and install schemaextender from
http://dev.plone.org/archetypes/browser/archetypes.schemaextender/trunk
* download and install nitf4plone from
http://dev.plone.org/collective/browser/nitf4plone/trunk
* restart Zope
* install nitf4plone form Add/Remove Products in Site Setup
* create a news item
* create the following script on the root of your site and run it:
results = context.portal_catalog.searchResults(portal_type='News Item')
for item in results:
obj = item.getObject()
schema = obj.Schema()
byline = schema.getField('byline')
byline.set(obj, 'Me')
you'll see:
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 Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 327, in _exec
Module None, line 8, in setAuthor
- <PythonScript at /ultimas/setAuthor>
- Line 8
Unauthorized: You are not allowed to access 'set' in this context
that's it.
--
Héctor Velarde
Desarrollo e Internet
La Jornada
+52 (55) 9183 0300 x4160
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers