From fdeb5ae0019fb15eba1e5a0901077ae37cbdbec1 Mon Sep 17 00:00:00 2001 From: Robin Baumgartner Date: Mon, 24 Nov 2014 14:01:22 +0100 Subject: [PATCH] Use Null constant from python-sql for comparisons issue4143 review13701003 --- dashboard.py | 4 +++- setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dashboard.py b/dashboard.py index 406fe05268..d7d8bcc342 100644 --- a/dashboard.py +++ b/dashboard.py @@ -1,5 +1,7 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. +from sql import Null + from trytond.model import ModelView, ModelSQL, fields from trytond.transaction import Transaction from trytond import backend @@ -45,4 +47,4 @@ class DashboardAction(ModelSQL, ModelView): @staticmethod def order_sequence(tables): table, _ = tables[None] - return [table.sequence == None, table.sequence] + return [table.sequence == Null, table.sequence] diff --git a/setup.py b/setup.py index c5ade17cdf..f92f80b82d 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ if minor_version % 2: 'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % ( name[8:], name, version)) -requires = ['lxml'] +requires = ['lxml', 'python-sql >= 0.4'] for dep in info.get('depends', []): if not re.match(r'(ir|res|webdav)(\W|$)', dep): requires.append(get_require_version('trytond_%s' % dep))