2007-11-06T08:18:10 <ThomasWaldman2> moin
2007-11-06T08:49:16 <ThomasWaldmann> bbl
2007-11-06T11:25:08 <foo> i heard that in moin1.7 release will be implemented a mechanism event-base like hooks and similar, it's true?
2007-11-06T11:26:11 <xorAxAx> foo: yes
2007-11-06T11:26:16 <xorAxAx> its already in there
2007-11-06T11:26:20 <xorAxAx> in the 1.7 branch
2007-11-06T11:27:12 <foo> oh...perfect.
2007-11-06T11:27:44 <foo> 1.7, already works?
2007-11-06T11:29:41 <johill> fwiw, I'm running it
2007-11-06T11:29:51 <johill> I trust it more than 1.6 but ymmv
2007-11-06T11:31:58 <johill> on the other hand, the gui editor frequently breaks and other things too
2007-11-06T11:34:47 <foo> is there a complete list of hooks usage and use-case, maybe in the editor , save action ... or similar?
2007-11-06T11:36:26 <xorAxAx> yes, there is the source code which lists all event classes
2007-11-06T11:36:40 <xorAxAx> and use cases can be derived from the handlers :)
2007-11-06T11:37:33 <johill> there doesn't seem to be a DOM based wiki at all
2007-11-06T11:37:34 <johill> crap
2007-11-06T11:42:22 <foo> k
2007-11-06T11:42:31 <foo> thx
2007-11-06T11:44:57 <xorAxAx> johill: yes, i have the impression that many engines are even less well engineered to this regard than moin 1.0
2007-11-06T11:45:08 <johill> sigh
2007-11-06T11:45:09 <johill> yeah
2007-11-06T11:45:28 <johill> maybe I should find somebody willing to sponsor a "DOM-based wiki engine" as a masters
2007-11-06T11:45:36 <xorAxAx> sounds cool :)
2007-11-06T11:45:52 <johill> I already did the most interesting pieces ;)
2007-11-06T11:46:03 <johill> well, I realised yesterday that it needs a complete rewrite
2007-11-06T11:46:07 <xorAxAx> well, i suggest to do more research on it :)
2007-11-06T11:46:12 <xorAxAx> hah
2007-11-06T11:46:12 <johill> separating placeholder nodes and stuff doesn't work out
2007-11-06T11:46:44 <johill> seen the ripe 55 song yet? http://www.youtube.com/watch?v=_y36fG2Oba0
2007-11-06T11:46:52 <xorAxAx> yes
2007-11-06T11:47:18 <johill> anyway, I don't know what sort of research I should do. all wikis I looked at either go directly to html or like moin
2007-11-06T11:53:25 <xorAxAx> johill: well, put up a few requirements (toc etc.) and try to develop a model that allows the best flexiblity of third-party authors that do not want to patch moin code :)
2007-11-06T11:53:46 <johill> oh sure
2007-11-06T11:53:51 <johill> I thought you mean researching existing systems
2007-11-06T11:54:33 <johill> btw an interesting plugin I figured out yesterday that is possible with a dom is a <<=>> plugin that takes spreadsheet formulas
2007-11-06T11:54:33 <xorAxAx> no :)
2007-11-06T11:54:39 <johill> and which you can use in any table
2007-11-06T11:55:13 <xorAxAx> <<=(1+1)>>?
2007-11-06T11:55:22 <johill> so you could write <<=sum(a1:d1)>>
2007-11-06T11:55:23 <xorAxAx> ugly :)
2007-11-06T11:55:31 <johill> ah whatever the syntax ;)
2007-11-06T11:55:39 <xorAxAx> how about a plugin that doesnt need << >> syntax at all
2007-11-06T11:55:42 <johill> the more interesting thing is that it's possible
2007-11-06T11:55:52 <xorAxAx> but simply traverses the table cells and searches for =
2007-11-06T11:55:57 <xorAxAx> ^=.*$
2007-11-06T11:56:01 <johill> because it can access the DOM
2007-11-06T11:56:15 <johill> that's more of a syntax plugin, I'd probably separate that into two plugins then
2007-11-06T11:56:26 <johill> one that does the syntax and one that does the macro stuff
2007-11-06T11:57:04 <xorAxAx> johill: i am not talking about syntax at all - but only about dom processing :)
2007-11-06T11:57:09 <johill> (actually, I was thinking about whether this can be done with moin right now and realised that it cannot unless you want to render the page through a special renderer like TOC does)
2007-11-06T11:57:42 <johill> ah so you mean it should be a dom processing plugin that takes table cells starting with =, yeah, that'd work too
2007-11-06T12:09:31 <foo> in PageEditor.py source code you call hook, event... example PagePreSaveEvent maybe a PreSave hook? tell me if im doing wrong code analysis, please :)
2007-11-06T12:11:10 <xorAxAx> foo: yes, thats right. but in MoinMoin.event.something you will find all classes in one place
2007-11-06T12:11:13 <xorAxAx> with docstrings in them
2007-11-06T12:13:22 <johill> they're in __init__.py
2007-11-06T12:13:24 <johill> iirc
2007-11-06T12:23:09 <foo> xorAxAx: ok, that's good. but i do not see stuff like mechanism to assign event to a function interactively, without editing PageEditor source code. that's right? will you realize it or not?
2007-11-06T12:25:16 <xorAxAx> foo: what do you mean?
2007-11-06T12:25:21 <xorAxAx> can you elaborate?
2007-11-06T12:26:29 <foo> uhm, i try! im not english mother tongue :)
2007-11-06T12:26:53 <johill> no, you just have to write an event plugin
2007-11-06T12:27:01 <johill> all event plugins are loaded and notified of all events
2007-11-06T12:32:09 <foo> umh...ok, maybe i understand now. i try to explain:
2007-11-06T12:32:42 <foo> i write an event plugin
2007-11-06T12:33:05 <foo> like ... import MoinMoin.event.stuff ...
2007-11-06T12:34:08 <xorAxAx> have you looked at the existing event handler plugins?
2007-11-06T12:34:12 <foo> every event Moin check in event plugin dir and if find that, run it?
2007-11-06T12:34:23 <foo> yes...
2007-11-06T12:34:25 <xorAxAx> foo: yes, nearly like that
2007-11-06T12:35:52 <johill> I'd just copy emailnotify.py and edit it
2007-11-06T12:36:07 <foo> perfect. thank you for the patience. now i try to works on my action plugin.
2007-11-06T12:37:06 <foo> now im working on a dynamic template handler.
2007-11-06T12:37:17 <foo> for moinmoin,
2007-11-06T12:38:14 <foo> i hope will be useful for the moin user.
2007-11-06T13:13:11 <foo> cd modules; make; make install
2007-11-06T13:13:20 <foo> opss.... :)
2007-11-06T13:19:40 <foo> au revoir
2007-11-06T13:23:11 <lanius> hi
2007-11-06T13:29:02 <CIA-32> moin: Heinrich Wendel <h_wendel@cojobo.net> default * 3170:9fda31823a8b 1.7-storage-hwendel/ (58 files in 33 dirs): merge main
2007-11-06T13:29:27 <xorAxAx> cool
2007-11-06T13:29:31 <xorAxAx> hi lanius
2007-11-06T13:29:47 <xorAxAx> lanius: do you want to participate in a secret project? :)
2007-11-06T13:46:02 <CIA-32> moin: Heinrich Wendel <h_wendel@cojobo.net> default * 3171:796b034f379b 1.7-storage-hwendel/MoinMoin/ (Page.py PageEditor.py config/multiconfig.py): small fixes after the merge
2007-11-06T14:33:16 <lanius> xorAxAx: how secret ;)
2007-11-06T16:33:57 <__foo> is there a way to import safely MoinMoin rel-1.7 files into pre-MoinMoin-rel-1.7?
2007-11-06T16:34:51 <__foo> assuming withot mercurial
2007-11-06T16:40:26 <__foo> or how to test 1.7, i have some problems when i try to run wiki-engine...internal error, err 500 and similar.
2007-11-06T17:49:23 <ThomasWaldmann> moin
2007-11-06T18:41:12 <dreimark> bbl
2007-11-06T21:20:34 <xorAxAx> lanius: was that a question? :)
2007-11-06T22:34:52 <dreimark> moin
MoinMoin: MoinMoinChat/Logs/moin-dev/2007-11-06 (last edited 2007-12-22 22:45:02 by IrcLogImporter)