I don't know what I have done, but my test apps have stopped working
at all on Dreamhost.

The default apps still work fine.

Here's the ticket I'm getting when trying to load any app in the browser:

Error traceback Traceback (most recent call last):
  File "/home/alvinru/phonetizer.com/gluon/restricted.py", line 62, in
restricted
    exec ccode in environment
  File "/home/alvinru/phonetizer.com/applications/pyjamas/models/db.py",
line 12, in <module>
    db.define_table('todo', db.Field('task'))
  File "/home/alvinru/phonetizer.com/gluon/sql.py", line 239, in __getattr__
    def __getattr__(self, key): return self[key]
KeyError: 'Field'



In file: /home/alvinru/phonetizer.com/applications/pyjamas/models/db.py 
#!/usr/bin/python
# -*- coding: utf-8 -*-

try:
    from gluon.contrib.gql import *  # if running on Google App Engine
except:
    db = SQLDB('sqlite://storage.db')  # if not, use SQLite or other DB
else:
    db = GQLDB()  # connect to Google BigTable
    session.connect(request, response, db=db)  # and store sessions there

db.define_table('todo', db.Field('task'))

from gluon.tools import Service     # new in web2py 1.56
service = Service(globals())

2010/4/4 Alexei Vinidiktov <[email protected]>:
> Hello,
>
> I've deployed the latest version of web2py on Dreamhost using wsgi.
> I'm using a custom installation of Python 2.5.
>
> The web2py installation seems to work fine, but there's one problem.
>
> I've created a test program using the qooxdoo web application
> framework for the GUI part which mimics the functionality in the
> pyjamas example program: displaying a list of todo items, adding and
> deleting items.
>
> It works fine on my local development machine, it works fine on GAE,
> but on my Dreamhost installation I'm getting an error when trying to
> add a task that contains non ascii symbols, for example Russian
> characters as in "задание номер один" (task number one).
>
> I also have a pyjamas version of the same todo app and it exhibits the
> same behavior (works fine on GAE, not so on Dreamhost).
>
> Here is the message that I get back from the xmlrpc method call to addTask:
>
> Exception during async call: UNEXPECTED origin undefined error 100:
> UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 0-5: ordinal not in range(128)
>
> You can see it live here:
> http://www.phonetizer.com/qooxdoo
>
> The pyjamas version is here:
> http://www.phonetizer.com/pyjamas
>
> It is also deployed on GAE and works fine here:
> http://web2pyapp.appspot.com/qooxdoo
>
> I also have a much older version of web2py deployed on Dreamhost.
> Unlike the new version it uses fastcgi and works as expected.
>
> Do you have any ideas as to why the newer version is misbehaving?
>
> Thanks.
>
> --
> Alexei Vinidiktov
>



-- 
Alexei Vinidiktov

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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