gmyth-stream/server/0.3/lib/utils.py
branchtrunk
changeset 762 1be4b68bfb0e
parent 718 3fbcd3d9b2d1
child 815 7f290a3a34b1
     1.1 --- a/gmyth-stream/server/0.3/lib/utils.py	Tue May 29 21:24:48 2007 +0100
     1.2 +++ b/gmyth-stream/server/0.3/lib/utils.py	Sat Jun 30 00:25:48 2007 +0100
     1.3 @@ -15,7 +15,8 @@
     1.4  
     1.5  log = logging.getLogger("gms.utils")
     1.6  
     1.7 -__all__ = ("which", "load_plugins", "PluginSet", "getHTML")
     1.8 +__all__ = ("which", "load_plugins", "PluginSet", "getHTML",
     1.9 +           "progress_bar", "create_tid", "list_media_files")
    1.10  
    1.11  def which(app):
    1.12      """Function to implement which(1) unix command"""
    1.13 @@ -165,7 +166,7 @@
    1.14      return "<li>%s</li>\n" % opt
    1.15  # _create_html_item
    1.16  
    1.17 -def progress_bar(log, value, max, barsize):
    1.18 +def progress_bar(value, max, barsize):
    1.19      """Creates and displays a progressbar. By OSantana"""
    1.20      chars = int(value * barsize / float(max))
    1.21      percent = int((value / float(max)) * 100)
    1.22 @@ -186,3 +187,5 @@
    1.23      tid = last_tid + 1
    1.24      return tid
    1.25  # create_id()
    1.26 +
    1.27 +