From f91cae6640a0e4e259f58887c0528c329111eac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 25 Nov 2014 15:03:43 +0100 Subject: [PATCH] categories: adapt to categories being stored in XML --- extra/modules/root.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extra/modules/root.py b/extra/modules/root.py index 7410e72..b561207 100644 --- a/extra/modules/root.py +++ b/extra/modules/root.py @@ -69,6 +69,9 @@ def category_get_limit(self): return 7 Category.get_limit = category_get_limit +Category.TEXT_ATTRIBUTES = ['name', 'url_name', 'description', 'homepage_position'] +Category.INT_ATTRIBUTES = ['position', 'limit'] + class FormsRootDirectory(wcs.forms.root.RootDirectory):