r13534 - ArchGenXML/trunk/src/archgenxml

"JS" <[email protected]> Mon, 28 Mar 2011 13:04:30 +0000
Newsgroups gmane.comp.web.zope.plone.archetypes.cvs
Message-ID <[email protected]>
Author: jihaisse
Date: Mon Mar 28 13:04:30 2011
New Revision: 13534

Modified:
   ArchGenXML/trunk/src/archgenxml/codesnippets.py
Log:
generation of tools : depends of UniqueObject and SimpleItem. Not a content type anymore and not added in the portal_catalog.

Modified: ArchGenXML/trunk/src/archgenxml/codesnippets.py
==============================================================================
--- ArchGenXML/trunk/src/archgenxml/codesnippets.py	(original)
+++ ArchGenXML/trunk/src/archgenxml/codesnippets.py	Mon Mar 28 13:04:30 2011
@@ -89,6 +89,7 @@
 
 TEMPL_TOOL_HEADER=u"""
 from Products.CMFCore.utils import UniqueObject
+from OFS.SimpleItem import SimpleItem
 
     """
 
@@ -257,13 +258,15 @@
     # tool-constructors have no id argument, the id is fixed
     def __init__(self, id=None):
         %s.__init__(self,'%s')
-        self.setTitle('%s')
+        #There is no more title
+        #self.setTitle('%s')
         """
 
 TEMPL_POST_EDIT_METHOD_TOOL = u"""
     # tool should not appear in portal_catalog
     def at_post_edit_script(self):
-        self.unindexObject()
+        # Not needed anymore
+        #self.unindexObject()
         """
 
 TEMPLATE_HEADER = u"""\

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar