def PropertyTypeName(value):
 if (value.__class__ in _PROPERTY_MEANINGS):
  meaning = _PROPERTY_MEANINGS[value.__class__]
  name = entity_pb.Property._Meaning_NAMES[meaning]
  return name.lower().replace('_', ':')
 elif isinstance(value, basestring):
  return 'string'
 elif isinstance(value, users.User):
  return 'user'
 elif isinstance(value, long):
  return 'int'
 elif (value is None):
  return 'null'
 else:
  return typename(value).lower()

def PropertyTypeName ( value ) : if ( value . __class__ in _PROPERTY_MEANINGS ) : meaning = _PROPERTY_MEANINGS [ value . __class__ ] name = entity_pb . Property . _Meaning_NAMES [ meaning ] return name . lower ( ) . replace ( '_' , ':' ) elif isinstance ( value , basestring ) : return 'string' elif isinstance ( value , users . User ) : return 'user' elif isinstance ( value , long ) : return 'int' elif ( value is None ) : return 'null' else : return typename ( value ) . lower ( )
returns the name of the type of the given property value .