Django

Code

Ticket #5620 (closed: duplicate)

Opened 9 months ago

Last modified 1 month ago

XMLField not working

Reported by: anonymous Assigned to: nobody
Milestone: Component: django.newforms
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

newforms_xmlfield.diff (1.9 kB) - added by teepark on 05/15/08 17:31:50.
recycles the oldforms XMLField validation for newforms
newforms_xmlfield2.diff (2.0 kB) - added by teepark on 05/15/08 18:25:18.
newforms_xmlfield.diff3 (2.0 kB) - added by teepark on 05/19/08 18:57:54.

Change History

(in reply to: ↑ description ) 12/28/07 05:21:01 changed by David Danier <goliath.mailinglist@gmx.de>

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

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

12/28/07 05:58:14 changed by anonymous

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

(follow-up: ↓ 4 ) 02/28/08 11:18:15 changed by jacob

  • status changed from new to closed.
  • resolution set to duplicate.

Duplicate of #3094.

(in reply to: ↑ 3 ) 05/15/08 13:45:33 changed by teepark

  • status changed from closed to reopened.
  • resolution deleted.
  • component changed from Admin interface to django.newforms.

#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.

05/15/08 17:31:50 changed by teepark

  • attachment newforms_xmlfield.diff added.

recycles the oldforms XMLField validation for newforms

05/15/08 18:25:18 changed by teepark

  • attachment newforms_xmlfield2.diff added.

05/19/08 18:57:54 changed by teepark

  • attachment newforms_xmlfield.diff3 added.

05/31/08 17:14:40 changed by jacob

  • status changed from reopened to closed.
  • resolution set to duplicate.

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


Add/Change #5620 (XMLField not working)




Change Properties
Action