'a_'+table].id.represent=buildrepr(table)
On 12 Αύγ, 20:35, cogarg wrote:
> Hello,
>
> I'm using a simple loop in my db_custom.py define some some tables
> that contain a combination of fields from other, similarly named
> tables and managed to get it to work.
>
&g
Hello,
I'm using a simple loop in my db_custom.py define some some tables
that contain a combination of fields from other, similarly named
tables and managed to get it to work.
My question is, is there a way to modify any lambda functions like the
following two in the example, in order to assign
gt; db.ipo.SA.requires
>
> On Sep 13, 10:46 am, cogarg wrote:
>
> > Is the following even possible?
>
> > db = SQLDB('postgres://xx:x...@localhost:5432/xx')
> > dblink = SQLDB('postgres://yy:y...@localhost:5432/yy')
>
> > db.define_tabl
Is the following even possible?
db = SQLDB('postgres://xx:x...@localhost:5432/xx')
dblink = SQLDB('postgres://yy:y...@localhost:5432/yy')
db.define_table('ipo',
Field('sa',label=T('SA')),
Field('cr',db.auth_user,default=auth.user_id,writable=False),
Field('ep',label=T('EPI'),default=
;)]
> for i in range(1,100):
> values = dict((field,request.vars[key%i]) for key, field in
> mapping if request.vars.get(key%i,None))
> if not values: break
> values[userid]=auth.user_id # <<<<
> db.ekped.insert(**values)
>
> On Aug 4, 6:
olh_xwra'),
> ('fieldf%i','etos')]
> for i in range(1,100):
> values = dict((field,request.vars[key%i]) for key, field in
> mapping if request.vars.get(key%i,None))
> if not values: break
> db.ekped.insert(**values)
>
>
d an example. Can you described the model and how input
> fields should be mapped into db fields?
>
> On Aug 4, 4:50 am, cogarg wrote:
>
> > Thanks for the reply, i will look into replacing the add/remove
> > functions with that jquery code, but i('ll) still have th
uiomuio.com/tutorials/jquery/add-remove/
>
> Massimo
>
> On Aug 3, 1:19 pm, cogarg wrote:
>
> > Hello,
>
> > I just starting using web2py and i am a little bit lost, since my
> > knowledge of
> > html/css/js/python are mediocre at best.
>
> > What i wan
Hello,
I just starting using web2py and i am a little bit lost, since my
knowledge of
html/css/js/python are mediocre at best.
What i wanted to create is a form with some standard fields and an
option
to add more fields(single button, adds 6 fields - an entire db
record).
So far, so good, the ht
9 matches
Mail list logo