Added pyDAL from repository, adapted web2py code

This commit is contained in:
gi0baro
2014-12-15 20:13:40 +01:00
parent 5ea654ed06
commit dcadcf0ffb
43 changed files with 87 additions and 11692 deletions
+20
View File
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from gluon.pydal import DAL as pyDAL
from gluon.pydal import Field, SQLCustomType, geoPoint, geoLine, geoPolygon
from gluon import serializers as w2p_serializers
from gluon import validators as w2p_validators
from gluon.utils import web2py_uuid
from gluon import sqlhtml
class DAL(pyDAL):
serializers = w2p_serializers
validators = w2p_validators
uuid = web2py_uuid
representers = {
'rows_render': sqlhtml.represent,
'rows_xml': sqlhtml.SQLTABLE
}