Changeset 2128 in products for quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer/tests/base.py
- Timestamp:
- Apr 14, 2010 6:21:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer/tests/base.py
r2124 r2128 76 76 # Fix authenticator for the form 77 77 import re 78 79 authenticator = self.portal.restrictedTraverse("@@authenticator") 80 html = authenticator.authenticator() 81 handle = re.search('value="(.*)"', html).groups()[0] 78 try: 79 authenticator = self.portal.restrictedTraverse("@@authenticator") 80 except: 81 handle = "" 82 else: 83 html = authenticator.authenticator() 84 handle = re.search('value="(.*)"', html).groups()[0] 82 85 return handle 83 86
Note: See TracChangeset
for help on using the changeset viewer.