Did I find the right examples for you? yes no

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)
returns list of keys

src/g/m/gmvault-HEAD/src/gmv/gmvault.py   gmvault(Download)
                    # get list of labels to create (do a union with labels to create)
                    #labels_to_create.update([ label for label in labels if label not in existing_labels]) 
                    labels_to_create.update([ label for label in labels_to_apply.keys() \
                                              if label not in existing_labels])                  
 
                LOG.debug("Changing directory. Going into ALLMAIL")
                self.src.select_folder('ALLMAIL') #go to ALL MAIL to make STORE usable
                for label in labels_to_apply.keys():
                    self.src.apply_labels_to(labels_to_apply[label], [label]) 
            except Exception, err:
                    # get list of labels to create (do a union with labels to create)
                    #labels_to_create.update([ label for label in labels if label not in existing_labels]) 
                    labels_to_create.update([ label for label in labels_to_apply.keys() \
                                              if label not in existing_labels])                      
 
                self.src.select_folder('ALLMAIL') #go to ALL MAIL to make STORE usable
                LOG.debug("Changed dir. Operation time = %s ms" % (the_timer.elapsed_ms()))
                for label in labels_to_apply.keys():
                    self.src.apply_labels_to(labels_to_apply[label], [label]) 
            except Exception, err:

src/g/m/gmvault-1.8.1-beta/src/gmv/gmvault.py   gmvault(Download)
                    # get list of labels to create (do a union with labels to create)
                    #labels_to_create.update([ label for label in labels if label not in existing_labels]) 
                    labels_to_create.update([ label for label in labels_to_apply.keys() \
                                              if label not in existing_labels])                  
 
                LOG.debug("Changing directory. Going into ALLMAIL")
                self.src.select_folder('ALLMAIL') #go to ALL MAIL to make STORE usable
                for label in labels_to_apply.keys():
                    self.src.apply_labels_to(labels_to_apply[label], [label]) 
            except Exception, err:
                    # get list of labels to create (do a union with labels to create)
                    #labels_to_create.update([ label for label in labels if label not in existing_labels]) 
                    labels_to_create.update([ label for label in labels_to_apply.keys() \
                                              if label not in existing_labels])                      
 
                self.src.select_folder('ALLMAIL') #go to ALL MAIL to make STORE usable
                LOG.debug("Changed dir. Operation time = %s ms" % (the_timer.elapsed_ms()))
                for label in labels_to_apply.keys():
                    self.src.apply_labels_to(labels_to_apply[label], [label]) 
            except Exception, err:

src/g/m/gmvault-HEAD/src/sandbox/common_gmvault.py   gmvault(Download)
                LOG.debug("Changing directory. Going into ALLMAIL")
                self.src.select_folder('ALLMAIL') #go to ALL MAIL to make STORE usable
                for label in labels_to_apply.keys():
                    self.src.apply_labels_to(labels_to_apply[label], [label]) 
            except Exception, err:
                self.src.select_folder('ALLMAIL') #go to ALL MAIL to make STORE usable
                LOG.debug("Changed dir. Operation time = %s ms" % (the_timer.elapsed_ms()))
                for label in labels_to_apply.keys():
                    self.src.apply_labels_to(labels_to_apply[label], [label]) 
            except Exception, err: