2007-06-12T00:01:59  <grzywacz> xorAxAx, I *hope* so. I really can't find relative imports...
2007-06-12T00:02:01  <grzywacz> oh
2007-06-12T00:02:25  <xorAxAx> grep -r import .
2007-06-12T00:03:56  <grzywacz> Looks ok.
2007-06-12T00:04:07  <grzywacz> I recall you mentioned JabberNotification.py as well
2007-06-12T00:04:14  <grzywacz> Right?
2007-06-12T00:05:44  <grzywacz> karol@omoikane events% hg mv EmailNotification.py emailnotify.py
2007-06-12T00:05:45  <grzywacz> karol@omoikane events% hg mv JabberNotification.py jabbernotify.py
2007-06-12T00:05:47  <grzywacz> Is this ok? ;)
2007-06-12T00:29:15  <xorAxAx> grzywacz: yes
2007-06-12T00:29:58  <CIA-27> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2105:20124633e8b4 1.7-jabber-knowak/MoinMoin/events/messages.py: Fix generation of "comments" notification.
2007-06-12T00:29:59  <CIA-27> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2106:38ef27ddaa66 1.7-jabber-knowak/MoinMoin/events/ (4 files): Makes file names pep-8 compatible.
2007-06-12T00:30:10  <grzywacz> xorAxAx, anything more that I've forgotten about? :\
2007-06-12T00:30:27  <grzywacz> I'd really like to have the issue of an early merge solved before moving on.
2007-06-12T00:32:39  <xorAxAx> grzywacz: oh well, dont block yourself on that :)
2007-06-12T00:32:50  <xorAxAx> you can even care for 2 branches in your repo
2007-06-12T00:33:38  <grzywacz> I know, but it's just... blocking me psychically. :D
2007-06-12T00:37:23  <starshine> let your inner child play with your mental blocks? (good off with it some, turn it around in your head a few different times)
2007-06-12T00:37:33  <starshine> *goof off
2007-06-12T00:37:39  <starshine> play with it.
2007-06-12T00:37:52  <grzywacz> heh ;)
2007-06-12T00:40:16  <xorAxAx> grzywacz: you are the best SOC student i ever mentored, dont be blocked :-)
2007-06-12T00:40:51  <grzywacz> Since you mentored keppy last time? :P
2007-06-12T00:43:39  <xorAxAx> no, because i was a SOC student last year :)
2007-06-12T00:43:48  <ThomasWaldmann> hehe
2007-06-12T00:43:50  <xorAxAx> tom mentored keppy
2007-06-12T00:44:12  <grzywacz> Well, that was close. :D
2007-06-12T00:46:46  <ThomasWaldmann> lanius: hey, you are the best soc student I ever mentored :)
2007-06-12T00:46:58  <ThomasWaldmann> (just wanted to note :)
2007-06-12T00:47:30  <RememberPOL> I'm getting HTML validation errors that are all contained within the "content" div of the FrontPage (having to do with missing <p> end tags and such) so what would be the main way of going about fixing these?
2007-06-12T00:48:05  <RememberPOL> The binary underlay page seems odd because I see some end tags like </h2> but no <h2> start tag..
2007-06-12T00:48:51  <RememberPOL> I looked in MoinMoin/formatter/__init__.py but there's no reference to <p> or <h1> I can see.. ^^
2007-06-12T00:50:17  <RememberPOL> There's basically 25 validation errors in four lines of rendered FrontPage HTML. (lines 145-149)
2007-06-12T00:51:15  <RememberPOL> http://rafb.net/p/jpZmyk63.txt
2007-06-12T00:51:57  <RememberPOL> for example say I wanted to change that first <h1> to an <h6> or add some </p> tags.. any idea where I might look?
2007-06-12T00:53:41  <ThomasWaldmann> the content is created by the parser and the formater and this is not trivial to fix
2007-06-12T00:53:54  <RememberPOL> :D
2007-06-12T00:56:25  <dreimark> good night,
2007-06-12T00:56:35  <RememberPOL> night
2007-06-12T00:57:09  <ThomasWaldmann> gn dreimark
2007-06-12T01:31:13  <grzywacz> 8)
2007-06-12T01:32:20  <grzywacz> xorAxAx, actually, it is possible to use decorator *and* preserve function's name. Kind of. One simply has to use new.function
2007-06-12T01:32:22  <RememberPOL> are you polish? :p
2007-06-12T01:32:29  <grzywacz> RememberPOL, I happen to be, yes.
2007-06-12T01:32:31  <grzywacz> Why?
2007-06-12T01:32:41  <RememberPOL> your nick just looks it, thats all heh
2007-06-12T01:32:48  <grzywacz> I know, lol. :P
2007-06-12T01:33:53  <xorAxAx> grzywacz: :-)
2007-06-12T01:57:08  * ThomasWaldmann got $200 adwords coupon donated from google :)
2007-06-12T01:57:38  <grzywacz> O_O
2007-06-12T01:57:52  <grzywacz> Nice.
2007-06-12T01:58:10  <xorAxAx> a nice idea, yes
2007-06-12T02:35:03  <grzywacz> Good night.
2007-06-12T08:18:41  <ThomasWaldmann> moin
2007-06-12T08:40:10  <RememberPOL> moin
2007-06-12T11:29:37  <ThomasWaldmann> grzywacz: on #moin someone wants to get notified on user account creation. maybe an idea for your project. :)
2007-06-12T11:44:07  <grzywacz> ThomasWaldmann, sure, I was going to add it . :)
2007-06-12T12:03:01  <vpv> I think I've done enough reading etc. to start actually coding now ;) I was thinking of starting with making a man parser. I could do the "publish man pages" part with that.
2007-06-12T12:04:12  <vpv> But then there's the editing part. If it only works with a parser, then the users would have to know how to edit *roff stuff, which is not what we want.
2007-06-12T12:08:09  <vpv> One way could be making an importer that would import the man pages as wiki markup and then an exporter that would convert them back to man source. But again, that way the patches wouldn't always be "compatible" with the original man source...
2007-06-12T12:13:31  <grzywacz> I must say that I really do like your project. 8)
2007-06-12T12:14:43  <ThomasWaldmann> vpv: did you talk to some man/info page maintainers about their workflow?
2007-06-12T12:15:37  <vpv> I did contact the Linux man page maintainer, but he hasn't answered yet. I guess I should "bug" some of the fedora developers next.
2007-06-12T12:16:34  <vpv> But there's a HOWTOHELP file in man-pages where the maintainer expects to get pretty clean patches...
2007-06-12T12:19:48  <vpv> I pasted them here: http://pastebin.ca/561084
2007-06-12T12:20:49  <vpv> The last point is important, if we re-generate the whole man source from wiki markup, I guess those kind of "useless one line edits" can't be avoided
2007-06-12T12:23:35  <ThomasWaldmann> well, this text is about non-manpage maintainers doing stuff, not about the workflow of somebody doing this on a regular basis
2007-06-12T12:24:12  <zenhase> moin
2007-06-12T12:26:27  <ThomasWaldmann> so the question is about the goal of this man/info. should this be a tool for man/info maintainers or just some source of information for them.
2007-06-12T12:27:50  <zenhase> hmm, friend of mine just suggested to create a karlsruher GSOC group, just like you meet in groups almost everyday when learning for exams
2007-06-12T12:29:24  <ThomasWaldmann> the difference is that you have different projects for soc and same "project" for exams
2007-06-12T12:31:01  <zenhase> i think it's more about the right "hack"-atmosphere
2007-06-12T12:31:53  <ThomasWaldmann> :)
2007-06-12T12:31:59  <zenhase> also we have similar knowledge in programming languages and could help each other here and there
2007-06-12T12:32:20  <zenhase> he does a fuzzing-framework for pentesting TOR :>
2007-06-12T12:32:36  <zenhase> also real interesting stuff
2007-06-12T12:33:15  <vpv> ThomasWaldmann: I think I'll mail fedora-devel and the person who maintains the man-pages packages in Fedora and RHEL today with this point and let's see what they say. The "source of information" way is something that has been talked about in the Fedora Docs project...
2007-06-12T13:12:39  <CIA-27> moin: Marian Neagul marian@info.uvt.ro * 2026:41b8cc280d69 1.7-classify-mneagul/MoinMoin/ (4 files in 3 dirs): Removed all changes to Page().
2007-06-12T13:29:23  <CIA-27> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2107:260d0dbded44 1.7-jabber-knowak/jabberbot/ (commands.py xmppbot.py): Checkpoint commit, to record progress on implementation of user commands.
2007-06-12T13:29:24  <CIA-27> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2108:7f579f5fd44b 1.7-jabber-knowak/ (3 files in 2 dirs): Improve docstrings. s/type/msgtype/ to avoid name conflict with builtin.
2007-06-12T13:35:03  <grzywacz> W00t, I commited a false comment, yay for me.
2007-06-12T13:41:43  <grzywacz> xorAxAx, should you want to play with WIP on user-commands (or comment on the current state), you can talk to moinbot@jabber.org ;)
2007-06-12T13:45:04  <xorAxAx> grzywacz: will do :)
2007-06-12T13:46:04  <grzywacz> It may not be obvious enough atm, but "help help" works. ;D
2007-06-12T13:47:20  <xorAxAx> grzywacz: did it crash?
2007-06-12T13:47:30  <grzywacz> Yes. Fixed.
2007-06-12T13:47:30  <grzywacz> ;]
2007-06-12T13:47:36  <grzywacz> A type of sorts.
2007-06-12T13:47:38  <grzywacz> *typo
2007-06-12T13:47:51  <grzywacz> And no, GetPage does not work yet. ;)
2007-06-12T13:48:14  <xorAxAx> hmpf
2007-06-12T13:48:20  <grzywacz> hmpf?
2007-06-12T13:48:24  <xorAxAx> as in argh :=)
2007-06-12T13:48:28  <grzywacz> :D
2007-06-12T13:48:38  <grzywacz> I'm adding this next, no worries.
2007-06-12T13:49:19  <grzywacz> Right now I wanted to check if this approach to defining commands, their properties and the way interaction with help works are ok.
2007-06-12T13:49:32  <xorAxAx> ok
2007-06-12T13:49:42  <grzywacz> Note that it may sometimes hang because of eclipse.
2007-06-12T14:11:23  <dreimark> moin neagulm
2007-06-12T14:19:40  <grzywacz> xorAxAx, how do I authenticate a xml rpc request? With multicall and *authToken methods?
2007-06-12T14:21:28  <xorAxAx> grzywacz: yes, see MoinMoin.wikisync
2007-06-12T14:21:53  <xorAxAx> you need a multicall that does an applytoken call first
2007-06-12T14:21:59  <xorAxAx> or something like that
2007-06-12T14:22:08  <grzywacz> I thought so, thanks for clarifying. :)
2007-06-12T14:25:02  <dreimark> does one have tried ekiga too ?
2007-06-12T14:25:13  <dreimark> instead of skype?
2007-06-12T14:27:13  <xorAxAx> ekiga is a sip client
2007-06-12T14:27:30  * xorAxAx is reachable via sip
2007-06-12T14:31:50  <neagulm> hello dreimark
2007-06-12T14:32:12  <dreimark> hi neagulm
2007-06-12T14:33:04  <neagulm> dreimark, i have reverted Page.py to its original state and have moved moved part of the code to the show action.
2007-06-12T14:34:36  <neagulm> dreimark, next I will remove the singleton behavior out of BasicClassifier and will instatiate the desired classifier directly in wikiconfig, this way it will be more cleaner
2007-06-12T14:35:15  <dreimark> I am reading ...
2007-06-12T14:36:11  <dreimark> pg.send_page( ... could be all in one line to much line breaks (action/__init__.py)
2007-06-12T14:39:40  <lanius> ThomasWaldmann: am i the first one?
2007-06-12T14:39:43  <dreimark>   1172        _ = self.request.getText should be some line before looks nicer
2007-06-12T14:40:30  <ThomasWaldmann> lanius: no, the second :)
2007-06-12T14:41:42  <xorAxAx> hmm?
2007-06-12T14:41:59  <lanius> ThomasWaldmann: so i assume it's a compliment, how do you come to this praise
2007-06-12T14:43:15  <ThomasWaldmann> read the context :)
2007-06-12T14:43:34  <xorAxAx> i cant read any reference to being a first or second one somewhere :)
2007-06-12T14:45:36  <grzywacz> Yup.
2007-06-12T14:47:09  <lanius> ThomasWaldmann: sadly it is not in my log anymore and not yet on the server log
2007-06-12T14:48:42  <ThomasWaldmann> lanius: the first one trying storage refactoring as a SOC project was keppy in 2006. and he didnt succeed.
2007-06-12T14:49:02  <lanius> keppy?
2007-06-12T14:49:27  <ThomasWaldmann> "kepplar" was his nick
2007-06-12T14:49:36  <lanius> ah
2007-06-12T14:49:58  <lanius> and how can you know that i will be better ;)
2007-06-12T14:50:29  <ThomasWaldmann> you didn't use hungarian notation for your stuff :)
2007-06-12T14:51:07  <lanius> if that is the only criteria i'm done, ain't i?
2007-06-12T14:51:36  <xorAxAx> oh well :)
2007-06-12T14:51:52  <xorAxAx> lanius: he didnt suceed to get moin running locally till the end
2007-06-12T14:52:09  <xorAxAx> lanius: he debugged by committing raise instructions and looking at the test setup on toms server
2007-06-12T14:52:35  <lanius> does not sound very efficient
2007-06-12T14:53:15  <xorAxAx> or smart, yes :)
2007-06-12T15:01:12  * ThomasWaldmann plays with adwords
2007-06-12T15:16:34  <grzywacz> --- [Kepplar] (n=a@moinmoin/student/A) : A
2007-06-12T15:16:35  <grzywacz> --- [Kepplar] irc.freenode.net :http://freenode.net/
2007-06-12T15:16:39  <grzywacz> You mean him? ;-)
2007-06-12T15:16:44  <grzywacz> Nice mask. ;-P
2007-06-12T15:17:42  <xorAxAx> hmm, yeah, do you want to have one as well? :)
2007-06-12T15:17:56  <xorAxAx> lanius, neagulm: you as well?
2007-06-12T15:18:22  <grzywacz> I don't mind. ;)
2007-06-12T15:18:45  <xorAxAx> lanius is not identified, otherwise he would get one
2007-06-12T15:19:41  <grzywacz> I should be identified, I think. 8)
2007-06-12T15:20:47  <lanius> i'm identified
2007-06-12T15:20:53  <grzywacz> xorAxAx, thanks 8)
2007-06-12T15:21:03  <xorAxAx> lanius: nope
2007-06-12T15:21:19  <xorAxAx> lanius: /whois lanius says that you are not
2007-06-12T15:21:38  <lanius> ah now
2007-06-12T15:21:47  <lanius> strange that i don't lost my nick then
2007-06-12T15:22:09  <xorAxAx> yes, happens sometimes for server disconnects ... well, you wont lose it
2007-06-12T15:24:20  <lanius> i think when i don't identify on the first connet i will lose it
2007-06-12T15:46:43  <zenhase> re
2007-06-12T15:47:50  <xorAxAx> zenhase: do you want to have a cloak as well?
2007-06-12T15:49:40  <grzywacz> Cloak of Darkness. [;
2007-06-12T15:50:14  <xorAxAx> the end of being publicly naked
2007-06-12T15:50:26  <zenhase> xorAxAx: erm
2007-06-12T15:50:31  <zenhase> xorAxAx: what cloak? :>
2007-06-12T15:50:50  <xorAxAx> zenhase: see above or dont you have channel history? :)
2007-06-12T15:51:07  <zenhase> xorAxAx: wait a second
2007-06-12T15:52:41  <zenhase> oh
2007-06-12T15:52:46  <zenhase> that's a cloak
2007-06-12T15:52:56  <zenhase> hmm, looks nice, how do i get one? :>
2007-06-12T15:54:20  <xorAxAx> what was your first name again?
2007-06-12T15:55:19  <grzywacz> "bunny" ;>
2007-06-12T15:55:51  <xorAxAx> your parents must have hated you :)
2007-06-12T15:55:52  <zenhase> hrhr
2007-06-12T15:56:07  <zenhase> my firstname is florian
2007-06-12T15:56:40  <zenhase> i think it's a sign that they don't hate me ;>
2007-06-12T15:57:33  <ffesti> strange I also try to avoid using my first name... I see a pattern here
2007-06-12T15:58:09  <xorAxAx> you are the perfect mentor for him :)
2007-06-12T15:58:30  <zenhase> i have a gigantic surplus of florians in my life
2007-06-12T15:59:03  <zenhase> there are 4 (or 5 depending on whom you ask) florians at CCC karlsruhe already
2007-06-12T15:59:31  * xorAxAx doesnt know any florian IRL
2007-06-12T15:59:42  <xorAxAx> zenhase: now try a whois
2007-06-12T15:59:46  <xorAxAx> on yourself
2007-06-12T16:00:07  <zenhase> neato
2007-06-12T16:00:10  <xorAxAx> ffesti: does your cloak end on fabi or florian?
2007-06-12T16:00:43  * xorAxAx cant remember
2007-06-12T16:01:20  <zenhase> if i want to add stuff to the default-config for in-development stuff, i put it in the 'hacks'-dictionary?
2007-06-12T16:01:41  <xorAxAx> its meant to switch on experimental features, yes
2007-06-12T16:01:47  <xorAxAx> not really in development, well
2007-06-12T16:02:26  <zenhase> well, i could also put it in the config directly, use an adequate prefix
2007-06-12T16:02:38  <zenhase> s/, use/and use
2007-06-12T16:08:08  <dreimark> neagulm: do you want to have a cloak as the others too?
2007-06-12T16:08:47  <neagulm> dreimark, yes
2007-06-12T16:09:01  <neagulm> :)
2007-06-12T16:09:48  <zenhase> we have a caped superhero at ccc-ka too ;>
2007-06-12T16:09:48  <dreimark> xorAxAx: please change neagulm too :)
2007-06-12T16:09:53  <zenhase> http://entropia.de/wiki/Turbo-Tina
2007-06-12T16:10:46  <zenhase> hmm, i realize cape != cloak
2007-06-12T16:11:01  <zenhase> but anyway ... it's somewhere near ;>
2007-06-12T16:11:10  <xorAxAx> zenhase: hehe
2007-06-12T16:13:02  <zenhase> we decided to do even more creative stuff with old computer jung
2007-06-12T16:13:05  <zenhase> junk
2007-06-12T16:14:21  <zenhase> we almost drown in it ...
2007-06-12T16:35:05  <ThomasWaldmann> http://www.google.de/search?q=wiki  (see ad at the right, but don't click :)
2007-06-12T16:35:24  <xorAxAx> cool
2007-06-12T16:41:31  <ThomasWaldmann> each click will cost us about 0.08 EUR
2007-06-12T16:42:14  <xorAxAx> i.e. it will be gone tomorrow?
2007-06-12T16:42:38  <ThomasWaldmann> we already have 3 clicks and 2151 Impressions
2007-06-12T16:43:17  <ThomasWaldmann> no, I set a rather low daily limit, so it will last for about 5 weeks
2007-06-12T16:43:31  <zenhase> awsome :>
2007-06-12T16:44:34  <zenhase> hmm, we could try out some other searches to see which other gsoc-projects have already setup their adwords-freebie
2007-06-12T16:44:36  <xorAxAx> ah
2007-06-12T16:44:46  <ThomasWaldmann> currently it only triggers if someone searches for "wiki"
2007-06-12T16:44:56  <xorAxAx> ThomasWaldmann: i think thats fine
2007-06-12T16:45:06  <xorAxAx> .oO(those stupid people who click google ads)
2007-06-12T16:45:42  <zenhase> omg
2007-06-12T16:46:03  <zenhase> "Enterprise Wiki" - Get a free Wiki trial now!
2007-06-12T16:47:54  <ThomasWaldmann> zenhase: did the ad show for "enterprise wiki"?
2007-06-12T16:52:40  <zenhase> ThomasWaldmann: first it did for moin only, but when i googled via my safari searchbar enterprise wiki was there in front of the moin ad
2007-06-12T17:01:46  <ThomasWaldmann> hmm, they inactivated "wiki" keyword
2007-06-12T17:27:00  <ThomasWaldmann> "moinmoin wiki" tells me it wants 8 EUR minimum bid. wtf.
2007-06-12T17:28:30  <starshine_away> heh
2007-06-12T17:53:34  * ThomasWaldmann has trouble using this adwords tool
2007-06-12T17:54:34  <ThomasWaldmann> it inactivates my keywords and suggests I either improve keyword quality or raise minimum bid (to 8 EUR usually)
2007-06-12T17:55:41  <ThomasWaldmann> (and this for keywords like wiki, wiki engine, wiki software, moinmoin wiki, ... that should be pretty high quality imho)
2007-06-12T17:57:54  <starshine> software probably is vague
2007-06-12T17:58:19  <ThomasWaldmann> i also tried "wiki software" with same result
2007-06-12T17:58:22  <starshine> wiki might have gotten classed as vague
2007-06-12T17:58:33  <starshine> but moinmoin I'd think would be specific enough
2007-06-12T17:58:57  <ThomasWaldmann> it even rejects that one
2007-06-12T17:59:21  <starshine> call em up and ask what's with it?
2007-06-12T17:59:46  <ThomasWaldmann> and the general question is, if I would have to enter so specific things that only moinmoin matches anyway, why would I advertise then (if google finds only moinmoin then anyway :)
2007-06-12T18:00:17  * ThomasWaldmann first does some more rtfm
2007-06-12T19:04:27  <neagulm> ThomasWaldmann, is there a way to get a "dummy" Page instance (without having something on disk) ?
2007-06-12T19:04:48  <ThomasWaldmann> just don't save it
2007-06-12T19:05:15  <ThomasWaldmann> for what do you need that?
2007-06-12T19:07:05  <neagulm> i'm writing a security policy that uses the classifier but I want to keep the same tokenizer...
2007-06-12T19:53:10  <CIA-27> moin: Marian Neagul marian@info.uvt.ro * 2027:36f46389902f 1.7-classify-mneagul/ (6 files in 5 dirs): Initial SecurityPolicy.
2007-06-12T19:54:11  <CIA-27> moin: Marian Neagul marian@info.uvt.ro * 2028:884e14bd66ee 1.7-classify-mneagul/MoinMoin/classifier/SecurityPolicy.py: added missing newline
2007-06-12T19:56:52  <ThomasWaldmann> lanius: zenhase: how are things going?
2007-06-12T21:06:18  * ThomasWaldmann (4 EUR gone for 20 clicks)
2007-06-12T21:25:21  <zenhase> ThomasWaldmann: still assembling templates
2007-06-12T21:26:36  <zenhase> i will push stuff later today and keep working :>
2007-06-12T21:27:07  <grzywacz> ThomasWaldmann, that's quite a lot :)
2007-06-12T21:28:56  <zenhase> grzywacz: well, even relatively small companies can easily have an adword invoice of half a million EU
2007-06-12T21:30:14  <grzywacz> Sounds painful. ;]
2007-06-12T22:04:09  <ThomasWaldmann> vpv: http://fedoraproject.org/wiki/SummerOfCode how is your work related to SOC project of RiaDias?
2007-06-12T22:14:36  <dreimark> bb
2007-06-12T22:57:16  <grzywacz> Oh no...
2007-06-12T22:57:26  <grzywacz> xmlrpclib in 2.3 doesn't have multicall support? :S
2007-06-12T22:58:00  <xorAxAx> grzywacz: moin has its own xmlrpclib for that
2007-06-12T22:58:11  <xorAxAx> grzywacz: see wikisync
2007-06-12T22:58:14  <grzywacz> xorAxAx, I've just realised why this code is there
2007-06-12T22:58:17  <grzywacz> I know, I've seen it.
2007-06-12T22:58:20  <xorAxAx> cool :)
2007-06-12T22:58:29  <grzywacz> I'm going to perform a shameful copypasta, then. :D :P
2007-06-12T22:58:42  <xorAxAx> well, hg cp :)
2007-06-12T22:58:49  <xorAxAx> hmm
2007-06-12T22:58:55  <xorAxAx> depends which part you need
2007-06-12T22:59:06  <xorAxAx> the multicall server code would be c&p, yes
2007-06-12T23:12:13  <vpv> ThomasWaldmann: on some level, yes. But she won't be using Moin AFAIK. We have had meetings with Karsten and her mentor, but I haven't heard anything from herself yet...
2007-06-12T23:14:28  * ThomasWaldmann just wondered because it sounded rather similar (from a user perspective)
2007-06-12T23:15:01  <zenhase> xorAxAx: i need your adivce as a experienced genshi-user :>
2007-06-12T23:15:35  <zenhase> xorAxAx: common snippet reuse: match-template or py:def?
2007-06-12T23:15:42  <xorAxAx> zenhase: speak, one of our students.
2007-06-12T23:16:22  <xorAxAx> zenhase: well, matching only works against the tag name, right?
2007-06-12T23:17:17  <zenhase> well, the exact case i am thinking right now is the trail
2007-06-12T23:17:24  <zenhase> thinking of
2007-06-12T23:17:43  <xorAxAx> if matching only works for the tag name, you would need to introduce custom tags for that
2007-06-12T23:17:46  <zenhase> that would be a complete element anyway i think and not a fragment
2007-06-12T23:17:47  <xorAxAx> which is rather ugly
2007-06-12T23:17:52  <zenhase> why?
2007-06-12T23:18:01  <xorAxAx> because it isnt valid HTML anymore :)
2007-06-12T23:18:16  <zenhase> py:match="div[@id='trail']"?
2007-06-12T23:18:21  <xorAxAx> (actually, its not valid HTML at all because HTML doesnt allow for third-party namespaces, but thats a different issue)
2007-06-12T23:18:24  <xorAxAx> hmm
2007-06-12T23:18:38  <xorAxAx> i think i have never used py:match, let me check the docs
2007-06-12T23:18:57  <xorAxAx> indeed
2007-06-12T23:19:08  <xorAxAx> hmm, then py:match is nicer
2007-06-12T23:19:18  <zenhase> i didn't read very carefully, but i expected match to use the same syntax as select :>
2007-06-12T23:19:36  <zenhase> thought so too :>
2007-06-12T23:19:41  <xorAxAx> yes, uses xpath
2007-06-12T23:20:13  <zenhase> would be also nice because common id's would be properly used then by templateers
2007-06-12T23:20:39  <xorAxAx> yes
2007-06-12T23:20:52  <zenhase> this html4.01 namespace thingy shot me in the foot some minutes ago
2007-06-12T23:21:31  <zenhase> .render('html') left out almost every element in the template ;>
2007-06-12T23:22:09  <xorAxAx> hmm?
2007-06-12T23:22:41  <zenhase> because auf xmlns='...html-namespace...' in the html-element
2007-06-12T23:22:49  <zenhase> without it renders finde
2007-06-12T23:22:51  <zenhase> fine
2007-06-12T23:22:58  <zenhase> dunno if this is intended by genshi
2007-06-12T23:23:31  <xorAxAx> hehe
2007-06-12T23:23:34  <zenhase> tho i really would like to be able to formulate the templates in pure xhtml
2007-06-12T23:23:49  <zenhase> (with correct namespace declaration that is)
2007-06-12T23:24:04  <zenhase> the htmlserializer should be more forgiving here i think
2007-06-12T23:54:00  <zenhase> oh boy oh boy ... b
2007-06-12T23:54:44  <zenhase> hmm, don't start typing in irssi and expect ctrl-x b to work like in emacs
2007-06-12T23:54:59  <zenhase> perhaps i should switch to emacs irc client
2007-06-12T23:56:34  <zenhase> anyway: this d-param dict in themes is completely insane! :>
2007-06-12T23:57:27  <zenhase> it get's passed to almost every function in ThemeBase, most of them which do not even use it and then some of them _extend_ it!

MoinMoin: MoinMoinChat/Logs/moin-dev/2007-06-12 (last edited 2021-02-12 17:20:58 by Bind)