[web2py] ask about static files

2017-03-18 Thread 黄祥
hi, i've several question about static files in web2py 1. what is the response.optimize_css & js used for? response.optimize_css = 'concat,minify,inline' response.optimize_js = 'concat,minify,inline' i've defined it in models/db.py but when check with developer tools, the *.css file loaded is no

[web2py] Call a javascript function from SQLFORM.smartgrid

2017-03-18 Thread 'FERNANDO VILLARROEL' via web2py-users
Dear All. How a i can call a javascript function from a link of sqlform.grid My controller:   d=datetime.datetime.strptime(request.vars.desde, "%d/%m/%Y %H:%M:%S") \    if request.vars.desde else datetime.datetime.strptime(datetime.datetime.strftime(datetime.datetime.now(),'%Y-%m-%d 00:00:00'),

[web2py] grid ondelete redirection

2017-03-18 Thread Andrea Fae'
Why the redirection is not working? def mostra_evento(): evento_id=request.args(0) query = (db.evento.id == evento_id) db.evento.inizio.writable=db.evento.fine.writable=db.evento.risorsa.writable=db.evento.docente.writable=db.evento.materia.writable=False db.evento.colore.readable

[web2py] Comparar hash dinamicamente em uma consulta

2017-03-18 Thread Rodrigo attique santana
Olá meus amigos. Estou postando esta dúvida aqui pois não encontrei nada na net e acredito que possa ser de utilidade para muitos. Tenho a seguinte estrutura: Clientes = db.define_table('clientes' ,Field('nome') ,Field('documento',unique=True)

Re: [web2py] Access DB2/400 from IBM i (AS/400) PASE environment

2017-03-18 Thread Jim Steil
In this example he is connecting using a DB2 connector. However, I'm hoping to use the ibm_db_dbi connector and don't know how to specify it on the dal connection. He is using: db = DAL('db2://DSN=MYDSN;UID=x;PWD=x', migrate_enabled=False) I'm not sure what to put in place of the db2:/

[web2py] Re: Web2py admin > database datetime field error

2017-03-18 Thread lyn2py
I'm at testing stage, so sqlite, with plans to move over to postgresql, which I discovered to handle such nonexistent dates similarly. Yes I can do a select on fields that do not have dates. On Friday, March 17, 2017 at 8:15:10 AM UTC+8, Dave S wrote: > > > > On Thursday, March 16, 2017 at 3:59

Re: [web2py] Re: change the size of a text field in a form

2017-03-18 Thread Maurice Waka
I had the same problem and changed but noted that the button 'submit' disappears.any help on how to sort this hout On Tuesday, January 19, 2016 at 7:00:10 PM UTC+3, Richard wrote: > > And why not : > > > textarea { > width: 1320px; > height: 70px; > } > > > You don't need js for tha