How to use the lektor.db._BinExpr function in Lektor

To help you get started, we’ve selected a few Lektor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lektor / lektor-archive / lektor / db.py View on Github external
def endswith_cs(self, other):
        return _BinExpr(self, _auto_wrap_expr(other),
                        lambda a, b: unicode(a).endswith(unicode(b)))
github lektor / lektor-archive / lektor / db.py View on Github external
def __and__(self, other):
        return _BinExpr(self, _auto_wrap_expr(other), operator.and_)
github lektor / lektor / lektor / db.py View on Github external
def endswith(self, other):
        return _BinExpr(self, _auto_wrap_expr(other),
            lambda a, b: text_type(a).lower().endswith(text_type(b).lower()))
github lektor / lektor-archive / lektor / db.py View on Github external
def __eq__(self, other):
        return _BinExpr(self, _auto_wrap_expr(other), operator.eq)
github lektor / lektor-archive / lektor / db.py View on Github external
def endswith(self, other):
        return _BinExpr(self, _auto_wrap_expr(other),
            lambda a, b: unicode(a).lower().endswith(unicode(b).lower()))
github lektor / lektor-archive / lektor / db.py View on Github external
def __or__(self, other):
        return _BinExpr(self, _auto_wrap_expr(other), operator.or_)
github lektor / lektor-archive / lektor / db.py View on Github external
def startswith(self, other):
        return _BinExpr(self, _auto_wrap_expr(other),
            lambda a, b: unicode(a).lower().startswith(unicode(b).lower()))
github lektor / lektor / lektor / db.py View on Github external
def __eq__(self, other):
        return _BinExpr(self, _auto_wrap_expr(other), operator.eq)
github lektor / lektor / lektor / db.py View on Github external
def startswith(self, other):
        return _BinExpr(self, _auto_wrap_expr(other),
            lambda a, b: text_type(a).lower().startswith(text_type(b).lower()))
github lektor / lektor-archive / lektor / db.py View on Github external
def __gt__(self, other):
        return _BinExpr(self, _auto_wrap_expr(other), operator.gt)