Changeset 2664
- Timestamp:
- Dec 20, 2009, 9:43:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/main.py
r2663 r2664 16 16 import cherrypy 17 17 from StringIO import StringIO 18 from view import View19 20 class InvirtWeb(View):21 @cherrypy.expose22 def helloworld(self):23 return "Hello world!"24 25 18 def revertStandardError(): 26 19 """Move stderr to stdout, and return the contents of the old stderr.""" … … 52 45 from invirt.config import structs as config 53 46 from invirt.common import InvalidInput, CodeError 47 48 from view import View 49 50 class InvirtWeb(View): 51 def __init__(self): 52 super(self.__class__,self).__init__() 53 connect() 54 55 @cherrypy.expose 56 def helloworld(self): 57 return "Hello world!" 54 58 55 59 def pathSplit(path):
Note: See TracChangeset
for help on using the changeset viewer.