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