From ff43ab7a20f8a7c5b9446d9cee452e640c385f26 Mon Sep 17 00:00:00 2001 From: Giovanni Barillari Date: Thu, 22 Jan 2015 12:51:56 +0100 Subject: [PATCH] Fix `uuid` attribute of `DAL` It's a bound method: requires instance as first parameter --- gluon/dal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/dal.py b/gluon/dal.py index 81d24c17..47e6b017 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -117,7 +117,7 @@ from gluon import sqlhtml class DAL(pyDAL): serializers = w2p_serializers validators_method = _default_validators - uuid = web2py_uuid + uuid = lambda x: web2py_uuid() representers = { 'rows_render': sqlhtml.represent, 'rows_xml': sqlhtml.SQLTABLE