On Fri, Jan 29, 2010 at 02:53:26PM +0300, Oleg Broytman wrote:
> class File(SQLObject):
> name = StringCol()
> root = ForeignKey("Directory", default=None)
>
> class Directory(File):
> dirs = MultipleJoin("Directory", joinColumn="root_id")
> files = MultipleJoin("File", joinColumn=
On Friday 29 January 2010 08:53:26 Oleg Broytman wrote:
> On Thu, Jan 28, 2010 at 09:35:50PM -0300, Juan Manuel Santos wrote:
> > class File(InheritableSQLObject):
> > name = StringCol()
> > root = ForeignKey("Directory", default=None)
> >
> > class Directory(File):
> > dirs = MultipleJ
On Thu, Jan 28, 2010 at 09:35:50PM -0300, Juan Manuel Santos wrote:
> class File(InheritableSQLObject):
> name = StringCol()
> root = ForeignKey("Directory", default=None)
>
> class Directory(File):
> dirs = MultipleJoin("Directory", joinColumn="root_id")
> files = MultipleJoin("Fi
Hi everybody. I've recently started using SQLObject for a Python program I'm
writing to replace the previous object structure (was using Pickle but it got
too big :P).
Anyway, the relevant part is this: I have a File object (that I defined) and a
Directory object, like so:
class File(Inheritabl