0001-misc-rename-_xml_tagname-as-xml_root_node-for-consis.patch
wcs/categories.py | ||
---|---|---|
26 | 26 | |
27 | 27 |
class Category(XmlStorableObject): |
28 | 28 |
_names = 'categories' |
29 |
_xml_tagname = 'category'
|
|
29 |
xml_root_node = 'category'
|
|
30 | 30 |
name = None |
31 | 31 |
url_name = None |
32 | 32 |
description = None |
wcs/data_sources.py | ||
---|---|---|
295 | 295 |
class NamedDataSource(XmlStorableObject): |
296 | 296 |
_names = 'datasources' |
297 | 297 |
_indexes = ['slug'] |
298 |
_xml_tagname = 'datasource'
|
|
298 |
xml_root_node = 'datasource'
|
|
299 | 299 | |
300 | 300 |
name = None |
301 | 301 |
slug = None |
wcs/logged_errors.py | ||
---|---|---|
25 | 25 | |
26 | 26 |
class LoggedError(XmlStorableObject): |
27 | 27 |
_names = 'logged-errors' |
28 |
_xml_tagname = 'error'
|
|
28 |
xml_root_node = 'error'
|
|
29 | 29 |
_indexes = ['tech_id'] |
30 | 30 |
_hashed_indexes = ['formdef_id', 'workflow_id'] |
31 | 31 |
wcs/mail_templates.py | ||
---|---|---|
20 | 20 | |
21 | 21 |
class MailTemplate(XmlStorableObject): |
22 | 22 |
_names = 'mail-templates' |
23 |
_xml_tagname = 'mail-template'
|
|
23 |
xml_root_node = 'mail-template'
|
|
24 | 24 | |
25 | 25 |
name = None |
26 | 26 |
slug = None |
wcs/qommon/xml_storage.py | ||
---|---|---|
43 | 43 | |
44 | 44 |
def export_to_xml(self, include_id=False): |
45 | 45 |
charset = get_publisher().site_charset |
46 |
root = ET.Element(self._xml_tagname)
|
|
46 |
root = ET.Element(self.xml_root_node)
|
|
47 | 47 |
if include_id and self.id: |
48 | 48 |
root.attrib['id'] = str(self.id) |
49 | 49 |
for attribute in self.XML_NODES: |
wcs/wscalls.py | ||
---|---|---|
127 | 127 | |
128 | 128 |
class NamedWsCall(XmlStorableObject): |
129 | 129 |
_names = 'wscalls' |
130 |
_xml_tagname = 'wscall'
|
|
130 |
xml_root_node = 'wscall'
|
|
131 | 131 | |
132 | 132 |
name = None |
133 | 133 |
slug = None |
134 |
- |