kerinin, el 10 de enero a las 02:03 me escribiste:
> 
> I'm having a problem with inheritable sqlobjects.  I have two classes,
> one of which is a subclass of another, and i want to be able to
> MultipleJoin to both of them - like so:
> 
> -----------------------
> class BaseClass(InheritableSQLObject):
>       reference = ForeignKey('RefClass', default=None)
> 
> class OtherClass(BaseClass):
>       reference = ForeignKey('RefClass', default=None)
> 
> class RefClass(SQLObject):
>       base_classes = MultipleJoin('BaseClass',joinColumn='reference_id')
>       other_classes = MultipleJoin('OtherClass',joinColumn='reference_id')
> ----------------------
> 
> the problem is that instances of OtherClass are showing up in
> RefClass.base_classes and NOT in RefClass.other_classes, as they
> should.  
> 
> Any ideas?

I'm not really sure but I think you shouldn't provide the reference twice.
It's enough to provide it on the BaseClass only.

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
 .------------------------------------------------------------------------,
  \  GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05 /
   '--------------------------------------------------------------------'
Bald men with no jobs and no money who live with their parents don't approach
strange women.
        -- George Constanza

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to