Oleg,

I done the SQLRelatedJoin using SQLBuilder but I saw that there is a
OneToMany and ManyToMany joins now (I saw this in svn). Will *Join
deprecated?

I tested the filter and orderBy with ManyToMany using the example of
this thread, it is working except by a mistake in joins.py file: in
the _ManyToManySelectWrapper class, in the __getattr__ method, it
should be getattr(self.select, attr) reather than getattr(self,
select, attr)...

I'm sending the diff of this change, but without SQLRelatedJoin fixed,
I want to know if I should send it too.

Thanks

--
Michel Thadeu Sabchuk
Curitiba - Brasil
Index: joins.py
===================================================================
--- joins.py	(revision 1729)
+++ joins.py	(working copy)
@@ -392,7 +392,7 @@
     def __getattr__(self, attr):
         # @@: This passes through private variable access too... should it?
         # Also magic methods, like __str__
-        return getattr(self, select, attr)
+        return getattr(self.select, attr)
 
     def __repr__(self):
         return '<%s for: %s>' % (self.__class__.__name__, repr(self.select))

Reply via email to