On Jan 15, 2008, at 9:59 AM, maxi wrote:

>
> Hi,
>
> I've an error when I try to execute a clear() method from session
> object.
>
> Traceback (most recent call last):
>  File "V:\nacer\bin\gui\planilla.py", line 280, in
> on_btn_apply_clicked
>    self._savePlanilla()
>  File "V:\nacer\bin\gui\planilla.py", line 200, in _savePlanilla
>    PlanillaService().save(planilla)
>  File "V:\nacer\bin\common\services.py", line 16, in save
>    session.clear()
>  File "c:\programs\python25\lib\site-packages\sqlalchemy-0.4.2p3-
> py2.5.egg\sqlalchemy\orm\session.py", line 577, in clear
>    self._unattach(instance)
>  File "c:\programs\python25\lib\site-packages\sqlalchemy-0.4.2p3-
> py2.5.egg\sqlalchemy\orm\session.py", line 1039, in _unattach
>    if instance._sa_session_id == self.hash_key:
> AttributeError: 'PlanillaDet' object has no attribute '_sa_session_id'
>
>
> I do,
> session.save_or_update(dataset)
> session.flush([dataset])
> session.clear()
>
> Why this error ocurr?


thats a bug.  Can you provide a full test case ?



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to