Comment #1 on issue 905 by akaihola: can't load siteconfig data from  
fixtures
http://code.google.com/p/reviewboard/issues/detail?id=905

I suspected that the problem might be that Python unicode representations  
instead of
double-quoted strings are present in the value of the "settings" field. I  
dumped in
XML and fixed them, resulting in this fixture file:

<?xml version="1.0" encoding="utf-8"?>
<django-objects version="1.0">
   <object pk="1" model="siteconfig.siteconfiguration">
     <field to="sites.site" name="site" rel="ManyToOneRel">1</field>
     <field type="CharField" name="version"></field>
     <field type="TextField" name="settings">{"mykey": "myvalue"}</field>
   </object>
</django-objects>

Now the traceback is different:

Installing xml fixture '/tmp/siteconfig' from '/tmp/siteconfig'.
Problem installing fixture '/tmp/siteconfig.xml': Traceback (most recent  
call last):
   File "django/core/management/commands/loaddata.py", line 153, in handle
     obj.save()
   File "django/core/serializers/base.py", line 163, in save
     models.Model.save_base(self.object, raw=True)
   File "django/db/models/base.py", line 379, in save_base
     rows = manager.filter(pk=pk_val)._update(values)
   File "django/db/models/query.py", line 468, in _update
     return query.execute_sql(None)
   File "django/db/models/sql/subqueries.py", line 119, in execute_sql
     cursor = super(UpdateQuery, self).execute_sql(result_type)
   File "django/db/models/sql/query.py", line 1974, in execute_sql
     cursor.execute(sql, params)
   File "django/db/backends/util.py", line 19, in execute
     return self.cursor.execute(sql, params)
   File "django/db/backends/sqlite3/base.py", line 190, in execute
     return Database.Cursor.execute(self, query, params)
InterfaceError: Error binding parameter 2 - probably unsupported type.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to