diff options
author | Javier Fernandez <jfernandez@igalia.com> | 2013-03-20 09:47:30 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-03-25 13:23:09 +0000 |
commit | 6ddd42768aab98332f80cc8713bd30becbcef2d5 (patch) | |
tree | 5936c3a95b76c61bb1baeb9e052b4d8aca70b350 /wizards/com/sun/star | |
parent | b7b49273bc835cae22ae60835d674b1c9fcb14e1 (diff) |
Init: Relative paths and missing imports
Change-Id: I2196567e0c9b90a9a56aa1db769f6efc9e56e74f
Diffstat (limited to 'wizards/com/sun/star')
11 files changed, 22 insertions, 15 deletions
diff --git a/wizards/com/sun/star/wizards/web/StylePreview.py b/wizards/com/sun/star/wizards/web/StylePreview.py index eb9510f1c110..d131037c7ce8 100644 --- a/wizards/com/sun/star/wizards/web/StylePreview.py +++ b/wizards/com/sun/star/wizards/web/StylePreview.py @@ -15,9 +15,10 @@ # 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.FileAccess import FileAccess import traceback +from ..common.FileAccess import FileAccess + ''' @author rpiterman the style preview, which is a OOo Document Preview in @@ -46,7 +47,9 @@ class StylePreview(object): self.cssFilename = FileAccess.connectURLs(self.tempDir, "style.css") self.backgroundFilename = FileAccess.connectURLs( self.tempDir, "images/background.gif") + self.wwRoot = wwRoot_ + print ("WARNING !!! StylePreview init (review) - source, target: ", self.wwRoot, self.htmlFilename) self.fileAccess.copy(FileAccess.connectURLs( self.wwRoot, "preview.html"), self.htmlFilename) @@ -68,9 +71,11 @@ class StylePreview(object): # a solaris bug workaround # TODO #copy the background image to the temp directory. + print ("WARNING !!! refresh (background) - source, target: ", background, self.backgroundFilename) self.fileAccess.copy(background, self.backgroundFilename) #copy the actual css to the temp directory + print ("WARNING !!! refresh (css) - source, target: ", css, self.tempDir) self.fileAccess.copy(css, self.cssFilename) def cleanup(self): diff --git a/wizards/com/sun/star/wizards/web/data/CGArgument.py b/wizards/com/sun/star/wizards/web/data/CGArgument.py index 220f424d70ec..ee532deac50d 100644 --- a/wizards/com/sun/star/wizards/web/data/CGArgument.py +++ b/wizards/com/sun/star/wizards/web/data/CGArgument.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 class CGArgument(ConfigGroup): cp_Value = str() diff --git a/wizards/com/sun/star/wizards/web/data/CGContent.py b/wizards/com/sun/star/wizards/web/data/CGContent.py index d2969d8a88f4..c85d7dfb301a 100644 --- a/wizards/com/sun/star/wizards/web/data/CGContent.py +++ b/wizards/com/sun/star/wizards/web/data/CGContent.py @@ -15,9 +15,10 @@ # 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.ConfigSet import ConfigSet -from CGDocument import CGDocument +from ...common.ConfigGroup import ConfigGroup +from ...common.ConfigSet import ConfigSet +from ...common.XMLHelper import XMLHelper +from .CGDocument import CGDocument class CGContent(ConfigGroup): diff --git a/wizards/com/sun/star/wizards/web/data/CGDesign.py b/wizards/com/sun/star/wizards/web/data/CGDesign.py index 2d071d3b5be2..a53e40ae00e2 100644 --- a/wizards/com/sun/star/wizards/web/data/CGDesign.py +++ b/wizards/com/sun/star/wizards/web/data/CGDesign.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 class CGDesign(ConfigGroup): diff --git a/wizards/com/sun/star/wizards/web/data/CGFilter.py b/wizards/com/sun/star/wizards/web/data/CGFilter.py index 75a4adc5f8e9..8862caeb7d48 100644 --- a/wizards/com/sun/star/wizards/web/data/CGFilter.py +++ b/wizards/com/sun/star/wizards/web/data/CGFilter.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 class CGFilter(ConfigGroup): cp_Index = -1 diff --git a/wizards/com/sun/star/wizards/web/data/CGGeneralInfo.py b/wizards/com/sun/star/wizards/web/data/CGGeneralInfo.py index 0928dda960c5..bdfdae6dfbd6 100644 --- a/wizards/com/sun/star/wizards/web/data/CGGeneralInfo.py +++ b/wizards/com/sun/star/wizards/web/data/CGGeneralInfo.py @@ -15,7 +15,8 @@ # 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 +from ...common.XMLHelper import XMLHelper class CGGeneralInfo(ConfigGroup): diff --git a/wizards/com/sun/star/wizards/web/data/CGIconSet.py b/wizards/com/sun/star/wizards/web/data/CGIconSet.py index fb540e4a8063..6f8c88fab0f0 100644 --- a/wizards/com/sun/star/wizards/web/data/CGIconSet.py +++ b/wizards/com/sun/star/wizards/web/data/CGIconSet.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 class CGIconSet(ConfigGroup): cp_Index = -1 diff --git a/wizards/com/sun/star/wizards/web/data/CGImage.py b/wizards/com/sun/star/wizards/web/data/CGImage.py index 1f01ff9738c1..0d747eea196b 100644 --- a/wizards/com/sun/star/wizards/web/data/CGImage.py +++ b/wizards/com/sun/star/wizards/web/data/CGImage.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 class CGImage(ConfigGroup): cp_Href = str() diff --git a/wizards/com/sun/star/wizards/web/data/CGLayout.py b/wizards/com/sun/star/wizards/web/data/CGLayout.py index a8b5bbb375b2..9830664cb98c 100644 --- a/wizards/com/sun/star/wizards/web/data/CGLayout.py +++ b/wizards/com/sun/star/wizards/web/data/CGLayout.py @@ -15,8 +15,8 @@ # 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 ui.UIConsts import RID_IMG_WEB +from ...common.ConfigGroup import ConfigGroup +from ...ui.UIConsts import UIConsts class CGLayout(ConfigGroup): @@ -42,7 +42,7 @@ class CGLayout(ConfigGroup): def getImageUrls(self): sRetUrls = range(1) - ResId = RID_IMG_WEB + (self.cp_Index * 2) + ResId = UIConsts.RID_IMG_WEB + (self.cp_Index * 2) return [ResId, ResId + 1] def getTemplates(self, xmsf): diff --git a/wizards/com/sun/star/wizards/web/data/CGSessionName.py b/wizards/com/sun/star/wizards/web/data/CGSessionName.py index d42b0d5f1125..283eaac2a600 100644 --- a/wizards/com/sun/star/wizards/web/data/CGSessionName.py +++ b/wizards/com/sun/star/wizards/web/data/CGSessionName.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 class CGSessionName(ConfigGroup): cp_Index = -1 diff --git a/wizards/com/sun/star/wizards/web/data/CGStyle.py b/wizards/com/sun/star/wizards/web/data/CGStyle.py index bf90d514be38..2de5fdde14a4 100644 --- a/wizards/com/sun/star/wizards/web/data/CGStyle.py +++ b/wizards/com/sun/star/wizards/web/data/CGStyle.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 class CGStyle(ConfigGroup): cp_Index = -1 |