[z3] trying sqlos on zope3 trunk

Sidnei da Silva sidnei at enfoldsystems.com
Sat Aug 27 16:12:57 CEST 2005


On Sat, Aug 27, 2005 at 09:22:03AM +0200, Adam Groszer wrote:
| Dear Sidnei,
| 
| Adding permission="zope.View" interface="sqlos.interfaces.ISQLObject"
| solved the first problem. This is missing from the readme.txt, that's
| why I missed it too. But the factory was already there as I sent
| the first e-mail. Currently I have the following configure.zcml:

Here, you should use the factory name instead of the class attribute:

| <browser:addMenuItem
|     title="Person"
|     class="sot.app.Person"
|     permission="zope.ManageContent"
|     view="AddPerson.html"
|     />

<browser:addMenuItem
    title="Person"
    factory="sot.app.Person"
    permission="zope.ManageContent"
    view="AddPerson.html"
    />

The reason is that 'factory' is a registered factory name, and 'class'
will create a new factory implicitly.

-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com


More information about the z3 mailing list