Re: [Django] #20684: Support form element attributes with no value

2014-03-22 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  closed
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:  fixed
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by Tim Graham ):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"e61d99d96daedfea2f6ba071945ef0d2f86883c7"]:
 {{{
 #!CommitTicketReference repository=""
 revision="e61d99d96daedfea2f6ba071945ef0d2f86883c7"
 Fixed #20684 -- Added support for HTML5 boolean attributes to form
 widgets.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.ea19381e51887f4a417d8bf2c29ab820%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #20684: Support form element attributes with no value

2014-03-22 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by loic84):

 * needs_better_patch:  1 => 0
 * needs_docs:  1 => 0


Comment:

 PR https://github.com/django/django/pull/2462

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.5d96104e25edfd36ea2cbf646f2c3249%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #20684: Support form element attributes with no value

2014-03-22 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  0 |UI/UX:  0
--+

Comment (by timo):

 This ticket can now move forward on master. Loic, if you'd like to update
 your branch and write the documentation, I'll merge it.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.babe7b4d99a9da64be812cc09b27e8e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #20684: Support form element attributes with no value

2013-09-19 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  0 |UI/UX:  0
--+
Changes (by timo):

 * easy:  1 => 0


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.9e40c8eeaba9fee2a6c6bb7638cd1363%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20684: Support form element attributes with no value

2013-09-10 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by Tim Graham ):

 In [changeset:"8165c2cfd1922bb9d56a9e68e6456736acacf445"]:
 {{{
 #!CommitTicketReference repository=""
 revision="8165c2cfd1922bb9d56a9e68e6456736acacf445"
 Improved deprecation warning for change in form boolean values.

 refs #20684

 Thanks jacob, jcd, and shai for the suggestions.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.499cd9eef421b0edf0d5db22fffbc617%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20684: Support form element attributes with no value

2013-09-09 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by shai):

 Constant string: `Starting from Django 1.8, boolean values to widget
 attributes will determine if the attribute appears (with no value). To
 preserve current behavior, use string values explicitly`.

 Or, taking the approach of @jcd -- why not go all the way?

 When value is True: `Starting from Django 1.8, widget attribute
 %(attr_name)s=True will be rendered as '%(attr_name)s'. To preserve
 current behavior, use the string 'True' instead of the boolean True.`

 When value is False: `Starting from Django 1.8, widget attribute
 %(attr_name)s=False will be not be rendered. To preserve current behavior,
 use the string 'False' instead of the boolean False.`

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.17efa666906eeadcd8c8f66bbc30dafa%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20684: Support form element attributes with no value

2013-09-07 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+
Changes (by jcd):

 * cc: jcd@… (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.bc15ee46579e452d865e5df013d3c6ef%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20684: Support form element attributes with no value

2013-09-07 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by jcd):

 For more verbosity (to answer @jacob's question of what they should do
 about it):

 (4) True: "Starting in Django 1.x, widget attributes set to True will
 render as the name of the attribute with no value, in accordance with the
 rules for HTML5 boolean attributes.  If you want your HTML attribute set
 to the value "True", use the string 'True' instead of the boolean True.
 False: "Starting in Django 1.x, widget attributes set to False will
 not be rendered, in accordance with the rules for HTML5 boolean
 attributes.  If you want your HTML attribute set to the value "False" use
 the string 'False' instead of the boolean False.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.2dbfc2931474b2be5918c85ee9d20f41%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20684: Support form element attributes with no value

2013-09-07 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by jcd):

 Here are some thoughts on the deprecation warning text.

 One option is to name the feature that we are implementing (HTML5 boolean
 attributes).

 "Starting in Django 1.x, widget attributes with boolean values will
 render according to the rules for HTML5 boolean attributes."

 If they don't know what that means, they have the search term for HTML5
 boolean attributes.  I admit this is still a little obtuse for users who
 aren't familiar with all the rules for HTML5, but it's also terse.
 Explaining the new feature in the DeprecationWarning will be a bit verbose
 for a one-line warning, but could be done:

 "Starting in Django 1.x, the rendering of attributes with boolean
 values will change; Attributes marked True will render as the name of the
 attribute, and attributes marked False will not render at all [in
 accordance with the rules for HTML5 boolean attributes."

 Alternatively, we could separate out true and false values into separate
 DeprecationWarnings, so we can be explicit about exactly what will happen
 and why, while still being terse..

 True: "Starting in Django 1.x, widget attributes set to 'True' will
 render as the name of the attribute with no value, in accordance with the
 rules for HTML5 boolean attributes."
 False: "Starting in Django 1.x, widget attributes set to 'False' will
 not be rendered, in accordance with the rules for HTML5 boolean
 attributes."

 I think my preference would be for separate True and False
 DeprecationWarnings.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.ba7b2bc57e9e31f48125762d123b9d24%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20684: Support form element attributes with no value

2013-09-06 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by jacob):

 This  is a pretty bad error message - `'The meaning of boolean values for
 widget attributes will change in Django 1.8'` doesn't give anyone any
 clues about *what* will change, what it'll change *to*, and what they
 should do about it.

 Can we think a bit and change this error message to something more user-
 friendly?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.f448e23fe3963cd14d42b2e0e6c2f335%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20684: Support form element attributes with no value

2013-07-05 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by Claude Paroz ):

 In [changeset:"1116df0751cc0d5862590b08adfffe7bacd6bf43"]:
 {{{
 #!CommitTicketReference repository=""
 revision="1116df0751cc0d5862590b08adfffe7bacd6bf43"
 Deprecate usage of boolean value for widget attributes

 Django 1.7 will loudly warn when widget attributes are assigned
 boolean values. In Django 1.8, False will mean attribute is not
 present while True will mean attribute present without value.
 Refs #20684.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.263d1c6b2151408d714f001fe95bb5af%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-04 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by claudep):

 OK, then do we agree on the fast Deprecation process as proposed in
 comment:16 ? Let's consider that we are still talking about corner cases.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.b0d97eaf556c5bd5ce85ec3f60a2d3a8%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-03 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by charettes):

 @loic84: I agree with @shai that this feature is not that urgent, users
 can still ''workaround'' it by specifying `'required': 'required'` and
 output valid markup.

 We've lived with `'checked': 'checked'` and `'selected': 'selected'` for a
 while now.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.ce4a168eee7dc6defce9eea15d19f7e8%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-03 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by shai):

 @loic84: Django is now moving to a shorter version cycle; if all goes
 well, 1.6 will come only ~8 months after 1.5.

 More generally, I don't see why this feature is so urgent. Yes, it's nice,
 but it doesn't even really enable new functionality.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.9636c27177d359effed195f11456a2c3%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-03 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by loic84):

 @carljm: That feature will completely stall until 1.8 otherwise, 1.9 even
 if it doesn't go through an accelerated cycle.

 I think we are being extra cautious already by offering a deprecation
 path, I don't think we should delay it by a couple of years.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.5c0b1f562d513ca1a8b31a5a017074ce%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-03 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by carljm):

 I'd always been under the impression that new deprecations should not be
 introduced after the beta, either (unless absolutely necessary, e.g. a
 security fix). The point of the feature freeze is to avoid regressions
 after the beta, so that people can test their codebase on 1.6 beta and
 trust (as much as possible) that it will still work without further
 changes on 1.6 final. Adding a deprecation breaks this (for some people
 it's a blocker or even breaks CI if their codebase begins to emit a
 warning). I would hesitate to even add a `PendingDeprecationWarning` post-
 beta, let alone an accelerated `DeprecationWarning`.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.af201b0e91abd782b396ef43209c9061%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-03 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by shai):

 Replying to [comment:18 claudep]:
 > I don't see anything preventing us from advancing the planning:
 Deprecation on 1.6 and change in 1.7.

 I was under the impression that 1.6 was feature-frozen at this stage.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.da4bd8525ab4e9385e0ab76e50553f6c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-03 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by loic84):

 There wouldn't be any new feature, only a `DeprecationWarning`.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.514d41c41638a384593eac3120908b83%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-03 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by loic84):

 +1 I'll write the doc for the original patch and I'll write another one
 that simply raises a DeprecationWarning against the 1.6 branch.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.2adb1265e409625a68bd5258cff1a2a6%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-03 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by claudep):

 @shai: good idea, however I don't see anything preventing us from
 advancing the planning: Deprecation on 1.6 and change in 1.7.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.4437201fb0eacdbabdc28e09ef101020%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by shai):

 (comment:16 is me, of course).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.2f400d6b2b2e6795375c2ca0973e1981%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by anonymous):

 Having slept about it,

 (a) I concede that the implicit conversion should not be encouraged, and
 (b) I agree that a special marker would be, essentially, interface cruft
 that we would keep just for the benefit of something we don't really want.

 But backwards compatibility still is a problem; I suggest to solve it with
 a deprecation cycle. Given (a) above, I think even an expedited cycle may
 be enough.

 So,

 Django 1.7:
   `{'attr':True}` becomes `attr="True"`, with `DeprecationWarning('The
 meaning of Boolean values for widget attributes will change in Django
 1.8')`
 Django 1.8:
   `{'attr':True}` becomes `attr`

 What do you think?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.aabb8860d997def5930accb2741f74f3%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by claudep):

 I can see the point of Shai, but I'd tend to agree with the boolean
 version also.

 We are not in a hurry though, so let's see if others have strong opinions
 about this.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.75ca269a1e4b0a136070ff689e50eca7%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by shai):

 I don't feel very strongly about this, but I'm also not convinced. In my
 opinion, we shouldn't make code stop working unless it's required to fix a
 bug, or the code that gets broken can be seen as a bug. IMO, this feature
 is not important enough, and the implicit conversion is not buggy enough,
 to justify a breaking change.

 But maybe that's just me.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.cb1e2bb6873063ab808cdc5edae32b3b%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by charettes):

 Replying to [comment:11 loic84]:
 > A special marker is a bit overkill IMO and it's not exactly convenient
 since you have to import it before using it.
 It is also overkill IMO. W3 defined the semantic of boolean attributes and
 I think we should try to stick to it. As pointed out by @loic84 a release
 note concerning backward compatibility should be enough.

 Replying to [comment:12 loic84]:
 > Because explicit is better than implicit, people who really want
 `"True"` should cast the boolean to a string.
 Agreed that `True` -> `"True"` implicit conversion is not a pattern we
 should encourage.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.76fead864189667238a2c1ba265d5010%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by loic84):

 Replying to [comment:11 shai]:
 > Replying to [comment:10 loic84]:
 > >
 > > Also relying on the implicit conversion of `True` to `"True"` is not a
 pattern we should encourage,
 >
 > Why not? Especially in `data-` attributes?
 Because explicit is better than implicit, people who really want `"True"`
 should cast the boolean to a string.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.90b8333fa30c9466dcf9589b8f28150c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by shai):

 Replying to [comment:10 loic84]:
 >
 > Also relying on the implicit conversion of `True` to `"True"` is not a
 pattern we should encourage,

 Why not? Especially in `data-` attributes?

 > we could list the change as backward incompatible in the release notes.
 >
 Yes, but exactly because of the `"required": is_required()` pattern you
 brought up, uses may be hard to detect.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.d8717f8e3a6583137245b1d6c08af767%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by loic84):

 A special marker is a bit overkill IMO and it's not exactly convenient
 since you have to import it before using it.

 Also relying on the implicit conversion of `True` to `"True"` is not a
 pattern we should encourage, we could list the change as backward
 incompatible in the release notes.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.fc0a92aa7ff7fa60fc35159a0181e926%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+
