Diff for /ECHO_content/ECHO_collection.py between versions 1.285 and 1.286

version 1.285, 2007/02/20 15:55:21 version 1.286, 2007/03/09 17:57:13
Line 42  from Products.ZCatalog.CatalogPathAwaren Line 42  from Products.ZCatalog.CatalogPathAwaren
 from Products.ZCTextIndex.ZCTextIndex import manage_addLexicon  from Products.ZCTextIndex.ZCTextIndex import manage_addLexicon
   
 import urllib  import urllib
   import urllib2
 import cgi  import cgi
 import smtplib  import smtplib
 import time  import time
Line 1808  class ECHO_externalLink(Folder,ECHO_basi Line 1809  class ECHO_externalLink(Folder,ECHO_basi
         """ set linkType """          """ set linkType """
         self.linkType = type          self.linkType = type
                           
       def checkLink(self):
           """ returns tuple (isWorking,Error) """        
           try:
               urllib2.urlopen(self.link)
               return (True, '')
           except urllib2.HTTPError, e:
               return (False, e.code)
           except urllib2.URLError, e:
               return (False, str(e.reason))
           except:
               return (False, 'unknown Error')
               
                           
     manage_options = (      manage_options = (
         {'label':'Main Config','action':'ECHO_externalLink_config'},          {'label':'Main Config','action':'ECHO_externalLink_config'},

Removed from v.1.285  
changed lines
  Added in v.1.286


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