def toCardsActionData(cls, value): from cards.core import ActionData, ActionDataType (value, ok) = cls.resolveValue(value) if ok: return ActionData(ActionDataType.user_class, value) return None
def toCardsActionData(cls, value): from cards.core import ActionData (value, ok) = cls.resolveValue(value) if ok: return ActionData.fromDnPath(value) return None