admin based on bootstrap, thanks Paolo

This commit is contained in:
mdipierro
2012-12-24 13:49:06 -06:00
parent 56295371a4
commit 3710d43cfc
112 changed files with 6839 additions and 1371 deletions
+17
View File
@@ -0,0 +1,17 @@
db = DAL(lazy_tables = True)
db.define_table('x',
Field('name', 'string')
)
db.define_table('y',
Field('x', 'reference x'),
Field('age', 'integer', default = 30)
)
x_id = db.x.insert(name = 'barry')
db.y.insert(x = x_id, age = 99)
x = db(db.x.id > 0).select().first()
for y in x.y.select():
print y