def manage_exportImport(self, updated_xml, should_purge, RESPONSE): """ Parse XML and update the registry. """ #XXX encoding? _updatePluginRegistry(self, updated_xml, should_purge) RESPONSE.redirect('%s/manage_exportImportForm' '?manage_tabs_message=Registry+updated.' % self.absolute_url())
def PUT(self, REQUEST, RESPONSE): """ """ xml = REQUEST['BODYFILE'].read() _updatePluginRegistry(self, xml, True)