On Thu, Jul 12, 2007 at 11:47:33AM +0100, Nick Murdoch wrote:
> class Line(SQLObject):
> owner = ForeignKey('Scene')
> text = UnicodeCol()
> prev = SingleJoin('Line', addRemoveName='Prev')
> next = SingleJoin('Line', addRemoveName='Next')
> created = DateTimeCol(default=dat
Just an idea: make a column 'order_number' in lines (and in scenes), and
methods 'moveUp', 'moveDown'. Which take care of changing the
'order_numbers'. Generally new lines are added with the highest ordernumber
+ 1, or could be 'inserted' by giving an order number.
Seems easier to me than the prev
Hi all,
I'm attempting to write an app that will let me create a set of Acts,
where each Act can contain some Scenes, and each Scene can contain some
Lines. Simple enough, but I also want to be able to rearrange the Lines
in a Scene (and, ideally, the Scenes in an Act)
To me it seems like I ne