parameters: (self, filename)
return_statement: return audio
docstring: extract the code from the filename
docstring_summary: extract the code from the filename
docstring_tokens: extract the code from the filename
function: def get_sobject_by_filename(self, filename):
          '''extract the code from the filename'''
          naming = Naming.get_by_search_type('prod/shot_audio')
          if not naming:  
              return None
  
          shot_code = NamingUtil.extract_sobject_code(naming, filename, 'shot_code')
          # verify the code
          from pyasm.prod.biz import Shot
          shot = Shot.get_by_code(shot_code)
          if not shot:
              return None
  
          from pyasm.prod.biz import ShotAudio
          audio = ShotAudio.get_by_shot_code(shot_code)
          
          if not audio:
              audio = ShotAudio.create(shot_code)
  
          return audio
function_tokens: def get_sobject_by_filename ( self , filename ) : naming = Naming . get_by_search_type ( 'prod/shot_audio' ) if not naming : return None shot_code = NamingUtil . extract_sobject_code ( naming , filename , 'shot_code' ) # verify the code from pyasm . prod . biz import Shot shot = Shot . get_by_code ( shot_code ) if not shot : return None from pyasm . prod . biz import ShotAudio audio = ShotAudio . get_by_shot_code ( shot_code ) if not audio : audio = ShotAudio . create ( shot_code ) return audio