[z3] trying sqlos trunk on Z3 trunk

Brian Sutherland jinty at web.de
Sat Nov 26 13:38:33 CET 2005


On Sat, Nov 05, 2005 at 04:25:16PM +0100, Brian Sutherland wrote:
> On Sat, Nov 05, 2005 at 02:56:42PM +0100, Adam Groszer wrote:
> > Hello Brian,
> > 
> > I added the adapter, now adding the container works.
> > But adding a new person fails with:
> > 
> > [snip]
> >   Module zope.tales.expressions, line 204, in __call__
> >     return self._eval(econtext)
> >   Module zope.tales.expressions, line 198, in _eval
> >     return ob()
> >   Module zope.app.form.browser.add, line 62, in update
> >     self.createAndAdd(data)
> >   Module zope.app.form.browser.add, line 112, in createAndAdd
> >     content = self.add(content)
> >   Module zope.app.form.browser.add, line 135, in add
> >     return self.context.add(content)
> >   Module sqlos.container, line 178, in add
> >     return container[name]
> >   Module sqlos.container, line 117, in __getitem__
> >     raise KeyError, name
> > KeyError: 'sot.Person.7'
> 
> What is the zcml you use to register the factory? In particular the id
> should be sot.Person, so something like this:
> 
>  <sqlos:factory
>       id="sot.Person"
>       component="sot.xxx.xxx.Person"
>       description="A Sample Person"
>       />
> 
> Another known wart...

I think I just fixed this one in the sqlos trunk, you should now be able
to give your containers any id.

Mind testing it?

-- 
Brian Sutherland

Metropolis - "it's the first movie with a robot. And she's a woman.
              And she's EVIL!!"


More information about the z3 mailing list