Skip to content

Instantly share code, notes, and snippets.

@hanie2014
hanie2014 / qsd
Created February 1, 2015 14:56
qsdsqd
sqdqs
@hanie2014
hanie2014 / exceptions.py
Created February 1, 2015 14:55
openerp -> exception
class AccessDenied(Exception):
""" Login/password error. No message, no traceback. """
def __init__(self):
super(AccessDenied, self).__init__('Access denied.')
self.traceback = ('', '', '')
<html>
<head>
<title>title of this page</title>
</head>
<body>
<h1>hello world!</h1>
</body>
</html>