skip folders that result in exceptions, forgotten style.css
authorterom
Mon, 17 Mar 2008 23:39:03 +0000
changeset 31 09776792a91c
parent 30 b1d5c32ab771
child 32 cc2d9db311c0
skip folders that result in exceptions, forgotten style.css
lib/folder.py
scripts/migrate_shorturls.py
www/style.css
--- a/lib/folder.py	Thu Jan 31 19:19:05 2008 +0000
+++ b/lib/folder.py	Mon Mar 17 23:39:03 2008 +0000
@@ -121,11 +121,14 @@
                 log.down(fname)
 
                 f = Folder(fname, self)
-
-                if f.index(next_filter) :   # recursion
-                    # if a subdir is alive, we are alive as well
-                    self.subdirs[fname] = f
-                    self.alive = True
+                
+                try :
+                    if f.index(next_filter) :   # recursion
+                        # if a subdir is alive, we are alive as well
+                        self.subdirs[fname] = f
+                        self.alive = True
+                except Exception, e :
+                    log.warning("skip - %s: %s" % (type(e), e))
 
                 log.up()
 
--- a/scripts/migrate_shorturls.py	Thu Jan 31 19:19:05 2008 +0000
+++ b/scripts/migrate_shorturls.py	Mon Mar 17 23:39:03 2008 +0000
@@ -51,4 +51,3 @@
 print "Done!"
 
 print "%d rows affected" % c
-
--- a/www/style.css	Thu Jan 31 19:19:05 2008 +0000
+++ b/www/style.css	Mon Mar 17 23:39:03 2008 +0000
@@ -5,7 +5,7 @@
 	font-size: small;
 }
 
-a {
+a, span.dragged {
 	color: #ff8800;
 	text-decoration: none;
 }
@@ -49,7 +49,7 @@
 }
 
 p#about {
-    padding-top: 50px;
+    padding-top: 40px;
     font-size: xx-small;
     text-align: center;
 
@@ -90,54 +90,135 @@
     background-color: #666666;
 }
 
-div#taggr {
+/* taggr */
+
+#taggr div#tags,
+#taggr div#images {
 	border: 1px solid #666666;
-
-    padding: 20px;
+    padding: 5px;
 }
 
-div#taggr ul {
+#taggr ul {
     margin: 0px;
     padding: 0px;
 }
 
-div#taggr li {
-	border-bottom: 1px solid #444444;
-
+#taggr li {
     padding: 10px;
 
     list-style-type: none;
-
-    text-align: center;
-}
-
-div#tagger span.thumb {
-    clear: both;
-}
-
-div#taggr span.inputs {
-    float: right;
 }
 
-div#taggr input {
-    margin: 5px;
-}
-
-div#taggr label {
-    float: left;
+#taggr div#tags {
+    max-height: 300px;
 
-    width: 150px;
-}
-
-div#taggr input.chk {
-    float: left;
-
-    width: 30px;
-    height: 30px;
-
-    border: 1px solid #000000;
-    
-    margin: auto;
+    overflow: auto;
 }
 
 
+#taggr div#tags table {
+    width: 100%;
+
+    border: none;
+    border-collapse: collapse;
+}
+
+#taggr div#tags tr {
+    height: 140px;
+}
+
+#taggr div#tags td {
+    border-top: 1px solid #444444;
+    border-bottom: 1px solid #444444;
+    padding: 3px;
+}
+
+#taggr div#tags td.tag {
+    width: 20%;
+
+    vertical-align: center;
+    text-align: center
+}
+
+#taggr div#tags td.tag ul {
+    margin: 0px;
+    padding: 0px;
+}
+
+#taggr div#tags td.tag li {
+    padding: 0px;
+    list-style-type: none;
+}
+
+#taggr div#tags td.tag_images {
+
+    text-align: left;
+    
+    height: 135px;
+    overflow: auto;
+}
+
+#taggr div#tags tr.hover {
+	background-color: #222222;
+}
+
+#taggr div#images {
+    max-height: 450px;
+    overflow: auto;
+
+    text-align: center;
+    font-weight: bold;
+}
+
+#taggr div#images ul {
+}
+
+#taggr div#images li {
+    padding: 0px;
+    margin-left: 10px;
+}
+
+#taggr div#images a {
+    display: block;
+    border: 1px solid #444444;
+
+    padding: 3px;
+}
+
+#taggr div#images div {
+    margin: 0px;
+    border: 1px solid #444444;
+}
+
+#taggr div#images div.images {
+//    max-height: 255px;
+    overflow: auto;
+    padding-top: 5px;
+    border: none;
+}
+
+img.image {
+    z-index: 800;
+}
+
+img.selection {
+	border: 1px solid #ffbb00;
+}
+
+#taggr div#toolbar ul {
+    margin: 0px;
+    padding: 0px;
+
+    line-height: 30px;
+    white-space: nowrap;
+}
+
+#taggr div#toolbar li {
+    list-style-type: none;
+    display: inline;
+}
+
+#taggr div#toolbar input {
+    background-color: #444444;
+    border: 1px solid #333333;
+}