@classmethod<EOL><INDENT>def get(cls, id):<DEDENT>
<EOL>if CACHE:<EOL><INDENT>if id in _cache['<STR_LIT>']:<EOL><INDENT>log.debug('<STR_LIT>' % id)<EOL>return _cache['<STR_LIT>'][id]<EOL><DEDENT>log.debug('<STR_LIT>' % id)<EOL><DEDENT>try:<EOL><INDENT>pool = Pool.list({'<STR_LIT:id>': id})[<NUM_LIT:0>]<EOL><DEDENT>except (IndexError, KeyError):<EOL><INDENT>raise NipapNonExistentError('<STR_LIT>' + str(id) + '<STR_LIT>')<EOL><DEDENT>_cache['<STR_LIT>'][id] = pool<EOL>return pool<EOL>
Get the pool with id 'id'.