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/c/o/CombiVEP-0.1.2/combivep/cfg.py   CombiVEP(Download)
    def __init__(self):
        self.config_file = combivep_settings.COMBIVEP_CONFIGURATION_FILE
        self.config_values  = {}
        self.config_values[combivep_settings.LATEST_UCSC_DATABASE_VERSION] = '0'
        self.config_values[combivep_settings.LATEST_UCSC_FILE_NAME]        = ''
    def load_config(self):
        f = open(self.config_file, 'r')
        for line in f:
            rec = line.strip().split('=')
            if rec[0] == combivep_settings.LATEST_UCSC_DATABASE_VERSION:
                self.config_values[combivep_settings.LATEST_UCSC_DATABASE_VERSION] = rec[1]
    def __save(self):
        f = open(self.config_file, 'w')
        f.write("%s=%s\n" % (combivep_settings.LATEST_UCSC_DATABASE_VERSION, self.config_values[combivep_settings.LATEST_UCSC_DATABASE_VERSION]))
        f.write("%s=%s\n" % (combivep_settings.LATEST_UCSC_FILE_NAME,        self.config_values[combivep_settings.LATEST_UCSC_FILE_NAME]))
        f.write("%s=%s\n" % (combivep_settings.LATEST_LJB_DATABASE_VERSION,  self.config_values[combivep_settings.LATEST_LJB_DATABASE_VERSION]))

src/c/o/CombiVEP-0.1.2/combivep/refdb/control.py   CombiVEP(Download)
    def update(self):
        self.load_config()
        print >> sys.stderr, 'Checking new UCSC reference database version . . . . '
        new_file, new_version = self.check_new_file(self.config_values[combivep_settings.LATEST_UCSC_DATABASE_VERSION])
        if not new_version:
            print >> sys.stderr, 'UCSC reference database is already up-to-date (version %s) . . . . . ' % (self.config_values[combivep_settings.LATEST_UCSC_DATABASE_VERSION])