CVS: tmda-cgi Theme.py,1.6,1.7
Jim Ramsay <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv30416
Modified Files:
Theme.py
Log Message:
Ignore not-directory things in the theme directory (for example, tarballs of themes)
Index: Theme.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Theme.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Theme.py 22 May 2003 17:23:42 -0000 1.6
+++ Theme.py 15 Dec 2003 16:33:52 -0000 1.7
@@ -60,6 +60,9 @@
for Theme in Themes:
# Skip "CVS" if you see it
if Theme == "CVS": continue
+
+ # Also skip anything that is not a directory
+ if not os.path.isdir( os.path.join( ThemesDir, Theme ) ): continue
T["Name"] = Theme
Selected.Clear()