From bdf07def671f221bbf505cb3a163234633264f85 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Fri, 16 Aug 2013 15:39:59 +0300 Subject: [PATCH] structure cleanups --- artwork/validation-error.svg | 8 ++--- doc/requirements.txt | 1 + src/handlers.py | 4 +-- src/server.py | 2 +- static/css/{home.css => main.css} | 0 static/img/validation-error.png | Bin 430 -> 419 bytes static/js/base-site.js | 56 +++++++++++++++++++++++++++++ static/js/base.js | 56 ----------------------------- templates/base-site.html | 1 + templates/base.html | 1 - templates/{home.html => main.html} | 2 +- 11 files changed, 66 insertions(+), 65 deletions(-) rename static/css/{home.css => main.css} (100%) create mode 100644 static/js/base-site.js rename templates/{home.html => main.html} (96%) diff --git a/artwork/validation-error.svg b/artwork/validation-error.svg index c140f3b..6c4d5da 100644 --- a/artwork/validation-error.svg +++ b/artwork/validation-error.svg @@ -27,9 +27,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="1" - inkscape:cx="12.498395" - inkscape:cy="8.3540951" + inkscape:zoom="11.390625" + inkscape:cx="-0.48299409" + inkscape:cy="28.256052" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" @@ -71,7 +71,7 @@ id="layer1" transform="translate(0,-1032.3622)"> diff --git a/doc/requirements.txt b/doc/requirements.txt index a146d4f..12bb981 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -6,3 +6,4 @@ ffmpeg motion nginx v4l-utils +smbclient diff --git a/src/handlers.py b/src/handlers.py index 889687f..cd84cbf 100644 --- a/src/handlers.py +++ b/src/handlers.py @@ -12,6 +12,6 @@ class BaseHandler(RequestHandler): self.finish(content) -class HomeHandler(BaseHandler): +class MainHandler(BaseHandler): def get(self): - self.render('home.html') + self.render('main.html') diff --git a/src/server.py b/src/server.py index 4a99e11..6c5507c 100644 --- a/src/server.py +++ b/src/server.py @@ -8,7 +8,7 @@ import template application = Application( [ - (r'^/$', handlers.HomeHandler), + (r'^/$', handlers.MainHandler), ], debug=settings.DEBUG, static_path=settings.STATIC_PATH, diff --git a/static/css/home.css b/static/css/main.css similarity index 100% rename from static/css/home.css rename to static/css/main.css diff --git a/static/img/validation-error.png b/static/img/validation-error.png index b67d5768b37cfcb8eb97cae4056105f791b4fa1f..57e02c39fa4bff7763e619f4951c9f64dbf8812d 100644 GIT binary patch delta 318 zcmV-E0m1&R1ET|wZhs(2L_t(Ijm?xzN&`UGL=P#_Hn{%J=rK%0Z32fP2s$n^t0ePbbZ%Km>#&Mg}&FAaQ*{~?BW2_n1rB) z@8*F;tWM~8)2>0A8mNuUuN01pmmUHnp`K8}jY%kT98bXBpiPa}v9^d|u9u@+uLSZs z7t#Q@UBL{OM$jz?LLf~#7cdCo;07c%nP=gQ44MBk%?O@u=DmBl@Bhb_nb9P!QMbP^+$n$D zb=7V~jLqm{oC6@15{uQE>D7mQ))}fe!^c<`1~))2(3=RZhkvQfYYlU=XG%vP;}XEc zJSyJlZ{dnz(cH8;GmrJE8{FQzH3E{w~XndmutK@Gy1;5L@LIw zY(hx$(_Gx<2B-VP6UiaEm0~~x8*5W0%Q!rV5yoz)$DdFveFYP<$an&>N->}Ta1sk& zVf1cCqtuRpw?c|vKm*`bYo + {% endblock %} {% block body %} diff --git a/templates/base.html b/templates/base.html index 7b55bf0..9cf8dfa 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,7 +15,6 @@ {% endblock %} diff --git a/templates/home.html b/templates/main.html similarity index 96% rename from templates/home.html rename to templates/main.html index ee88861..fd8a865 100644 --- a/templates/home.html +++ b/templates/main.html @@ -3,7 +3,7 @@ {% block style %} {{super()}} - + {% endblock %} {% block page_content %} -- 2.39.5