Commits

Anonymous committed 3b5826e

per date view

  • Participants
  • Parent commits a67217e

Comments (0)

Files changed (6)

 *.swo
 *.zip
 *~
+local_settings.py
 
 dist
 docs/output

File irc_logs/irctest2.log

+2010-07-03T00:05:42  *** N30N has joined #pocoo
+2010-07-03T00:10:08  *** GrahamDumpleton has joined #pocoo
+2010-07-03T00:11:36  *** N30N has quit IRC
+2010-07-03T00:27:49  *** N30N has joined #pocoo
+2010-07-03T00:29:05  *** maix has joined #pocoo
+2010-07-03T00:30:41  *** maix has quit IRC
+2010-07-03T00:31:07  *** pombreda has left #pocoo
+2010-07-03T00:34:26  *** Ergo^ has quit IRC
+2010-07-03T00:34:40  *** lakin has quit IRC
+2010-07-03T00:38:39  *** ltbarcly has quit IRC
+2010-07-03T00:38:42  *** Ng has quit IRC
+2010-07-03T00:38:43  *** arkx_ has quit IRC
+2010-07-03T00:38:43  *** eugene has quit IRC
+2010-07-03T00:38:44  *** djc has quit IRC
+2010-07-03T00:38:44  *** leifkb has quit IRC
+2010-07-03T00:38:46  *** KirkMcDonald has quit IRC
+2010-07-03T00:38:46  *** apollo13 has quit IRC
+2010-07-03T00:38:47  *** mfandreas has quit IRC
+2010-07-03T00:38:48  *** plaes has quit IRC
+2010-07-03T00:38:48  *** dreimark has quit IRC
+2010-07-03T00:38:48  *** scooterXL has quit IRC
+2010-07-03T00:40:46  *** izibi has quit IRC
+2010-07-03T00:40:49  *** maze has quit IRC
+2010-07-03T00:40:50  *** encbladexp has quit IRC
+2010-07-03T00:40:51  *** dev has quit IRC
+2010-07-03T00:40:56  *** djc has joined #pocoo
+2010-07-03T00:40:58  *** N30N has quit IRC
+2010-07-03T00:41:30  *** KirkMcDonald has joined #pocoo
+2010-07-03T00:41:30  *** scooterXL has joined #pocoo
+2010-07-03T00:41:30  *** dreimark has joined #pocoo
+2010-07-03T00:41:30  *** plaes has joined #pocoo
+2010-07-03T00:41:30  *** mfandreas has joined #pocoo
+2010-07-03T00:41:30  *** apollo13 has joined #pocoo
+2010-07-03T00:41:30  *** leifkb has joined #pocoo
+2010-07-03T00:41:30  *** eugene has joined #pocoo
+2010-07-03T00:41:30  *** arkx_ has joined #pocoo
+2010-07-03T00:41:30  *** Ng has joined #pocoo
+2010-07-03T00:41:30  *** ltbarcly has joined #pocoo
+2010-07-03T00:41:30  *** izibi has joined #pocoo
+2010-07-03T00:41:30  *** maze has joined #pocoo
+2010-07-03T00:41:30  *** encbladexp has joined #pocoo
+2010-07-03T00:41:30  *** dev has joined #pocoo
+2010-07-03T00:41:47  *** danjac has left #pocoo
+2010-07-03T00:42:04  *** donri has quit IRC
+2010-07-03T00:42:06  *** donri has joined #pocoo
+2010-07-03T00:45:28  *** KirkMcDonald has quit IRC
+2010-07-03T00:45:28  *** KirkMcDonald has joined #pocoo
+2010-07-03T00:47:13  *** DasIch has joined #pocoo
+2010-07-03T00:48:35  *** flox has quit IRC
+2010-07-03T00:53:01  *** donri has quit IRC
+2010-07-03T00:54:12  <CIA-78> flask: Marcus Fredriksson master * rb2c7efd / flask.py : Typo - http://bit.ly/cxUi98 * http://github.com/mitsuhiko/flask/commit/b2c7efd0fabcc0514e27d03ed30f5f8af1de1065
+2010-07-03T00:55:59  *** whit has joined #pocoo
+2010-07-03T00:57:47  *** N30N has joined #pocoo
+2010-07-03T01:04:52  <process> mitsuhiko: I really appreciate that flask is all in one file. I often keep it open in a vim session and find it quite easy to navigate.
+2010-07-03T01:06:27  <process> mitsuhiko: perhaps having it all in one file serves as a secondary reminder to keep the code concise.
+2010-07-03T01:07:02  <process> mitsuhiko: my only gripe has been that the extensive commenting gets in the way of reading the source ;-)
+2010-07-03T01:09:45  *** whit has quit IRC
+2010-07-03T01:16:31  *** sjl has quit IRC
+2010-07-03T01:17:39  <mitsuhiko> yeah. a lof of comments in there :)
+2010-07-03T01:18:24  <mitsuhiko> i'll let the responses come in over night and evaluate tomorrow
+2010-07-03T01:18:26  <mitsuhiko> gn8 all
+2010-07-03T01:25:42  <process> good night
+2010-07-03T01:27:27  *** whit has joined #pocoo
+2010-07-03T01:28:44  <sabi> night.
+2010-07-03T01:28:47  *** lakin has joined #pocoo
+2010-07-03T01:29:45  <quuxman> hmm, back to the same problem I had yesterday
+2010-07-03T01:29:57  *** whit has quit IRC
+2010-07-03T01:31:48  <quuxman> every request produces the exception: TypeError: __init__() takes at most 2 arguments (3 given)
+2010-07-03T01:32:30  <process> quuxman: traceback?
+2010-07-03T01:32:44  <quuxman> (this is using werkzeug). My server is simply: run_simple('0.0.0.0', 5000, NotFound, use_reloader=True, use_debugger=True, static_files=static_content)
+2010-07-03T01:33:25  <quuxman> there's only one call in the traceback: File "/home/abram/hive-0.1/werkzeug/debug/__init__.py", line 76, in debug_application / app_iter = self.app(environ, start_response)
+2010-07-03T01:34:15  <quuxman> same problem if I remove the debugger and the static_files options
+2010-07-03T01:35:52  <process> what is the definition of __init__ on your app class?
+2010-07-03T01:36:29  <quuxman> my "app class" is NotFound
+2010-07-03T01:36:33  <process> oh, I see, you're using NotFound as your app?
+2010-07-03T01:36:33  <quuxman> is this not valid?
+2010-07-03T01:36:57  <process> no, it isn't valid
+2010-07-03T01:37:02  <quuxman> that explains that
+2010-07-03T01:37:37  <process> run_simple is trying to initialize your app (NotFound) as a WSGI app, which gets passed 'self', 'environ', and 'start_response' as arguments.
+2010-07-03T01:38:03  <process> NotFound is not a WSGI app, and its __init__ method only accepts two arguments, 'self' and something else, which is why you are getting the error
+2010-07-03T01:38:16  <process> 'self' and 'description'
+2010-07-03T01:38:30  <process> you can write a simple WSGI app that just raises NotFound
+2010-07-03T01:38:45  <quuxman> right. It would be something like...
+2010-07-03T01:39:11  <quuxman> @Request.application
+2010-07-03T01:39:22  <quuxman> def not_found(request): return NotFound
+2010-07-03T01:39:37  <quuxman> ?
+2010-07-03T01:42:58  <quuxman> oh, it's even simpler: run_simple('0.0.0.0', 5000, NotFound())
+2010-07-03T01:43:20  <quuxman> NotFound() returns a WSGI app
+2010-07-03T01:44:04  <process> cool
+2010-07-03T01:49:32  *** lakin has quit IRC
+2010-07-03T02:43:18  *** process has quit IRC
+2010-07-03T03:06:17  *** NamNT has joined #pocoo
+2010-07-03T03:26:04  *** NamNT has quit IRC
+2010-07-03T04:00:09  *** N30N has quit IRC
+2010-07-03T04:28:57  *** tlynn_ has quit IRC
+2010-07-03T04:36:56  *** orutherfurd_ has joined #pocoo
+2010-07-03T04:59:59  *** GrahamDumpleton has quit IRC
+2010-07-03T06:49:14  *** mr_amit has joined #pocoo
+2010-07-03T06:57:31  *** NamNT has joined #pocoo
+2010-07-03T07:26:00  *** plaes has quit IRC
+2010-07-03T07:28:48  *** ltbarcly has quit IRC
+2010-07-03T07:33:10  *** ltbarcly has joined #pocoo
+2010-07-03T07:38:36  *** ltbarcly has quit IRC
+2010-07-03T07:39:49  *** Arfrever has joined #pocoo
+2010-07-03T07:48:21  *** plaes has joined #pocoo
+2010-07-03T08:02:11  *** NamNT has quit IRC
+2010-07-03T08:29:16  *** tnm has joined #pocoo
+2010-07-03T08:29:23  *** tnm has quit IRC
+2010-07-03T08:29:23  *** tnm has joined #pocoo
+2010-07-03T09:33:25  *** benbangert has quit IRC
+2010-07-03T09:35:18  *** cofi has quit IRC
+2010-07-03T09:43:12  *** NamNT has joined #pocoo
+2010-07-03T09:54:31  *** EnTeQuAk has quit IRC
+2010-07-03T09:59:14  *** tnm has quit IRC
+2010-07-03T10:00:51  *** Eftarjin has joined #pocoo
+2010-07-03T10:09:39  *** Prak_OL has joined #pocoo
+2010-07-03T10:10:21  <Prak_OL> how to include the docstring of a method that is not in a class... but directly in a python file...
+2010-07-03T10:10:41  <NamNT> a method not in a class
+2010-07-03T10:10:42  <NamNT> hmm
+2010-07-03T10:10:47  <NamNT> how?
+2010-07-03T10:10:59  <NamNT> that question is a little bit confusing to me
+2010-07-03T10:11:59  <Prak_OL> i m given a python file to document using Sphinx... and it has three methods defined..
+2010-07-03T10:12:57  <NamNT> yes
+2010-07-03T10:12:59  <NamNT> and...?
+2010-07-03T10:13:12  <NamNT> oh, okay
+2010-07-03T10:13:18  <NamNT> i understand
+2010-07-03T10:13:31  <NamNT> you have 3 functions defined in a module
+2010-07-03T10:14:04  <Prak_OL> yaa..... and sorry but... i got it thru 'autofunction'
+2010-07-03T10:14:24  <Prak_OL> i have wrong in my terminology.... but thanks for help...
+2010-07-03T10:14:30  <Prak_OL> *been
+2010-07-03T10:19:35  <asmodai> birkenfeld: What's this anatoly's problem? o_O
+2010-07-03T10:20:26  *** Prak_OL has left #pocoo
+2010-07-03T10:20:32  <birkenfeld> asmodai: no idea...
+2010-07-03T10:21:02  <asmodai> birkenfeld: He's very adamant against changing it seems
+2010-07-03T10:25:51  <asmodai> birkenfeld: he's not a committer, is he?
+2010-07-03T10:26:22  <birkenfeld> nope
+2010-07-03T10:26:34  <asmodai> o_O
+2010-07-03T10:26:38  <birkenfeld> but he could well be, and nothing would be different
+2010-07-03T10:26:44  <birkenfeld> he never does anything but talk
+2010-07-03T10:26:49  <birkenfeld> and demand, mostly
+2010-07-03T10:27:21  <birkenfeld> "Do you want to contribute a patch?" -- "No time."
+2010-07-03T10:28:13  *** rick_h_ has quit IRC
+2010-07-03T10:28:15  *** rick_h_ has joined #pocoo
+2010-07-03T10:29:22  *** aliem has joined #pocoo
+2010-07-03T10:30:30  <asmodai> birkenfeld: heh
+2010-07-03T10:31:03  <CIA-78> Sphinx: birkenfeld * 3fed33465259 r2330 /sphinx/themes/basic/layout.html: Small logic fix to work around precedence bug in Jinja 2.1.x. * http://bitbucket.org/birkenfeld/sphinx/changeset/3fed33465259/
+2010-07-03T10:31:36  *** N30N has joined #pocoo
+2010-07-03T10:34:31  <mitsuhiko> birkenfeld: would you hack with me on a new logging module at europython?
+2010-07-03T10:35:09  <mitsuhiko> for performance reasons i consider writing parts of it in c as well
+2010-07-03T10:35:42  <mitsuhiko> +as in python
+2010-07-03T10:37:20  <birkenfeld> mitsuhiko: in principle yes, but is there no other good third-party logging module?
+2010-07-03T10:37:33  <birkenfeld> I remember seeing something based on generators, once?
+2010-07-03T10:37:44  <birkenfeld> ok, that might be slow :)
+2010-07-03T10:38:58  <mitsuhiko> birkenfeld: there is one that people hacked on at pycon, but that goes into the same direct as logging itself
+2010-07-03T10:39:07  <mitsuhiko> and then there is the py-lib one
+2010-07-03T10:39:25  <birkenfeld> which is strange I guess? ;)
+2010-07-03T10:39:30  <mitsuhiko> yep
+2010-07-03T10:40:02  <mitsuhiko> birkenfeld: my plan is to add an activatable bridge to the new logging module so whatever uses logging's loggers can transparently redirect into a new logging system without loggers
+2010-07-03T10:40:12  <mitsuhiko> (i think logger objects are not needed with a simpler architecture)
+2010-07-03T10:40:31  <birkenfeld> ok
+2010-07-03T10:40:34  <birkenfeld> well, sounds like fun
+2010-07-03T10:41:04  <mitsuhiko> great. then i will look at some logging usages until then and write down my findings :)
+2010-07-03T10:41:25  <mitsuhiko> birkenfeld: i wonder if i should file a bug report against logging.LoggerAdapter, but this pretty much sounds like a design issue to me
+2010-07-03T10:41:37  <mitsuhiko> (if LoggerAdapter is used, the context information is wrong because it points to the logger adapter)
+2010-07-03T10:41:41  <asmodai> Will it include the logging PEP?
+2010-07-03T10:43:29  <asmodai> omg: "What broke?" "Stupid glass." "Remind me to get smarter glasses."
+2010-07-03T10:57:04  <mitsuhiko> asmodai: logging pep?
+2010-07-03T10:59:04  *** mr_amit has quit IRC
+2010-07-03T10:59:25  <asmodai> Wasn't there some new logging pep about how to configure logging via some configuration format?
+2010-07-03T11:00:43  <mitsuhiko> asmodai: yeah, but my logging package would not have such a complex configuration system
+2010-07-03T11:01:28  <asmodai> oh ok
+2010-07-03T11:02:06  <mitsuhiko> the idea is that there are no loggers and i have yet to find something for the handlers
+2010-07-03T11:02:34  <mitsuhiko> the closest that comes to loggers is something like ctxlog = logbook.Context(...); ctxlog.warning()
+2010-07-03T11:02:52  <mitsuhiko> where ... is either a callable called to inject additional information into the log record or a dict with additional keys
+2010-07-03T11:03:30  * mitsuhiko is off now
+2010-07-03T11:17:02  *** EnTeQuAk_ has joined #pocoo
+2010-07-03T11:17:19  *** EnTeQuAk_ is now known as EnTeQuAk
+2010-07-03T11:29:21  *** Eftarjin has quit IRC
+2010-07-03T11:30:06  *** kamaze has joined #pocoo
+2010-07-03T11:44:40  <mitsuhiko> rofl: http://en.wikipedia.org/wiki/Asia_Carrera
+2010-07-03T11:45:12  <mitsuhiko> that is an interesting shift in career
+2010-07-03T11:48:10  <DasIch> mitsuhiko: she must be every nerds wet dream come true
+2010-07-03T12:03:59  *** loxs has joined #pocoo
+2010-07-03T12:22:41  *** hi has joined #pocoo
+2010-07-03T12:22:49  *** hi has left #pocoo
+2010-07-03T12:23:24  *** lwz has joined #pocoo
+2010-07-03T12:24:56  <DasIch> is there a python3-jinja2 package available for ubuntu somewhere?
+2010-07-03T12:27:15  <DasIch> or virtualenv for python3?
+2010-07-03T12:31:40  <lwz> the logo of flask really like -> http://www.student.gov.cn/zxkj/jjxy/images/2008/5/15/20085152B2C158BA1CD42729D3F8CDCDC5AB87A.jpg
+2010-07-03T12:34:53  <DasIch> lwz: it's similar but the logo is obviously a flask
+2010-07-03T12:36:23  *** tlynn_ has joined #pocoo
+2010-07-03T12:40:42  <moraes> http://www.istockphoto.com/file_thumbview_approve/12415285/2/istockphoto_12415285-magic-potions-set.jpg
+2010-07-03T12:42:01  *** cofi has joined #pocoo
+2010-07-03T12:47:12  <lwz> i know, the first impression is that
+2010-07-03T12:48:55  *** DasIch has left #pocoo
+2010-07-03T13:01:43  *** nullie has joined #pocoo
+2010-07-03T13:06:03  <mitsuhiko> one day i will reveal that i trolled you all and that thing is really a pepperoni
+2010-07-03T13:21:14  *** mr_amit has joined #pocoo
+2010-07-03T13:25:00  *** nullie has quit IRC
+2010-07-03T13:33:49  *** apollo13 has quit IRC
+2010-07-03T13:35:21  <sabi> hahaha
+2010-07-03T13:37:01  *** danjac has joined #pocoo
+2010-07-03T13:37:32  *** apollo13 has joined #pocoo
+2010-07-03T13:38:29  <lwz> hi sabi
+2010-07-03T13:40:01  <sabi> hello
+2010-07-03T13:42:28  <lwz> mitsuhiko: why not make "static_path" configurable?
+2010-07-03T13:44:46  *** danjac has left #pocoo
+2010-07-03T14:07:12  *** donmarten has joined #pocoo
+2010-07-03T14:09:03  *** maxpn has joined #pocoo
+2010-07-03T14:33:30  <mitsuhiko> lwz: there is a ticket for that
+2010-07-03T14:33:32  <mitsuhiko> that goes together with #33
+2010-07-03T14:33:34  <mitsuhiko> just have not yet figured out a way to do it properly
+2010-07-03T14:33:36  <mitsuhiko> lwz: btw, it is already configurable
+2010-07-03T14:33:38  <mitsuhiko> you just have to subclass Flask
+2010-07-03T14:41:34  *** cofi has quit IRC
+2010-07-03T14:44:00  *** kamaze has quit IRC
+2010-07-03T14:46:50  *** loxs has quit IRC
+2010-07-03T14:50:46  <lwz> mitsuhiko:So that
+2010-07-03T14:51:11  <lwz> thank
+2010-07-03T15:05:31  *** lwz has quit IRC
+2010-07-03T15:10:05  *** keppla has joined #pocoo
+2010-07-03T15:30:08  *** jessejmc has joined #pocoo
+2010-07-03T15:30:59  *** flox has joined #pocoo
+2010-07-03T15:33:35  *** mr_amit has quit IRC
+2010-07-03T15:49:57  *** keppla has quit IRC
+2010-07-03T15:53:44  *** nullie has joined #pocoo
+2010-07-03T15:59:37  *** DasIch has joined #pocoo
+2010-07-03T16:02:28  *** sjl has joined #pocoo
+2010-07-03T16:06:58  *** mcdonc has quit IRC
+2010-07-03T16:07:21  *** mcdonc has joined #pocoo
+2010-07-03T16:14:10  *** NamNT has quit IRC
+2010-07-03T16:48:58  *** danjac has joined #pocoo
+2010-07-03T16:53:43  *** NamNT has joined #pocoo
+2010-07-03T16:56:24  *** nullie has quit IRC
+2010-07-03T17:16:43  *** severb has joined #pocoo
+2010-07-03T17:19:10  *** whit has joined #pocoo
+2010-07-03T17:21:45  *** whit has quit IRC
+2010-07-03T17:30:54  *** nullie has joined #pocoo
+2010-07-03T17:43:14  *** nullie has quit IRC
+2010-07-03T17:43:51  *** mcdonc has quit IRC
+2010-07-03T17:43:57  *** mcdonc has joined #pocoo
+2010-07-03T17:49:11  *** mcdonc has quit IRC
+2010-07-03T17:49:33  *** mcdonc has joined #pocoo
+2010-07-03T18:05:13  *** benbangert has joined #pocoo
+2010-07-03T18:08:57  *** _P_ has quit IRC
+2010-07-03T18:18:43  *** ddunbar has quit IRC
+2010-07-03T18:22:41  *** NamNT has quit IRC
+2010-07-03T18:23:12  *** ddunbar has joined #pocoo
+2010-07-03T18:25:13  <danjac> Gah, android programming on eclipse is slow. Actually had time to make coffee while the emulator was warming up.
+2010-07-03T18:25:59  *** maxpn has quit IRC
+2010-07-03T18:53:00  <aa_> eclipse lives in an alternate space-time continuum
+2010-07-03T18:53:10  <moraes> sometimes close it and start again. it goes faster. go figure.
+2010-07-03T18:53:21  <moraes> it is not eclipse fault the emulator.
+2010-07-03T18:53:33  <aa_> moraes: hahah, by the way
+2010-07-03T18:53:46  <moraes> messi!
+2010-07-03T18:54:17  <moraes> german is champion. doubt other will take from them.
+2010-07-03T18:54:21  <moraes> *germany
+2010-07-03T18:54:32  <aa_> moraes: they are doing too well too soon
+2010-07-03T18:55:14  <moraes> well. i'd prefer a south american, but paraguay & uruguay already went too far.
+2010-07-03T18:55:23  <moraes> but. well. i also prefer holland.
+2010-07-03T18:55:55  <aa_> I don't really cafre who wins
+2010-07-03T18:56:02  <moraes> i do :)
+2010-07-03T18:56:20  <moraes> it'd be nice to see holland win one.
+2010-07-03T18:56:24  <aa_> true
+2010-07-03T18:56:40  <aa_> spain too
+2010-07-03T18:56:44  <moraes> yep
+2010-07-03T18:57:29  <aa_> I play football every week, and I notice the more football I watch on TV, the better my play becomes
+2010-07-03T18:57:30  <moraes> uruguay game was very nice, did you watch?
+2010-07-03T18:57:34  <aa_> yes
+2010-07-03T18:57:40  <moraes> man what was that :)
+2010-07-03T18:57:48  <aa_> I had a bet on ghana to readh the semi, I would have won 75£
+2010-07-03T18:58:07  <moraes> la mano de dios
+2010-07-03T18:58:13  <aa_> indeed
+2010-07-03T18:58:19  <moraes> it was awesome
+2010-07-03T18:58:31  <aa_> what? that was such cheating by suarez
+2010-07-03T18:58:46  <aa_> typical south american
+2010-07-03T18:58:49  <moraes> but exciting
+2010-07-03T18:58:50  <moraes> i knew they would win on penaltis. ghana has much worst shooters.
+2010-07-03T18:59:05  <aa_> yeah
+2010-07-03T18:59:12  <moraes> aa_, not tru. i mean, in his position, it was the only thing to do.
+2010-07-03T19:00:04  <aa_> yeah, maybe :P
+2010-07-03T19:00:05  <moraes> was fun anyway... both played well... tried a lot. brazil was a joke.
+2010-07-03T19:00:18  <aa_> yeah
+2010-07-03T19:00:21  <moraes> and germany totally neutralized argentina.
+2010-07-03T19:00:22  <aa_> england was a worse joke
+2010-07-03T19:00:44  <moraes> argentina wasn't a joke. they tried. germany is good.
+2010-07-03T19:00:50  <aa_> well france and italy were the worst hahaha!
+2010-07-03T19:01:21  <moraes> :)
+2010-07-03T19:01:26  <moraes> they always are
+2010-07-03T19:01:38  <moraes> italy only win on luck
+2010-07-03T19:02:50  <moraes> only one champion is left. cup is much less fun now.
+2010-07-03T19:04:01  <moraes> but i'll watch spain today
+2010-07-03T19:04:02  <moraes> :P
+2010-07-03T19:05:40  *** nullie has joined #pocoo
+2010-07-03T19:07:29  <aa_> moraes: I'll be cheering spain, great team]
+2010-07-03T19:07:39  <aa_> man, I like that player villa
+2010-07-03T19:14:19  *** nullie has quit IRC
+2010-07-03T19:16:49  *** nullie has joined #pocoo
+2010-07-03T19:24:01  *** empty has joined #pocoo
+2010-07-03T19:27:49  *** Ghirai has joined #pocoo
+2010-07-03T19:27:55  *** cofi has joined #pocoo
+2010-07-03T19:29:27  *** jessejmc has left #pocoo
+2010-07-03T19:29:40  *** inubu has joined #pocoo
+2010-07-03T19:29:52  *** inubu has left #pocoo
+2010-07-03T19:35:00  *** moraes has quit IRC
+2010-07-03T19:39:14  *** whit has joined #pocoo
+2010-07-03T19:42:35  *** keppla has joined #pocoo
+2010-07-03T19:42:59  *** whit_ has joined #pocoo
+2010-07-03T19:43:50  *** kamaze has joined #pocoo
+2010-07-03T19:45:28  *** whit has quit IRC
+2010-07-03T19:45:32  *** whit_ is now known as whit
+2010-07-03T19:46:56  *** moraes has joined #pocoo
+2010-07-03T19:51:15  *** whit has quit IRC
+2010-07-03T19:52:04  *** empty has quit IRC
+2010-07-03T19:52:05  *** whit has joined #pocoo
+2010-07-03T19:59:02  *** whit_ has joined #pocoo
+2010-07-03T20:01:16  *** whit has quit IRC
+2010-07-03T20:01:17  *** whit_ is now known as whit
+2010-07-03T20:12:09  *** empty has joined #pocoo
+2010-07-03T20:12:30  *** donri has joined #pocoo
+2010-07-03T20:12:43  *** empty has quit IRC
+2010-07-03T20:25:12  *** Shyde has joined #pocoo
+2010-07-03T20:27:17  *** whit has quit IRC
+2010-07-03T20:27:39  *** whit has joined #pocoo
+2010-07-03T20:36:01  *** Eftarjin has joined #pocoo
+2010-07-03T20:38:09  *** cofi has quit IRC
+2010-07-03T20:41:15  *** cofi has joined #pocoo
+2010-07-03T20:43:33  *** sebner has joined #pocoo
+2010-07-03T20:50:11  *** nullie has quit IRC
+2010-07-03T21:27:47  *** whit has quit IRC
+2010-07-03T21:31:59  *** whit has joined #pocoo
+2010-07-03T21:38:16  *** Eftarjin has quit IRC
+2010-07-03T21:43:16  *** arkx_ has quit IRC
+2010-07-03T21:44:38  *** arkx_ has joined #pocoo
+2010-07-03T21:50:39  *** whit has quit IRC
+2010-07-03T21:51:39  *** oaror has quit IRC
+2010-07-03T21:59:15  *** empty has joined #pocoo
+2010-07-03T22:04:16  *** oaror has joined #pocoo
+2010-07-03T22:04:25  *** nosklo has quit IRC
+2010-07-03T22:07:16  *** Eftarjin has joined #pocoo
+2010-07-03T22:18:53  *** ddunbar has quit IRC
+2010-07-03T22:21:33  *** zeeg[nibbits] has joined #pocoo
+2010-07-03T22:23:17  *** ddunbar has joined #pocoo
+2010-07-03T22:24:15  *** whit has joined #pocoo
+2010-07-03T22:29:30  *** Eftarjin has quit IRC
+2010-07-03T22:37:56  *** sebner has quit IRC
+2010-07-03T22:45:40  <mitsuhiko> hey all
+2010-07-03T22:47:04  <zeeg[nibbits]> yo

