Пример #1
0
            # this response.body is not needed, can be commented out in the future
            response.body = ''
            return html_response
     

        # check to see if this project exists in the database?
        #project = Project.get_by_code(project_code)
        #print project
        try:
        
            from pyasm.web import WebContainer, DivWdg
            from pyasm.widget import Error404Wdg
            from cherrypy30_adapter import CherryPyAdapter

            # clear the buffer
            WebContainer.clear_buffer()
            adapter = CherryPyAdapter()
            WebContainer.set_web(adapter)

            top = DivWdg()
            top.add_style("background: #444")
            top.add_style("height: 300")
            top.add_style("width: 500")
            top.add_style("margin: 150px auto")
            top.add_style("border: solid 1px black")
            top.add_style("border-radius: 15px")
            top.add_style("box-shadow: 0px 0px 15px rgba(0,0,0,0.5)")


            widget = Error404Wdg()
            widget.status = status