EduploneWebdidactics CustomizationPolicy.py,1.8,1.9

Jens Klein <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneWebdidactics
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11568

Modified Files:
	CustomizationPolicy.py 
Log Message:
added index creation and removed dc prefix


Index: CustomizationPolicy.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/CustomizationPolicy.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** CustomizationPolicy.py	1 Nov 2004 14:08:26 -0000	1.8
--- CustomizationPolicy.py	1 Nov 2004 15:22:39 -0000	1.9
***************
*** 49,52 ****
--- 49,62 ----
          portal.portal_metadata.ct_mapping.setDefaultChain('dcwd')
  
+         # XXX however: the namespace has to be empty. so we delete it. this may
+         # cause some side-effects, so please be aware of it.
+         portal.portal_metadata.collection.dcwd.setNamespace('http://purl.org/dc/elements/1.1','')
+ 
+         # prepare catalog
+         cat = portal.portal_catalog
+         for mditem in portal.portal_metadata.collection.dcwd.objectIds():
+             if not mditem in cat.indexes():
+                 cat.addIndex(mditem,'FieldIndex')
+ 
      def customize_4_add_relation_tab(self, portal):
          portal.portal_actions.addAction('relations',



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.