File irc_reader/irc_parser.py

                 self.nick = self.nick[1:-1]
             else:
                 self.nick = ''
-
+            self.nick = self.nick
             self.msg = " ".join(msg[2:])
         else:
             self.date = self.nick = self.msg = None

File irc_reader/models.py

 
     query_class = MessageQuery
     
-    __mapper_args__ = {'order_by' : date.desc()}
+    __mapper_args__ = {'order_by' : date.asc()}
 
     def __str__(self):
         return "%s:%s" % (self.nick, self.message)

File irc_reader/templates/date.html

+{% extends "layout.html" %}
+{% from "_pagination.html" import paginate %}
+{% block content %}
+<h2><a href="{{ url_for('channel', channel_id=channel.id) }}">{{ channel }}</a></h2>
+        <ul class="messages">
+        {% for message in page_obj.items %}
+        <li>{{ message.date.strftime("%d-%m-%Y %H:%M") }} 
+        <strong><a href="{{ url_for('nick', nick=message.nick) }}">{{ message.nick }}</a></strong>
+        {{ message.message }}</li>
+        {% endfor %}
+    </ul>
+    {{ paginate(page_obj, page_url) }}
+{% endblock %}

File parse_irc_logs.py

 import glob
 import os
+import codecs
 
 import settings
 
 
         for filename in glob.glob(os.path.join(dirname, "*.log")):
             
-            for irc_msg in parse_irc(open(filename)):
+            for irc_msg in parse_irc(codecs.open(filename, 'UTF-8')):
                 match = [msg for msg in channel.messages if \
                     msg.date == irc_msg.date]
                 if not match: