Ejemplo n.º 1
0
        def basket_updater(basket):
            """"""
            (bskid, name, is_public, id_owner, date_modification) = basket
            try:
                int(bskid)
                int(id_owner)
            except:
                print("#####################")
                print("id basket:")
                print(bskid)
                print("id user")
                print(id_owner)
                print("#########################")

            return "(%i,'%s',%i,'%s')" % (int(bskid),
                                          real_escape_string(name),
                                          int(id_owner),
                                          real_escape_string(date_modification))
Ejemplo n.º 2
0
 def records_updater(record):
     (bskid, id_owner, id_record, order, date_modification) = record
     return "(%i,%i,%i,%i,'%s')" % (int(id_record), int(bskid), int(id_owner),
                                    int(order), real_escape_string(date_modification))