From 026c7caa5e6624e96a56b01287ce4a71d1395cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 25 Feb 2009 12:27:49 +0100 Subject: [PATCH] Change _rpc_allowed into _rpc --- forecast.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forecast.py b/forecast.py index f91c215303..fd426f1bb0 100644 --- a/forecast.py +++ b/forecast.py @@ -39,9 +39,9 @@ class Forecast(OSV): def __init__(self): super(Forecast, self).__init__() - self._rpc_allowed += [ - 'button_draft', - ] + self._rpc.update({ + 'button_draft': True, + }) self._sql_constraints += [ ('check_from_to_date', 'CHECK(to_date >= from_date)',