Also I get this when trying to access the controller's main view i.e.
'myapp/contacts', but not other views like 'myapp/contacts/add' and
everyhting else seems fine...

Traceback (most recent call last):
  File "/rahrahrah/web2py/gluon/restricted.py", line 98, in restricted
    exec ccode in environment
  File "/rahrahrah/web2py/applications/tcrm/views/contacts/
index.html", line 50, in <module>
  File "/rahrahrah/web2py/gluon/globals.py", line 84, in write
    self.body.write(xmlescape(data))
  File "/rahrahrah/web2py/gluon/html.py", line 89, in xmlescape
    return data.xml()
  File "/rahrahrah/web2py/gluon/html.py", line 328, in xml
    (fa, co) = self._xml()
  File "/rahrahrah/web2py/gluon/html.py", line 324, in _xml
    self.components])
  File "/rahrahrah/web2py/gluon/html.py", line 89, in xmlescape
    return data.xml()
  File "/rahrahrah/web2py/gluon/html.py", line 328, in xml
    (fa, co) = self._xml()
  File "/rahrahrah/web2py/gluon/html.py", line 324, in _xml
    self.components])
  File "/rahrahrah/web2py/gluon/html.py", line 89, in xmlescape
    return data.xml()
  File "/rahrahrah/web2py/gluon/html.py", line 328, in xml
    (fa, co) = self._xml()
  File "/rahrahrah/web2py/gluon/html.py", line 324, in _xml
    self.components])
  File "/rahrahrah/web2py/gluon/html.py", line 89, in xmlescape
    return data.xml()
  File "/rahrahrah/web2py/gluon/html.py", line 328, in xml
    (fa, co) = self._xml()
  File "/rahrahrah/web2py/gluon/html.py", line 324, in _xml
    self.components])
  File "/rahrahrah/web2py/gluon/html.py", line 89, in xmlescape
    return data.xml()
  File "/rahrahrah/web2py/gluon/html.py", line 328, in xml
    (fa, co) = self._xml()
  File "/rahrahrah/web2py/gluon/html.py", line 324, in _xml
    self.components])
  File "/rahrahrah/web2py/gluon/html.py", line 89, in xmlescape
    return data.xml()
  File "/rahrahrah/web2py/gluon/sql.py", line 2170, in xml
    return sqlhtml.SQLTABLE(self).xml()
  File "/rahrahrah/web2py/gluon/sqlhtml.py", line 605, in __init__
    for (rc, record) in enumerate(sqlrows):
  File "/rahrahrah/web2py/gluon/sql.py", line 2127, in __iter__
    yield self[i]
  File "/rahrahrah/web2py/gluon/sql.py", line 2082, in __getitem__
    str(value)[:10].strip().split('-')]
ValueError: need more than 1 value to unpack




On Apr 5, 10:10 pm, "web2py <<<at>>> technicalbloke.com"
<[email protected]> wrote:
> Hi,
>
> Somehow (don't ask me how!) I've managed to bork my database :-/
> Appadmin let's me see all my tables except one, when I click on it's
> name it spews the message below. I don't care about the data inside,
> I'd just like to have my database rebuilt from the model so what's the
> best way to do that?
>
> db.my_table.truncate?
> db.my_table.drop?
> delete the contents of the 'databases' folder?
>
> Traceback (most recent call last):
>   File "/rahrahrah/web2py/gluon/restricted.py", line 98, in restricted
>     exec ccode in environment
>   File "/rahrahrah/web2py/applications/tcrm/views/appadmin.html", line
> 102, in <module>
>   File "/rahrahrah/web2py/gluon/sqlhtml.py", line 605, in __init__
>     for (rc, record) in enumerate(sqlrows):
>   File "/rahrahrah/web2py/gluon/sql.py", line 2127, in __iter__
>     yield self[i]
>   File "/rahrahrah/web2py/gluon/sql.py", line 2082, in __getitem__
>     str(value)[:10].strip().split('-')]
> ValueError: need more than 1 value to unpack
>
> Cheers,
>
> Roger.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to