Changes (by shai):

 * cc: shai@… (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.612a46ce5c39530823f67448363c2bb8%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by shai):

 Yes, this makes a lot of sense; the reason I suggested a special marker is
 backwards-compatibility -- if code exists which relies on the value being
 converted to string, and so expects that attr=True will manifest in HTML
 as `attr="True"`, this may very well break it.

 I still find it preferable to use a special marker -- but I guess
 `NoValue` is a bad name.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.394f5765a8a8f672a0cf40aea560d46a%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by loic84):

 Interestingly comments on a feature branch get lost upon forced pushes.

 @charettes wasn't convinced that the `False` value was necessary.

 I brought up the use case of setting the value programmatically with an
 expression like `'required': is_required()` and we agreed that it could be
 useful.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.9b90610cb0fe06495df16324238f6431%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+

Comment (by charettes):

 As @claudep initially suggested I would have chosen `None` for that but in
 the light of @shai's comment I think @loic84's approach is the correct
 one.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.9f41e906f0c53d6798c3674c3502a5c9%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  1 |UI/UX:  0
--+
Changes (by loic84):

 * cc: loic@… (added)
 * needs_better_patch:  0 => 1
 * version:  1.5 => master
 * easy:  0 => 1
 * needs_docs:  0 => 1
 * has_patch:  0 => 1


