youre playing well within the land of things I havent fleshed out
completely, but to remove from the identity map you should be able to do
this:

del objectstore.uow().identity_map[objectstore.instance_key(obj)]

then a get(), etc. will re-get it.

[EMAIL PROTECTED] wrote:
> On Jan 23, 2006, at 8:56 PM, Michael Bayer wrote:
>> do this:
>>      m = mapper(cls, table, is_primary=True)
>
> thanks mike.
> is there a better way to do
> what i'm doing in the REGET
> section?
>
> ---
> if REGET:
>      del x1
>      x1 = m1.selectone()
> ---
>
> ideally i'd like something like:
>
> m1.clear_cache(x1)
>
> or something like that, which
> would force any sqlalchemy-managed
> attribute off of x1 to be reloaded
> (lazily? i guess exactly what happens
> could be delegated to each MapperProperty?)
>
> thanks also for the other updates!
> d
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Sqlalchemy-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users
>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to