From 4bd34358df65ef3b853b239b0b67e2024bb3fd81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 30 Sep 2014 22:14:17 +0200 Subject: [PATCH 1/1] =?utf8?q?Marre=20de=20se=20faire=20chier=20avec=20des?= =?utf8?q?=20lubies=20de=20geeks=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- __init__.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/__init__.py b/__init__.py index b269824..52eaef5 100755 --- a/__init__.py +++ b/__init__.py @@ -94,21 +94,10 @@ def initialize(registrar) : # Monkey... # all tags are good ! -validTags = default_cmf_utils.NASTY_TAGS.copy() -for tag in validTags.keys() : - validTags[tag] = 1 - -VALID_TAGS = {'font': 1, - 'param' : 1, - 'iframe' : 1, - 'form' : 1, - 'input' : 1, - 'textarea' : 1} - -validTags.update(VALID_TAGS) - +class YesDict(dict): + def has_key(self, k) : return True default_cmf_utils.NASTY_TAGS = {} -default_cmf_utils.VALID_TAGS.update(validTags) +default_cmf_utils.VALID_TAGS = YesDict() # the plinn portal_calendar is a also a "SPECIAL PROVIDER" # TODO: vérifier l'impact -- 2.20.1