'Initialize a new <presence /> stanza with an optional \'id\' value.
Overrides StanzaBase.__init__.'

def __init__(self, *args, **kwargs):

    StanzaBase.__init__(self, *args, **kwargs)
    if (self['id'] == ''):
        if ((self.stream is not None) and self.stream.use_presence_ids):
            self['id'] = self.stream.new_id()
