X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/aa12e510f100d54f5448c9b88ca1ca3be369245b..08d9836a894fad232049e2adc59c131bc6dc1aaf:/templates/main.py?ds=sidebyside diff --git a/templates/main.py b/templates/main.py index 5e1a272..ec1eca5 100755 --- a/templates/main.py +++ b/templates/main.py @@ -176,7 +176,7 @@ def remctl(*args, **kws): p.wait() return p.stdout.read(), p.stderr.read() if p.wait(): - print >> sys.stderr, 'Error on remctl %s:' % args + print >> sys.stderr, 'Error on remctl', args, ':' print >> sys.stderr, p.stderr.read() raise CodeError('ERROR on remctl') return p.stdout.read() @@ -797,8 +797,6 @@ if __name__ == '__main__': u.email = 'nobody' connect('postgres://sipb-xen@sipb-xen-dev/sipb_xen') operation = os.environ.get('PATH_INFO', '') -# print 'Content-Type: text/plain\n' -# print operation if not operation: print "Status: 301 Moved Permanently" print 'Location: ' + os.environ['SCRIPT_NAME']+'/\n'