Commit 36759c1b authored by Julien Muchembled's avatar Julien Muchembled

typo

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28909 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97f6a89c
......@@ -1423,7 +1423,7 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, ConversionCacheMixin, Sna
if not isinstance(data, Pdata) and data is not None:
file = cStringIO.StringIO(data)
data, size = self._read_data(file)
if getattr(self, 'update_date', None) is not None:
if getattr(self, 'update_data', None) is not None:
self.update_data(data, size=size) # We call this method to make sure size is set and caches reset
else:
self._baseSetData(data) # XXX - It would be better to always use this accessor
......
......@@ -127,7 +127,7 @@ def main():
else:
shutil.move(path, 'bt5list')
cur_umask = os.umask(0666)
os.chmod('bt5list', 0666 - cur_umask)
os.chmod('bt5list', 0666 & cur_umask)
os.umask(cur_umask)
os.chdir(cwd)
......
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