Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3023

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/23/3023/1

Init: Pythonize the class CGPublish.

Change-Id: I3930dd1702bf12f35d0456b56e629d3d865df056
---
M wizards/com/sun/star/wizards/web/data/CGPublish.py
1 file changed, 5 insertions(+), 3 deletions(-)



diff --git a/wizards/com/sun/star/wizards/web/data/CGPublish.py 
b/wizards/com/sun/star/wizards/web/data/CGPublish.py
index 2a0619c..6a5c92f 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 @@
     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 ""
 

-- 
To view, visit https://gerrit.libreoffice.org/3023
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3930dd1702bf12f35d0456b56e629d3d865df056
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Javier Fernandez <javier.fgb@gmail.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.