Sweet thanks for the quick fix as always.

On Tue, Jan 4, 2011 at 11:01 AM, Michael Bayer <[email protected]> wrote:
> ah you were right the first time.   The "all" concept is local dependency.py, 
> which just needs to interpret its internal values appropriately before 
> sending arguments off to attributes.py.
>
>
> On Jan 4, 2011, at 10:49 AM, Will Weaver wrote:
>
>> I made a different patch.  This one I don't believe is ideal, but I
>> think it might be the appropriate place to make the patch
>>
>> http://pastebin.com/kZbZcJ3u
>>
>> On Tue, Jan 4, 2011 at 8:58 AM, Will <[email protected]> wrote:
>>> Hello,
>>>
>>> I noticed that when setting passive_deletes="all" on a relationship
>>> and try to delete the parent object sqlalchemy still tries to query
>>> the child object.  For the way my models are set up I can't have the
>>> child object be queried.  I'm using a hybrid of horizontal and
>>> vertical sharding in this relationship and sometimes the corresponding
>>> table does not exist so it cannot be queried.
>>>
>>> I have a patch that seems to fix the problem but I don't understand
>>> sqlalchemy enough to know if this is the proper fix or if it should be
>>> done somewhere else.
>>>
>>> http://pastebin.com/wd2Dsdwu
>>>
>>> This particular problem does not occur with passive_deletes=True but
>>> other problems occur because I don't want existing objects to have any
>>> fields nullified either if they are loaded in sqlalchemy.
>>>
>>> I narrowed down the reason why this occurs to orm/attributes on line
>>> 383 but that doesn't seem to be the appropriate place for the fix.
>>>
>>> Thanks for any input.
>>>
>>> -Will
>>>
>>> --
>>> 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.
>>>
>>>
>>
>> --
>> 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.
>>
>
> --
> 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.
>
>

-- 
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