2007-12-03T00:05:21  <veerz> cb22, In switzerland we'v got grades from on up to 6
2007-12-03T00:05:30  <veerz> Here 6 is the best possible grade
2007-12-03T01:03:39  <dreimark> gn
2007-12-03T01:10:22  <veerz> n8
2007-12-03T09:19:52  <veerz> moin dreimark :)
2007-12-03T09:20:06  <dreimark> moin
2007-12-03T09:21:00  * ThomasWaldmann compensated the chinese translation goal
2007-12-03T09:23:21  <veerz> ThomasWaldmann: could you take a look at EasyToDo/DesignNewIconset? :)
2007-12-03T09:44:22  <ThomasWaldmann> veerz: draftleft the some - don't know where it is used at all
2007-12-03T09:44:37  <ThomasWaldmann> some > same?
2007-12-03T09:44:57  <veerz> I haven't changed it
2007-12-03T09:45:04  <veerz> its not really an Icon anyway
2007-12-03T09:45:08  <ThomasWaldmann> it is likely the thing used a bg image when you are doing a preview in the editor
2007-12-03T09:45:25  <ThomasWaldmann> (you still might want to fix that typo)
2007-12-03T09:46:24  <veerz> yep, I'll do that when I'm back home
2007-12-03T09:49:12  * ThomasWaldmann is not sure that star off/on is clearly recognizeable on any monitor
2007-12-03T09:50:01  <veerz> hm I've only got tfts to test it
2007-12-03T09:50:15  <ThomasWaldmann> esp. if not both are used near to each other.
2007-12-03T09:52:07  <ThomasWaldmann> does prio2 and 3 have a light effect at the top that prio1 does not have?
2007-12-03T09:52:22  <ThomasWaldmann> prio1 is better recognizable than 2 and 3
2007-12-03T09:52:27  <veerz> ThomasWaldmann: no, they are exactly the same
2007-12-03T09:52:45  <veerz> but humans see green colors brighter
2007-12-03T09:52:54  <veerz> that might be the problem
2007-12-03T09:54:41  <ThomasWaldmann> maybe it is because the number/background contrast for 1 is better than for 2/3
2007-12-03T09:57:13  <draicchi> hi.
2007-12-03T09:57:26  <ThomasWaldmann> btw, for the old star on/off it is very easy to tell what is on and what is off, even if you see only one of them
2007-12-03T09:57:40  <ThomasWaldmann> moin draicchi
2007-12-03T09:58:52  <veerz> ThomasWaldmann: hm ok, I'll look at the star and the prio icons again
2007-12-03T09:59:48  <ThomasWaldmann> moin-xml - do we still use that?
2007-12-03T10:00:40  <veerz> I couldn't find it
2007-12-03T10:00:55  <ThomasWaldmann> veerz: maybe using a slighlty more dark/saturated color for 2/3 makes it better readable
2007-12-03T10:01:10  <draicchi> ThomasWaldmann, how can i start/import a new develop branch for moin-1.7 on hg?
2007-12-03T10:01:17  <veerz> ThomasWaldmann: I'll make them darker
2007-12-03T10:01:26  <ThomasWaldmann> ok, then no need to fix the xml icon (it is hardly readable)
2007-12-03T10:02:15  <ThomasWaldmann> draicchi: as soon as you have cloned our repo, you have your on repo on your disk
2007-12-03T10:05:57  <draicchi> yes, but to import my repo on moin hg server, how can i do? permissions? ...?
2007-12-03T10:06:21  <veerz> draicchi: just submit a patch
2007-12-03T10:06:29  <veerz> or publish your own repo
2007-12-03T10:06:29  <dreimark> veerz: star svg  seems not to be centered
2007-12-03T10:06:33  <veerz> so they can pull
2007-12-03T10:07:01  <ThomasWaldmann> yes, that's the usual method for starters
2007-12-03T10:07:01  <veerz> dreimark: the svg isn't used
2007-12-03T10:07:02  <dreimark> draicchi: what is your task ?
2007-12-03T10:07:35  <draicchi> i don't know hg...i only use svn...and i don't know if hg require some authentication, etc...!
2007-12-03T10:07:56  <ThomasWaldmann> if you do that rather often, you'll get push access to main repo
2007-12-03T10:09:02  <ThomasWaldmann> draicchi: you have your own local repo all the time (and you can do local commits)
2007-12-03T10:09:16  <ThomasWaldmann> that's a big plus compared to svn
2007-12-03T10:09:24  <dreimark> veerz: draft is white on transparent?
2007-12-03T10:09:48  <veerz> dreimark: the draf is still the same - unchanged
2007-12-03T10:10:06  <veerz> draicchi: there is a video about hg on google video
2007-12-03T10:10:16  <veerz> s/darf/draft/g
2007-12-03T10:10:18  <ThomasWaldmann> veerz: modern img/ shows 59 images, your stuff only 45. please check.
2007-12-03T10:10:40  <veerz> ThomasWaldmann: because of the smilies
2007-12-03T10:11:52  <ThomasWaldmann> maybe just copy them and document them as unchanged
2007-12-03T10:12:06  <draicchi> i want to precise...that probably my dev-branch will not be very useful to improve moinmoin code. i think that my branch will be useful only for me...and for university research project. it's a very very small patch. And i don't know if i have requisites to open my own branch on moin hg sites.
2007-12-03T10:12:47  <veerz> ThomasWaldmann: ok
2007-12-03T10:12:54  <ThomasWaldmann> draicchi: do you have some own server to publish it?
2007-12-03T10:12:55  <draicchi> correction: my university research project. (not research project in general)
2007-12-03T10:13:52  <draicchi> probably not. in italy university fund are ZERO!
2007-12-03T10:14:02  <ThomasWaldmann> (what are your changes about?)
2007-12-03T10:14:27  <draicchi> few line.
2007-12-03T10:15:09  <ThomasWaldmann> few lines doing what?
2007-12-03T10:15:12  <dreimark> draicchi: more verbose please (related to what)
2007-12-03T10:15:52  <draicchi> yes, sorry, i try to write in "english" :) faster as i can.
2007-12-03T10:16:57  <ThomasWaldmann> veerz: the moin-deleted icon is for RC, right?
2007-12-03T10:17:12  <veerz> for RC?
2007-12-03T10:17:20  <ThomasWaldmann> RecentChanges
2007-12-03T10:17:28  <veerz> yes
2007-12-03T10:17:47  <ThomasWaldmann> it gives some misleading impression when it is a shredder
2007-12-03T10:17:57  <draicchi> for example: i would like to add an other keyword on PageEditor.sendEditor like content-only. to do not send http header fi a resend editform.
2007-12-03T10:18:01  <veerz> ThomasWaldmann: why?
2007-12-03T10:18:08  <ThomasWaldmann> (as a shredder means "it is gone, forever")
2007-12-03T10:18:21  <ThomasWaldmann> but if you delete a page, you can easily revert it.
2007-12-03T10:19:01  <veerz> So you would prefer a trash bin
2007-12-03T10:19:15  <ThomasWaldmann> yes (you can pull stuff out again)
2007-12-03T10:19:17  <draicchi> if user do not answer well to textchas control...in opposite to return wiki page...moin could retrn editform only an other time.
2007-12-03T10:19:34  <dreimark> draicchi: did you thought on adding those wishes as Feature Request ?
2007-12-03T10:19:56  <dreimark> with patch
2007-12-03T10:20:20  <draicchi> Feature Request? explain me please.
2007-12-03T10:21:11  <dreimark> Thats a page with subpages on the moinmoin wiki. http://moinmo.in/FeatureRequests
2007-12-03T10:21:51  <dreimark> We all do have sometimes ideas we do want to discuss with others to find the best way for implementation into the core code
2007-12-03T10:22:07  <draicchi> oh. thank you dreimark it's a good idea.
2007-12-03T10:28:58  <ThomasWaldmann> dreimark: i cleaned up the pre/parser related stuff in the wiki parser
2007-12-03T10:29:10  <dreimark> is it pushed ?
2007-12-03T10:29:16  <ThomasWaldmann> not yet
2007-12-03T10:29:31  <ThomasWaldmann> (and no solution for nested stuff yet)
2007-12-03T10:29:39  <draicchi> dreimark, ThomasWaldmann: i tell to my boss-professor this possibility to adding my request on moin FeatureRequests. If you want on the end of this univeristy research project, i can update moinmoin dev-team on functionality of this plugin that i currently developing. obviously, only if the project interests. Thank you.
2007-12-03T10:29:48  <ThomasWaldmann> but it fixed some other problems and makes work there easier
2007-12-03T10:30:29  <ThomasWaldmann> draicchi: yeah, please keep us updated
2007-12-03T10:30:47  <ThomasWaldmann> draicchi: and we rather prefer many small changes than big bunches of code
2007-12-03T10:31:03  <dreimark> sorry I was at the weekend  occupied by the chapter II of that python book, someone  has decided to deliver quite nothing
2007-12-03T10:31:41  <veerz> dreimark: you are writing a python book? :)
2007-12-03T10:32:19  <draicchi> obviously. also i prefer work least as possible.
2007-12-03T10:32:31  <dreimark> veerz: I do
2007-12-03T10:32:39  <veerz> dreimark: about what?
2007-12-03T10:32:56  <veerz> the language in general?
2007-12-03T10:33:05  <dreimark> its in german
2007-12-03T10:33:27  <veerz> german is my native language
2007-12-03T10:33:37  <dreimark> mine too
2007-12-03T10:34:26  <veerz> somehow this is strange lots of german speaking people writing in english
2007-12-03T10:36:55  <TheSheep> veerz: you wouldn't like the alternative :)
2007-12-03T10:37:39  <veerz> lots of english speaking people writing german?
2007-12-03T10:37:42  <veerz> heh
2007-12-03T10:37:55  <TheSheep> veerz: no, everyone writing in their native language
2007-12-03T10:38:30  <veerz> that might lead to slight confusion in here :)
2007-12-03T10:38:39  <TheSheep> we weould have to rename teh engine to CześćCześć
2007-12-03T10:39:15  <dreimark> ThomasWaldmann: the only nesting which needs to work is  the one showed up in SyntaxReference.
2007-12-03T10:40:53  <veerz> TheSheep: why not? :)
2007-12-03T10:41:12  <dreimark> If a Syntax change in general is needed I think we should shift that to 1.7
2007-12-03T10:43:31  <TheSheep> dreimark: and have a syntach change on every upgrade?
2007-12-03T10:43:49  <starshine> ...
2007-12-03T10:45:10  <dreimark> TheSheep: currently  I believe another syntax change now will cause a longer beta period
2007-12-03T10:45:28  <TheSheep> dreimark: is it bad?
2007-12-03T10:45:33  <dreimark> it is
2007-12-03T10:45:39  <TheSheep> dreimark: why?
2007-12-03T10:46:08  <dreimark> because we do want release in end of december.
2007-12-03T10:46:43  <dreimark> if that goal is reachable I do accept any syntax change
2007-12-03T10:51:03  <dreimark> TheSheep: it depends how clean the patch and syntax change looks like. From the experience of the brokeness one I think we have to review nearly  every page
2007-12-03T10:53:19  * TheSheep revies every theme page
2007-12-03T10:53:25  <TheSheep> w
2007-12-03T10:58:42  <dreimark> :)
2007-12-03T11:22:47  <cb22> hmm, no IRC logs?
2007-12-03T11:24:28  <xorAxAx> cb22: bot is running, ask ThomasWaldmann if irclogs are missing
2007-12-03T11:24:38  <grzybacz> .
2007-12-03T11:25:28  <cb22> xorAxAx: they appear to be, http://moinmo.in/MoinMoinChat/Logs/moin-dev/2007-12-02
2007-12-03T11:25:41  <cb22> but its fine, i just held down pg-up for a while
2007-12-03T11:27:14  <cb22> xorAxAx, any other issues with my patch? i've just finished sortng out the ones ThomasWaldmann mentioned.
2007-12-03T11:33:03  <xorAxAx> cb22: i will have another look this evening
2007-12-03T11:33:09  <xorAxAx> my monday is pretty busy
2007-12-03T11:33:39  <cb22> cool, thanks
2007-12-03T12:41:23  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2383:5b2b7b119871 1.6/wiki/htdocs/applets/moinFCKplugins/moinimage/fck_image.js: fix gui editor insertion of .jpeg images
2007-12-03T13:00:49  <ThomasWaldmann> johill: do you have some time for http://moinmo.in/MoinMoinBugs/1.6NoPageTrailForAnonymousUser
2007-12-03T13:13:11  <cb22> ThomasWaldmann, re setting cache.update({}) instead of cache.remove(), i could use cache.remove(), but it would add a bit more complexity, as no cache file is different from a blank cache file
2007-12-03T13:14:04  <xorAxAx> cb22: it is indeed different
2007-12-03T13:14:10  <xorAxAx> think about a wiki without any user in it
2007-12-03T13:18:11  <cb22> hmm, what about it?
2007-12-03T13:18:35  <xorAxAx> you would think that your cache is invalid, even though its not
2007-12-03T13:18:54  <cb22> xorAxAx, ah yes, very true
2007-12-03T13:58:01  <johill> ThomasWaldmann: I'll take a look
2007-12-03T14:05:00  <ThomasWaldmann> thanks
2007-12-03T14:09:01  * ThomasWaldmann .oO(that {{{teletype}}} is in the way)
2007-12-03T14:11:46  <TheSheep> and it sounded like such a great idea at the time
2007-12-03T14:12:39  <TheSheep> maybe {{{(#!\S*)?\s*$  ?
2007-12-03T14:13:54  <dreimark> one liner `teletype` many lines {{{ \n \n }}}
2007-12-03T14:14:13  <TheSheep> many lines or #!
2007-12-03T14:15:21  <TheSheep> but then again, it requires unbound lookahead
2007-12-03T14:17:04  <TheSheep> I really like ^{{{, maybe there could be a special case for lists
2007-12-03T14:17:34  <TheSheep> ^\s+\*+\s+{{{
2007-12-03T14:17:52  <ThomasWaldmann> maybe it is not a problem, tt is only 1 line, parser is 2+
2007-12-03T14:19:38  <TheSheep> ThomasWaldmann: forbiding \n inside tt sounds reasonable at the first impression
2007-12-03T14:20:15  <ThomasWaldmann> +     (?P<parser_unique>(\{*|\w*))?  # either some more {{{{ or some chars to solve the nesting problem
2007-12-03T14:20:33  <ThomasWaldmann> it tells "regex error: nothing to repeat"?
2007-12-03T14:21:20  <TheSheep> maybe use [{]
2007-12-03T14:21:38  <ThomasWaldmann> TheSheep: tt currently does not match multiline anyway
2007-12-03T14:22:38  <TheSheep> the regex compiler could definitely use better error handling
2007-12-03T14:24:32  <ThomasWaldmann> still the same
2007-12-03T14:25:20  <TheSheep> ThomasWaldmann: remove one asterisk and see if it was it
2007-12-03T14:25:38  <TheSheep> I think this can also be the ?
2007-12-03T14:26:06  <TheSheep> ThomasWaldmann: aaah, use r"" :)
2007-12-03T14:30:58  <ThomasWaldmann> +     (?P<parser_unique>(\{|\w))?  # either some more {{{{ or some chars to solve the nesting problem
2007-12-03T14:31:11  <johill> bah. stupid nesting problem
2007-12-03T14:31:13  <ThomasWaldmann> this works (but I wanted the * :)
2007-12-03T14:32:07  <ThomasWaldmann> it is all one big ur"""...
2007-12-03T14:33:02  <ThomasWaldmann> ehrm, yes, I might be the ?
2007-12-03T14:33:06  * ThomasWaldmann tries
2007-12-03T14:33:59  <dreimark> johill: back from roots
2007-12-03T14:34:10  <ThomasWaldmann> works
2007-12-03T14:34:36  <ThomasWaldmann> (? was stupid in that re, because the inner part can match the empty string)
2007-12-03T14:49:33  <cb22> ok, another update to issue 41 from me
2007-12-03T15:02:26  <ThomasWaldmann> jay, "nesting" starts to work! :)
2007-12-03T15:03:06  <ThomasWaldmann> with one small problem:
2007-12-03T15:03:11  <ThomasWaldmann> {{{bla
2007-12-03T15:03:16  <ThomasWaldmann> bla
2007-12-03T15:03:18  <ThomasWaldmann> }}}
2007-12-03T15:03:36  <ThomasWaldmann> would be invalid then and needed to be fixed to read:
2007-12-03T15:03:38  <ThomasWaldmann> {{{
2007-12-03T15:03:39  <ThomasWaldmann> bla
2007-12-03T15:03:41  <ThomasWaldmann> bla
2007-12-03T15:03:43  <ThomasWaldmann> }}}
2007-12-03T15:04:31  <ThomasWaldmann> but, this works:
2007-12-03T15:04:35  <ThomasWaldmann> {{{{
2007-12-03T15:04:37  <ThomasWaldmann> {{{
2007-12-03T15:04:39  <ThomasWaldmann> bla
2007-12-03T15:04:42  <ThomasWaldmann> }}}
2007-12-03T15:04:44  <ThomasWaldmann> }}}}
2007-12-03T15:04:52  <ThomasWaldmann> and this works also
2007-12-03T15:05:00  <ThomasWaldmann> {{{magic
2007-12-03T15:05:02  <ThomasWaldmann> {{{
2007-12-03T15:05:04  <ThomasWaldmann> bla
2007-12-03T15:05:07  <ThomasWaldmann> }}}
2007-12-03T15:05:10  <ThomasWaldmann> magic}}}
2007-12-03T15:08:29  <TheSheep> I've seen a lot of {{{#!foo
2007-12-03T15:09:30  <johill> ThomasWaldmann: having to fix {{{aaa is bad because iirc, there were versions where the \n in there caused undesirable side effects
2007-12-03T15:14:21  <ThomasWaldmann> TheSheep: that's no problem as that is part of the regex
2007-12-03T15:14:35  <ThomasWaldmann> just non-blank non-#! stuff
2007-12-03T15:15:06  <ThomasWaldmann> johill: well, I think about doing this in the converter
2007-12-03T15:15:35  <ThomasWaldmann> (does not help for sites already converted, though)
2007-12-03T15:16:23  <johill> I still think that plainly nesting {{{ }}} is wrong
2007-12-03T15:16:34  <johill> it should need some sort of escape mechanism so you can talk about {{{ or }}} within {{{}}}
2007-12-03T15:17:59  <ThomasWaldmann> johill: if you have some python source code with }}} in it, you don't want to change THAT
2007-12-03T15:18:32  <johill> right
2007-12-03T15:18:44  <johill> but if you have C sources with }}} on the beginning of the line you don't want to change that either
2007-12-03T15:18:57  <johill> so imho the actual nesting should have some kinds of requirements
2007-12-03T15:19:25  <TheSheep> johill: just add more }'s :)
2007-12-03T15:19:26  <johill> as for }}}, I like how creole does it
2007-12-03T15:19:42  <TheSheep> johill: the ~ or the space stuffing?
2007-12-03T15:19:42  <johill> (with a simple space in front for when you have }}} in the block)
2007-12-03T15:19:49  <TheSheep> johill: that
2007-12-03T15:19:53  <TheSheep> johill: that's dropped
2007-12-03T15:19:59  <johill> oh crap what do they do now?
2007-12-03T15:20:09  <TheSheep> johill: use ~ as escape character
2007-12-03T15:20:16  <johill> hm
2007-12-03T15:20:20  <TheSheep> johill: for everything
2007-12-03T15:20:22  <johill> that's sort of consistent I guess
2007-12-03T15:20:52  <TheSheep> yes, the main advantage was ease of automatic translating
2007-12-03T15:21:06  <johill> well I like the space stuffing better anyway ;)
2007-12-03T15:22:03  <TheSheep> johill: but increasing the number of }'s is even cooler -- you can enclose anything without changing it
2007-12-03T15:22:16  <TheSheep> johill: just use more }'s than in the source
2007-12-03T15:22:21  <johill> right
2007-12-03T15:22:35  <johill> well, unless you need to start with {{ in the stuff you enclose ;)
2007-12-03T15:22:52  <TheSheep> johill: that's why it needs to start on the next line
2007-12-03T15:23:15  <johill> as long as the line is ignored then.. some versions of moin would display the empty line iirc
2007-12-03T15:29:29  <ThomasWaldmann> johill: starting with {{ is no problem, just do it on next line
2007-12-03T15:32:31  <blinx> ThomasWaldmann: my ghop task: http://files.builtin.de/moin.diff http://files.builtin.de/moin1.diff http://files.builtin.de/moin2.diff
2007-12-03T15:32:45  <blinx> dreimark: ^^
2007-12-03T15:59:30  <ThomasWaldmann> cb22: the patch description looks promising
2007-12-03T16:01:31  <cb22> i've noticed that with each revision the size decreases by 0.3kb :)
2007-12-03T16:05:47  <ThomasWaldmann> you are not paid per KB, but for quality :D
2007-12-03T16:05:59  <cb22> haha, indeed
2007-12-03T16:06:21  <cb22> import this :)
2007-12-03T16:06:23  * ThomasWaldmann deleted a lot of crap in the wiki parser
2007-12-03T16:07:52  <blinx> ThomasWaldmann: did you take a look to my diffs?
2007-12-03T16:09:54  <ThomasWaldmann> not yet
2007-12-03T16:10:07  <blinx> ok :)
2007-12-03T16:12:05  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2384:8de530092465 1.6/ (MoinMoin/parser/text_moin_wiki.py wiki/data/edit-log): reverting parser nesting changesets
2007-12-03T16:12:07  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2385:b9a3496b17f9 1.6/MoinMoin/parser/text_moin_wiki.py: wiki parser: enable switching the scanning regex while processing some line (fixes missing blank after }}} bug, maybe other bugs, too)
2007-12-03T16:12:08  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2386:531fa236375b 1.6/MoinMoin/ (formatter/__init__.py parser/text_moin_wiki.py): wiki parser: integrate pre section into parser section processing, fix bugs, clean up
2007-12-03T16:12:09  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2387:3b55545777fc 1.6/ (MoinMoin/parser/text_moin_wiki.py docs/CHANGES): wiki parser: solve nesting problems by letting the user use more curly braces or a unique string, updated CHANGES
2007-12-03T16:12:15  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2388:c9cf7a4d6f1f 1.6/MoinMoin/parser/text_moin_wiki.py: wiki parser: less debug logging
2007-12-03T16:12:18  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2389:0082001926f9 1.6/ (2 files in 2 dirs): merged main
2007-12-03T16:12:39  <blinx> hm now the files are changed :(
2007-12-03T16:12:55  <ThomasWaldmann> hm?
2007-12-03T16:13:12  <TheSheep> blinx: hg pull -u
2007-12-03T16:13:29  <ThomasWaldmann> or rather hg pull ; hg merge
2007-12-03T16:14:16  <cb22> ThomasWaldmann, judging from those commits, {{{{ {{{ }}}} should work?
2007-12-03T16:14:25  <TheSheep> personally I'd like to refactor the editor :)
2007-12-03T16:15:01  <blinx> ThomasWaldmann: sorry, I mixed up parser and formatter
2007-12-03T16:15:36  <blinx> the diff files 1+2 should do their job as a patch in the moin/1.6 dir
2007-12-03T16:24:40  <ThomasWaldmann> cb22: yes
2007-12-03T16:25:07  <ThomasWaldmann> TheSheep: /me too, but we better wait until storage branch is merged
2007-12-03T17:25:04  <blinx> ThomasWaldmann: when do you have some time to put my patch in the 1.6 branch?
2007-12-03T17:48:28  <ThomasWaldmann> blinx: today night I will look at it
2007-12-03T17:51:09  <blinx> kk
2007-12-03T18:23:34  * tuxella is back (gone 18:28:09)
2007-12-03T18:23:44  <tuxella> hello everybody
2007-12-03T18:39:28  <ThomasWaldmann> moin tuxella
2007-12-03T18:42:06  <tuxella> ThomasWaldmann, have you read again my edit on the wiki ?
2007-12-03T19:05:08  <dreimark> bbl
2007-12-03T19:11:07  <tuxella> ThomasWaldmann, tell me when you are back
2007-12-03T19:58:53  * ThomasWaldmann is back :)
2007-12-03T19:59:42  <tuxella> ThomasWaldmann, could you re-read this wiki page ?
2007-12-03T20:00:06  <tuxella> http://moinmo.in/EasyToDo/Research_Python_code_usable_for_filters <= this one ;)
2007-12-03T20:05:48  <ThomasWaldmann> maybe you should log in before doing changes :)
2007-12-03T20:06:41  <tuxella> i'll know it for my next changes
2007-12-03T20:06:52  <ThomasWaldmann> you didnt create a homepage, did you?
2007-12-03T20:07:09  <cb22> ThomasWaldmann, had time to look at my patch yet? :)
2007-12-03T20:07:17  <tuxella> no i didn't, i haven't created an account
2007-12-03T20:07:30  <ThomasWaldmann> tuxella: the src file headers are wrong/incomplete
2007-12-03T20:08:01  <ThomasWaldmann> there is still unicode()
2007-12-03T20:08:21  <tuxella> ThomasWaldmann, this is because it can be any type of data
2007-12-03T20:08:41  <tuxella> it can be unicode, int, date, float ...
2007-12-03T20:10:45  <ThomasWaldmann> the logfile stuff won't work on win32
2007-12-03T20:13:07  <ThomasWaldmann> unicode("\n")  -> u'\n'
2007-12-03T20:14:19  <ThomasWaldmann> and don't do that ret += stuff, rather use ret = [], ret.append(...), return u''.join(ret)
2007-12-03T20:15:29  <ThomasWaldmann> or even u'\n'.join(ret)
2007-12-03T20:16:19  <tuxella> ok, i'll do this amendments
2007-12-03T20:16:22  <tuxella> logged ;)
2007-12-03T20:16:47  <ThomasWaldmann> did you test with nonascii stuff?
2007-12-03T20:17:37  <tuxella> ThomasWaldmann, yes, it works even with chieese chars
2007-12-03T20:20:49  <tuxella> and what is wring in headers ?
2007-12-03T20:20:52  <tuxella> wrong
2007-12-03T20:22:20  <ThomasWaldmann> well, it's not 2006 any more :)
2007-12-03T20:22:38  <ThomasWaldmann> and <short description> should be replaced by a short description :D
2007-12-03T20:23:28  <ThomasWaldmann> and MoinMoin:Tuxella does not exist (and we prefer realnames, FirstnameLastname, btw.)
2007-12-03T20:23:58  <tuxella> ThomasWaldmann, ok, i had only field verbose description
2007-12-03T20:25:11  <tuxella> ThomasWaldmann, some other modification ?
2007-12-03T20:25:22  <ThomasWaldmann> btw, for the libs you researched, maybe note whether it is pure python (no C stuff to get compiled) and if it is not, whether there are packages for win32/mac available
2007-12-03T20:26:42  <ThomasWaldmann> for the src files you did, please use [[attachment:filename.py]] or {{attachment:filename.py}}
2007-12-03T20:27:51  <ThomasWaldmann> cb22: which issues number / wiki page was it?
2007-12-03T20:31:52  <ThomasWaldmann> tuxella: what data type does extractText() return?
2007-12-03T20:32:07  <tuxella> in pyPdf ? it's unicode
2007-12-03T20:32:32  <ThomasWaldmann> unicode or utf-8?
2007-12-03T20:33:17  <tuxella> Returns:
2007-12-03T20:33:17  <tuxella> a unicode string object
2007-12-03T20:34:32  <ThomasWaldmann> tuxella: it is either unicode or a string :)
2007-12-03T20:34:35  <cb22> ThomasWaldmann: issue 41
2007-12-03T20:34:46  <cb22> http://code.google.com/p/google-highly-open-participation-moinmoin/issues/detail?id=41
2007-12-03T20:40:50  <ThomasWaldmann> cb22: in case of a nonexistant cache, you do mtime() and content() twice
2007-12-03T20:41:12  <ThomasWaldmann> s/cache/in-memory cache/
2007-12-03T20:41:27  <ThomasWaldmann> (for CGI, that's once per request)
2007-12-03T20:43:19  <ThomasWaldmann> and I still don't understand for what's that utime() call
2007-12-03T20:43:56  <cb22> ThomasWaldmann: that utime call actually updates the mtime
2007-12-03T20:44:00  <cb22> without it stays the same
2007-12-03T20:46:46  <ThomasWaldmann> that stuff creates a new temp file and then renames it, why should that keep mtime at the same value?
2007-12-03T20:47:19  <cb22> good question, but it seems to, i need to investigate that one further
2007-12-03T20:47:48  <cb22> try the patch, then comment out the utime, it magically stops working
2007-12-03T20:47:53  <ThomasWaldmann> which platform did you test that on?
2007-12-03T20:47:57  <cb22> FreeBSD
2007-12-03T20:49:41  <ThomasWaldmann> Was calling cache.mtime() twice to get the same value: Fixed   <- not quite fixed
2007-12-03T20:50:51  <ThomasWaldmann> cb22: +        if cfg.cache.name2id_mtime != _name2id_mtime:
2007-12-03T20:51:52  <cb22> yes, previously i used cache.mtime() there and again within the if loop
2007-12-03T20:53:25  <ThomasWaldmann> i was just wondering about whether != or < is better
2007-12-03T20:54:18  <cb22> ah, hmm, i don't think it is possible for the memory one to be newer then the file one
2007-12-03T20:55:11  <ThomasWaldmann> if 2 boxes with clocks not in sync access the data dir via nfs? no idea, just guessing...
2007-12-03T20:56:47  <cb22> then you would have a bigger issue on your hands :)
2007-12-03T20:56:58  <cb22> timestamps in the future are never good
2007-12-03T20:57:51  <ThomasWaldmann> well, a second or two difference might be not that far fetched
2007-12-03T20:58:49  <cb22> hmm, true. should i test out that scenario?
2007-12-03T20:59:44  <ThomasWaldmann> thinking about it might be enough.
2007-12-03T21:00:24  <cb22> hehe
2007-12-03T21:00:30  <cb22> dont worry, i'll test it now
2007-12-03T21:11:18  <cb22> ok, firing up both servers now
2007-12-03T21:16:33  * xorAxAx handles 74
2007-12-03T21:16:39  <cb22> ThomasWaldmann: it still works
2007-12-03T21:16:53  <cb22> on two different pcs
2007-12-03T21:16:58  <cb22> with a different nfs server
2007-12-03T21:20:01  <cb22> time on one: Wed Jan  9 04:24:55 SAST 2002
2007-12-03T21:21:58  <cb22> time on the other: (normal time)
2007-12-03T21:28:58  <cb22> xorAxAx: actually, he left out the '.' at the end of the sentance :p
2007-12-03T21:30:27  <xorAxAx> cb22: hehe
2007-12-03T21:35:20  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2390:2ac5381fe2c0 1.6/README: move the acknowledgements to the MoinMoin:MoinMoinAcknowledgements wiki page
2007-12-03T21:40:26  <cb22> ThomasWaldmann: i can see i do a mtime() twice, but where is the second content()
2007-12-03T21:41:26  <cb22> it only happens f the mtimes are different?
2007-12-03T21:42:23  <ThomasWaldmann> yes, but you still load it twice
2007-12-03T21:46:44  <cb22> hmm?
2007-12-03T21:52:43  <cb22> i dont see the second content getting called if there is no memory cache?
2007-12-03T21:57:46  <cb22> brb
2007-12-03T22:12:31  <ThomasWaldmann> http://moinmo.in/MoinMoinAcknowledgements < check your entry there
2007-12-03T22:15:04  <cb22> ThomasWaldmann: my head is about to expload :) where/how does it call cache.content() a second time if there is no memory cache?
2007-12-03T22:15:22  * ThomasWaldmann ducks
2007-12-03T22:16:52  <ThomasWaldmann> cb22: you are right, content() is only called once
2007-12-03T22:17:17  <ThomasWaldmann> (but mtime() sometimes twice :)
2007-12-03T22:17:21  <cb22> yay :). /me pricks a hole in his head to calm it down
2007-12-03T22:18:42  <ThomasWaldmann> cb22: any insights about utime?
2007-12-03T22:19:50  <cb22> not yet, i'm adding a few thousand loggin.debug lines in
2007-12-03T22:20:57  <ThomasWaldmann> hehe
2007-12-03T22:24:02  * ThomasWaldmann is really impressed by all the work all you students do to helps us
2007-12-03T22:24:15  <ThomasWaldmann> (and get rich and famous :D )
2007-12-03T22:24:19  <cb22> haha
2007-12-03T22:24:22  <cb22> its fun :)
2007-12-03T22:24:37  <cb22> and educational too
2007-12-03T22:25:10  <cb22> and it has kinda swayed me to use moinmoin now as my wiki for my site
2007-12-03T22:25:32  <ThomasWaldmann> (not only the good code and research stuff, but also the work on moinmaster has gone up 1000%)
2007-12-03T22:26:48  * dreimark too
2007-12-03T22:27:01  <ThomasWaldmann> apropos famous, feel free to add yourself to the brand new acknowledgements page
2007-12-03T22:27:02  <cb22> ha, i would hardly call my code good
2007-12-03T22:28:01  <cb22> but it's a nice reason to learn more python
2007-12-03T22:28:04  <ThomasWaldmann> I have seen much worse code from people who should know much better (but did not).
2007-12-03T22:28:53  <ninnnu> I guess I add myself when I get my issue done (the TrivialChange-thing isn't something that gives me a good reason to add myself to the page :P)... There is still that little nasty bug...
2007-12-03T22:31:03  <ThomasWaldmann> ninnnu: if you're stuck and have questions, just ask
2007-12-03T22:32:21  <ninnnu> ThomasWaldmann: Tomorrow..
2007-12-03T22:33:56  <ThomasWaldmann> dreimark: did you see the nesting changesets?
2007-12-03T22:34:35  <ninnnu> (The main-problem is that I can't retvieve browser's language in time (during Userfrom-submitting) -> User's should send the UserPreferenes-changeform twice so my language-statistics-thing gets correct data)
2007-12-03T22:34:43  <dreimark> I ve pulled two mins ago
2007-12-03T22:34:48  <ninnnu> But more about that tomorrow, now sleep. Bye ->
2007-12-03T22:34:58  <cb22> night ninnnu
2007-12-03T22:35:03  <dreimark> night ninnnu
2007-12-03T22:35:04  <ThomasWaldmann> gn ninnnu
2007-12-03T22:35:12  <cb22> i'm gonna start having dreams about snakes soon :/
2007-12-03T22:35:46  <ThomasWaldmann> cb22: there is a t-shirt "I will show you my Python..."
2007-12-03T22:36:08  <cb22> lol
2007-12-03T22:36:26  <cb22> i want that one
2007-12-03T22:36:35  <ThomasWaldmann> (in any case of misunderstandings, you have a good excuse then)
2007-12-03T22:36:53  <dreimark> ThomasWaldmann: Verbatim Display in my SystaxReference looks broken
2007-12-03T22:37:10  <dreimark> s/Systax/Syntax/
2007-12-03T22:37:18  <ThomasWaldmann> dreimark: it's broken everywhere where not fixed
2007-12-03T22:37:31  <ThomasWaldmann> the fix is to use
2007-12-03T22:37:33  <ThomasWaldmann> {{{{
2007-12-03T22:37:34  <ThomasWaldmann> {{{
2007-12-03T22:37:36  <ThomasWaldmann> bla
2007-12-03T22:37:38  <ThomasWaldmann> }}}
2007-12-03T22:37:40  <ThomasWaldmann> }}}}
2007-12-03T22:37:45  <ThomasWaldmann> (for example)
2007-12-03T22:38:52  <ThomasWaldmann> so the question is rather whether there are conditions where it still fails / can't be made working by a wiki editor
2007-12-03T22:40:00  <dreimark> I am not sure if I get that now
2007-12-03T22:40:10  <dreimark> we have always to use for nesting {{{{{
2007-12-03T22:40:18  <dreimark> only for nesting?
2007-12-03T22:40:27  <veerz> why is there a textcha on the UserPreferences page which isn't checked?
2007-12-03T22:40:57  <ThomasWaldmann> you just have to use '{{{' + x so that x + '}}}' is not contained in the content
2007-12-03T22:40:59  <xorAxAx> ThomasWaldmann: does it work for parsers as well?
2007-12-03T22:41:17  <ThomasWaldmann> xorAxAx: parsers and pre are the same code now
2007-12-03T22:42:14  * xorAxAx handles 46
2007-12-03T22:42:33  <ThomasWaldmann> in case of adding more {, the ending requires same amount of added }
2007-12-03T22:42:37  <dreimark> ThomasWaldmann: check {{{#!wiki comment/dotted
2007-12-03T22:43:01  <dreimark> the last example on SyntaxReference
2007-12-03T22:44:42  <ThomasWaldmann> oops
2007-12-03T22:45:43  * ThomasWaldmann fixes that
2007-12-03T22:45:47  <dreimark> :)
2007-12-03T22:54:47  <cb22> i think i found why that utime was needed
2007-12-03T22:55:13  <cb22> and how to de-need it
2007-12-03T22:57:53  <dreimark> s/de-need/remove/
2007-12-03T22:58:00  <tuxella> ThomasWaldmann, according to the pyPdf documentation, extractText return a unicode object, is it OK to return the result of this method then ?
2007-12-03T23:00:43  <xorAxAx> tuxella: yes, i think so (you could concat it with some metadata, though)
2007-12-03T23:01:23  * cb22 prefers de-need :)
2007-12-03T23:02:12  <xorAxAx> good night
2007-12-03T23:02:28  <ThomasWaldmann> tuxella: that's ok then. maybe also use u"" or even better than list method in your code.
2007-12-03T23:02:40  <ThomasWaldmann> s/than/that/
2007-12-03T23:03:04  <ThomasWaldmann> looks like the parser regex is wrong for the parser_args
2007-12-03T23:03:19  <cb22> light xorAxAx
2007-12-03T23:03:22  <cb22> night*
2007-12-03T23:05:54  <tuxella> ThomasWaldmann, would be OK now
2007-12-03T23:06:24  <cb22> looks as if the cache gets cleared so quickly that the mtime doesnt change
2007-12-03T23:06:35  <dreimark> gn xorAxAx
2007-12-03T23:06:51  <cb22> ie, i update the mtime, cache gets cleared, but the update happened so quickly that no change got registered
2007-12-03T23:07:07  <cb22> quicker then .01 ms
2007-12-03T23:07:12  <cb22> which i know it is
2007-12-03T23:07:18  <cb22> something like .0007
2007-12-03T23:07:40  <dreimark> to check it can you add a waitstate of 0.01ms
2007-12-03T23:07:52  <cb22> yeah, doing so now
2007-12-03T23:11:35  <cb22> yep, thats the issue alright
2007-12-03T23:11:53  <cb22> i adding in a sleep of 1sec, and now the times are exactly 1 second different
2007-12-03T23:13:38  <dreimark> fine
2007-12-03T23:14:46  <cb22> nowfixing this is going to be fun
2007-12-03T23:17:48  <cb22> sleeping wold be an even worse way then utime'ing
2007-12-03T23:23:44  <CIA-33> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> default * 2391:75fa148e5c26 1.6/MoinMoin/ (formatter/__init__.py parser/text_moin_wiki.py): wiki parser: fixing parser arg parsing, fixing 'set' compatibility for py 2.3
2007-12-03T23:24:01  <ThomasWaldmann> cb22: indeed
2007-12-03T23:24:39  <ThomasWaldmann> i still dont know why utime helps
2007-12-03T23:25:15  <tuxella> ThomasWaldmann, I modified hte wiki page according to your remarks, yet some other ?
2007-12-03T23:25:22  <ThomasWaldmann> (it happens directly after file creation, so it at most can hide the problem for some timing, but not fix it)
2007-12-03T23:26:28  <ThomasWaldmann> tuxella: -v for your wiki homepage :)
2007-12-03T23:26:45  <tuxella> ?
2007-12-03T23:27:46  <ThomasWaldmann> (more verbose :)
2007-12-03T23:27:54  <ThomasWaldmann> and you still live in the past :)
2007-12-03T23:28:05  <tuxella> why that ?
2007-12-03T23:28:48  <ThomasWaldmann> because it is 2007
2007-12-03T23:29:00  <tuxella> hum yes OK
2007-12-03T23:29:08  <tuxella> then change the _template.py
2007-12-03T23:29:10  <tuxella> ;)
2007-12-03T23:29:23  <ThomasWaldmann> I'll wait until 2008 :)
2007-12-03T23:29:48  <tuxella> and in 2008 you'll wait until 2009
2007-12-03T23:29:50  <cb22> ThomasWaldmann: it helped as i guess it was rather expensive
2007-12-03T23:29:58  <cb22> maybe adding .01ms of delay
2007-12-03T23:30:00  <tuxella> just add a rule in the make file :p
2007-12-03T23:30:24  <ThomasWaldmann> tuxella: too much \n
2007-12-03T23:30:53  <tuxella> ThomasWaldmann, where ?
2007-12-03T23:31:09  <ThomasWaldmann>   56             ret.append(show_row(bk, sh, rowx, colrange, printit) + u'\n') and 2 lines below
2007-12-03T23:31:26  <ThomasWaldmann> (the final join does them)
2007-12-03T23:31:29  <tuxella> ok, so just 1 line separating each function declaration
2007-12-03T23:31:47  <tuxella> ok, I though you where talking about coding style :)
2007-12-03T23:31:52  <ThomasWaldmann> no
2007-12-03T23:31:53  <cb22> i think i need to slee^H^Hmeditate on this problem ;)
2007-12-03T23:31:58  <cb22> night all
2007-12-03T23:32:03  <ThomasWaldmann> i mean the u'\n'
2007-12-03T23:32:31  <tuxella> u'\n'.join adds a \n between each item of the list ?
2007-12-03T23:32:38  <ThomasWaldmann> sure
2007-12-03T23:33:04  <tuxella> so it's the same for line 21 : to much " "
2007-12-03T23:33:24  <ThomasWaldmann> btw, is there no way to tell open_wordbook that it shall not log?
2007-12-03T23:35:02  <tuxella> result isn't defined if the logfile isn't precised
2007-12-03T23:35:55  <ThomasWaldmann> is there anything useful in that log?
2007-12-03T23:36:16  <ThomasWaldmann> btw, before you upload next stuff:
2007-12-03T23:36:36  <tuxella> no there isn't excepting if you are opening a file done ine a version < 97 and the charset can't be guessed fron the CODEPAGE
2007-12-03T23:37:02  <ThomasWaldmann> the filters have a naming convention (see MoinMoin/filter/)
2007-12-03T23:37:47  <tuxella> yes but application_pdf.py would clash with the existing one
2007-12-03T23:38:39  <ThomasWaldmann> well, that can be solved by removing the existing one (after some testing :)
2007-12-03T23:39:07  <tuxella> ok
2007-12-03T23:39:22  <ThomasWaldmann> btw, you don't need that tmp var
2007-12-03T23:40:39  <tuxella> yes you're right
2007-12-03T23:41:02  <ThomasWaldmann> ok, how many libs do you have now? 7?
2007-12-03T23:41:26  <tuxella> hum
2007-12-03T23:42:19  <tuxella> xlrd, pypdf, hachoir-metadata, kaa-metadata, libextractor-bindings, libgsf (if some one knows about bindings ...)
2007-12-03T23:42:27  <tuxella> this makes 6
2007-12-03T23:43:09  <tuxella> and the 3 metadata libs can each parse betwen 20 and 30
2007-12-03T23:44:19  * ThomasWaldmann counts 8 if one includes the "not so great" stuff (but that did also cost time for researching)
2007-12-03T23:44:50  <tuxella> that's quite fair
2007-12-03T23:47:12  <ThomasWaldmann> ok, you wrote that filter code (this was optional), so, from the amount of work you've done, I would say you are finished. but the task was to make a list of 10 libs, so maybe try to research 2 more items.
2007-12-03T23:48:00  <tuxella> ok, any file format idea then ?
2007-12-03T23:51:36  <ThomasWaldmann> did you look for pure py ppt stuff?
2007-12-03T23:52:47  <dreimark> an ocr lib would be nice too which could extract text from images
2007-12-03T23:53:05  <ThomasWaldmann> btw, the current "text" filter is a bit simple.
2007-12-03T23:53:42  <ThomasWaldmann> if you find some lib that does a good job at autodetecting charset (and language), that would be great.
2007-12-03T23:54:12  <tuxella> ThomasWaldmann, I already looked at ppt and it's pretty much the same as for .doc : it's ole2 file format, then it'll be handled ny lib gsf
2007-12-03T23:59:22  <ThomasWaldmann> ok
2007-12-03T23:59:42  <tuxella> but I've found a nice library for guessing encoding :)

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