Esempio n. 1
0
    def initMoneyIOUserTypeFromSystem(self, user):
        moneyiousertype_list = MoneyIOUserType.all().filter('user', user)
        for moneyiousertype in moneyiousertype_list:
            moneyiousertype.delete()

        moneyiosystype_list = MoneyIOSysType.all()
        for moneyiosystype in moneyiosystype_list:
            moneyiousertype = MoneyIOUserType(name=moneyiosystype.name)
            moneyiousertype.isio = moneyiosystype.isio
            moneyiousertype.user = user
            moneyiousertype.put()
Esempio n. 2
0
 def initMoneyIOUserTypeFromSystem(self, user):        
     moneyiousertype_list = MoneyIOUserType.all().filter('user', user)
     for moneyiousertype in moneyiousertype_list:
         moneyiousertype.delete()
     
     moneyiosystype_list = MoneyIOSysType.all()
     for moneyiosystype in moneyiosystype_list:
         moneyiousertype = MoneyIOUserType(name=moneyiosystype.name)
         moneyiousertype.isio = moneyiosystype.isio
         moneyiousertype.user = user
         moneyiousertype.put()
Esempio n. 3
0
 def addMoneyIOSysType(self, name, isio):
     moneyiosystype = MoneyIOSysType(name=name, isio=isio)
     moneyiosystype.put()
Esempio n. 4
0
 def getMoneyIOSysTypeList(self):
     moneyiosystype_list = MoneyIOSysType.all().order('name')
     if moneyiosystype_list.count() == 0:
         return None        
     return moneyiosystype_list
Esempio n. 5
0
 def getMoneyIOSysType(self, id):
     try:
         moneyiosystype = MoneyIOSysType.get_by_id(int(id))
     except ValueError:
         moneyiosystype = None
     return moneyiosystype
Esempio n. 6
0
 def getMoneyIOSysType(self, id):
     try:
         moneyiosystype = MoneyIOSysType.get_by_id(int(id))
     except ValueError:
         moneyiosystype = None
     return moneyiosystype