Permalink
Browse files

.

  • Loading branch information...
Palmik committed Mar 28, 2011
1 parent 9a0f346 commit 79593c2571a7cc9608685487f455b44a3dcd35f1
View
@@ -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
@@ -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)
@@ -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>
@@ -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>
@@ -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
@@ -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 "/"
Oops, something went wrong.

0 comments on commit 79593c2

Please sign in to comment.