[Erp5-report] r29855 - /erp5/trunk/products/ERP5OOo/tests/testDms.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Oct 20 15:26:32 CEST 2009
Author: ivan
Date: Tue Oct 20 15:26:31 2009
New Revision: 29855
URL: http://svn.erp5.org?rev=29855&view=rev
Log:
Use system Preference.
Modified:
erp5/trunk/products/ERP5OOo/tests/testDms.py
Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=29855&r1=29854&r2=29855&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Tue Oct 20 15:26:31 2009
@@ -114,13 +114,15 @@
'Access contents information', ['Anonymous'], 1)
def setSystemPreference(self):
- default_pref = self.portal.portal_preferences.default_site_preference
+ default_pref = self.portal.portal_preferences.newContent(portal_type='System Preference')
default_pref.setPreferredOoodocServerAddress(conversion_server_host[0])
default_pref.setPreferredOoodocServerPortNumber(conversion_server_host[1])
default_pref.setPreferredDocumentFileNameRegularExpression(FILE_NAME_REGULAR_EXPRESSION)
default_pref.setPreferredDocumentReferenceRegularExpression(REFERENCE_REGULAR_EXPRESSION)
if default_pref.getPreferenceState() != 'global':
default_pref.enable()
+ get_transaction().commit()
+ self.tic()
def getDocumentModule(self):
return getattr(self.getPortal(),'document_module')
More information about the Erp5-report
mailing list