here - http://plone.org/documentation/archetypes/wiki/TitleLessType
"First, the warning: it's not a good idea to override a setSomeField
() method and, inside of that, say something like
"self.someField=...". When you do this, you're breaking the natural
ability that Archetypes has to use different kinds of storage, and
you're forcing it to use AttributeStorage?. An Archetype class that
does this would not work with SQLStorage or any other other storage
types. Instead, say "self.getField(someField).set(self, value)". Now,
you're letting Archetypes do the actual setting, and it will work
with other storage mechanisms."
How would I add this as an action so that self.getField('title').set
(self, value) occurs right after the form has been submitted as
opposed to making it a function and only being able to call it from
outside the script as a method on the object itself.
Does that make sense ?
Jonah
Jonah Crawford
co-founder NewUses4.info
jonah(at)newuses4.info
202.487.9109
|