[web2py] Re: How to fix 'list' TypeError with many-to-many SQLFORM.factory and multiple=True?

2014-12-10 Thread Jan Beilicke
', 'reference component'), Field('package_id', 'reference package'), Field('additional_property')) Am Dienstag, 9. Dezember 2014 17:50:42 UTC+1 schrieb Jan Beilicke: Hi everybody, since a couple of days I am trying to implement a *normalized many

[web2py] Re: How to fix 'list' TypeError with many-to-many SQLFORM.factory and multiple=True?

2014-12-10 Thread Jan Beilicke
the list_reference example in chapter 6 of the book. On Wednesday, December 10, 2014 5:50:42 AM UTC+13, Jan Beilicke wrote: Hi everybody, since a couple of days I am trying to implement a *normalized many-to-many model* that can be managed using a single form consisting of a couple

[web2py] Re: How to fix 'list' TypeError with many-to-many SQLFORM.factory and multiple=True?

2014-12-10 Thread Jan Beilicke
: content = SQLFORM.grid(db.package) return dict(content=content) Am Dienstag, 9. Dezember 2014 17:50:42 UTC+1 schrieb Jan Beilicke: db.define_table('component', Field('some_field'), format='%(some_field)s

[web2py] How to fix 'list' TypeError with many-to-many SQLFORM.factory and multiple=True?

2014-12-09 Thread Jan Beilicke
Hi everybody, since a couple of days I am trying to implement a *normalized many-to-many model* that can be managed using a single form consisting of a couple of fields from one table and a multiple select drop-down list containing references to an intersection table. My problem is an

Re: [web2py] Database design question regarding the usage of supertypes for a web2py project

2014-09-15 Thread Jan Beilicke
to say without concrete example. Richard On Thu, Sep 11, 2014 at 9:58 AM, Jan Beilicke jan.be...@gmail.com javascript: wrote: These are just sample names. In reality they are separate business/use case entities sharing only the same supertype, they are not enumerated. Am Donnerstag, 11

[web2py] Database design question regarding the usage of supertypes for a web2py project

2014-09-11 Thread Jan Beilicke
Hi everyone, I'm working on a web2py project which requires a complex relationship model. I want to use a model that works well with web2py's DAL and I would be glad if somebody could point me into the right direction. I created a small sample ER diagram to illustrate my problem, only the

Re: [web2py] Database design question regarding the usage of supertypes for a web2py project

2014-09-11 Thread Jan Beilicke
On Thu, Sep 11, 2014 at 7:04 AM, Jan Beilicke jan.be...@gmail.com javascript: wrote: Hi everyone, I'm working on a web2py project which requires a complex relationship model. I want to use a model that works well with web2py's DAL and I would be glad if somebody could point me

[web2py] Re: web2py 2.9.6 is out!

2014-09-03 Thread Jan Beilicke
Thanks a lot, great work! Fortunate coincidence: I wanted to use Sphinx for my current web2py project and was thinking about the best way to integrate it ... and there it is already! :) Kind regards, Jan Am Dienstag, 2. September 2014 04:08:25 UTC+2 schrieb Massimo Di Pierro: This is a

[web2py] DAL: Rollback of an insert doesn't roll back the counter

2014-08-20 Thread Jan Beilicke
(second try, somehow my post wasn't published) Hi all, since a long time I have the opportunity to work on a web2py project again - it was about time! To refresh my mind I was tinkering with DAL and a MySQL database in an iPython shell and I was wondering: According to the reference [1] the

Re: [web2py] DAL: Rollback of an insert doesn't roll back the counter

2014-08-20 Thread Jan Beilicke
Am Mittwoch, 20. August 2014 17:59:29 UTC+2 schrieb viniciusban: Inline answers. On Wed, Aug 20, 2014 at 12:49 PM, Jan Beilicke jan.be...@gmail.com javascript: wrote: (second try, somehow my post wasn't published) ... According to the reference [1] the counter should

[web2py] DAL insert(): ID increases even after rollback()

2014-08-20 Thread Jan Beilicke
Hi all, since a long time I'm working on a web2py project again. And it was about time! ;) While trying to refresh my mind, I was tinkering with DAL and a MySQL database in iPython and I was wondering: The reference [1] states that on a rollback the counter would be rolled back as well.