コード例 #1
0
 def getMoneyIOUserType(self, id, user):
     moneyiousertype = None
     try:
         moneyiousertype = MoneyIOUserType.get_by_id(int(id))
         if moneyiousertype.user.id <> user.id:
             moneyiousertype = None
     except:
         moneyiousertype = None
     return moneyiousertype
コード例 #2
0
ファイル: service.py プロジェクト: ashhher3/pythonToolkit
 def getMoneyIOUserType(self, id, user):
     moneyiousertype = None
     try:
         moneyiousertype = MoneyIOUserType.get_by_id(int(id))
         if moneyiousertype.user.id <> user.id:
             moneyiousertype = None
     except:
         moneyiousertype = None
     return moneyiousertype