'Publish a PEP update.
This is just a (very) thin wrapper around the XEP-0060 publish()
method to set the defaults expected by PEP.
Arguments:
stanza   -- The PEP update stanza to publish.
node     -- The node to publish the item to. If not specified,
the stanza\'s namespace will be used.
id       -- Optionally specify the ID of the item.
options  -- A form of publish options.
ifrom    -- Specify the sender\'s JID.
block    -- Specify if the send call will block until a response
is received, or a timeout occurs. Defaults to True.
timeout  -- The length of time (in seconds) to wait for a response
before exiting the send call if blocking is used.
Defaults to sleekxmpp.xmlstream.RESPONSE_TIMEOUT
callback -- Optional reference to a stream handler function. Will
be executed when a reply stanza is received.'

def publish(self, stanza, node=None, id=None, options=None, ifrom=None, block=True, callback=None, timeout=None):

    if (node is None):
        node = stanza.namespace
    if (id is None):
        id = 'current'
    return self.xmpp['xep_0060'].publish(ifrom, node, id=id, payload=stanza.xml, options=options, ifrom=ifrom, block=block, callback=callback, timeout=timeout)
