projects
/
cascardo
/
ipsilon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5be918
)
Add common way to add a subtree to a page
author
Simo Sorce
<simo@redhat.com>
Fri, 28 Mar 2014 18:07:11 +0000
(14:07 -0400)
committer
Simo Sorce
<simo@redhat.com>
Fri, 28 Mar 2014 18:10:23 +0000
(14:10 -0400)
Signed-off-by: Simo Sorce <simo@redhat.com>
ipsilon/util/page.py
patch
|
blob
|
history
diff --git
a/ipsilon/util/page.py
b/ipsilon/util/page.py
index
7dda1d7
..
7727dda
100755
(executable)
--- a/
ipsilon/util/page.py
+++ b/
ipsilon/util/page.py
@@
-80,4
+80,10
@@
class Page(object):
def default(self, *args, **kwargs):
raise cherrypy.HTTPError(404)
+ def add_subtree(self, name, page):
+ self.__dict__[name] = page
+
+ def del_subtree(self, name):
+ del self.__dict__[name]
+
exposed = True