<s> from . util import normalize_dates <EOL> from . transcriptions import Transcriptions <EOL> from . base import InstanceResource , ListResource <EOL> class Recording ( InstanceResource ) : <EOL> subresources = [ Transcriptions ] <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( Recording , self ) . __init__ ( * args , ** kwargs ) <EOL> self . formats = { <EOL> "<STR_LIT>" : self . uri + "<STR_LIT>" , <EOL> "<STR_LIT>" : self . uri + "<STR_LIT>" , <EOL> } <EOL> def delete ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . delete_instance ( ) <EOL> class Recordings ( ListResource ) : <EOL> name = "<STR_LIT>" <EOL> instance = Recording <EOL> @ normalize_dates <EOL> def list ( self , before = None , after = None , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> kwargs [ "<STR_LIT>" ] = before <EOL> kwargs [ "<STR_LIT>" ] = after <EOL> return self . get_instances ( kwargs ) <EOL> def delete ( self , sid ) : <EOL> """<STR_LIT>""" <EOL> return self . delete_instance ( sid ) </s>
