On 30/11/10 23:10 -0800, Mohammad wrote:
> But When i used the simple method like below one the error message
> apprears and i think it is related to Cache :(
> ===========================================================
> >>party_obj = POOL.get('party.party')
> >>party_obj.browse([1])
> Traceback (most recent call last):
> File "<input>", line 1, in <module>
> File "/home/mohammad/workspace/tryton-dist/trytond1.8/trytond/
> trytond/model/modelstorage.py", line 507, in browse
> for x in ids))
> File "/home/mohammad/workspace/tryton-dist/trytond1.8/trytond/
> trytond/model/browse.py", line 15, in __init__
> super(BrowseRecordList, self).__init__(lst)
> File "/home/mohammad/workspace/tryton-dist/trytond1.8/trytond/
> trytond/model/modelstorage.py", line 507, in <genexpr>
> for x in ids))
> File "/home/mohammad/workspace/tryton-dist/trytond1.8/trytond/
> trytond/model/browse.py", line 55, in __init__
> cache = self._cursor.get_cache(self._context)
> AttributeError: 'NoneType' object has no attribute 'get_cache'
>
> =======================================================================
> You should take a look at http://code.google.com/p/tryton/wiki/HowToUseTrytondAsAModule#Version_1.8 You must use now Transaction manager. -- 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/
pgpmdZhI8sopk.pgp
Description: PGP signature
