Esempio n. 1
0
    def test_html(self):  #Function stores all the modules to be tested

        x = ShowNotes()
        x.set_input_file("example_show/test.flac")
        h = x.get_html()
        o = open("test.html", "w")
        o.write(h)
        o.close()
 def test_html(self): #Function stores all the modules to be tested
     
     x = ShowNotes()
     x.set_input_file( "example_show/test.flac" )
     h= x.get_html()
     o = open ("test.html","w")
     o.write(h)
     o.close()
Esempio n. 3
0
    def test_dict(self):  #Function stores all the modules to be tested

        x = ShowNotes()
        x.set_input_file("example_show/test.flac")
        h = x.get_dict()
        o = open("dict.txt", "w")
        o.write(str(h))
        o.write(str(x.__dict__))
        o.close()
 def test_dict(self): #Function stores all the modules to be tested
     
     x = ShowNotes()
     x.set_input_file( "example_show/test.flac" )
     h = x.get_dict()
     o = open ("dict.txt","w")
     o.write(str(h))
     o.write(str(x.__dict__))
     o.close()
def create_show(force): #create a show
    
    x = ShowNotes()
    #x.ls_main_ftp()
    x.set_input_file( "example_show/test.flac" )

    x.load_shownotes_from_file("example_show/html_notes.html")
    x.add_directory_as_tgz('example_show/datafiles/')
    print x.get_filename()

    x.add_intro_outtro()

    print " going to emit html"
    print yaml.dump(x.get_dict())

    x.emit_html()
    print " upload ftp"
    x.ls_main_ftp()
    x.put_main_ftp(force)
    x.ls_main_ftp()
def create_show(force):  # create a show

    x = ShowNotes()
    # x.ls_main_ftp()
    x.set_input_file("example_show/test.flac")

    x.load_shownotes_from_file("example_show/html_notes.html")
    x.add_directory_as_tgz("example_show/datafiles/")
    print x.get_filename()

    x.add_intro_outtro()

    print " going to emit html"
    print yaml.dump(x.get_dict())

    x.emit_html()
    print " upload ftp"
    x.ls_main_ftp()
    x.put_main_ftp(force)
    x.ls_main_ftp()