Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Factory method to create the object if it exists

src/g/m/gmvault-HEAD/src/gmvault_tests.py   gmvault(Download)
        gstorer = gmvault.GmailStorer('/tmp/gmail_bk')
 
        metadata = gmvault.GMVaulter.check_email_on_disk(gstorer, 1384313269332005293)
 
        self.assertEquals(metadata['gm_id'], 1384313269332005293)
 
        metadata = gmvault.GMVaulter.check_email_on_disk(gstorer, 1384403887202624608)
        self.assertEquals(metadata['gm_id'], 1384403887202624608)
 
        metadata = gmvault.GMVaulter.check_email_on_disk(gstorer, 1384486067720566818)
 
        self.assertEquals(metadata['gm_id'], 1384486067720566818)
        gstorer = gmvault.GmailStorer('/tmp/gmail_bk', use_encryption)
 
        metadata = gmvault.GMVaulter.check_email_on_disk(gstorer, 1384313269332005293)
 
        self.assertEquals(metadata['gm_id'], 1384313269332005293)