Changeset 2390
- Timestamp:
- Aug 9, 2009, 6:45:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/main.py
r2389 r2390 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.