On Aug 17, 2009, at 12:01 PM, chris e wrote:

>
> I'm not sure if this affects S.A 0.6.
>
> It appears that orm.properties.RelationProperty. _post_init does not
> create a _dependency_processor attribute if the relation is viewonly.
>
>
> Line1016:
>        if not self.viewonly:
>            self._dependency_processor =
> dependency.create_dependency_processor(self)
>
> This causes orm.dependency._check_reverse_action to fail as the
> attribute does not exist.
>
> The patch I applied is to add attribute existence verification:
>
> Line 142:
>
>        for r in self.prop._reverse_property:
>            if hasattr(r, '_dependency_processor') :
>                if (r._dependency_processor, action, parent, child) in
> uowcommit.attributes:
>                    return True
>        return False


Could you please log a ticket for this on trac, with a short test that  
would reproduce it?

--
Philip Jenvey


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