Commit 50378f24 authored by Nicolas Delaby's avatar Nicolas Delaby

replace object wrapper by string

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15772 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 95274f07
...@@ -148,7 +148,7 @@ class PublicationSynchronization(XMLSyncUtils): ...@@ -148,7 +148,7 @@ class PublicationSynchronization(XMLSyncUtils):
#here we must log in with the user authenticated : #here we must log in with the user authenticated :
user = uf.getUserById(login).__of__(uf) user = uf.getUserById(login).__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
subscriber.setUser(user) subscriber.setUser(login)
break break
else: else:
LOG("PubSyncInit Authentication Failed !! with login :", INFO, login) LOG("PubSyncInit Authentication Failed !! with login :", INFO, login)
...@@ -252,7 +252,7 @@ class PublicationSynchronization(XMLSyncUtils): ...@@ -252,7 +252,7 @@ class PublicationSynchronization(XMLSyncUtils):
self.setRidWithMap(xml_client, subscriber) self.setRidWithMap(xml_client, subscriber)
if subscriber.isAuthenticated(): if subscriber.isAuthenticated():
uf = self.getPortalObject().acl_users uf = self.getPortalObject().acl_users
user = subscriber.getUser().__of__(uf) user = uf.getUserById(subscriber.getUser()).__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
result = self.PubSyncModif(publication, xml_client) result = self.PubSyncModif(publication, xml_client)
else: else:
......
...@@ -972,7 +972,9 @@ class SynchronizationTool( SubscriptionSynchronization, ...@@ -972,7 +972,9 @@ class SynchronizationTool( SubscriptionSynchronization,
LOG('sync, len(message_list):', DEBUG, len(message_list)) LOG('sync, len(message_list):', DEBUG, len(message_list))
if len(message_list) == 0: if len(message_list) == 0:
for subscription in self.getSubscriptionList(): for subscription in self.getSubscriptionList():
user = subscription.getZopeUser() user_id = subscription.getZopeUser()
uf = self.getPortalObject().acl_users
user = uf.getUserById(user_id).__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
self.activate(activity='RAMQueue').SubSync(subscription.getPath()) self.activate(activity='RAMQueue').SubSync(subscription.getPath())
......
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