Python NexsonValidationAdaptor Example

说明

python nexsonvalidationadaptor示例是从最受好评的开源项目中提取的实现代码,你可以参考下面示例的使用方式。

编程语言: Python

命名空间/包名称: peyotlnexson_validation_validation_base

示例#1
文件: _badgerfish_validation.py项目: pombredanne/peyotl

 def __init__(self, obj, logger):
     if not hasattr(self, '_syntax_version'):
         self._syntax_version = BADGER_FISH_NEXSON_VERSION
         self._find_first_literal_meta = find_val_for_first_bf_l_meta
     NexsonValidationAdaptor.__init__(self, obj, logger)

示例#2
文件: _by_id_validation.py项目: rvosa/peyotl

 def __init__(self, obj, logger, **kwargs):
     self._syntax_version = BY_ID_HONEY_BADGERFISH
     NexsonValidationAdaptor.__init__(self, obj, logger, **kwargs)

展开阅读全文