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()
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'