[Checkins] SVN: Products.CMFDefault/branches/2.2/Products/CMFDefault/Document.py Handle missing rest_header_level (backport part of [122079]).
Laurence Rowe
l at lrowe.co.uk
Tue Nov 1 22:53:37 UTC 2011
Log message for revision 123240:
Handle missing rest_header_level (backport part of [122079]).
Changed:
U Products.CMFDefault/branches/2.2/Products/CMFDefault/Document.py
-=-
Modified: Products.CMFDefault/branches/2.2/Products/CMFDefault/Document.py
===================================================================
--- Products.CMFDefault/branches/2.2/Products/CMFDefault/Document.py 2011-11-01 22:47:21 UTC (rev 123239)
+++ Products.CMFDefault/branches/2.2/Products/CMFDefault/Document.py 2011-11-01 22:53:36 UTC (rev 123240)
@@ -73,7 +73,8 @@
_size = 0
_stx_level = 1 # Structured text level
- _rest_level = getConfiguration().rest_header_level # comes from zope.conf
+ # comes from zope.conf
+ _rest_level = getattr(getConfiguration(), 'rest_header_level', 3)
rest_available = REST_AVAILABLE
_last_safety_belt_editor = ''
More information about the checkins
mailing list