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]))
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)
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]))
def init_catorder_dic (self): self.catorder_dic = dbDic('shopcategory', 'position', self.db.shopcatsorder_table, db=self.db)
def init_ingorder_dic (self): self.ingorder_dic = dbDic('ingkey','position',self.db.shopcats_table,db=self.db)
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)
def init_catorder_dic(self): self.catorder_dic = dbDic('shopcategory', 'position', self.db.shopcatsorder_table, db=self.db)
def init_ingorder_dic(self): self.ingorder_dic = dbDic('ingkey', 'position', self.db.shopcats_table, db=self.db)