>
> About 1). Are you asking to be able to extend class Table for a
> specific define_table? Or doyou specifically need the move methods?


I want to be able to extend class Table and to use those classes with define
table (see attached file)

db.define_table("categories",
    Field("title"),
    act_as=OrderedTree
)

db.define_table("images",
    Field("category", db.categories),
    Field("title"),
    act_as=OrderedList,
)

db.define_table("videos",
    Field("category", db.categories),
    Field("title"),
)

then
db.images.move_before(2, 1) #move 2 before 1, 2 will be first

Attachment: ordered.py
Description: Binary data

Reply via email to