Hello there, I'm using an XMLField in one of my models. I've downloaded
jing for compilation with gjc from
http://www.thaiopensource.com/relaxng/jing.html (I got the link from
Djano documentation), compiled it and installed it fine. But when I
create a new object from that model, using the admin interface (Django
0.96) I get:
| Traceback (most recent call last):
File "/var/lib/python-support/python2.5/django/core/handlers/base.py" in
get_response
77. response = callback(request, *callback_args, **callback_kwargs)
File
"/var/lib/python-support/python2.5/django/contrib/admin/views/decorators.py"
in _checklogin
55. return view_func(request, *args, **kwargs)
File
"/var/lib/python-support/python2.5/django/views/decorators/cache.py" in
_wrapped_view_func
39. response = view_func(request, *args, **kwargs)
File
"/var/lib/python-support/python2.5/django/contrib/admin/views/main.py"
in change_stage
325. errors = manipulator.get_validation_errors(new_data)
File "/var/lib/python-support/python2.5/django/oldforms/__init__.py" in
get_validation_errors
59. errors.update(field.get_validation_errors(new_data))
File "/var/lib/python-support/python2.5/django/oldforms/__init__.py" in
get_validation_errors
362. self.run_validator(new_data, validator)
File "/var/lib/python-support/python2.5/django/oldforms/__init__.py" in
run_validator
352. validator(new_data.get(self.field_name, ''), new_data)
File "/var/lib/python-support/python2.5/django/oldforms/__init__.py" in
isValidXML
1013. v(field_data, all_data)
File "/var/lib/python-support/python2.5/django/core/validators.py" in
__call__
539. ignored, line, level, message = error.split(':', 3)
ValueError at /admin/servidores/software/1/
need more than 3 values to unpack
Guys at #django told me that this means that django expected a different
output format from jing. How can this be solved? Is there another
location to download jing from (I haven't been able to find an Ubuntu
package up to now).
Thanks.
PS: That ValueError doesn't happen from a python shell though.
|
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
begin:vcard
fn:Gonzalo Delgado
n:Delgado;Gonzalo
org:Fortix
email;internet:[EMAIL PROTECTED]
tel;work:+543814237797
tel;home:+543814243587
tel;cell:+3815183731
x-mozilla-html:FALSE
version:2.1
end:vcard