##// END OF EJS Templates
follow Python conventions for boolean values...
follow Python conventions for boolean values True and False might be singletons and the "default" values for "boolean" expressions, but "all" values in Python has a boolean value and should be evaluated as such. Checking with 'is True' and 'is False' is thus confusing, error prone and unnessarily complex. If we anywhere rely and nullable boolean fields from the database layer and don't want the null value to be treated as False then we should check explicitly for null with 'is None'.

File last commit:

r1846:349a0ca3 beta
r3625:260a7a01 beta
Show More
exceptions.py
13 lines | 246 B | text/x-python | PythonLexer
Changed default recipients separator for mails to ', '
r1846
Notification fixes...
r1717
class InvalidMessage(RuntimeError):
"""
Raised if message is missing vital headers, such
as recipients or sender address.
"""
Changed default recipients separator for mails to ', '
r1846
auto white-space removal
r1818 class BadHeaders(RuntimeError):
Notification fixes...
r1717 """
Raised if message contains newlines in headers.
"""