Opened 9 years ago

Closed 8 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: UI/UX:

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 8 years ago.
recycles the oldforms XMLField validation for newforms
newforms_xmlfield2.diff (2.0 KB) - added by teepark 8 years ago.
newforms_xmlfield.diff3 (2.0 KB) - added by teepark 8 years ago.

Download all attachments as: .zip

Change History (8)

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

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

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 Changed 9 years ago by anonymous

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

comment:3 Changed 9 years ago by Jacob

Resolution: duplicate
Status: newclosed

Duplicate of #3094.

comment:4 in reply to:  3 Changed 8 years ago by teepark

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.

Changed 8 years ago by teepark

Attachment: newforms_xmlfield.diff added

recycles the oldforms XMLField validation for newforms

Changed 8 years ago by teepark

Attachment: newforms_xmlfield2.diff added

Changed 8 years ago by teepark

Attachment: newforms_xmlfield.diff3 added

comment:5 Changed 8 years ago by Jacob

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