Project

General

Profile

« Previous | Next » 

Revision 6ee40f42

Added by Frédéric Péters about 1 year ago

misc: remove custom category attributes (#72817)

View differences:

auquotidien/auquotidien.py
4 4
from wcs.qommon.publisher import get_publisher_class, get_request
5 5
from wcs.qommon.misc import get_cfg
6 6

  
7
from modules import categories_admin
8 7
from modules import formpage
9 8
from modules import template
10 9
from modules import root
......
13 12

  
14 13
get_publisher_class().register_translation_domain('auquotidien')
15 14
get_publisher_class().default_configuration_path = 'au-quotidien-wcs-settings.xml'
16

  
17
import wcs.admin.forms
18

  
19
wcs.admin.forms.FormsDirectory.categories = categories_admin.CategoriesDirectory()
20

  
21
import wcs.categories
22

  
23
if ('homepage_position', 'str') not in wcs.categories.Category.XML_NODES:
24
    wcs.categories.Category.XML_NODES.append(('homepage_position', 'str'))
25
    wcs.categories.Category.XML_NODES.append(('limit', 'int'))

Also available in: Unified diff