[Erp5-report] r37106 ivan - /erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 14 10:19:29 CEST 2010
Author: ivan
Date: Wed Jul 14 10:19:28 2010
New Revision: 37106
URL: http://svn.erp5.org?rev=37106&view=rev
Log:
Use respective Permissions constant rather than hard coded string.
Modified:
erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
Modified: erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/Document/OOoDocument.py?rev=37106&r1=37105&r2=37106&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py [utf8] Wed Jul 14 10:19:28 2010
@@ -155,7 +155,7 @@ class OOoDocument(PermanentURLMixIn, Bas
rx_strip = re.compile('<[^>]*?>', re.DOTALL|re.MULTILINE)
rx_compr = re.compile('\s+')
- security.declareProtected('View', 'index_html')
+ security.declareProtected(Permissions.View, 'index_html')
@fill_args_from_request('display', 'quality', 'resolution')
def index_html(self, REQUEST, *args, **kw):
"""Return the document data."""
More information about the Erp5-report
mailing list