Remove zip with code already in the repository
Remove zip with code already in the repository

wiki.zip diff follow (wiki-z is the code extracted from zip file):

Common subdirectories: wiki-z/defaultpages and wiki/defaultpages
Only in wiki: Dockerfile
Only in wiki: .gitignore
Common subdirectories: wiki-z/macros and wiki/macros
Only in wiki: requirements.txt
Only in wiki: setup.py
Common subdirectories: wiki-z/static and wiki/static
Common subdirectories: wiki-z/tpl and wiki/tpl
diff -u wiki-z/wiki.py wiki/wiki.py
--- wiki-z/wiki.py	2011-01-29 09:26:39.000000000 +0100
+++ wiki/wiki.py	2015-07-12 15:17:19.533037955 +0200
@@ -10,8 +10,11 @@

 import macros

-text2html = Parser(create_dialect(creole11_base, macro_func=macros.dispatcher),
-        method="xhtml")
+text2html = Parser(
+    create_dialect(creole11_base, macro_func=macros.dispatcher),
+    method="xhtml"
+)
+

 class Wiki(object):

@@ -33,11 +36,15 @@
         self._cu.execute("SELECT COUNT() FROM pages WHERE name=?", (name,))
         row = self._cu.fetchone()
         if row[0]:
-            self._cu.execute("UPDATE pages SET text=? WHERE name=?",
-                    (text, name,))
+            self._cu.execute(
+                "UPDATE pages SET text=? WHERE name=?",
+                (text, name,)
+            )
         else:
-            self._cu.execute("INSERT INTO pages (name, text) VALUES (?, ?)",
-                    (name, text,))
+            self._cu.execute(
+                "INSERT INTO pages (name, text) VALUES (?, ?)",
+                (name, text,)
+            )
         self._cx.commit()

     def get(self, name, default=None):
@@ -45,6 +52,7 @@
         row = self._cu.fetchone()
         return row[0] if row else default

+
 class Root(Controller):

     db = Wiki("wiki.db")
@@ -59,8 +67,7 @@
         d = {}
         d["title"] = name
         d["version"] = circuits.__version__
-        d["menu"] = text2html(self.db.get("SiteMenu", ""),
-                environ=environ)
+        d["menu"] = text2html(self.db.get("SiteMenu", ""), environ=environ)

         text = self.db.get(name, "")
         s = open("tpl/%s.html" % action, "r").read()
@@ -76,4 +83,8 @@
         self.db.save(name, form.get("text", ""))
         return self.redirect(name)

-(Server(("0.0.0.0", 8000)) + Static(docroot="static") + Root() + Logger()).run()
+app = Server(("0.0.0.0", 9000))
+Static(docroot="static").register(app)
+Root().register(app)
+Logger().register(app)
+app.run()

eriol/circuits,nizox/circuits,eriol/circuits,eriol/circuits