Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
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/p/r/prdg.ploneio-0.0.2/prdg/ploneio/export.py   prdg.ploneio(Download)
from Products.CMFCore.utils import getToolByName
from StringIO import StringIO
from config import PICKLE_FILE_NAME, PICKLE_MIME_TYPE, DICT_REPR_FILE_NAME
from pprint import pprint
from prdg.plone.util.structure import create_dict_for_all_objs
def export_dicts(self, export_context):
    objs = list(create_dict_for_all_objs_in_context(self))        
    dump = pickle.dumps(objs)    
    export_context.writeDataFile(PICKLE_FILE_NAME, dump, PICKLE_MIME_TYPE)