Commit 62cdfcc4 authored by Sebastien Robin's avatar Sebastien Robin

- fix namming in dtml

- misplaced removeRemainingObjectPath in XMLSyncUtils
(by fabien)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15179 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6d7cabc4
...@@ -699,7 +699,6 @@ class XMLSyncUtilsMixin(SyncCode): ...@@ -699,7 +699,6 @@ class XMLSyncUtilsMixin(SyncCode):
object_path_list = map(lambda x: x.getPhysicalPath(),object_list) object_path_list = map(lambda x: x.getPhysicalPath(),object_list)
subscriber.setRemainingObjectPathList(object_path_list) subscriber.setRemainingObjectPathList(object_path_list)
#object_gid = domain.getGidFromObject(object)
local_gid_list = map(lambda x: domain.getGidFromObject(x),object_list) local_gid_list = map(lambda x: domain.getGidFromObject(x),object_list)
# Objects to remove # Objects to remove
#LOG('remove object to remove ...',0,'') #LOG('remove object to remove ...',0,'')
...@@ -779,9 +778,6 @@ class XMLSyncUtilsMixin(SyncCode): ...@@ -779,9 +778,6 @@ class XMLSyncUtilsMixin(SyncCode):
status = self.PARTIAL status = self.PARTIAL
signature.setAction('Add') signature.setAction('Add')
xml_string = '<!--' + short_string + '-->' xml_string = '<!--' + short_string + '-->'
else:#if there is no partial data,
#we could remove the object from the remain list
subscriber.removeRemainingObjectPath(object_path)
gid = signature.getRid()#in fisrt, we try with rid if there is one gid = signature.getRid()#in fisrt, we try with rid if there is one
if gid == None: if gid == None:
gid = signature.getGid() gid = signature.getGid()
...@@ -895,6 +891,8 @@ class XMLSyncUtilsMixin(SyncCode): ...@@ -895,6 +891,8 @@ class XMLSyncUtilsMixin(SyncCode):
syncml_data += self.addXMLObject(cmd_id=cmd_id, object=object, syncml_data += self.addXMLObject(cmd_id=cmd_id, object=object,
gid=gid, xml_string=xml_string, gid=gid, xml_string=xml_string,
more_data=more_data, media_type=subscriber.getMediaType()) more_data=more_data, media_type=subscriber.getMediaType())
if not more_data:
subscriber.removeRemainingObjectPath(object_path)
else: else:
result['finished'] = 1 result['finished'] = 1
break break
......
...@@ -171,7 +171,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -171,7 +171,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<tr> <tr>
<td align="left" valign="top"> <td align="left" valign="top">
<div class="form-label"> <div class="form-label">
Format authentication Authentication Format
</label></div> </label></div>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
...@@ -181,7 +181,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -181,7 +181,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<tr> <tr>
<td align="left" valign="top"> <td align="left" valign="top">
<div class="form-label"> <div class="form-label">
Type authentication Authentication Type
</label></div> </label></div>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
......
...@@ -167,7 +167,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -167,7 +167,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<tr> <tr>
<td align="left" valign="top"> <td align="left" valign="top">
<div class="form-label"> <div class="form-label">
Format authentication Authentication Format
</label></div> </label></div>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
...@@ -176,7 +176,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -176,7 +176,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
</tr> </tr>
<td align="left" valign="top"> <td align="left" valign="top">
<div class="form-label"> <div class="form-label">
Type authentication Authentication Type
</label></div> </label></div>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
......
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