[CMF-checkins] CVS: Products/CMFDefault - Portal.py:1.44.2.1

Grégoire Weber zope.org at incept.ch
Mon Oct 4 03:56:46 EDT 2004


Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv12999

Modified Files:
      Tag: CMF-1_5-branch
	Portal.py 
Log Message:
- made showing permalinks configurable (by setting 'enable_permalinks' in the cmf roots property sheet
- removed the everything catching 'tal:on-error' directive from main template. The main template now asks the 'get_permalink' script for the permanent link. 'get_permalink' decides if it has to return a permalink or not
- it's now possible to ask the permalink resolver if it is turned on
- 'get_permalink' called on the object returns the permanent link (if turned on)


=== Products/CMFDefault/Portal.py 1.44 => 1.44.2.1 ===
--- Products/CMFDefault/Portal.py:1.44	Thu Aug 12 11:07:40 2004
+++ Products/CMFDefault/Portal.py	Mon Oct  4 03:56:15 2004
@@ -355,6 +355,7 @@
         p._setProperty('email_from_address', email_from_address, 'string')
         p._setProperty('email_from_name', email_from_name, 'string')
         p._setProperty('validate_email', validate_email and 1 or 0, 'boolean')
+        p._setProperty('enable_permalink', 0, 'boolean')
         p.title = title
         p.description = description
 



More information about the CMF-checkins mailing list