git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
many cosmetic changes
[unfold.git]
/
myslice
/
theme.py
diff --git
a/myslice/theme.py
b/myslice/theme.py
index
d44b854
..
e16326b
100644
(file)
--- a/
myslice/theme.py
+++ b/
myslice/theme.py
@@
-14,12
+14,12
@@
class ThemeView (object):
def template(self):
# Load a template from the theme directory if it exists
# else load it from the common templates dir
def template(self):
# Load a template from the theme directory if it exists
# else load it from the common templates dir
- print "THEME = ",self.theme
- print "TEMPLATE = ",self.template_name
- print "TEMPLATE_DIRS = ",TEMPLATE_DIRS
+
#
print "THEME = ",self.theme
+
#
print "TEMPLATE = ",self.template_name
+
#
print "TEMPLATE_DIRS = ",TEMPLATE_DIRS
filename = self.theme + '_' + self.template_name
filename = self.theme + '_' + self.template_name
- print any(os.path.exists(os.path.join(d,filename)) for d in TEMPLATE_DIRS)
- print (os.path.exists(os.path.join(d,filename)) for d in TEMPLATE_DIRS)
+
#
print any(os.path.exists(os.path.join(d,filename)) for d in TEMPLATE_DIRS)
+
#
print (os.path.exists(os.path.join(d,filename)) for d in TEMPLATE_DIRS)
if any(os.path.exists(os.path.join(d,filename)) for d in TEMPLATE_DIRS):
return filename
else:
if any(os.path.exists(os.path.join(d,filename)) for d in TEMPLATE_DIRS):
return filename
else: