示例#1
0
def index():
  path = "./"
  file = ""
  try:
    Artist = _artist
  except:
    pass

  print web_pages.head(THIS)
  print web_pages.artist_description(name = Artist)
  print web_pages.foot()
示例#2
0
def index():
  path = "./"
  file = ""
  try:
    Release = _release
  except:
    pass

  print web_pages.head(THIS)
  print web_pages.release_description(Release)
  print web_pages.foot()
示例#3
0
def index():
    path = "./"
    file = ""
    try:
        file = _file
    except:
        pass

    print web_pages.head(THIS)
    audio = audio_info.FileInfo(file)
    #  print audio.uri
    print web_pages.song_description(file)
    print web_pages.foot()
示例#4
0
def index():
  path = "./"
  for arg in THIS.args:
    path = "%s/%s"%(path, arg) 
  index = "index%s"%THIS.ext
  result = explore.list_audio_files(path)
  audio_files = result['files']
#  print audio_files
  directories = result['directories']
  print web_pages.head(THIS)
  print """<div id="uparrow"> %s audio files found.</div>"""%len(audio_files)
  pair = True
  print web_pages.dir_element("../", pair, THIS)
  for directory in directories:
    pair = not pair
    print web_pages.dir_element(directory, pair, THIS)
  for file in audio_files:
    pair = not pair
    print web_pages.audio_element(file, pair, THIS)
  print """<div id="downarrow"> Hamza Chouh, 2012 </div>"""
  print web_pages.foot()