Skip to content
Browse files

.

  • Loading branch information...
1 parent 9a0f346 commit 79593c2571a7cc9608685487f455b44a3dcd35f1 @Palmik committed
View
63 log/access.log
@@ -344,3 +344,66 @@
127.0.0.1 - - [27/Mar/2011:14:09:48 +0200] "POST / HTTP/1.1" 302 0 "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
127.0.0.1 - - [27/Mar/2011:14:09:48 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
127.0.0.1 - - [27/Mar/2011:14:09:48 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:14:24:13 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:14:24:13 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:34:09 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:34:09 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:34:37 +0200] "POST / HTTP/1.1" 302 0 "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:34:37 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:34:37 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:36:40 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:36:40 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:37:02 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:37:02 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:37:02 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:37:02 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:37:06 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:37:08 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:39:20 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:39:20 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:39:24 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:39:24 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:41:05 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:41:05 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:41:07 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:41:07 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:41:43 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:41:43 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:43:58 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:43:58 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:44:08 +0200] "POST / HTTP/1.1" 302 0 "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:44:08 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:44:08 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:44:14 +0200] "POST / HTTP/1.1" 302 0 "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:44:14 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:16:44:14 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:19:03:09 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:19:03:09 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:20:51:33 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:20:51:33 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:06:37 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:06:37 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:06:43 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:06:43 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:07:52 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:07:52 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:07:58 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:07:58 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:09:12 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:09:12 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:09:16 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:09:16 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:09:18 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:09:18 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:11:11 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:11:11 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:11:17 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:11:17 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:11:17 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:11:17 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:12:22 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:12:22 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:17:53 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:21:17:53 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:22:31:18 +0200] "GET / HTTP/1.1" 200 - "http://0.0.0.0:8000/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
+127.0.0.1 - - [27/Mar/2011:22:31:18 +0200] "GET /favicon.ico HTTP/1.1" 404 3 - "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"
View
31 log/error.log
@@ -73,3 +73,34 @@
[27/Mar/2011:14:09:35 +0200] Server.httpServe: SHUTDOWN
[27/Mar/2011:14:09:35 +0200] Server.httpServe: BACKEND STOPPED
[27/Mar/2011:14:09:36 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:16:36:35 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:16:36:35 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:16:36:36 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:16:37:00 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:16:37:00 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:16:37:00 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:16:38:50 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:16:38:50 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:16:39:15 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:16:41:02 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:16:41:02 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:16:41:03 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:16:41:38 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:16:41:38 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:16:41:38 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:16:43:53 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:16:43:53 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:16:43:54 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:19:02:29 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:21:06:01 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:21:06:01 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:21:06:32 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:21:07:47 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:21:07:47 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:21:07:50 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:21:09:10 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:21:09:10 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:21:09:10 +0200] Server.httpServe: START (EventLoopSimple)
+[27/Mar/2011:21:11:13 +0200] Server.httpServe: SHUTDOWN
+[27/Mar/2011:21:11:13 +0200] Server.httpServe: BACKEND STOPPED
+[27/Mar/2011:21:11:15 +0200] Server.httpServe: START (EventLoopSimple)
View
9 resources/templates/add-paste-form.tpl
@@ -1,8 +1,15 @@
<form method="post">
<ul>
<li><input type="text" name="title"/></li>
- <li><textarea rows="15" cols="60" name="code"></textarea></li>
+ <li><textarea rows="15" cols="60" name="source-code"></textarea></li>
<li><textarea rows="5" cols="60" name="description"></textarea></li>
+ <li>
+ <select name="language">
+ <possible-languages>
+ <option value="$(lang-value)"><lang-name/></option>
+ </possible-languages>
+ </select>
+ </li>
<li><input type="submit" value="Paste!"/></li>
</ul>
</form>
View
9 resources/templates/full-paste.tpl
@@ -1,9 +1,12 @@
<div class="full-paste">
<h3><title/></h3>
- <div class="code">
- <code/>
- </div>
+ <pre class="$(language)">
+ <code>
+<source-code/>
+ </code>
+ </pre>
<div class="description">
<description/>
</div>
+ <span><language/></span>
</div>
View
11 resources/templates/pastes.tpl
@@ -3,16 +3,23 @@
<title>Echo Page</title>
</head>
<body>
+ <apply template="add-paste-form">
+ <bind tag="possible-languages">
+ <possible-languages/>
+ </bind>
+ </apply>
<div id="recent-pastes">
- <apply template="add-paste-form"/>
<recent-pastes>
<apply template="full-paste">
<bind tag="title"><title/></bind>
- <bind tag="code"><code/></bind>
+ <bind tag="source-code"><source-code/></bind>
<bind tag="description"><description/></bind>
<bind tag="language"><language/></bind>
</apply>
</recent-pastes>
</div>
+ <possible-languages>
+ <option value="$(lang-value)"><lang-name/></option>
+ </possible-languages>
</body>
</html>
View
30 src/Controller/Paste.hs
@@ -4,7 +4,9 @@
module Controller.Paste
( recentPastesSplice
+, singlePasteSplice
, addPasteHandler
+, possibleLanguagesSplice
) where
import qualified Data.Text as T
@@ -25,13 +27,33 @@ import Model.Utils
import Model.Paste
-pasteParts :: Paste -> [(T.Text, T.Text)]
+languageParts :: (Text, Text) -> [(Text, Text)]
+languageParts (n, v) = [ ("lang-name", n), ("lang-value", v) ]
+
+possibleLanguages :: [(Text, Text)]
+possibleLanguages = [ ("C++", "cpp")
+ , ("Haskell", "hs") ]
+
+possibleLanguagesSplice :: Splice Application
+possibleLanguagesSplice = do
+ pl <- return possibleLanguages
+ mapSplices (runChildrenWithText . languageParts) pl
+
+pasteParts :: Paste -> [(Text, Text)]
pasteParts p = map applyAndPack [ ("title", pasteTitle)
- , ("code", pasteCode)
+ , ("source-code", pasteCode)
, ("description", pasteDescription)
, ("language", pasteLanguage) ]
where applyAndPack (x, f) = (x, f p)
+singlePasteSplice :: ObjectId -> Splice Application
+singlePasteSplice pid = do
+ mp <- lift $ getPaste pid
+ case mp of
+ Nothing -> (return . (:[]) . X.TextNode) "404"
+ Just p -> runChildrenWithText $ pasteParts p
+
+
recentPastesSplice :: Splice Application
recentPastesSplice = do
ps <- lift getRecentPastes
@@ -40,9 +62,9 @@ recentPastesSplice = do
addPasteHandler :: Application ()
addPasteHandler = do
t <- getParam "title" >>= maybe (redirect "/") (return . T.decodeUtf8)
- c <- getParam "code" >>= maybe (redirect "/") (return . T.decodeUtf8)
+ c <- getParam "source-code" >>= maybe (redirect "/") (return . T.decodeUtf8)
d <- getParam "description" >>= maybe (redirect "/") (return . T.decodeUtf8)
- l <- return "cpp"
+ l <- getParam "language" >>= maybe (redirect "/") (return . T.decodeUtf8)
if (not $ any T.null [t, c, d, l]) then insertPaste $ paste t c d l else return ()
redirect "/"
View
10 src/Model/Paste.hs
@@ -7,9 +7,11 @@ module Model.Paste
( Paste(..)
, paste
, getRecentPastes
-, getRecentPastesDummy
+, getPaste
, pastesTable
, insertPaste
+
+, ObjectId
) where
import Control.Monad (liftM)
@@ -41,10 +43,8 @@ paste t c d l = Paste (RecKey Nothing) t c d l
getRecentPastes :: Application [Paste]
getRecentPastes = liftM fromDocList $ withDB' $ rest =<< (find (select [] "pastes") {sort = ["$natural" =: (-1 :: Int)]})
-getRecentPastesDummy :: Application [Paste]
-getRecentPastesDummy = return $ map (\ n -> paste (T.pack $ "Title " ++ show n) (T.pack $ content ++ ' ':show n) (T.pack $ description ++ ' ':show n) "cpp") [1..15]
- where content = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
- description = "In et felis nulla. Vivamus vitae feugiat nulla."
+getPaste :: ObjectId -> Application (Maybe Paste)
+getPaste pid = liftM (maybe Nothing fromDoc) $ withDB' $ findOne (select ["_id" =: pid] "pastes")
insertPaste :: Paste -> Application ()
insertPaste p = withDB' $ insertADT_ pastesTable p
View
7 src/Model/Utils.hs
@@ -10,6 +10,9 @@ module Model.Utils
import Control.Monad (liftM)
import Data.Maybe
+import qualified Data.Text.Encoding as T (decodeUtf8)
+import qualified Data.Text as T
+import Data.Text (Text)
import Snap.Extension.DB.MongoDB
import Snap.Extension.DB.MongoDB.Generics
@@ -29,3 +32,7 @@ insertManyADT c = insertMany c . map toDoc
insertManyADT_ :: (Regular a, ToDoc (PF a), DbAccess m) => Collection -> [a] -> m ()
insertManyADT_ c adts = insertManyADT c adts >> return ()
+-- recKeyToText :: RecKey -> Maybe Text
+-- recKeyToText (RecKey (Just x)) = Just (T.decodeUtf8 x)
+-- recKeyToText (RecKey (Nothing)) = Nothing
+
View
9 src/Site.hs
@@ -30,12 +30,17 @@ pastes = ifTop $ heistLocal (bindSplices pastesSplices) $ render "pastes"
where
pastesSplices =
[ ("recent-pastes", recentPastesSplice)
+ , ("possible-languages", possibleLanguagesSplice)
]
------------------------------------------------------------------------------
+-- | Render single paste
+
+------------------------------------------------------------------------------
-- | The main entry point handler.
site :: Application ()
-site = route [ ("/", methods [GET, HEAD] pastes)
- , ("/", method POST addPasteHandler)
+site = route [ ("/", methods [GET, HEAD] pastes)
+ , ("/", method POST addPasteHandler)
+ --, ("/paste/:pid" singlePaste)
]
<|> serveDirectory "resources/static"

0 comments on commit 79593c2

Please sign in to comment.
Something went wrong with that request. Please try again.