Hi all,

We are moving our app from one host to the other.

We used v1.44 on our old host, the new one use the current version.

And as I test the new host, I discovered our database cannot be
updated/written to anymore.

It can be read, though as the site does work, and the admin app does
display the db content.

I tested with our app and the admin app.

I get the same error in both case :

Traceback (most recent call last):
  File "gluon/restricted.py", line 178, in restricted
    exec ccode in environment
  File "/srv/Web/www/web2py/applications/g2009_current/controllers/
appadmin.py", line 281, in <module>
  File "gluon/globals.py", line 96, in <lambda>
    self._caller = lambda f: f()
  File "/srv/Web/www/web2py/applications/g2009_current/controllers/
appadmin.py", line 103, in insert
    if form.accepts(request.vars, session):
  File "gluon/sqlhtml.py", line 1029, in accepts
    self.vars.id = self.table.insert(**fields)
  File "gluon/sql.py", line 1933, in insert
    query = self._insert(**fields)
  File "gluon/sql.py", line 1913, in _insert
    value = value[:field.length]
TypeError: slice indices must be integers or None or have an __index__
method

Any ideas ? Massimo ?

Reply via email to