Changeset 601 for trunk/packages/sipb-xen-www/code
- Timestamp:
- Jun 13, 2008, 3:51:37 AM (16 years ago)
- Location:
- trunk/packages/sipb-xen-www/code
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r600 r601 120 120 def error(op, username, fields, err, emsg, traceback): 121 121 """Print an error page when a CodeError occurs""" 122 send_error_mail('xvm error on %s for %s: %s' % (op, username, err),123 'error on %s for %s: %s\n\n%s\n'124 % (op, username, err, emsg))125 122 d = dict(op=op, user=username, fields=fields, 126 123 errorMessage=str(err), stderr=emsg, traceback=traceback) 124 details = templates.error_raw(searchList=[d]) 125 send_error_mail('xvm error on %s for %s: %s' % (op, username, err), 126 details) 127 d['details'] = details 127 128 return templates.error(searchList=[d]) 128 129 -
trunk/packages/sipb-xen-www/code/templates/__init__.py
r510 r601 1 __all__ = 'info command error help invalid list unauth vnc'.split()1 __all__ = 'info command error error_raw help invalid list unauth vnc'.split() 2 2 for _name in __all__: 3 3 try: -
trunk/packages/sipb-xen-www/code/templates/error.tmpl
r600 r601 13 13 consistently biting you and we don't seem to be fixing it.</p> 14 14 15 <p>In case you're curious, the gory details are here.</p>15 <p>In case you're curious, the gory details are below.</p> 16 16 17 17 <pre> 18 Error on operation $op for user $user: $errorMessage 19 20 Fields: 21 #for $f in $fields: 22 $f=$fields[$f].value 23 #end for 24 25 Error output: 26 $stderr#slurp 27 ---- end error output 28 29 Traceback: 30 $traceback 18 $details 31 19 </pre> 32 20 #end def
Note: See TracChangeset
for help on using the changeset viewer.