[CMF-checkins] SVN: CMF/trunk/GenericSetup/ZCatalog/adapters.py -
skip indexes which don't have an export adapter
Yvo Schubbe
y.2005- at wcm-solutions.de
Wed Oct 5 15:02:49 EDT 2005
Log message for revision 38769:
- skip indexes which don't have an export adapter
Changed:
U CMF/trunk/GenericSetup/ZCatalog/adapters.py
-=-
Modified: CMF/trunk/GenericSetup/ZCatalog/adapters.py
===================================================================
--- CMF/trunk/GenericSetup/ZCatalog/adapters.py 2005-10-05 17:17:00 UTC (rev 38768)
+++ CMF/trunk/GenericSetup/ZCatalog/adapters.py 2005-10-05 19:02:48 UTC (rev 38769)
@@ -68,7 +68,10 @@
indexes = self.context.getIndexObjects()[:]
indexes.sort(lambda x,y: cmp(x.getId(), y.getId()))
for idx in indexes:
- fragment.appendChild(INodeExporter(idx).exportNode(self._doc))
+ exporter = INodeExporter(idx, None)
+ if exporter is None:
+ continue
+ fragment.appendChild(exporter.exportNode(self._doc))
return fragment
def _purgeIndexes(self):
More information about the CMF-checkins
mailing list