[web2py] Beginner's Question

2010-11-17 Thread asklucas
Hello! I'm new to web development and my trying web2py because of DRY and, most importantly, Python. I created a model, however I can't insert records in the admin interface because of a constraints-error I don't understand. When trying to insert a record here: http://127.0.0.1:8000/task/appadm

[web2py] Re: Beginner's Question

2010-11-19 Thread asklucas
"date_due", "datetime"), >     Field("date_nextcheck", "datetime"), >     format='%(title)s' >     ) > > db.define_table("task_category", >     SQLField("id_category", db.category), >     SQLField("id_ta

[web2py] View for 1:n dataset

2011-03-27 Thread asklucas
Hello! I created an app using the wizard. I'd like to create a general view for a record and its sub-records (1:n relation). Unfortunately I tend to creating Spaghetti-code and the solution is quite messy. Could you suggest any solution that is simpler? Is it possible to reuse this for differen

[web2py] Checkboxes for Many to Many Relations

2012-03-17 Thread asklucas
Hello! I can't work out how to handle many to many relations in web2py! Assuming the following model: db.define_table( 'person', > Field( 'name', type = 'string'), > ) > > db.define_table( 'food', > Field( 'name', type = 'string'), > ) > > db.define_table( 'person_food', >