Florian Schulze wrote:
On Thu, 24 Jan 2008 22:24:10 +0100, Hanno Schlichting <[EMAIL PROTECTED]> wrote:

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

Hi,

there are no generated methods with schemaextender.


On purpose or because of problems?

What happens if you call ClassGen's 'generateMethods' for the
new fields?

(sorry I've not been following atse
development that closely)

Raphael


Regards,
Florian Schulze


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

Reply via email to