[web2py] Re: lambda inside a loop ?

2011-09-14 Thread cogarg
'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

[web2py] lambda inside a loop ?

2011-08-12 Thread cogarg
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

[web2py] Re: .requires for Multible dbs

2010-09-13 Thread cogarg
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

[web2py] .requires for Multible dbs

2010-09-13 Thread cogarg
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=

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread cogarg
;)] >    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:

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread cogarg
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) > >

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread cogarg
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

[web2py] Re: Custom dynamic form submission

2010-08-04 Thread cogarg
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

[web2py] Custom dynamic form submission

2010-08-03 Thread cogarg
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