[Zope-Checkins] SVN: Zope/trunk/src/Products/SiteAccess/SiteRoot.py Merge more cleanups from 2.12 branch.
Tres Seaver
tseaver at palladion.com
Fri May 21 10:53:13 EDT 2010
Log message for revision 112618:
Merge more cleanups from 2.12 branch.
Changed:
U Zope/trunk/src/Products/SiteAccess/SiteRoot.py
-=-
Modified: Zope/trunk/src/Products/SiteAccess/SiteRoot.py
===================================================================
--- Zope/trunk/src/Products/SiteAccess/SiteRoot.py 2010-05-21 14:53:11 UTC (rev 112617)
+++ Zope/trunk/src/Products/SiteAccess/SiteRoot.py 2010-05-21 14:53:12 UTC (rev 112618)
@@ -87,14 +87,20 @@
self.title = title.strip()
self.base = base = base.strip()
self.path = path = path.strip()
- if base: self.SiteRootBASE = base
+ if base:
+ self.SiteRootBASE = base
else:
- try: del self.SiteRootBASE
- except: pass
- if path: self.SiteRootPATH = path
+ try:
+ del self.SiteRootBASE
+ except:
+ pass
+ if path:
+ self.SiteRootPATH = path
else:
- try: del self.SiteRootPATH
- except: pass
+ try:
+ del self.SiteRootPATH
+ except:
+ pass
def manage_edit(self, title, base, path, REQUEST=None):
""" Set the title, base, and path.
More information about the Zope-Checkins
mailing list