Opened 17 years ago

Closed 17 years ago

#5620 closed (duplicate)

XMLField not working

Reported by: anonymous Owned by: nobody
Component: Forms Version:
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As described in
http://www.djangoproject.com/documentation/model-api/#xmlfield it
should validate its content with a RelaxNG schema, but it is simply
not working (is this newforms-admin specific?) Its dependency on JING
should also be documented in the model-api document. BTW: why not use
lxml? (http://codespeak.net/lxml/)

Attachments (3)

newforms_xmlfield.diff (1.9 KB ) - added by teepark 17 years ago.
recycles the oldforms XMLField validation for newforms
newforms_xmlfield2.diff (2.0 KB ) - added by teepark 17 years ago.
newforms_xmlfield.diff3 (2.0 KB ) - added by teepark 17 years ago.

Download all attachments as: .zip

Change History (8)

in reply to:  description comment:1 by David Danier <goliath.mailinglist@…>, 17 years ago

Replying to anonymous:

BTW: why not use
lxml? (http://codespeak.net/lxml/)

Tried to get that into django, too:
http://code.djangoproject.com/ticket/3094#comment:4

comment:2 by anonymous, 17 years ago

lxml instead of Jing would be nice since Jing seems to be dead and isn't very effective IMHO.

comment:3 by Jacob, 17 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #3094.

in reply to:  3 comment:4 by teepark, 17 years ago

Component: Admin interfacedjango.newforms
Resolution: duplicate
Status: closedreopened

#3094 is about adding other validation methods besides Jing, starting with lxml. This ticket addresses the problem that the Jing-based validation we already have is oldforms-only. XMLField will need to override formfield(), providing a custom newforms.fields.Field subclass that uses core.validators.RelaxNGCompact.

by teepark, 17 years ago

Attachment: newforms_xmlfield.diff added

recycles the oldforms XMLField validation for newforms

by teepark, 17 years ago

Attachment: newforms_xmlfield2.diff added

by teepark, 17 years ago

Attachment: newforms_xmlfield.diff3 added

comment:5 by Jacob, 17 years ago

Resolution: duplicate
Status: reopenedclosed

Nah, the newforms-admin solution will be to implement #3094; this is still a dup.

Note: See TracTickets for help on using tickets.
Back to Top