SP/web2py/gluon/packages/dal/pydal/parsers/google.py

15 lines
336 B
Python
Raw Permalink Normal View History

2018-10-25 15:33:07 +00:00
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