Comment:

 POC: https://github.com/loic/django/compare/ticket20684

 I'll write the docs for it if that's validated.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.a2068041bf18fca4c6439ee3173d8e77%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  1.5
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by loic84):

 As Shai pointed out, these *are* booleans
 (http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#boolean-
 attributes), why not treat them as such?

 Value in python should be either True or False, False behing noop in
 `flatatt()`

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.249653dd6ceaaa68b16ba814ff96d92f%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  1.5
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by shai):

 Actually, I'd rather use some special marker rather than None -- most such
 attributes are essentially boolean, and None -- which is False when
 evaluated as a boolean -- would come to mark True, and this can be
 confusing.

 I'd introduce a new constant, and call it NoValue -- probably along the
 lines of `class NoValue(object): pass`. Then you could write
 {{{
 widget=forms.TextInput(
 attrs={
 'required': NoValue
 }))
 }}}
 And also have correct behavior on things like `if
 widget.attrs['required']: ...`

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.be0ec7c10820cf980d8b220cc0af0792%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  1.5
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by claudep):

 * stage:  Unreviewed => Accepted


Comment:

 Agreed. However I'd rather use `None` instead of the empty string to mean
 no attribute value, because there might be cases where an empty value is
 wanted.

 At first sight, this seems rather trivial to implement in `flatatt`
 (https://github.com/django/django/blob/master/django/forms/util.py#L15).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.a6702f331e4125cfe10b1aa9b69dc189%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20684: Support form element attributes with no value

2013-07-02 Thread Django
#20684: Support form element attributes with no value
--+--
 Reporter:  sneethling@…  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Forms |  Version:  1.5
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Unreviewed
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+--
Changes (by claudep):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> There are a couple of form attributes such as required that was
> introduced in HTML5 that should not contain a value. For exaple
> required="required" is valid but for example required="true" will result
> in failed validation with true being marked as a bad value.
>
> The correct use would be:
>
> 
>
> Currently in forms.py attributes cannot be specified without a value
> which rely on the author knowing that a value of 'true' not being valid
> but 'required' being ok. it would be great if Django supports valueless
> attributes.
>
> Perhaps doing:
>
> widget=forms.TextInput(
> attrs={
> 'required': ''
> }))
>
> will result in an input of:
>
> 

