[z3] trying sqlos trunk on Z3 trunk
Adam Groszer
adamg at fw.hu
Mon Nov 7 14:27:10 CET 2005
Hello Brian,
Yes, better.
Do you need the final working example to put it in the project?
Saturday, November 5, 2005, 4:25:16 PM, you 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...
--
Best regards,
Adam mailto:adamg at fw.hu
--
Quote of the day:
Go put your creed into your deed, Nor speak with double tongue.
- Ralph Waldo Emerson
More information about the z3
mailing list