there are no generated methods with schemaextender.
On purpose or because of problems?
On purpose.
What happens if you call ClassGen's 'generateMethods' for the
new fields?
(sorry I've not been following atse
development that closely)
A mess. It's like monkeypatching classes with new methods at runtime.
You can have extenders that behave differently in different scenarios
(e.g. when a particular marker interface is set), but generateMethods
works on a class level.
ContentFlavors tried to monkey patch on an instance level, but it got
very complicated.
However, in this case, it may be possible to do:
context.getWrappedField('myfield').set(context, val)
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers