IRC Logs

2008 10
Mo Tu We Th Fr Sa So
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

20. 10 2008

[00:04:09] * highwaychile has quit IRC
[00:07:32] * hoffmann has quit IRC
[00:40:05] * KirkMcDonald has quit IRC
[00:52:33] * KirkMcDonald has joined #pocoo
[01:00:33] * davidcramer has quit IRC
[01:20:01] * hoffmann_ is now known as hoffmann
[01:38:18] * ckknight has quit IRC
[01:38:29] * ckknight_ has joined #pocoo
[02:41:21] * davidcramer has joined #pocoo
[02:44:47] * davidcramer has quit IRC
[03:04:14] * hoffmann has quit IRC
[03:16:56] * ckknight_ is now known as ckknight
[03:34:00] * Kaelten has quit IRC
[05:19:24] * hoffmann has joined #pocoo
[05:20:05] * hoffmann has quit IRC
[05:20:21] * hoffmann has joined #pocoo
[06:38:04] * hoffmann has quit IRC
[07:04:17] * thatch has quit IRC
[07:08:47] * leche has joined #pocoo
[07:16:09] * izibi has joined #pocoo
[08:02:33] * leche has quit IRC
[08:15:36] * izibi has quit IRC
[09:26:01] * jpcw has joined #pocoo
[10:48:15] * grumpy has joined #pocoo
[11:33:51] * pete__c has quit IRC
[13:27:02] * grumpy has quit IRC
[14:04:04] * leifkb has quit IRC
[14:05:25] * leifkb has joined #pocoo
[14:12:24] * maix has joined #pocoo
[14:42:13] * ricardokirkner has joined #pocoo
[14:42:33] <ricardokirkner> hi. is this the best channel to ask questions about sphinx?
[14:46:19] <ronny> yeah
[14:46:40] <ronny> the author is birkenfeld
[14:46:47] <ricardokirkner> good. I am starting to write doc for my project, using docstrings, and using sphinx
[14:47:21] <ricardokirkner> I was wondering... is it possible to have sphinx recognize "inherited" docstrings?
[14:47:51] <ricardokirkner> I mean... I have a base class, fully documented... when I subclass it, do I have to copy-paste the docstrings for each method I override? or is itpossible to inherit the docstring?
[14:58:10] <ronny> ricardokirkner: new method needs new docstring, you could write a decorator that copyes it from the old method
[14:59:34] <ricardokirkner> ronny, ok... but if there is no automatic way of doing this, then I think it will make more sense to duplicate the docstring
[14:59:40] <ricardokirkner> thanks for the info
[15:17:34] <ricardokirkner> sorry.. another question... is there any 'best' conventions on how to specify arguments in docstrings?
[15:19:19] <ronny> there should be some examples somewhere
[15:19:32] <ronny> im not really worked into sphinx atm
[15:19:54] <ronny> i keep meaning to start writing pida documentation in sphinx since weeks, but i fail
[15:27:00] * stifal has joined #pocoo
[16:02:22] * [diecast] has quit IRC
[16:03:09] * [diecast] has joined #pocoo
[16:05:56] * ckknight has quit IRC
[16:15:01] * ckknight has joined #pocoo
[16:17:14] * izibi has joined #pocoo
[16:45:15] * thatch has joined #pocoo
[16:52:50] * lukasg has joined #pocoo
[16:55:38] <lukasg> Hi everybody... Before I'll implement it myself - has anyone already written a lexer for Apache log files?
[16:55:51] <lukasg> (..for pygments)
[17:13:59] <thatch> lukasg: yes, the alias is apacheconf
[17:14:47] <thatch> see http://pygments.org/docs/lexers/#lexers-for-non-source-code-file-types
[17:14:53] <mq> thatch: isn't that one for config files?
[17:16:06] <thatch> oh, you're right. I misread it.
[17:16:28] <thatch> I'm not aware of one for log files. What would it highlight?
[17:30:29] * EnTeQuAk has joined #pocoo
[17:39:32] <lukasg> thatch, the idea would be to colorize the different field
[17:39:36] <lukasg> *fields
[17:39:59] <lukasg> like IP address / hostname, request type, URL, referrer and User agent
[17:40:38] <lukasg> Since each of those field can contain different data type (int, date/time, host/ip, url, string), those could be nicely colored as well
[17:41:12] <lukasg> the command line tool CCZE does something like that, I'll dump a quick example somewhere
[17:41:58] <thatch> ok, brb
[17:42:00] * thatch is now known as thatch_work
[17:58:23] * highwaychile has joined #pocoo
[18:19:05] * _paneb has joined #pocoo
[18:20:09] * samueladam has joined #pocoo
[18:20:17] * samueladam has left #pocoo
[18:28:01] <_paneb> i have a genshi template which contains a form for creating a user. one field is a select box for a timezone (the options are from pytz.common_timezones). for some reason when the page loads, the submit button at the bottom does not appear until the select box is loaded with the timezones, and this takes almost 1-2 seconds
[18:28:53] <lukasg> thatch_work, in case you're interested, that's the kind of highlighting CCZE does: http://www.qpaste.org/tmp/apache_log.html
[18:30:30] <thatch_work> _paneb: did you mean to ask in #python-genshi ?
[18:30:48] <_paneb> thatch_work, i did not, but i didn't even know that channel existed - thanks :)
[18:31:52] <thatch_work> lukasg: so it's just highlighting fields, and bolding POST requests? such a generic lexer might be useful, with configurable words to highlight (the hard part would be making the formatter deal with Generic.Field1, etc, in a sane manner)
[18:34:24] <lukasg> exactly
[18:35:23] <lukasg> thatch_work, you definitely could go crazy with highlighting every detail, but I think already a log with only the fields colored would be much more readable
[18:44:33] * s0undt3ch has quit IRC
[19:06:27] * lakin has joined #pocoo
[19:34:18] * Zenom has quit IRC
[19:41:59] * zero-one has joined #pocoo
[19:47:45] * EnTeQuAk has quit IRC
[20:50:57] * EnTeQuAk has joined #pocoo
[21:06:03] * Zenom has joined #pocoo
[21:08:12] * lukasg has quit IRC
[21:20:30] * highwaychile has quit IRC
[21:31:30] * ricardokirkner has quit IRC
[21:34:51] * zekel has joined #pocoo
[21:53:50] * zekel has quit IRC
[22:18:48] * maix_ has joined #pocoo
[22:19:12] * maix has quit IRC
[22:19:18] * maix_ is now known as maix
[22:19:44] * stifal has quit IRC
[22:46:31] * EnTeQuAk has quit IRC
[22:49:53] * highwaychile has joined #pocoo
[22:52:22] * Kaelten has joined #pocoo
[22:53:41] * Kaelten has quit IRC
[22:54:04] * Kaelten has joined #pocoo
[22:58:47] * davidcramer has joined #pocoo
[23:10:10] * izibi has quit IRC
[23:18:11] * _paneb has quit IRC
[23:29:45] * zero-one_ has joined #pocoo
[23:34:37] * zero-one__ has joined #pocoo
[23:36:23] <CIA-43> Jinja 2: julien trunk * 589:f30b734ef52b /ext/django2jinja/django2jinja.py: Added support for variable name translations in django2jinja
[23:37:43] * zero-one_ has quit IRC
[23:45:11] * zero-one has quit IRC