Hello
How I should define format if my controller looks like:
def view():
form = SQLFORM(db.book)
records = db(
db.book.id>0).select(orderby='date')
if form.accepts(request.vars):
redirect(URL(r=request,f='view'))
if form.errors:
response.flash="error"
return dict(form=form,records=records)
and in view:
{{for record in records:}}
<tr id="record-{{=
record.id}}" class="record">
<td>{{=record.nn}}</td>
<td>{{=
record.name}}</td>
<td>{{=record.num}}</td>
<td>{{=record.date}}</td>
<td>{{=record.operation}}</td>
<td>{{=record.inc_sale}}</td>
<td>{{=record.inc_copy}}</td>
<td>{{=record.inc_other}}</td>
<td>{{=int(record.inc_sale)+int(record.inc_copy)+int
(record.inc_other)}}</td>
<td><a href='{{=URL(r=request,f="d",args=[
record.id])}}'
class="delete" >X</a>
</tr>
{{pass}}
in input field date looks like I defined it (%d.%m.%Y), but after
insertion, in view, it looks like defaul (%Y-%m-%d)