version 1.81, 2007/04/30 16:30:09
|
version 1.83, 2007/07/19 11:02:28
|
Line 1164 class MapArea(SimpleItem):
|
Line 1164 class MapArea(SimpleItem):
|
parent = self.aq_parent |
parent = self.aq_parent |
text = parent.getMapText() |
text = parent.getMapText() |
if text is not None: |
if text is not None: |
return text.document_src() |
#return text.document_src() |
|
return text() |
return "" |
return "" |
|
|
def getLabel(self): |
def getLabel(self): |
Line 1219 class MapText(Folder,ZopePageTemplate):
|
Line 1220 class MapText(Folder,ZopePageTemplate):
|
self.ZBindings_edit(self._default_bindings) |
self.ZBindings_edit(self._default_bindings) |
if text is None: |
if text is None: |
text = open(self._default_content_fn).read() |
text = open(self._default_content_fn).read() |
|
if content_type is None: |
|
content_type = self.content_type |
self.pt_edit(text, content_type) |
self.pt_edit(text, content_type) |
|
|
def createLocale(self): |
def createLocale(self): |