[Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

View: New views
11 Messages — Rating Filter:   Alert me  

[Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
--------------------------+-------------------------------------------------
 Reporter:  jamesturk     |       Owner:  jamesturk
   Status:  new           |   Milestone:  post-1.0  
Component:  Contrib apps  |     Version:  SVN      
 Keywords:  markup forms  |       Stage:  Unreviewed
Has_patch:  0             |  
--------------------------+-------------------------------------------------
 I recently published a snippet of something I've wanted in Django for a
 long time, a MarkupField that handles conversion to HTML on save and an
 accessor that calls mark_safe.

 My implementation is at http://www.djangosnippets.org/snippets/1332/
 (Credit where credit is due, I also borrowed the method of detecting which
 markup libraries are installed from a slightly less featured version
 http://www.djangosnippets.org/snippets/1169/)

 Jacob commented on Twitter that he'd like to see this as well and to
 submit a ticket.

 I'll put together the appropriate fields.py / documentation / tests and
 should have a candidate patch up soon.

--
Ticket URL: <http://code.djangoproject.com/ticket/10317>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
-----------------------------------+----------------------------------------
          Reporter:  jamesturk     |         Owner:  jamesturk  
            Status:  new           |     Milestone:  post-1.0    
         Component:  Contrib apps  |       Version:  SVN        
        Resolution:                |      Keywords:  markup forms
             Stage:  Unreviewed    |     Has_patch:  0          
        Needs_docs:  0             |   Needs_tests:  0          
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Changes (by jamesturk):

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

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:1>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
-----------------------------------+----------------------------------------
          Reporter:  jamesturk     |         Owner:  jamesturk  
            Status:  new           |     Milestone:  post-1.0    
         Component:  Contrib apps  |       Version:  SVN        
        Resolution:                |      Keywords:  markup forms
             Stage:  Unreviewed    |     Has_patch:  0          
        Needs_docs:  0             |   Needs_tests:  0          
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Comment (by dc):

 I think it must be possible to use any custom markup with this field.
 Maybe not hardcode markup checks but accept markup func as arg for
 example?

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:2>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
-----------------------------------+----------------------------------------
          Reporter:  jamesturk     |         Owner:  jamesturk  
            Status:  new           |     Milestone:  post-1.0    
         Component:  Contrib apps  |       Version:  SVN        
        Resolution:                |      Keywords:  markup forms
             Stage:  Unreviewed    |     Has_patch:  0          
        Needs_docs:  0             |   Needs_tests:  0          
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Comment (by Alex):

 One thing I don't like about that implementation is the need to have
 several attributes on the model, just having a complex obj that stored all
 of them on 1 attr would be preferable I think.

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:3>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
-----------------------------------+----------------------------------------
          Reporter:  jamesturk     |         Owner:  jamesturk  
            Status:  new           |     Milestone:  post-1.0    
         Component:  Contrib apps  |       Version:  SVN        
        Resolution:                |      Keywords:  markup forms
             Stage:  Unreviewed    |     Has_patch:  0          
        Needs_docs:  0             |   Needs_tests:  0          
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Comment (by jamesturk):

 dc & Alex: I've replied to your critiques and opened up discussion on
 django-developers: http://groups.google.com/group/django-
 developers/browse_thread/thread/c9124d565c17f972

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:4>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
-----------------------------------+----------------------------------------
          Reporter:  jamesturk     |         Owner:  jamesturk  
            Status:  new           |     Milestone:  post-1.0    
         Component:  Contrib apps  |       Version:  SVN        
        Resolution:                |      Keywords:  markup forms
             Stage:  Unreviewed    |     Has_patch:  1          
        Needs_docs:  0             |   Needs_tests:  1          
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Changes (by anonymous):

  * has_patch:  0 => 1
  * needs_tests:  0 => 1

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:5>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
---------------------------------------------+------------------------------
          Reporter:  jamesturk               |         Owner:  jamesturk  
            Status:  new                     |     Milestone:              
         Component:  Contrib apps            |       Version:  SVN        
        Resolution:                          |      Keywords:  markup forms
             Stage:  Design decision needed  |     Has_patch:  1          
        Needs_docs:  0                       |   Needs_tests:  1          
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by jacob):

  * stage:  Unreviewed => Design decision needed

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:7>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
---------------------------------------------+------------------------------
          Reporter:  jamesturk               |         Owner:  jamesturk  
            Status:  new                     |     Milestone:              
         Component:  Contrib apps            |       Version:  SVN        
        Resolution:                          |      Keywords:  markup forms
             Stage:  Design decision needed  |     Has_patch:  1          
        Needs_docs:  0                       |   Needs_tests:  1          
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by carljm):

 * cc: carljm (added)

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:8>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
---------------------------------------------+------------------------------
          Reporter:  jamesturk               |         Owner:  jamesturk  
            Status:  new                     |     Milestone:              
         Component:  Contrib apps            |       Version:  SVN        
        Resolution:                          |      Keywords:  markup forms
             Stage:  Design decision needed  |     Has_patch:  1          
        Needs_docs:  0                       |   Needs_tests:  1          
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by jamesturk):

 I am now maintaining django-markupfield in a github repository at
 http://github.com/jamesturk/django-markupfield/ it is not the exact
 version debated on the list as I personally did not find that useful
 (though I do see how this version is too special of a case to fit into
 django core)

 Should the design decision on this come down in favor of something akin to
 what I am now maintaining externally I would be more than happy to do the
 integration necessary to produce a patch that moves MarkupField into
 django.contrib.markup

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:9>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
---------------------------------------------+------------------------------
          Reporter:  jamesturk               |         Owner:  jamesturk  
            Status:  new                     |     Milestone:              
         Component:  Contrib apps            |       Version:  SVN        
        Resolution:                          |      Keywords:  markup forms
             Stage:  Design decision needed  |     Has_patch:  1          
        Needs_docs:  0                       |   Needs_tests:  1          
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by carljm):

 I forgot about this during 1.2 feature proposal, but FWIW I have
 [http://github.com/carljm/django-markupfield a fork of James' repo] which
 I've simplified/modified to more or less match the API outlined by James
 and others in [http://groups.google.com/group/django-
 developers/browse_thread/thread/c9124d565c17f972 the django-dev thread].
 I'm using it happily as an external app and don't have any particular itch
 to see it in core, but if a MarkupField is wanted in core I'd be happy to
 transform it into a patch and make any needed changes.

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:10>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #10317: New Feature: django.contrib.markup.fields.MarkupField

by noreply-71 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#10317: New Feature: django.contrib.markup.fields.MarkupField
---------------------------------------------+------------------------------
          Reporter:  jamesturk               |         Owner:  jamesturk  
            Status:  new                     |     Milestone:              
         Component:  Contrib apps            |       Version:  SVN        
        Resolution:                          |      Keywords:  markup forms
             Stage:  Design decision needed  |     Has_patch:  1          
        Needs_docs:  0                       |   Needs_tests:  1          
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by carljm):

 Um, yeah. The first James there is James Turk, the second is James
 Bennett. Disambiguation FTW.

--
Ticket URL: <http://code.djangoproject.com/ticket/10317#comment:11>
Django <http://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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---