Commit eede3f50 authored by Tres Seaver's avatar Tres Seaver

More readability.

parent 1c5e7ba1
...@@ -87,14 +87,20 @@ class SiteRoot(Traverser, Implicit): ...@@ -87,14 +87,20 @@ class SiteRoot(Traverser, Implicit):
self.title = title.strip() self.title = title.strip()
self.base = base = base.strip() self.base = base = base.strip()
self.path = path = path.strip() self.path = path = path.strip()
if base: self.SiteRootBASE = base if base:
self.SiteRootBASE = base
else: else:
try: del self.SiteRootBASE try:
except: pass del self.SiteRootBASE
if path: self.SiteRootPATH = path except:
pass
if path:
self.SiteRootPATH = path
else: else:
try: del self.SiteRootPATH try:
except: pass del self.SiteRootPATH
except:
pass
def manage_edit(self, title, base, path, REQUEST=None): def manage_edit(self, title, base, path, REQUEST=None):
""" Set the title, base, and path. """ Set the title, base, and path.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment