I get this ticket (error) when submitting my form:

Error ticket for "cnrsa"

Ticket 127.0.0.1.2008-11-07.13-11-36.c01c20cc-f836-4876-954b-e9232df3f80c


Error traceback

Traceback (most recent call last):
  File "gluon/restricted.pyc", line 62, in restricted
  File 
"/../web2py.app/Contents/Resources/applications/app/controllers/default.py",
line 33, in <module>
  File "gluon/globals.pyc", line 55, in <lambda>
  File "/../web2py.app/Contents/Resources/applications/plugin_t2/modules/t2.py",
line 858, in h
  File 
"/../web2py.app/Contents/Resources/applications/app/controllers/default.py",
line 17, in index
  File "/../web2py.app/Contents/Resources/applications/plugin_t2/modules/t2.py",
line 378, in create
  File "gluon/sqlhtml.pyc", line 174, in accepts
  File "gluon/html.pyc", line 154, in accepts
  File "gluon/html.pyc", line 159, in rec_accepts
  File "gluon/html.pyc", line 159, in rec_accepts
  File "gluon/html.pyc", line 159, in rec_accepts
  File "gluon/html.pyc", line 159, in rec_accepts
  File "gluon/html.pyc", line 392, in rec_accepts
  File "gluon/validators.pyc", line 178, in __call__
ValueError: need more than 1 value to unpack


In file: 
/../web2py.app/Contents/Resources/applications/app/controllers/default.py
1.

if t2.logged_in: response.menu=[
  ['index',False,t2.action('index')],
  ['logout',False,t2.action('logout')]]
else: response.menu=[
  ['login',False,t2.action('login')],
  ['register',False,t2.action('register')]]

def login(): return dict(login=t2.login())
def logout(): t2.logout(next='login')
def register(): return dict(register=t2.register())

@t2.requires_login(next='login')
def index():
    try:
      form=t2.update(db.student,db.student.student_id==t2.person_id)
    except:
      form=t2.create(db.student)
    return dict(form=form)

@t2.requires_login(next='login')
def display():
    return dict(display=t2.display(db.student))

@t2.requires_login(next='login')
def update():
    if not t2.have_access(db.student,t2.id):
t2.redirect('index',flash='No access')
    return dict(update=t2.update(db.student,next='index'))

@t2.requires_login(next='login')
def download():
    return t2.download()

response._vars=response._caller(index)

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to