[web2py] Ajax function

2013-11-13 Thread Luca Dalla Palma
Hello, this is my *view* on the *controller *I build a function containing the folowing code: pippone='ciao' stringa.append("jQuery('#paginatore').html('%s');" % pippone()) print pippone return stringa The console says ciao (the HTML generated appears to be right) When the function returns, I

[web2py] Alias on Fields

2013-10-25 Thread Luca Dalla Palma
Hello Sirs, I access a customer Db with two tables as follows: db.define_table('events', Field('event_id', type='integer'), primarykey=['event_id']) db.define_table('documents', Field('document_id'), Field('event_id', 'reference events') primarykey=['document_i