2007-12-04T00:05:59  <ThomasWaldmann> look at how it works
2007-12-04T00:06:09  <ThomasWaldmann> if it doesnt look for language hints, forget it
2007-12-04T00:07:26  <tuxella> ThomasWaldmann, are you confident in Mozilla's way of guessing encoding ?
2007-12-04T00:09:35  <tuxella> yes, it uses langage to guess the charset
2007-12-04T00:09:54  <tuxella> it's a pure python port of the Mozilla's algorithm
2007-12-04T00:12:23  <ThomasWaldmann> well, we (you :) have to try :)
2007-12-04T00:12:34  <tuxella> done :)
2007-12-04T00:12:43  <ThomasWaldmann> see filter/text.py for the current stuff
2007-12-04T00:13:04  <tuxella> hehe, i'm doing research or writting filters then ?
2007-12-04T00:13:14  <tuxella> :p
2007-12-04T00:15:48  <ThomasWaldmann> that's more research (we can use it for a filter later)
2007-12-04T00:16:28  <tuxella> ThomasWaldmann, because at the moment including it into the text.py is barely 2 lines
2007-12-04T00:16:58  <tuxella> maybe 4 if you want to check the confidence is greater than a seil
2007-12-04T00:24:36  <tuxella> just added a little example of use on the wiki page
2007-12-04T00:25:03  <tuxella> ThomasWaldmann, don't need header for a snippet of this size, do I ?
2007-12-04T00:28:43  <tuxella> ThomasWaldmann, was you you told me to add a link on the ghoc's issue's page to the wiki page ?
2007-12-04T00:37:01  <tuxella> i'm off to bed
2007-12-04T00:37:07  <tuxella> gn8
2007-12-04T00:37:15  * tuxella is away: I'm busy
2007-12-04T01:04:58  <dreimark> gn
2007-12-04T01:51:24  * veerz is away: sleeping
2007-12-04T08:56:41  <grzywacz> xorAxAx, 76 looks good to me
2007-12-04T08:56:46  <grzywacz> erm
2007-12-04T08:56:48  <grzywacz> 67
2007-12-04T09:00:21  <grzywacz> Ok, but I'd like him to fix it in xmlrpcbot as well ;)
2007-12-04T09:10:19  * ThomasWaldmann also added a small comment
2007-12-04T09:21:58  <grzywacz> bbl
2007-12-04T10:52:12  <grzybacz> re
2007-12-04T10:58:04  <dreimark> moin
2007-12-04T11:24:15  <cb22> wow, after browsing the web without adblockplus, you realize how full of crap it is!
2007-12-04T11:38:03  <cb22> ThomasWaldmann: i've figured out the utime issue! added another patch to issue 41
2007-12-04T11:39:40  <cb22> and guess what... its 0.3kb smaller again
2007-12-04T11:39:41  <cb22> go figure
2007-12-04T12:16:10  <ThomasWaldmann> cb22: d.clear()? what's the difference to do = {}?
2007-12-04T12:16:17  <ThomasWaldmann> d = ...
2007-12-04T12:17:46  <TheSheep> ThomasWaldmann: d = {} doesn't affect other names bound to that object
2007-12-04T12:18:40  <ThomasWaldmann> ah, right. but maybe it is much faster?
2007-12-04T12:20:51  * cb22 tests
2007-12-04T12:21:40  <ThomasWaldmann> hmm, i guess this .clear() effect is not even wanted for that case.
2007-12-04T12:22:04  <ThomasWaldmann> so maybe better just use = {}
2007-12-04T12:22:21  <ThomasWaldmann> does the patch apply to 1.6 and 1.7?
2007-12-04T12:22:28  <ThomasWaldmann> brb
2007-12-04T12:23:23  <cb22> ThomasWaldmann: applies cleanly to 1.6
2007-12-04T12:23:35  <cb22> i havent tried 1.7 yet
2007-12-04T12:37:03  <ThomasWaldmann> oops, JH was missing :D
2007-12-04T12:37:31  <ThomasWaldmann> (that was his own fault, he wrote that readme and didnt credit himself :D )
2007-12-04T12:39:30  <cb22> ThomasWaldmann: performance wise, no difference
2007-12-04T12:41:01  <cb22> must i try the patch on 1.7?
2007-12-04T12:42:37  <ThomasWaldmann> if it applies cleanly to 1.7, i guess you don't need to test it
2007-12-04T12:43:09  <cb22> yep
2007-12-04T13:43:07  <blinx> moin
2007-12-04T13:43:24  <blinx> ThomasWaldmann: how was my patch?
2007-12-04T13:53:32  <cb22> ThomasWaldmann: the patch does not apply cleanly to 1.7, must i sort it out?
2007-12-04T13:54:50  <ThomasWaldmann> cb22: that would be nice
2007-12-04T14:28:35  <blinx> ThomasWaldmann: ping
2007-12-04T14:30:16  * ThomasWaldmann is busy
2007-12-04T14:30:43  <blinx> kk :)
2007-12-04T14:30:55  <blinx> I only wanted your status :)
2007-12-04T14:31:58  <xorAxAx> blinx: please use the tracker at google for that
2007-12-04T14:32:24  <blinx> kk
2007-12-04T14:46:57  * blinx commented issue 37
2007-12-04T15:07:18  <ThomasWaldmann> dreimark: see my comment on the soc 2007 subpage
2007-12-04T15:16:07  <dreimark> ThomasWaldmann: ready
2007-12-04T15:16:15  * dreimark needs a coffee now
2007-12-04T15:19:00  <ThomasWaldmann> dreimark: thanks, looks like we have a new server soon :)
2007-12-04T15:19:21  <ThomasWaldmann> ffesti: can you comment there, too?
2007-12-04T15:22:57  <ffesti> URL?
2007-12-04T15:35:46  <dreimark> see query
2007-12-04T15:35:49  <dreimark> ffesti:
2007-12-04T15:54:00  <cb22> ThomasWaldmann: 1.7 patch up! as well as a slight modification to the 1.6 patch, like you said using = {} instead of .clear()
2007-12-04T16:02:38  <dreimark> arrgh server time out at the time when the lock state is not changed from a page
2007-12-04T16:03:47  <ffesti> added my 2 Cent
2007-12-04T16:10:44  <rafael> ThomasWaldmann: can i make something like {{attachement:hcard.html content: hcard}} (or replace content with parser_to_use or something..)
2007-12-04T16:39:11  <xorAxAx> rafael: if your parser defines the mimetypes etc. correctly, it should work (if thomas didnt break it :))
2007-12-04T16:39:16  <xorAxAx> s/mimetypes/file exts/
2007-12-04T16:39:50  <rafael> xorAxAx: well, the file ext for hcard is html..
2007-12-04T16:47:46  <dreimark> bbl
2007-12-04T16:47:59  <xorAxAx> rafael: ok, thats bad, maybe ThomasWaldmann knows about other automatic dispatch features because he added a lot of mimetype stuff everyhwere
2007-12-04T17:07:49  <xorAxAx> grzybacz: please have a look at http://code.google.com/p/google-highly-open-participation-moinmoin/issues/detail?id=67
2007-12-04T17:14:08  * xorAxAx does a review of all tasks to see which of those need a reminder that the time will end tomorrow
2007-12-04T17:16:23  <ninnnu> Could you fix the typo in #59's claim"ownership" on the same if you happen to check that too... Last time I checked, my nick was ninnnu, not ninnu (or am I going to get 2 t-shirts now? :P)...
2007-12-04T17:20:50  <cb22> xorAxAx, what do you mean in your comment?
2007-12-04T17:21:25  <xorAxAx> wrt the unittest?
2007-12-04T17:21:32  <cb22> yep
2007-12-04T17:21:36  <ThomasWaldmann> ffesti: thanks :)
2007-12-04T17:21:42  <cb22> what must i creat a test for?
2007-12-04T17:21:50  <starshine> hey, I didn't know we wanted a poster.  you guys should have said so :P
2007-12-04T17:23:21  <xorAxAx> cb22: a test that fails with the old code and runs with your new code :)
2007-12-04T17:23:30  <xorAxAx> should be rather easy because the old code was broken
2007-12-04T17:23:40  <ThomasWaldmann> ok, looks like we'll have a new machine soon for better redundancy / performance of moinmo.in :)
2007-12-04T17:23:59  <starshine> ThomasWaldmann: so we can use the new wikisync features? :)
2007-12-04T17:24:31  <cb22> ah, so make a test that changes a username, tries to login with the old one, and if it can, test failed?
2007-12-04T17:24:31  <ThomasWaldmann> starshine: not sure if that is the best for that application, maybe rather some low-level rsync
2007-12-04T17:24:43  <cb22> i've never used *tests before
2007-12-04T17:24:47  * cb22 reads
2007-12-04T17:25:07  <starshine> I know what non-programmers ... or very deep programmers... keep thinking when they hear that wikis can sync
2007-12-04T17:25:33  <starshine> they think both can be live and they'll merge pages back to each other, which sounds to me, very easy to screw up
2007-12-04T17:27:02  <xorAxAx> cb22: i think just calling the get user by name whatever function instead of logging in is best
2007-12-04T17:27:08  <xorAxAx> easiest i mean
2007-12-04T17:27:11  <cb22> ah right
2007-12-04T17:27:37  <cb22> so, create user x, rename user x to user y, attempt name2id with user x?
2007-12-04T17:27:43  <cb22> cleanup: delete user x
2007-12-04T17:28:13  <cb22> where x is a randomly generated username that does not exist?
2007-12-04T17:29:32  <xorAxAx> cb22: for example. and dont access name2id directly but use this get... function
2007-12-04T17:30:06  <cb22> yeah, getUserId()
2007-12-04T17:30:14  <cb22> ok, i think i know how to do this
2007-12-04T17:30:30  <cb22> MoinMoin/script/account/* should help
2007-12-04T17:30:35  <xorAxAx> ok, the spanish student hasnt done anything yet, we will have to open his task again if he doesnt do it the whole day tomorrow :)
2007-12-04T17:30:45  <xorAxAx> ninnnu: yes, a typo by ThomasWaldmann
2007-12-04T17:31:18  <xorAxAx> cb22: no, MoinMoin/_tests should help
2007-12-04T17:31:30  <xorAxAx> and then you do py.test yourtestfile.py
2007-12-04T17:31:45  <xorAxAx> (but i guess you can just add your testing function in an existing file)
2007-12-04T17:32:04  <cb22> ah, nice
2007-12-04T17:32:16  <xorAxAx> you need to install the pylib
2007-12-04T17:32:19  <xorAxAx> beforehand
2007-12-04T17:32:26  <cb22> yep, installing
2007-12-04T17:33:36  * ThomasWaldmann ordered a DS5000 at Hetzner
2007-12-04T17:35:40  <johill> ThomasWaldmann: that bug report.. I think it's invalid
2007-12-04T17:36:26  <cb22> so i should just create a TestChangedLogin class in test_user.py? that looks right to me
2007-12-04T17:40:09  <ThomasWaldmann> johill: maybe it was only a documentation problem
2007-12-04T17:40:29  <johill> the steps to reproduce are incomplete. I'll have to wait until the reporter gets back to me
2007-12-04T17:44:56  <xorAxAx> cb22: yes, or a simple function if that is less to type (it would get a first parameter called request)
2007-12-04T17:52:43  <grzybacz> xorAxAx: from home :)
2007-12-04T17:55:35  <ninnnu> Is the draw()-function ever used in stats-macros?
2007-12-04T17:58:57  <rafael> ThomasWaldmann: idea to my problem?
2007-12-04T18:01:38  <ThomasWaldmann> rafael: i don't see a way currently when it can't detect mimetype by extension
2007-12-04T18:02:12  <ThomasWaldmann> rafael: maybe find out how hcards are named by windows users :)
2007-12-04T18:02:45  <rafael> ThomasWaldmann: i think simple .html... but a content-type attr in attachement is not possible?
2007-12-04T18:04:41  <tuxella> re all
2007-12-04T18:04:43  * tuxella is back (gone 17:27:29)
2007-12-04T18:05:27  <ThomasWaldmann> rafael: the parser is decided before looking at the content
2007-12-04T18:05:50  <ThomasWaldmann> rafael: doing something different would need some core code change in moin (and someone doing it :)
2007-12-04T18:06:43  <rafael> ThomasWaldmann: the parser could be defined with an arg i mean
2007-12-04T18:08:12  <ThomasWaldmann> rafael: some day, when we have a sane storage backend with metadata, it will just get it from the metadata
2007-12-04T18:09:44  <rafael> ThomasWaldmann: but what can i do to get a hcard parser used?
2007-12-04T18:09:49  <rafael> + today
2007-12-04T18:10:23  <ThomasWaldmann> rafael: well, if noone else has a better idea, how about *.hcf? X)
2007-12-04T18:11:21  <rafael> ThomasWaldmann: hm yes, but i think that this is not nice. i think the simplest solution is [[hcard(file)]] but you said that this is not so good
2007-12-04T18:12:11  <ThomasWaldmann> you could also use *.hcard (not fundamentally better, though)
2007-12-04T18:12:34  <ThomasWaldmann> if you do it as a macro, you have to reinvent some wheels we already have
2007-12-04T18:13:55  <rafael> how you mean this?
2007-12-04T18:14:51  <ThomasWaldmann> the attachment stuff already offers upload/download interface
2007-12-04T18:15:11  <ThomasWaldmann> parsers are used by moin to parse stuff (and call the formatter for output)
2007-12-04T18:15:38  <ThomasWaldmann> so it is a bit unnatural to have a macro parse a file attachment
2007-12-04T18:16:22  <rafael> ThomasWaldmann: hm i'll try the macro thing. but then i still need the parser, right?
2007-12-04T18:17:16  <ThomasWaldmann> are you finished with vcf already?
2007-12-04T18:17:40  <rafael> no :|
2007-12-04T18:17:53  <ThomasWaldmann> so why don't you start with the easier thing? :)
2007-12-04T18:20:12  <rafael> because i would make both consistent
2007-12-04T18:20:43  <ThomasWaldmann> rafael: btw, moin 1.6 has a safe html parser. you could try what happens if you feed it with a hcard
2007-12-04T18:39:39  <tuxella> ThomasWaldmann, do you have a last idea of file format I could add to the wiki page or should I just add a link to the page as a comment to the issue on the google page to enable you to close it ?
2007-12-04T18:46:40  <ThomasWaldmann> tuxella: you could do some non-ascii test for UniversalDetector, e.g. a file in iso-8859-1 encoding and another in iso-8859-other encoding
2007-12-04T18:47:05  <ThomasWaldmann> also, if you did not specify "not pure python", does that mean "pure python"?
2007-12-04T18:47:28  <ThomasWaldmann> for the file format, I am out of ideas. if noone else has an idea, you're done.
2007-12-04T18:48:21  <ThomasWaldmann> (at the end, you have to submit your work to the google tracker)
2007-12-04T18:48:50  <tuxella> ThomasWaldmann, for which file format are you talking about pure python ?
2007-12-04T18:49:06  <ThomasWaldmann> for all where it is not specified
2007-12-04T18:49:18  <tuxella> yes it is
2007-12-04T18:49:36  <ThomasWaldmann> (btw, pure python means no C parts that need to get compiled)
2007-12-04T18:49:38  <tuxella> in the way "if i didn't precise so they are not pure python"
2007-12-04T18:49:56  <ThomasWaldmann> ?
2007-12-04T18:50:08  <ThomasWaldmann> maybe just specify it
2007-12-04T18:50:11  <tuxella> ok
2007-12-04T18:55:54  <cb22> hmm, in my test class, how do i 'negativly assert' if there is such a thing?
2007-12-04T18:56:07  <cb22> ie, if theUser.valid() == False / 0 then PASS not FAIL
2007-12-04T18:56:21  <xorAxAx> assert theUser.valid()
2007-12-04T18:56:35  <cb22> xorAxAx: yeah, but that happens if it is true
2007-12-04T18:56:44  <cb22> i want something like assert theUser.invalid()
2007-12-04T18:57:23  <xorAxAx> cb22: assert not theUser.valid()
2007-12-04T18:57:40  <cb22> ty
2007-12-04T18:58:10  <cb22> ok, my patched version passes the test, lets try with unpatched
2007-12-04T19:00:34  <cb22> yay! it fails!
2007-12-04T19:01:44  <xorAxAx> cool
2007-12-04T19:02:10  <cb22> generating diff
2007-12-04T19:07:31  <cb22> ok, patch is up
2007-12-04T19:08:16  <tuxella> ThomasWaldmann, to summit my work to the google tracket, I just need to add a comment in which I give the dresse of the wiki page ?
2007-12-04T19:09:17  <ThomasWaldmann> tuxella: wiki pages change over time, better use action=raw and attach a raw copy of the page to the tracker (or action=print and a html copy)
2007-12-04T19:09:46  <ThomasWaldmann> cb22: great :)
2007-12-04T19:09:56  <tuxella> ok
2007-12-04T19:10:00  <cb22> 1.6, 1.7 and test
2007-12-04T19:14:30  <xorAxAx> cool
2007-12-04T19:14:56  <ThomasWaldmann> btw, I guess I will update i18n strings late this night
2007-12-04T19:15:04  <tuxella> ThomasWaldmann, that's OK, i've had a comment with the file on the google tracker :)
2007-12-04T19:15:19  <ThomasWaldmann> that means that work done up to now gets into the moin repository
2007-12-04T19:15:34  <ThomasWaldmann> and new strings from the source code get onto the master wiki
2007-12-04T19:18:45  <xorAxAx> ThomasWaldmann, TheSheep: is the chaos on thememarket restored again?
2007-12-04T19:18:50  <xorAxAx> or are still files missing?
2007-12-04T19:19:52  <xorAxAx> ah, it was TheSheep splitting the page
2007-12-04T19:20:01  <xorAxAx> but then the question is where the anonymous edits came from
2007-12-04T19:22:29  <cb22> if task41.fine():
2007-12-04T19:22:38  <cb22>    askForSuggestions(nextTask)
2007-12-04T19:22:44  <cb22> else:
2007-12-04T19:23:24  <cb22>    askForImprovments(task41)
2007-12-04T19:23:27  <ThomasWaldmann> xorAxAx: hostname is same as TheSheep used
2007-12-04T19:23:36  <xorAxAx> ok
2007-12-04T19:24:03  <xorAxAx> ThomasWaldmann: do you want to commit task 41 or should i?
2007-12-04T19:24:21  <grzywacz> re
2007-12-04T19:25:00  * ThomasWaldmann does it
2007-12-04T19:26:52  <dreimark> moin
2007-12-04T19:27:10  <cb22> yay :)
2007-12-04T19:28:43  <grzywacz> xorAxAx, 67 looks good. I don't think he could have broken anything with it ;)
2007-12-04T19:29:25  <ThomasWaldmann> dreimark: can you look at the "images in a list" task?
2007-12-04T19:29:49  <xorAxAx> grzywacz: then commit it please :)
2007-12-04T19:29:58  <grzywacz> ok
2007-12-04T19:30:30  <dreimark> ThomasWaldmann: is it 37 ?
2007-12-04T19:30:47  <ThomasWaldmann> yes
2007-12-04T19:30:54  <dreimark> ok, will do
2007-12-04T19:31:27  <dreimark> ThomasWaldmann: did you find a solution for the parser and comments ?
2007-12-04T19:32:14  <ThomasWaldmann> dreimark: what exactly do you mean?
2007-12-04T19:32:25  <ThomasWaldmann> the css class?
2007-12-04T19:32:45  <ThomasWaldmann> dotted/green etc.?
2007-12-04T19:32:54  <dreimark> yeayj , the problem of the last example on SyntaxReference we talked yesterday
2007-12-04T19:33:03  <ThomasWaldmann> it should work now
2007-12-04T19:33:23  <dreimark> :)
2007-12-04T19:33:52  <ThomasWaldmann> if noone finds more bugs, we can start updating the help pages soon
2007-12-04T19:34:13  <dreimark> will look later too,
2007-12-04T19:34:37  * ThomasWaldmann wants some beta3 or rc1 this weekend
2007-12-04T19:34:45  <dreimark> :):):)
2007-12-04T19:34:47  * cb22 claims task #60
2007-12-04T19:35:59  <dreimark> ThomasWaldmann: I think 57 is well done
2007-12-04T19:36:13  <ninnnu> cb22: Neighbor o/
2007-12-04T19:36:20  * ThomasWaldmann edits 60
2007-12-04T19:37:05  * dreimark edits 57#
2007-12-04T19:37:24  <ThomasWaldmann> dreimark: see my last comment there, yes.
2007-12-04T19:43:40  <cb22> 'You need to modify MoinMoin.action.PackagePages.package by splitting it into two methods. One to handle the form data and one to handle the things done with this form data.' does this mean like create a function that actually creates and returns all the needed data, and then another one that takes the data and zips it for example?
2007-12-04T19:44:11  <dreimark> it is
2007-12-04T19:44:35  <dreimark> and it should be used in this action too
2007-12-04T19:44:45  <cb22> gotcha
2007-12-04T19:44:59  <dreimark> and maybe moved to another place
2007-12-04T19:47:30  <ThomasWaldmann> bbl
2007-12-04T20:02:02  * ninnnu finished #59...
2007-12-04T20:05:46  <xorAxAx> ninnnu: regarding your patch - the else branch of the if is a bit superfluous, right?
2007-12-04T20:06:10  <xorAxAx> and you should find a way to factor out the code from i18n into a function that you can call from both places
2007-12-04T20:07:14  <ninnnu> Probably..
2007-12-04T20:11:25  <ninnnu> Which else? I think that both are needed... The "higher" else if user uses manually selected language instead of the browser one, and the lower one if the detecting fails..
2007-12-04T20:22:55  * dreimark bbl -> home
2007-12-04T20:54:04  <dreimark> gg
2007-12-04T20:54:06  <dreimark> bb
2007-12-04T20:54:12  <dreimark> blinx ping
2007-12-04T20:59:27  <ninnnu> xorAxAx: Sent new patch to #59, is it ok now?
2007-12-04T21:01:18  * ThomasWaldmann will add a quickhack for textchas now, not asking if someone is member of some configurable group
2007-12-04T21:08:03  <blinx> dreimark: pong
2007-12-04T21:10:19  <dreimark> hi blinx,
2007-12-04T21:10:37  <cb22> ok, i've ripped PackagePages.package into two pieces, one that returns a StringIO containing the zipfile, which is now called collectpackage(), and modified the original package() to call collectpackage() and write the results to a file
2007-12-04T21:10:45  <cb22> is this the right direction to be going in?
2007-12-04T21:11:18  <cb22> and my package.py MoinMoin.script will also use PackagePages.collectpackage()
2007-12-04T21:12:29  <blinx> dreimark: what is going on?
2007-12-04T21:12:42  <dreimark> I do review your path and ideas
2007-12-04T21:12:51  <dreimark> you asked abut hw to use li?
2007-12-04T21:13:02  <dreimark> s/path/patch/
2007-12-04T21:13:04  <blinx> yes
2007-12-04T21:13:05  <blinx> sec
2007-12-04T21:13:29  <blinx> now
2007-12-04T21:14:00  <blinx> the best solution (as I commented) would be an implementation with python
2007-12-04T21:14:17  <blinx> the css thing is not the best way (scroll bars, etc.)
2007-12-04T21:17:32  <dreimark> ok
2007-12-04T21:17:58  <dreimark> can you try to describe what is blocking you to do it in python
2007-12-04T21:18:05  <dreimark> how can I help
2007-12-04T21:19:15  <blinx> where I can give each embedded image (function attachment_image in formatters/text_html.py, right?) a special <li> tag around the <img/> container?
2007-12-04T21:20:10  <blinx> the formatter and parser are not the best places for the html code and the structure of all the other function wouldn't be similar to the modified one..
2007-12-04T21:21:11  <blinx> back in 10mins
2007-12-04T21:37:23  <blinx> re
2007-12-04T21:37:34  <dreimark> ThomasWaldmann: why does text_moin_wiki.py self.formatter.attachment_image(url, **params)
2007-12-04T21:38:11  <dreimark> always call text_python.attachment_image ?
2007-12-04T21:38:36  <blinx> you see it isn't as simple it seems :(
2007-12-04T21:40:15  <dreimark> wait
2007-12-04T21:47:01  <blinx> sure :)
2007-12-04T21:48:28  <dreimark> blinx, I debug this in more detail, I do add some notes on your page or issue afterwards
2007-12-04T21:49:06  <dreimark> we don't suppose to find bugs this way
2007-12-04T22:00:17  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2392:016eabeb637f 1.6/ (3 files in 3 dirs): textchas_disabled_group config option - noone in this group will get textchas to answer
2007-12-04T22:34:02  <CIA-33> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> default * 2957:bc85e5200dd3 1.7/jabberbot/ (xmlrpcbot.py xmppbot.py): GHOP: refactor hardcoded if...elif...else code to use dispatching.
2007-12-04T22:34:12  <blinx> dreimark: good night, I have to sleep :)
2007-12-04T22:34:31  <blinx> good night @ all others!
2007-12-04T22:34:37  <dreimark> blinx: good night , sleep well
2007-12-04T22:34:44  <blinx> thx
2007-12-04T22:35:33  <grzywacz> night blinx
2007-12-04T22:35:49  <cb22> grzywacz: i assume the jabberbot s working again :)?
2007-12-04T22:35:51  <cb22> is*
2007-12-04T22:39:26  <grzywacz> cb22, yes, I fixed it the day you reported your problem
2007-12-04T22:39:27  <grzywacz> :)
2007-12-04T22:39:58  <cb22> nice, i'll probably take that again as my next task or so
2007-12-04T22:41:59  <grzywacz> Cool. :)
2007-12-04T22:42:37  <cb22> alpha patch for my issue #60 up!
2007-12-04T22:44:06  <grzywacz> What's the "Status" field for closed tasks in the tracker? "Closed"?
2007-12-04T22:44:38  <cb22> i think so
2007-12-04T22:45:03  <grzywacz> Ah, there's context help. Coolness.
2007-12-04T22:48:08  * ThomasWaldmann hopes textchas are less annoying now.
2007-12-04T22:48:54  * cb22 likes the apple pne
2007-12-04T22:49:00  <cb22> one*
2007-12-04T22:49:18  <cb22> although the question that asks what i use to browse the www isn't accpeting telnet :(
2007-12-04T22:49:31  <grzywacz> How about "Internet"?
2007-12-04T22:49:31  <grzywacz> :D
2007-12-04T22:49:37  <grzywacz> Modem? Computer? Mouse?
2007-12-04T22:49:39  <grzywacz> awww ;]
2007-12-04T22:49:57  <cb22> i plug my brain into the ethernet cable
2007-12-04T22:50:37  <cb22> ThomasWaldmann, am i heading in the right direction with http://code.google.com/p/google-highly-open-participation-moinmoin/issues/detail?id=60 or am i completly wrong?
2007-12-04T22:51:40  <grzywacz> cb22, not the other way round? ;)
2007-12-04T22:53:29  <cb22> heh, i cant drive yet, so no uturns :)
2007-12-04T22:56:04  * cb22 really likes GHOP
2007-12-04T22:56:21  <cb22> it gives me something productive to do amoung other things
2007-12-04T22:57:10  <ThomasWaldmann> cb22: looks good on first glance
2007-12-04T22:57:40  <ThomasWaldmann> that StringIO thing might be consuming quite some memory, depending on the amount of page, though
2007-12-04T22:58:14  <cb22> ThomasWaldmann: yeah, although text generally compresses alot. i was think what other ways there were?
2007-12-04T22:58:29  <cb22> save to a mktemp and return the name?
2007-12-04T22:59:13  <ThomasWaldmann> or take an open file object?
2007-12-04T22:59:59  <cb22> hmm, thats a good idea
2007-12-04T23:00:22  <cb22> collectpackage(self, pagelist, file)?
2007-12-04T23:00:28  <ThomasWaldmann> no
2007-12-04T23:00:56  <ThomasWaldmann> guess why :)
2007-12-04T23:01:49  <cb22> my guessing skills don't work well past 0:00 :p hm.. security?
2007-12-04T23:02:02  <grzywacz> ;-)
2007-12-04T23:03:36  <ThomasWaldmann> cb22: file is a reserved word
2007-12-04T23:04:10  <cb22> ah :)
2007-12-04T23:04:22  <cb22> so collectpackage(self, pagelist, filehandle)?
2007-12-04T23:04:27  <ThomasWaldmann> no
2007-12-04T23:04:46  <ThomasWaldmann> (because it is a file object, not a handle :D )
2007-12-04T23:04:56  <cb22> lol
2007-12-04T23:05:09  <cb22> collectpackage(self, pagelist, fileobject)?
2007-12-04T23:05:16  <ThomasWaldmann> btw, try max = max(1,2,3)
2007-12-04T23:05:39  <ThomasWaldmann> (afterwards, you can forget calling max() again :)
2007-12-04T23:06:26  <cb22> huh?
2007-12-04T23:07:14  <ThomasWaldmann> because max will be just 3 then, not the max function any more
2007-12-04T23:07:36  <ThomasWaldmann> (like when you use file as a name, then you can forget about using file())
2007-12-04T23:08:16  <cb22> ahhh.
2007-12-04T23:08:17  <cb22> lol
2007-12-04T23:08:26  <cb22> sorry, i slow down after 0:00 :p
2007-12-04T23:08:36  <ThomasWaldmann> btw, that is why a syntax highlighting editor is a good idea. you see at the wrong color that you have hit some reserved stuff.
2007-12-04T23:09:23  <ThomasWaldmann> that reminds me that I wanted to update i18n now :)
2007-12-04T23:09:42  <cb22> ThomasWaldmann: does pydev for eclipse do it?
2007-12-04T23:10:09  <cb22> and on that topic, can you recommened one? not vi or emacs too :p
2007-12-04T23:12:27  <ThomasWaldmann> yes, vim also
2007-12-04T23:12:40  <ThomasWaldmann> pydev is very nice btw, I also use it for bigger stuff
2007-12-04T23:13:20  <cb22> i'm using eclipse as a text editor :p
2007-12-04T23:13:44  <cb22> a using-600m-of-ram-text-editor
2007-12-04T23:13:56  <ThomasWaldmann> hehe
2007-12-04T23:14:39  <ThomasWaldmann> when i first used pydev it was so much fun and I found quite some bugs/problems in moin, so I immediately bought the commercial version
2007-12-04T23:15:04  <ThomasWaldmann> (the author is also very active and busily fixing/enhancing it)
2007-12-04T23:21:48  <cb22> ok, its now using fileobject :)
2007-12-04T23:22:02  <cb22> i wouldnt want to not be able to use file() again!
2007-12-04T23:23:02  <ThomasWaldmann> (it is only locally overwritten, but that's bad enough)
2007-12-04T23:23:50  <cb22> true true
2007-12-04T23:24:03  <cb22> it would be one of thoes things that would confuse me for days on end :)
2007-12-04T23:38:02  <dreimark> Is that var  used as filename ?
2007-12-04T23:38:46  <dreimark> cb22:
2007-12-04T23:42:56  <cb22> dreimark: nope, as a file object
2007-12-04T23:43:01  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2393:86632f449c50 1.6/MoinMoin/i18n/ (40 files): updated i18n
2007-12-04T23:43:09  <cb22> x = open("/wherever", wb)
2007-12-04T23:43:23  <cb22> me(list, x)
2007-12-04T23:43:28  <dreimark> ok
2007-12-04T23:44:11  * cb22 drifts off into an endless loop, with a break() appearing in the distance 8 hours later :)
2007-12-04T23:44:50  <cb22> night all
2007-12-04T23:45:33  <ernestas> good night
2007-12-04T23:48:07  <cb22> bleh, half of me doesn't want to sleep as i know that tomorrow i wont be able to do any work :(
2007-12-04T23:48:47  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2394:b3056d4acc93 1.6/wiki/underlay.tar.bz2: updated underlay
2007-12-04T23:49:31  <dreimark> gn cb22
2007-12-04T23:52:56  <cb22> does pagelist = request.rootpage.getPageList(user='',filter=lambda name: not wikiutil.isSystemPage(request, name))
2007-12-04T23:52:59  <cb22> look correct?
2007-12-04T23:54:31  <cb22> and if it is, howcome i still get MoinI18n/lv things lke that in the output?
2007-12-04T23:57:13  <vpv> I'm not sure if it matter, but should you do include_underlay=False as well?
2007-12-04T23:57:19  <vpv> matters, even

MoinMoin: MoinMoinChat/Logs/moin-dev/2007-12-04 (last edited 2007-12-22 22:45:02 by IrcLogImporter)