'Respond to an incoming pull from a peer repository
@param resource: the resource to be synchronized
@param start: index of the first record to send
@param limit: maximum number of records to send
@param msince: minimum modification date/time for records to send
@param filters: URL filters for record extraction
@param mixed: negotiate resource with peer (disregard resource)
@param pretty_print: make the output human-readable'

def send(self, resource, start=None, limit=None, msince=None, filters=None, mixed=False, pretty_print=False):

    if ((not resource) or mixed):
        msg = 'Mixed    resource    synchronization    not    supported'
        return {'status': self.log.FATAL, 'message': msg, 'response': current.xml.json_message(False, 400, msg)}
    stylesheet = os.path.join(current.request.folder, 'static', 'formats', 'georss', 'export.xsl')
    output = resource.export_xml(start=start, limit=limit, filters=filters, msince=msince, stylesheet=stylesheet, pretty_print=pretty_print)
    count = resource.results
    msg = ('Data    sent    to    peer    (%s    records)' % count)
    headers = current.response.headers
    headers['Content-Type'] = 'text/xml'
    return {'status': self.log.SUCCESS, 'message': msg, 'response': output}
