Changeset 1757:1aee9d34655b in orange-bioinformatics for _bioinformatics/obiKEGG/api.py


Ignore:
Timestamp:
04/19/13 20:15:02 (12 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Disabled automatic cache invalidation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiKEGG/api.py

    r1735 r1757  
    1414 
    1515 
     16# A list of all databases with names, abbreviations 
    1617DATABASES = [ 
    1718    ("KEGG Pathway", "pathway", "path", None), 
     
    4041class KeggApi(object): 
    4142    """ 
    42     An abstraction of a kegg api. 
     43    An abstraction of a rest KEGG API. 
    4344    """ 
    4445 
     
    5152 
    5253        >>> api.list_organisms() 
    53         [Definition(entry_id='hsa',... 
     54        [OrganismSummary(entry_id=T0.. 
    5455 
    5556        """ 
     
    402403            for id in ids: 
    403404                key = get.key_from_args((id,)) 
    404                 if key not in store: 
     405                if not get.key_has_valid_cache(key, store): 
    405406                    uncached.append(id) 
    406407 
     
    408409            # in case there are duplicate ids 
    409410            uncached = sorted(set(uncached)) 
     411 
    410412            rval = KeggApi.get(self, uncached) 
    411413 
Note: See TracChangeset for help on using the changeset viewer.