From dfa61f1811828606d910a521b21c33821dc04f41 Mon Sep 17 00:00:00 2001 From: Javier Fernandez Date: Wed, 20 Mar 2013 09:55:59 +0000 Subject: Init: Pythonize the class CGPublish. Change-Id: I3930dd1702bf12f35d0456b56e629d3d865df056 --- wizards/com/sun/star/wizards/web/data/CGPublish.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'wizards') diff --git a/wizards/com/sun/star/wizards/web/data/CGPublish.py b/wizards/com/sun/star/wizards/web/data/CGPublish.py index 2a0619c26597..6a5c92f4dd93 100644 --- a/wizards/com/sun/star/wizards/web/data/CGPublish.py +++ b/wizards/com/sun/star/wizards/web/data/CGPublish.py @@ -15,7 +15,7 @@ # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . # -from common.ConfigGroup import ConfigGroup +from ...common.ConfigGroup import ConfigGroup ''' A Class which describes the publishing arguments @@ -30,18 +30,20 @@ class CGPublish(ConfigGroup): cp_URL = str() cp_Username = str() password = str() + overwriteApproved = bool() + url = str() def setURL(self, path): try: self.cp_URL = (self.root).getFileAccess().getURL(path) self.overwriteApproved = False - except Exception, ex: + except Exception as ex: ex.printStackTrace() def getURL(self): try: return (self.root).getFileAccess().getPath(self.cp_URL, None) - except Exception, e: + except Exception as e: e.printStackTrace() return "" -- cgit