[Checkins] SVN: PluggableAuthService/trunk/plugins/ - fixed
import/export for DelegateMultiPlugin
Andrew Sawyers
andrew at sawdog.com
Fri Oct 20 17:39:46 EDT 2006
Log message for revision 70860:
- fixed import/export for DelegateMultiPlugin
obviously no one has tried to export this :)
Changed:
U PluggableAuthService/trunk/plugins/exportimport.py
U PluggableAuthService/trunk/plugins/xml/delegatepath.xml
-=-
Modified: PluggableAuthService/trunk/plugins/exportimport.py
===================================================================
--- PluggableAuthService/trunk/plugins/exportimport.py 2006-10-20 21:31:12 UTC (rev 70859)
+++ PluggableAuthService/trunk/plugins/exportimport.py 2006-10-20 21:39:45 UTC (rev 70860)
@@ -363,7 +363,7 @@
}
class DelegatePathExportImport(SimpleXMLExportImport):
- """ Adapter for dumping / loading plugins with 'delegate_path' via XML.
+ """ Adapter for dumping / loading plugins with 'delegate' via XML.
"""
_FILENAME = 'delegatepath.xml'
_ROOT_TAGNAME = 'delegating-plugin'
@@ -372,18 +372,18 @@
pass
def _updateFromDOM(self, root):
- delegate_path = self._getNodeAttr(root, 'delegate_path', None)
- if delegate_path is not None:
- self.context.delegate_path = delegate_path
+ delegate = self._getNodeAttr(root, 'delegate', None)
+ if delegate is not None:
+ self.context.delegate = delegate
else:
try:
- del self.context.delegate_path
+ del self.context.delegate
except AttributeError:
pass
def _getExportInfo(self):
return {'title': self.context.title,
- 'delegate_path': self.context.delegate_path,
+ 'delegate': self.context.delegate,
}
class DynamicGroupsPluginExportImport(SimpleXMLExportImport):
Modified: PluggableAuthService/trunk/plugins/xml/delegatepath.xml
===================================================================
--- PluggableAuthService/trunk/plugins/xml/delegatepath.xml 2006-10-20 21:31:12 UTC (rev 70859)
+++ PluggableAuthService/trunk/plugins/xml/delegatepath.xml 2006-10-20 21:39:45 UTC (rev 70860)
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<delegating-plugin xmlns:tal="http://xml.zope.org/namespaces/tal"
- title="%s" delegate_path="%s"
+ title="%s" delegate="%s"
tal:define="info options/info"
tal:attributes="title info/title;
- delegate_path info/delegate_path;
+ delegate info/delegate;
"/>
More information about the Checkins
mailing list