Kaydet (Commit) 6ddd4276 authored tarafından Javier Fernandez's avatar Javier Fernandez Kaydeden (comit) Michael Meeks

Init: Relative paths and missing imports

Change-Id: I2196567e0c9b90a9a56aa1db769f6efc9e56e74f
üst b7b49273
......@@ -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):
......
......@@ -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()
......@@ -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):
......
......@@ -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):
......
......@@ -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
......
......@@ -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):
......
......@@ -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
......
......@@ -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()
......@@ -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):
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment