Allow resources to specify the title of serialized links

Review Request #8139 — Created May 2, 2016 and submitted

Information

Djblets
release-0.10.x
d490e3c...

Reviewers

Instead of always returning the object's unicode representation as the
title, resource classes can now specify a get_object_title method to
specialize this behaviour.

Tested this with an upcoming Splat patch.

Description From Last Updated

"object's"

daviddavid

six.text_type

daviddavid

Extra blank line here.

daviddavid
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/webapi/resources/base.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/webapi/resources/base.py
    
    
  2. 
      
david
  1. 
      
  2. djblets/webapi/resources/base.py (Diff revision 1)
     
     

    "object's"

  3. djblets/webapi/resources/base.py (Diff revision 1)
     
     

    six.text_type

  4. djblets/webapi/resources/base.py (Diff revision 1)
     
     

    Extra blank line here.

  5. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/webapi/resources/base.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/webapi/resources/base.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.10.x (b101c45)
Loading...