[z3-five] AddMenuItem in five

Lennart Regebro regebro at gmail.com
Tue Sep 12 13:55:22 CEST 2006


On 9/12/06, Daniel de la Cuesta <cues7a at yahoo.es> wrote:
> Ok, problem solved. The problem was the declaration of the schema in the
> inferfaces.py module. This is the correct form:

Well, neither are incorrect. The one with _(u"something") is used when
you want to make the text translatable.

> http://localhost:8080/temp_folder/%2B/main_module_addform
> This error refers to the following lines of the ZMI:
>
>
> <browser:addform
>     ...
>     name="main_module_addform"
>      ...
> </browser:addform>
>
>
> <five:registerClass
>     ...
>     addview="main_module_addform"
> />

Yes. Addforms are created on Addviews, which are called "+". (That's
the somewhat cryptic %2B in the URL). You don't seem to have the
Addview, and I don't know how to set it up (it changed since I did it
in Five last time).

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the z3-five mailing list