##// END OF EJS Templates
commit less models...
commit less models - models don't do any commits(with few exceptions) - all db transactions should be handled by higher level modules like controllers, celery tasks

File last commit:

r1717:7ff304d3 beta
r1749:8ecc6b82 beta
Show More
exceptions.py
11 lines | 245 B | text/x-python | PythonLexer
class InvalidMessage(RuntimeError):
"""
Raised if message is missing vital headers, such
as recipients or sender address.
"""
class BadHeaders(RuntimeError):
"""
Raised if message contains newlines in headers.
"""