I also have an error with "items"
i have tried to solve but still cant solve

db.import_from_csv_file(form.vars.data.file)
           # for every table
            for table in db.tables:
                 # for every uuid, delete all but the most
                 recentitems = db(db[table].id>0).select(db[table].id,
                  db[table].uuid,orderby=~db[table].modified_on,
                  groupby=db[table].uuid)
    for item in items:
            db((db[table].uuid==item.uuid)&(db[table].id!=
item.id)).delete()
    return dict(form=form)

On Feb 5, 1:13 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> looks like you have a space between ! and = in !=.
>
> Massimo
>
> On Feb 4, 9:22 pm, INeedHelp <zhang.kil...@gmail.com> wrote:
>
>
>
> > I have an syntac error(invalid syntec) at "!" after  (db[table].id
>
> > for item in items:
> >         db((db[table].uuid==item.uuid)&(db[table].id! =
> > item.id)).delete()
> >         return dict(form=form)
>
> > anyone can help?- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to