[PATCH] Init: Pythonize the CGExporter class.

Javier Fernandez (via Code Review) gerrit at gerrit.libreoffice.org
Mon Mar 25 03:47:29 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3022

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/22/3022/1

Init: Pythonize the CGExporter class.

Change-Id: I985d0cc3cdb75b6f1443f316181ce83d423e2b91
---
M wizards/com/sun/star/wizards/web/data/CGExporter.py
1 file changed, 4 insertions(+), 4 deletions(-)



diff --git a/wizards/com/sun/star/wizards/web/data/CGExporter.py b/wizards/com/sun/star/wizards/web/data/CGExporter.py
index ef4a944..74288c7 100644
--- a/wizards/com/sun/star/wizards/web/data/CGExporter.py
+++ b/wizards/com/sun/star/wizards/web/data/CGExporter.py
@@ -15,9 +15,9 @@
 #   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.ConfigSet import ConfigSet
-from CGArgument import CGArgument
-from common.ConfigGroup import ConfigGroup
+from ...common.ConfigSet import ConfigSet
+from ...common.ConfigGroup import ConfigGroup
+from .CGArgument import CGArgument
 
 class CGExporter(ConfigGroup):
     cp_Index = -1
@@ -37,4 +37,4 @@
 
     def supports(self, mime):
         return CGExporter.cp_SupportedMimeTypes == "" or \
-            CGExporter.cp_SupportedMimeTypes.index(mime) > -1
+            CGExporter.cp_SupportedMimeTypes.find(mime) > -1

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

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



More information about the LibreOffice mailing list