#18133: global settings for label_suffix
-------------------------------------+-------------------------------------
     Reporter:  Evil Clay            |                    Owner:  nobody
  <clay.evil@…>                      |                   Status:  closed
         Type:  New feature          |                  Version:  1.4
    Component:  Uncategorized        |               Resolution:  wontfix
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Evil Clay <clay.evil@…>):

 i could how ever imagine something like this

 class BaseForm:
      label_suffix = None

      __init__(label_suffix=None)
             self.label_suffix = label_suffix

     """ safe to override """

     def label_suffix(self):
           if label_suffix:
               return label_suffix
           else:
              return ":"

     def render(self):
           return "<label>%s%s</label>" % (label, self.label_suffix())


 in this design i would have to only override the method
 label_suffix(self):

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18133#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.

Reply via email to