[Zope-Checkins] SVN: Zope/branches/2.12/src/Products/SiteAccess/SiteRoot.py More readability.

Tres Seaver tseaver at palladion.com
Fri May 21 10:52:39 EDT 2010


Log message for revision 112615:
  More readability.

Changed:
  U   Zope/branches/2.12/src/Products/SiteAccess/SiteRoot.py

-=-
Modified: Zope/branches/2.12/src/Products/SiteAccess/SiteRoot.py
===================================================================
--- Zope/branches/2.12/src/Products/SiteAccess/SiteRoot.py	2010-05-21 14:52:37 UTC (rev 112614)
+++ Zope/branches/2.12/src/Products/SiteAccess/SiteRoot.py	2010-05-21 14:52:38 UTC (rev 112615)
@@ -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