[z3] trying sqlos trunk on Z3 trunk
Brian Sutherland
jinty at web.de
Sat Nov 5 16:25:16 CET 2005
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...
--
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