tools, plugin XEP-0077: small fixes
This commit is contained in:
parent
afb5e7c9a2
commit
647db64941
1 changed files with 7 additions and 7 deletions
|
|
@ -331,7 +331,7 @@ class HeaderElement(Element):
|
|||
"""" Used by AdvancedListContainer """
|
||||
type = 'header'
|
||||
|
||||
def __init__(self, parent, name=None, Label=None, description=None):
|
||||
def __init__(self, parent, name=None, label=None, description=None):
|
||||
"""
|
||||
@param parent: AdvancedListContainer instance
|
||||
@param name: name of the container
|
||||
|
|
@ -342,11 +342,11 @@ class HeaderElement(Element):
|
|||
assert(isinstance(parent, AdvancedListContainer))
|
||||
super(HeaderElement, self).__init__(parent.xmlui, parent)
|
||||
if name:
|
||||
field_elt.setAttribute('name', name)
|
||||
self.elem.setAttribute('name', name)
|
||||
if label:
|
||||
field_elt.setAttribute('label', label)
|
||||
self.elem.setAttribute('label', label)
|
||||
if description:
|
||||
field_elt.setAttribute('description', description)
|
||||
self.elem.setAttribute('description', description)
|
||||
|
||||
|
||||
class Container(Element):
|
||||
|
|
@ -422,7 +422,7 @@ class AdvancedListContainer(Container):
|
|||
"""
|
||||
assert selectable in ('no', 'single')
|
||||
if not items and columns is None:
|
||||
raise DataError(_("either items or columns need do be filled"))
|
||||
raise exceptions.DataError(_("either items or columns need do be filled"))
|
||||
if headers is None:
|
||||
headers = []
|
||||
if items is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue