Diff for /ECHO_content/ECHO_helpers.py between versions 1.57 and 1.60

version 1.57, 2005/07/20 11:30:28 version 1.60, 2005/09/12 22:23:44
Line 352  class ECHO_basis: Line 352  class ECHO_basis:
         tag += ">" + text + "</a>"          tag += ">" + text + "</a>"
     return tag      return tag
   
     def createMapAux(self, ob, arrowsrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/pfeil", circlesrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/kreis", target="_blank"):      def createMapAux(self, ob, arrowsrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/pfeil", circlesrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/kreis", target="_blank",backLink=None,alternativArrowsrc="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=icons/pfeil_blau"):
     """generate map link image, text and other stuff"""      """generate map link image, text and other stuff"""
     bt = BrowserCheck(self)      bt = BrowserCheck(self)
     id = ob.getFullId()      id = ob.getFullId()
Line 368  class ECHO_basis: Line 368  class ECHO_basis:
         if ob.isTypeArrow():          if ob.isTypeArrow():
         # N4 - Arrow          # N4 - Arrow
             rot = ob.angle              rot = ob.angle
           
               if hasattr(getattr(self,link),'link'):
               cLink=getattr(self,link).link
               # if existing delete virtuell path 
                   cLink=cLink.replace('/'.join(self.REQUEST['VirtualRootPhysicalPath']),'')
   
           if backLink and hasattr(getattr(self,link),'link') and backLink==self.REQUEST['SERVER_URL']+cLink.lstrip():
               marksrc=alternativArrowsrc
           else:
         marksrc = arrowsrc          marksrc = arrowsrc
   
           
         if float(rot) < 0:          if float(rot) < 0:
             marksrc = circlesrc              marksrc = circlesrc
         tag += '<a href="%s"><img border="0" src="%s&rot=%s" /></a>'%(link,marksrc,rot)          tag += '<a href="%s"><img border="0" src="%s&rot=%s" /></a>'%(link,marksrc,rot)
Line 393  class ECHO_basis: Line 404  class ECHO_basis:
         if ob.isTypeArrow():          if ob.isTypeArrow():
         # DOM - Arrow          # DOM - Arrow
         rot = ob.angle          rot = ob.angle
                   
                   if hasattr(getattr(self,link),'link'):
               cLink=getattr(self,link).link
               # if existing delete virtuell path 
                   cLink=cLink.replace('/'.join(self.REQUEST['VirtualRootPhysicalPath']),'')
   
           if backLink and hasattr(getattr(self,link),'link') and backLink==self.REQUEST['SERVER_URL']+cLink.lstrip():
               marksrc=alternativArrowsrc
           else:
         marksrc = arrowsrc          marksrc = arrowsrc
   
           try:
              rot=float(rot)
           except:
              rot=0
   
         if float(rot) < 0:          if float(rot) < 0:
             marksrc = circlesrc              marksrc = circlesrc
         if bt.isIEWin and bt.versIE > 5:          if bt.isIEWin and bt.versIE > 5:
Line 1107  class MapText(Folder,ZopePageTemplate): Line 1133  class MapText(Folder,ZopePageTemplate):
     security = ClassSecurityInfo()      security = ClassSecurityInfo()
     security.setDefaultAccess("allow")      security.setDefaultAccess("allow")
           
       
     _default_content_fn = os.path.join(package_home(globals()),      _default_content_fn = os.path.join(package_home(globals()),
                                        'html', 'ECHO_mapText_default.html')                                         'html', 'ECHO_mapText_default.html')
   
Line 1121  class MapText(Folder,ZopePageTemplate): Line 1148  class MapText(Folder,ZopePageTemplate):
         """create locale"""          """create locale"""
         return ECHO_collection.manage_addECHO_localeForm(self)          return ECHO_collection.manage_addECHO_localeForm(self)
   
       manage_main=ZopePageTemplate.pt_editForm
   
     def manage_addECHO_locale(self,lang,title,label,text=None,content_type=None,RESPONSE=None):      def manage_addECHO_locale(self,lang,title,label,text=None,content_type=None,RESPONSE=None):
         """manage add echo locale in map"""          """manage add echo locale in map"""
         ECHO_collection.manage_addECHO_locale(self,lang,title,label,text,content_type)          ECHO_collection.manage_addECHO_locale(self,lang,title,label,text,content_type)

Removed from v.1.57  
changed lines
  Added in v.1.60


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>