[Zope3-Users] Using metadata and __name__ in addform

Florian Lindner mailinglists at xgm.de
Mon May 16 09:28:19 EDT 2005


Am Dienstag, 10. Mai 2005 23:34 schrieb Fred Drake:
> On 5/10/05, Florian Lindner <mailinglists at xgm.de> wrote:
> > how can I automatically create a addform that allows the user to enter
> > the metadate zope:description and the __name__. Using addform->fields has
> > not worked.
>
> There are a couple of ways.
>
> 1.  Use a custom class and template.  This isn't so hard, but makes it
> harder to change the schema at a later time (since the form has to be
> changed).
>
> 2.  Add a field to the schema that provide the specific metadata field
> you want, and create a specialized Dublin Core adapter.  Then the
> field from the schema is just another field, and you don't have to use
> a custom class and template.
>
> Luckily for you, I just made the later easier on the Zope 3 trunk last
> night.  :-)  See src/zope/app/dublincore/partial.txt for more
> information on how to do this.

Hi!
You also have an idea for a way to let the user not ony set metadata but also 
the __name__ attribute?

Thx,

Florian


More information about the Zope3-users mailing list