pombreda / pygowave-server

Automatically exported from code.google.com/p/pygowave-server
Apache License 2.0
0 stars 0 forks source link

Gadget addition fails on postgresql #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install on postgresql
2. Add the attached gadget file
3. You get an "cant adapt" error.

This is the traceback:
{{{
Request Method: POST
Request URL: http://localhost:9000/gadgets/mine/
Django Version: 1.2 pre-alpha SVN-11479
Python Version: 2.6.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'registration',
 'pygowave_server',
 'pygowave_client']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'pygowave_server.middleware.UserOnlineMiddleware')

Traceback:
File "/home/lin/django_src/django/core/handlers/base.py" in get_response
  92.                 response = callback(request, *callback_args,
**callback_kwargs)
File "/home/lin/django_src/django/contrib/auth/decorators.py" in __call__
  78.             return self.view_func(request, *args, **kwargs)
File "/home/lin/src/pygowave/pygowave_server/views.py" in my_gadgets
  148.             gadget.save()
File "/home/lin/django_src/django/db/models/base.py" in save
  410.         self.save_base(force_insert=force_insert,
force_update=force_update)
File "/home/lin/django_src/django/db/models/base.py" in save_base
  495.                     result = manager._insert(values,
return_id=update_pk)
File "/home/lin/django_src/django/db/models/manager.py" in _insert
  177.         return insert_query(self.model, values, **kwargs)
File "/home/lin/django_src/django/db/models/query.py" in insert_query
  1087.     return query.execute_sql(return_id)
File "/home/lin/django_src/django/db/models/sql/subqueries.py" in execute_sql
  320.         cursor = super(InsertQuery, self).execute_sql(None)
File "/home/lin/django_src/django/db/models/sql/query.py" in execute_sql
  2369.         cursor.execute(sql, params)
File "/home/lin/django_src/django/db/backends/util.py" in execute
  19.             return self.cursor.execute(sql, params)

Exception Type: ProgrammingError at /gadgets/mine/
Exception Value: can't adapt
}}}

Original issue reported on code.google.com by msaeli...@gmail.com on 8 Oct 2009 at 3:02

Attachments:

GoogleCodeExporter commented 9 years ago
Patch that fixes the error

Original comment by msaeli...@gmail.com on 8 Oct 2009 at 3:06

Attachments: