SP/web2py/gluon/packages/dal/pydal/parsers/google.py
Saturneic 064f602b1a Add.
2018-10-25 23:33:13 +08:00

15 lines
336 B
Python

from ..adapters.google import GoogleDatastore
from .base import BasicParser
from . import parsers, for_type
@parsers.register_for(GoogleDatastore)
class GoogleDatastoreParser(BasicParser):
@for_type('id')
def _id(self, value):
return value
@for_type('boolean')
def _boolean(self, value):
return value