Commit 2f7101b5 authored by Jérome Perrin's avatar Jérome Perrin

call the new script name Zuite_setPreference and pass it conversion server

parameters


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35926 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5cb58dee
......@@ -276,10 +276,18 @@ user_pref("capability.principal.codebase.p1.subjectName", "");""" % \
return status
def setPreference(self):
urllib2.urlopen('%s/BTZuite_setPreference?__ac_name='
'%s&__ac_password=%s&working_copy_list=%s' %
(self.portal_url, self.user, self.password, bt5_dir_list))
conversion_server_hostname = os.environ.get('conversion_server_hostname',
'localhost')
conversion_server_port = os.environ.get('conversion_server_port', '8080')
urllib2.urlopen('%s/Zuite_setPreference?__ac_name='
'%s&__ac_password=%s&working_copy_list=%s'
'&conversion_server_hostname=%s'
'&conversion_server_port=%s'%
(self.portal_url, self.user, self.password,
bt5_dir_list, conversion_server_hostname,
conversion_server_port))
def unsubscribeFromTimerService(self):
urllib2.urlopen('%s/portal_activities/?unsubscribe:method='
'&__ac_name=%s&__ac_password=%s' %
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment