* src/docgen/ODFDoc.py: Handle exception when file is not writeable
* src/docgen/ODSDoc.py: Handle exception when file is not writeable * src/docgen/OpenOfficeDoc.py: Handle exception when file is not writeable * src/docgen/OpenSpreadSheet.py: Handle exception when file is not writeable * src/plugins/AncestorChart2.py: Remove Title option * src/plugins/DecendChart.py: Remove Title option svn: r6961
This commit is contained in:
@@ -46,6 +46,7 @@ import ImgManip
|
||||
import FontScale
|
||||
import Mime
|
||||
import Utils
|
||||
import Errors
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -478,7 +479,13 @@ class OpenOfficeDoc(BaseDoc.BaseDoc):
|
||||
zfile.writestr(zipinfo,data)
|
||||
|
||||
def _write_zip(self):
|
||||
zfile = zipfile.ZipFile(self.filename,"w",zipfile.ZIP_DEFLATED)
|
||||
try:
|
||||
zfile = zipfile.ZipFile(self.filename,"w",zipfile.ZIP_DEFLATED)
|
||||
except IOError,msg:
|
||||
errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
|
||||
raise Errors.ReportError(errmsg)
|
||||
except:
|
||||
raise Errors.ReportError(_("Could not create %s") % self.filename)
|
||||
|
||||
t = time.localtime(time.time())[:6]
|
||||
|
||||
|
Reference in New Issue
Block a user