コード例 #1
0
ファイル: httpresponse.py プロジェクト: michboon/comp2013_14
 def foo(self, red = 0, green = 0, blue = 0):
 
     # Insert your code here Kinga
     room = Room(123)
     room.changeColor(red, green, blue)
     # ---------------------------
     return """<html><body><div style="background-color:rgba(""" + red + "," + green + "," + blue + "," + """1); width: 100px; height: 100px;"></div></html></body>"""
コード例 #2
0
ファイル: staticpage.py プロジェクト: michboon/comp2013_14
    def index(self):

        # execute stuff
        print "Testing the stuff"
        room = Room(123)
        room.changeColor(0, 0, 0)

        # return page content
        return "<b>Hello world!</b>"