Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, node):
''' Create person construct from node. '''
nbxmpp.Node.__init__(self, node=node)
def __init__(self, node=None):
''' Create new Atom 0.3 entry object. '''
nbxmpp.Node.__init__(self, 'entry', node=node)
def __init__(self, node=None):
''' Create new Atom 0.3 entry object. '''
nbxmpp.Node.__init__(self, 'entry', node=node)
def __init__(self, node=None):
nbxmpp.Node.__init__(self, 'entry', node=node)
def __init__(self, node=None):
nbxmpp.Node.__init__(self, 'entry', node=node)
def __init__(self, node):
''' Create person construct from node. '''
nbxmpp.Node.__init__(self, node=node)
def __init__(self, type_=None, title=None, instructions=None, extend=None):
if extend is None:
# we have to build form from scratch
nbxmpp.Node.__init__(self, 'x', attrs={'xmlns': nbxmpp.NS_DATA})
if type_ is not None:
self.type_ = type_
if title is not None:
self.title = title
if instructions is not None:
self.instructions = instructions
def __init__(self, media_tag):
nbxmpp.Node.__init__(self, node=media_tag)
def __init__(self, fields=None, associated=None, extend=None):
self.associated = associated
self.vars = {}
if extend is None:
# we have to build this object from scratch
nbxmpp.Node.__init__(self)
if fields is not None:
self.fields = fields
else:
# we already have nbxmpp.Node inside - try to convert all
# fields into DataField objects
if fields is None:
for field in self.iterTags('field'):
if not isinstance(field, DataField):
extend_field(field)
self.vars[field.var] = field
else:
for field in self.getTags('field'):
self.delChild(field)
self.fields = fields