Commit 74d3efb3 authored by Vincent Pelletier's avatar Vincent Pelletier

Pythonize for loop.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16180 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86017f1f
......@@ -499,8 +499,7 @@ class ObjectTemplateItem(BaseTemplateItem):
if len(self._objects.keys()) == 0:
return
root_path = os.path.join(bta.path, self.__class__.__name__)
for key in self._objects.keys():
obj = self._objects[key]
for key, obj in self._objects.iteritems():
# create folder and subfolders
folders, id = posixpath.split(key)
encode_folders = []
......
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