Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def toCardsActionData(cls, value):
     from cards.core import ActionData
     (value, ok) = cls.resolveValue(value)
     if ok:
         return ActionData.fromDnPath(value)
     return None