예제 #1
0
 def init_pantry(self):
     self.pantry = dbDic('ingkey',
                         'pantry',
                         self.db.pantry_table,
                         db=self.db)
     if len(self.pantry.items()) == 0:
         self.pantry.initialize(
             dict([(i, True) for i in self.default_pantry]))
예제 #2
0
 def init_orgdic(self):
     self.orgdic = dbDic('ingkey',
                         'shopcategory',
                         self.db.shopcats_table,
                         db=self.db)
     if len(self.orgdic.items()) == 0:
         dic = shopping.setup_default_orgdic()
         self.orgdic.initialize(dic)
예제 #3
0
 def init_pantry (self):
     self.pantry = dbDic('ingkey','pantry',self.db.pantry_table,db=self.db)
     if len(self.pantry.items())==0:
         self.pantry.initialize(dict([(i,True) for i in self.default_pantry]))
예제 #4
0
 def init_catorder_dic (self):
     self.catorder_dic = dbDic('shopcategory',
                               'position',
                               self.db.shopcatsorder_table,
                               db=self.db)
예제 #5
0
 def init_ingorder_dic (self):
     self.ingorder_dic = dbDic('ingkey','position',self.db.shopcats_table,db=self.db)
예제 #6
0
 def init_orgdic (self):
     self.orgdic = dbDic('ingkey','shopcategory',self.db.shopcats_table,db=self.db)
     if len(self.orgdic.items())==0:
         dic = shopping.setup_default_orgdic()
         self.orgdic.initialize(dic)
예제 #7
0
 def init_catorder_dic(self):
     self.catorder_dic = dbDic('shopcategory',
                               'position',
                               self.db.shopcatsorder_table,
                               db=self.db)
예제 #8
0
 def init_ingorder_dic(self):
     self.ingorder_dic = dbDic('ingkey',
                               'position',
                               self.db.shopcats_table,
                               db=self.db)