[web2py] Re: format does not work for SQLFORM

2014-12-28 Thread t_glezakos via web2py-users
Thanks Niphlod for guidance! Tom -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Group

[web2py] Re: format does not work for SQLFORM

2014-12-28 Thread t_glezakos via web2py-users
Well, in the representation format of the 'hardware' table I did this: Instead of format='%(typeOfItem.hwType)s, %(manufacturer)s, %(productSeries)s, %(model)s, %(serialNo)s' I put: format=lambda row: '%s %s %s %s %s' % (row.typeOfItem.hwType, row.manufacturer, row.productSeries, row.mod

[web2py] format does not work for SQLFORM

2014-12-26 Thread t_glezakos via web2py-users
My application manages debits of hardware to personnel Here is my model: ## table that holds firms providing hardware db.define_table('providers', Field('eponymia', 'string', label='Name'), Field('address', 'string', label='Address'), Field('perioxi