Did I find the right examples for you? yes no

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/r/a/raisin.restyler-1.3/raisin/restyler/box.py   raisin.restyler(Download)
"""Box Base factory"""
 
import os
from config import JSON
from config import CSV
            self.body = resource.get(self.chart_name, CSV, request.matchdict)
        elif chart_format == '.json':
            self.body = resource.get(self.chart_name, JSON, request.matchdict)
        else:
            print "Format not supported %s" % chart_format
 
        # Render the chart to JSon
        if not JSON in chart or chart[JSON] is None:
            pass
        elif not 'charttype' in chart:
            pass
        else:
            chart['data'] = chart[JSON]

src/r/a/raisin.restyler-1.3/raisin/restyler/page.py   raisin.restyler(Download)
"""Page object rendered according to a layout"""
 
import urlparse
from config import JSON
from config import PICKLED
            chart['chartoptions_rendered'] = ""
            # Render the chart to JSon
            if not JSON in chart or chart[JSON] is None:
                pass
            elif not 'charttype' in chart:
                pass
            else:
                chart['data'] = chart[JSON]