def _GetModelTypeForEntityType(python_type):
 from google.appengine.ext import db
 _PYTHON_TYPE_TO_MODEL_TYPE = {basestring: db.StringProperty, str: db.StringProperty, unicode: db.StringProperty, int: db.IntegerProperty, bool: db.BooleanProperty, float: db.FloatProperty, db.Text: db.TextProperty}
 return _PYTHON_TYPE_TO_MODEL_TYPE.get(python_type, None)

def _GetModelTypeForEntityType ( python_type ) : from google . appengine . ext import db _PYTHON_TYPE_TO_MODEL_TYPE = { basestring : db . StringProperty , str : db . StringProperty , unicode : db . StringProperty , int : db . IntegerProperty , bool : db . BooleanProperty , float : db . FloatProperty , db . Text : db . TextProperty } return _PYTHON_TYPE_TO_MODEL_TYPE . get ( python_type , None )
converts python built in type to db .