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)
        self.config_values[combivep_settings.LATEST_UCSC_DATABASE_VERSION] = '0'
        self.config_values[combivep_settings.LATEST_UCSC_FILE_NAME]        = ''
        self.config_values[combivep_settings.LATEST_LJB_DATABASE_VERSION]  = '0.1'
        self.config_values[combivep_settings.LATEST_LJB_FILE_PREFIX]       = ''
 
            elif rec[0] == combivep_settings.LATEST_UCSC_FILE_NAME:
                self.config_values[combivep_settings.LATEST_UCSC_FILE_NAME] = rec[1]
            elif rec[0] == combivep_settings.LATEST_LJB_DATABASE_VERSION:
                self.config_values[combivep_settings.LATEST_LJB_DATABASE_VERSION] = rec[1]
            elif rec[0] == combivep_settings.LATEST_LJB_FILE_PREFIX:
    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 LJB reference database version . . . . '
        new_file, new_version = self.check_new_file(self.config_values[combivep_settings.LATEST_LJB_DATABASE_VERSION])
        if not new_version:
            print >> sys.stderr, 'LJB reference database is already up-to-date (version %s) . . . . . ' % (self.config_values[combivep_settings.LATEST_LJB_DATABASE_VERSION])