On 29/09/10 15:26 +0200, Paul J Stevens wrote: > Cédric, > > one other small issue I ran into while working with Proteus
Please fill an issue on roundup instead of extending other threads. > When adding objects that reference other objects, each object will > have a different instance (or threadlocal copy) of the Config object. > > Currently proteus does a few assertions to make sure that both the > target and source of the reference are the same, I assume to make sure > there is no mixup in backends/databases. > > When I add and party.address which holds a reference to a party.party I get: I don't understand. Put an example in roundup. > > Traceback (most recent call last): > File "./tests.py", line 249, in setUp > new = self.a.add(**addr) > File "/home/paul/service/src/nfg.erp/nfg/erp/erp.py", line 80, in add > new = addr(**kw) > File "/home/paul/service/src/proteus/proteus/__init__.py", line 275, > in __init__ > setattr(self, field_name, value) > File "/home/paul/service/src/proteus/proteus/__init__.py", line 90, > in set_method > assert value._config == self._config > AssertionError -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpcZU4BcNVQY.pgp
Description: PGP signature
