Hi,

I think this has nothing to do with schemaextender.

Héctor Velarde wrote:
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')

The set method of all Fields is private. You need to use the generated accessor and mutators.

So obj.setByline('Me') should work instead.

Hanno


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to