fix saveas with no media dir

This commit is contained in:
Damien Elmes 2009-01-04 07:43:45 +09:00
parent 9765fdae73
commit 0f129f7aea

View file

@ -1377,7 +1377,7 @@ where id = :id""", pending)
if not self.tmpMediaDir and create: if not self.tmpMediaDir and create:
self.tmpMediaDir = tempfile.mkdtemp() self.tmpMediaDir = tempfile.mkdtemp()
dir = self.tmpMediaDir dir = self.tmpMediaDir
if not os.path.exists(dir): if not dir or not os.path.exists(dir):
return None return None
return dir return dir