New description:

 There are a couple of form attributes such as required that was introduced
 in HTML5 that should not contain a value. For exaple required="required"
 is valid but for example required="true" will result in failed validation
 with true being marked as a bad value.

 The correct use would be:

 {{{}}}

 Currently in forms.py attributes cannot be specified without a value which
 rely on the author knowing that a value of 'true' not being valid but
 'required' being ok. it would be great if Django supports valueless
 attributes.

 Perhaps doing:
 {{{
 widget=forms.TextInput(
 attrs={
 'required': ''
 }))
 }}}
 will result in an input of:

 {{{}}}

--

Comment:

 Description reformatted, please use preview when posting.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.5face5e9c9bf7f6ebccc96dae71c3d52%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Django] #20684: Support form element attributes with no value

2013-07-01 Thread Django
#20684: Support form element attributes with no value
--+
 Reporter:  sneethling@…  |  Owner:  nobody
 Type:  New feature   | Status:  new
Component:  Forms |Version:  1.5
 Severity:  Normal|   Keywords:
 Triage Stage:  Unreviewed|  Has patch:  0
Easy pickings:  0 |  UI/UX:  0
--+
 There are a couple of form attributes such as required that was introduced
 in HTML5 that should not contain a value. For exaple required="required"
 is valid but for example required="true" will result in failed validation
 with true being marked as a bad value.

 The correct use would be:

 

 Currently in forms.py attributes cannot be specified without a value which
 rely on the author knowing that a value of 'true' not being valid but
 'required' being ok. it would be great if Django supports valueless
 attributes.

 Perhaps doing:

 widget=forms.TextInput(
 attrs={
 'required': ''
 }))

 will result in an input of:

 

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.289ca8b17bcecc7a82deb14fc41b45b4%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.