How to use the nbxmpp.Node.__init__ function in nbxmpp

To help you get started, we’ve selected a few nbxmpp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gajim / gajim / gajim / common / modules / atom.py View on Github external
def __init__(self, node):
        ''' Create person construct from node. '''
        nbxmpp.Node.__init__(self, node=node)
github gajim / gajim / gajim / common / atom.py View on Github external
def __init__(self, node=None):
        ''' Create new Atom 0.3 entry object. '''
        nbxmpp.Node.__init__(self, 'entry', node=node)
github gajim / gajim / gajim / common / modules / atom.py View on Github external
def __init__(self, node=None):
        ''' Create new Atom 0.3 entry object. '''
        nbxmpp.Node.__init__(self, 'entry', node=node)
github gajim / gajim / gajim / common / atom.py View on Github external
def __init__(self, node=None):
        nbxmpp.Node.__init__(self, 'entry', node=node)
github gajim / gajim / gajim / common / modules / atom.py View on Github external
def __init__(self, node=None):
        nbxmpp.Node.__init__(self, 'entry', node=node)
github gajim / gajim / gajim / common / atom.py View on Github external
def __init__(self, node):
        ''' Create person construct from node. '''
        nbxmpp.Node.__init__(self, node=node)
github gajim / gajim / gajim / common / modules / dataforms.py View on Github external
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
github gajim / gajim / gajim / common / modules / dataforms.py View on Github external
def __init__(self, media_tag):
        nbxmpp.Node.__init__(self, node=media_tag)
github gajim / gajim / gajim / common / modules / dataforms.py View on Github external
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