Archetypes.schemaextender does not create getters and setters for fields

published Mar 06, 2010 02:00   by admin ( last modified Mar 06, 2010 02:00 )

So if you want to access a field's value you have to do it through the content item's schema:

obj.Schema()['fieldname'].get(obj)

In templates (or more actually, views), this means doing it from the python file in a Zope view.

Nein, ich habe gesagt, dass man mit der """ "get" Methode des fields """ an die Daten kommt -> obj.Schema()['fieldname'].get(obj)



Läs mer: [dzug-zope] Probleme mit archetypes.schemaextender und ReferenceField