def addata(self, post_data): try: CabSpec.create( uid=tools.get_uuid(), name=post_data['title'][0], slug=post_data['slug'][0], order=post_data['order'][0], img=post_data['img'][0], desc=post_data['desc'][0], abstract=post_data['abstract'][0], date=datetime.datetime.now(), ) return True except: return False
def addata(self, post_data): try: CabSpec.create( uid=tools.get_uuid(), name=post_data["title"][0], slug=post_data["slug"][0], order=post_data["order"][0], img=post_data["img"][0], desc=post_data["desc"][0], abstract=post_data["abstract"][0], date=datetime.datetime.now(), ) return True except: return False
def initial_db(self, post_data): entry = CabSpec.create( name=post_data['name'], id_cat=post_data['id_cat'], slug=post_data['slug'], order=post_data['order'], )
def addata(self, post_data): entry = CabSpec.create( uid=str(uuid.uuid1()), name=post_data['title'][0], slug=post_data['slug'][0], order=post_data['order'][0], img=post_data['img'][0], desc=post_data['desc'][0], abstract = post_data['abstract'][0], )
def addata(self, post_data): entry = CabSpec.create( uid=str(uuid.uuid1()), name=post_data['title'][0], slug=post_data['slug'][0], order=post_data['order'][0], img=post_data['img'][0], desc=post_data['desc'][0], abstract=post_data['abstract'][0], )