Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import web
>>> web.config.db_parameters = dict(dbn='sqlite', db='../privet2.sqlite')
>>> web.load()
>>> web.delete( 'players' )
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "web-libs/web/db.py", line 696, in delete
  File "web-libs/web/db.py", line 338, in db_execute
AttributeError: 'str' object has no attribute 's'
>>> web.delete( 'players', where='1=1')

So you can't delete all data in table without where="1=1" hack. Funny, yeah?
May be you need to fix documentation. Documented error not a bug but feature
:)

-- 
S.Y. Grigory Bakunov
http://wm.justos.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to