[web2py:25152] About reusable and user-defined model structures

2009-06-28 Thread phecker
Hello, I would like to share some web2py code snippets about making model definitions reusable and allowing to manage user-defined fields. First the model definition is swapped out to functions, which are used in the db.define_table statement. So model-definitions are composed of what I call a "

[web2py:25160] Re: About reusable and user-defined model structures

2009-06-28 Thread phecker
This code looks much cleaner, but the doctor table contains only the speciality-column. I looked at the source of class SQLTable in sql.py and the documentation says, this should work: "... If a field is of type Table, the fields (excluding 'id') from that table will be used inst

[web2py:25161] Re: About reusable and user-defined model structures

2009-06-28 Thread phecker
Ok, I got it: The first parameter of db.Table must be None. So this work: person=db.Table(None, 'person',SQLField('name')) db.define_table('doctor', person, SQLField('specialty')) And this works also with multiple "table-fields": table1 = db.Table(None, 'table1', SQLField('table1_field1'), SQL

[web2py:16996] Re: IIS6+web2py+MSSQL

2009-02-26 Thread phecker
Hello Kirby, I am using web2py as a service on Windows Server 2008 and IIS 7 in combination with the Helicon ISAP_Rewrite-module. => http://www.isapirewrite.com/ If you like, I can give you some more information. _p_ On 26 Feb., 21:38, Kirby Turner wrote: > Unfortunately it doesn't help but

[web2py:17079] Re: IIS6+web2py+MSSQL

2009-02-27 Thread phecker
you post some intructions on AlterEgo? > > Massimo > > On Feb 26, 2:58 pm, phecker wrote: > > > > > Hello Kirby, > > > I am using web2py as a service on Windows Server 2008 and IIS 7 in > > combination with the Helicon ISAP_Rewrite-module. > > > =>