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 "
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
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
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
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.
>
> > =>
5 matches
Mail list logo