Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
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/g/m/gmvault-HEAD/src/sandbox/common_gmvault.py   gmvault(Download)
 
                    #decode the labels that are received as utf7 => unicode
                    new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS] = \
                    imap_utils.decode_labels(new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS])
 

src/g/m/gmvault-HEAD/src/gmv/gmvault_db.py   gmvault(Download)
        # come from imap_lib when label is a number
        labels = []
        for label in  email_info[imap_utils.GIMAPFetcher.GMAIL_LABELS]:
            if isinstance(label, (int, long, float, complex)):
                label = str(label)

src/g/m/gmvault-HEAD/src/gmv/gmvault.py   gmvault(Download)
 
                    #decode the labels that are received as utf7 => unicode
                    new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS] = \
                    imap_utils.decode_labels(new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS])
 

src/g/m/gmvault-1.8.1-beta/src/gmv/gmvault_db.py   gmvault(Download)
        # come from imap_lib when label is a number
        labels = []
        for label in  email_info[imap_utils.GIMAPFetcher.GMAIL_LABELS]:
            if isinstance(label, (int, long, float, complex)):
                label = str(label)

src/g/m/gmvault-1.8.1-beta/src/gmv/gmvault.py   gmvault(Download)
 
                    #decode the labels that are received as utf7 => unicode
                    new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS] = \
                    imap_utils.decode_labels(new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS])
 

src/g/m/gmvault-HEAD/src/gmvault_tests.py   gmvault(Download)
        self.assertEquals(len(ids), 2)
 
        res = gimap.fetch(ids[0], [gimap.GMAIL_ID, gimap.EMAIL_BODY, gimap.GMAIL_THREAD_ID, gimap.GMAIL_LABELS])
 
        self.assertEquals(res[ids[0]][gimap.GMAIL_ID], 1147537963432096749L)
 
        labels = []
        for label in res[the_id][gimap.GMAIL_LABELS]:
            labels.append(label)
 
 
        labels = []
        for label in res[the_id][gimap.GMAIL_LABELS]:
            labels.append(label)
 
 
            labels = []
            for label in res[the_id][gimap.GMAIL_LABELS]:
                labels.append(label)
 
 
            labels = []
            for label in res[the_id][gimap.GMAIL_LABELS]:
                labels.append(label)