From faeff098fe3d95a1287040fd14584171e2911ce2 Mon Sep 17 00:00:00 2001 From: Tim Richardson Date: Sat, 15 Feb 2014 07:52:43 +1100 Subject: [PATCH] rows.export_to_csv_file assumes the function field.represent takes only one argument, which was causing a ticket with virtua fields --- gluon/dal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/dal.py b/gluon/dal.py index 638afe99..704d4e38 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -9746,7 +9746,7 @@ class FieldVirtual(object): (self.name, self.f) = (name, f) if f else ('unknown', name) self.type = ftype self.label = label or self.name.capitalize().replace('_',' ') - self.represent = lambda v,r:v + self.represent = lambda v,r=None:v self.formatter = IDENTITY self.comment = None self.readable = True