本文整理汇总了Python中schema.Schema.__doc__方法的典型用法代码示例。如果您正苦于以下问题:Python Schema.__doc__方法的具体用法?Python Schema.__doc__怎么用?Python Schema.__doc__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类schema.Schema
的用法示例。
在下文中一共展示了Schema.__doc__方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set
# 需要导入模块: from schema import Schema [as 别名]
# 或者: from schema.Schema import __doc__ [as 别名]
lambda x: set(x).issubset(libraries.LIBRARY_IDS),
error=(
"Špatně zadaný parametr `libraries_that_can_access`. "
"Očekávána hodnota ze subsetu %s." % repr(libraries.LIBRARY_IDS)
)
),
Optional("riv"): And(
int,
lambda x: x in riv.RIV_CAT_IDS,
error=(
"Špatně zadaná hodnota pro riv. Očekáván "
"0 >= int < %d." % riv.RIV_CAT_IDS[-1]
)
),
})
EpublicationValidator.__doc__ = """Validator of Epublication structure as it \
goes to edeposit input.
Validation is done by calling :meth:`.validate`.
"""
def czech_to_edeposit_dict(czech_dict):
"""
This function may be used to remap czech dict validated by
:class:`EpublicationValidator` to terms used in edeposit.
For example to remap ``zpristupneni`` to ``libraries_that_can_access``.
Args:
czech_dict (dict): Dictionary with czech terms.