2008-07-27T00:00:06  <xorAxAx> also in the write_file func there was a case with "no revision backup" - those were automated callers that never used an editor at all - therefore they should use the items directly nowadays
2008-07-27T00:00:55  <dennda> are those statements about write_file more of a "by the way" nature, or are they directly related to the pageeditor problem?
2008-07-27T00:01:07  <xorAxAx> its only used once in the code base, interesting
2008-07-27T00:01:16  <xorAxAx> dennda: no, just btw
2008-07-27T00:01:24  <dreimark> waldi: FindPage is somehow interested rendered
2008-07-27T00:01:36  <xorAxAx> dennda: just wanting to point out that its not hard :)
2008-07-27T00:01:47  <xorAxAx> dennda: ok, i am going to bed now
2008-07-27T00:01:57  <dennda> too bad
2008-07-27T00:02:28  <ThomasWaldmann> no, "to bed" :P
2008-07-27T00:02:40  <xorAxAx> hmm
2008-07-27T00:03:04  <xorAxAx> ?
2008-07-27T00:03:27  <dennda> ThomasWaldmann obviously ate a clown at breakfast :D
2008-07-27T00:03:34  <dreimark> ThomasWaldmann: <<GoTo>> is missing
2008-07-27T00:03:50  <xorAxAx> dennda: but i dont understand his meaning
2008-07-27T00:04:07  <dennda> xorAxAx: you read the line I wrote? "too bad"?
2008-07-27T00:04:20  <dennda> pun-alarm!!
2008-07-27T00:04:36  <xorAxAx> ah, didnt see that one, see i am too tired :)
2008-07-27T00:04:42  <dennda> sure
2008-07-27T00:04:44  <dennda> get your rest
2008-07-27T00:04:57  <dennda> I expect you back at precisely 4:30 am.
2008-07-27T00:05:19  <dennda> :)
2008-07-27T00:05:33  <xorAxAx> am i erdős or what :-P
2008-07-27T00:07:14  <dennda> Even if I had no encoding error in the middle of that word I wouldn't know what it is
2008-07-27T00:08:14  <dreimark> waldi: <<OrphanedPages>> shows for every page a DeprecationWarning and is extremly expensive doing this
2008-07-27T00:15:07  <dreimark> shouldn't  <<Include(FrontPage)>> this include the FrontPage?
2008-07-27T00:15:30  * dreimark sees only the words
2008-07-27T00:18:12  <dreimark> no tracebacks :)
2008-07-27T00:18:56  <waldi> you use the moin parser?
2008-07-27T00:19:36  <dennda> umm
2008-07-27T00:20:39  <waldi> the moin parser produces all macros as inline elements, the Include macro only allows itself in block context
2008-07-27T00:28:22  <dreimark> waldi: yeah
2008-07-27T00:30:24  <dreimark> but Include seems not to work
2008-07-27T00:47:31  * dennda thinks he knows why PageEditor is fucked up
2008-07-27T01:08:56  <dennda> johill: You should now have received an E-Mail, telling you that I changed my personal page. That were the questions I put up there. If you find the time you may want to answer them. :)
2008-07-27T01:16:02  <dennda> ah ThomasWaldmann I only now see what you meant the other day
2008-07-27T01:16:12  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4060:e1ccb994755f 1.8-dom-bblank/MoinMoin/converter2/html_out.py: HTML output converter - Redefine toc generation in a generic framework
2008-07-27T01:16:13  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4061:4eef05b9745c 1.8-dom-bblank/MoinMoin/converter2/_tests/test_html_out.py: Tests for HTML output converter - Provide real request object
2008-07-27T01:16:14  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4062:445f7cbb8e62 1.8-dom-bblank/MoinMoin/converter2/ (_tests/test_html_out.py html_out.py): HTML output converter - Support note
2008-07-27T01:16:24  <dennda> Mozilla, Sun, Xen, Intel, MoinMoin. Nice List :D
2008-07-27T01:16:31  <waldi> dreimark: hmm, i managed to do a <<Include(^)>>
2008-07-27T01:16:46  <waldi> it produced a 12MiB file if i disable macro expansion
2008-07-27T09:00:56  <johill> dennda: ok... will go sleep first now ;)
2008-07-27T09:01:47  <johill> dennda: I don't see any email?
2008-07-27T09:11:14  <johill> dennda: ah ok got email off the wiki, will look at your question when I return, it's 3am now and I'm too drunk to think about it, tbh
2008-07-27T09:54:56  <dreimark> gn johill
2008-07-27T10:19:28  <zenhase> moin
2008-07-27T10:20:34  <zenhase> dreimark: standalone-server should work now
2008-07-27T10:24:07  <zenhase> i guess i will work on documentation today :)
2008-07-27T10:25:06  <zenhase> but first some breakfast
2008-07-27T10:31:36  <dreimark> zenhase: :) will look at it after midday
2008-07-27T11:41:47  <ThomasWaldmann> dennda: my feeling is that your problems are not related to that hidden rev field in the form. that field is mainly used to detect if someone else also has edited the page in between and then triggers some warning/merging.
2008-07-27T11:43:10  <ThomasWaldmann> dennda: and saying "I am stuck" for this problem (and ask someone else to debug it for you) is not what you're expected to do. rather get some debugger working and look yourself.
2008-07-27T11:44:23  <ThomasWaldmann> btw, the community bounding phase 2 months ago was a nice opportunity to install and test development tools
2008-07-27T11:46:42  <xorAxAx> well, but the mentor is the one who should help unblocking him
2008-07-27T11:47:03  <xorAxAx> well, we found a few issues yesterday
2008-07-27T11:47:05  <ThomasWaldmann> yes, but not to do the work for him
2008-07-27T11:47:08  <xorAxAx> dennda: did you find any other ones?
2008-07-27T11:47:27  <xorAxAx> ThomasWaldmann: well, then you dont need any mentors at all
2008-07-27T11:48:33  <xorAxAx> dennda: yes, its completly unrelated to the form. the bug is in Page.py most likely
2008-07-27T11:48:58  <xorAxAx> dennda: and we found the biggest issue yesterday already
2008-07-27T11:49:08  <xorAxAx> page.py is basically requesting the wrong revision from the backend
2008-07-27T11:49:25  <xorAxAx> maybe some off by one error, who knows
2008-07-27T11:53:17  <xorAxAx> dennda: so which revno is seen after yor removal of -1 from the particular method in page.py?
2008-07-27T11:55:43  <ThomasWaldmann> dennda: http://localhost:8080/foo?rev=1 > traceback
2008-07-27T11:58:57  <ThomasWaldmann> http://localhost:8080/foo?action=info > traceback
2008-07-27T11:59:52  <dreimark> TheSheep: johill http://moinmo.in/ReimarBauer?action=AttachFile&do=view&target=text_x_mathtran.py
2008-07-27T12:00:21  <ThomasWaldmann> dennda: http://localhost:8080/foo?action=raw&rev=1 works correctly (rev=0 shows first rev, rev=1 shows edited stuff)
2008-07-27T12:02:48  <ThomasWaldmann> dennda: please note that revision numbering was changed. main branch moin starts counting with rev=1 (and uses rev=0 to signal "i want current/latest revision" at quite some places), while storage branch obviously starts counting with rev=0
2008-07-27T12:03:57  <TheSheep> dreimark: return locals()?
2008-07-27T12:04:55  <dreimark> TheSheep: that is a trick to get the macro argument parser involved
2008-07-27T12:05:12  <dreimark> settings = wikiutil.invoke_extension_function(request, mathtran_settings, args)
2008-07-27T12:05:29  <ThomasWaldmann> dennda: ... and looks like using rev=-1 to signal "i want current rev"
2008-07-27T12:05:47  <TheSheep> dreimark: yes, I see, but I wonder if there is a better way...
2008-07-27T12:06:33  <TheSheep> dreimark: mathtrans_server might need html-escaping?
2008-07-27T12:06:54  <TheSheep> dreimark: same for raw
2008-07-27T12:08:11  <TheSheep> dreimark: ah, sorry, I misred, it doesn't just output an image with link to mathtran, it actually downloads and stores the image locally
2008-07-27T12:10:53  <TheSheep> dreimark: I don't fully understand why you need to handle the settings like that
2008-07-27T12:11:26  <TheSheep> dreimark: seems like the output of the formatter depends on which pages you visited before?
2008-07-27T12:11:28  <dreimark> TheSheep: I can do it different but I like the common way of the argumentparser
2008-07-27T12:11:50  <TheSheep> dreimark: I mean, why do you remember the settings in the parser object?
2008-07-27T12:12:11  <dreimark> we don't have currently aprser and macro unified
2008-07-27T12:12:28  <dreimark> I can use a wrapper macro to call this parser
2008-07-27T12:12:31  <TheSheep> aah, so that's boilerplate code?
2008-07-27T12:13:29  <TheSheep> dreimark: it would be nice to catch exceptions from urllib.open
2008-07-27T12:13:35  * dreimark needed to translate first boilerplate
2008-07-27T12:14:01  <dreimark> yeah I think we have the same meaning for it
2008-07-27T12:14:06  <TheSheep> or from its .read() actually
2008-07-27T12:15:23  <TheSheep> actually, from both (dns lookup errors and downloading errors)
2008-07-27T12:15:25  <dreimark> http://moinmo.in/UnifyParsersAndMacros#Howtocallaparserasmacro
2008-07-27T12:15:43  <TheSheep> dreimark: thanks, I wasn't aware of that
2008-07-27T12:16:08  <ThomasWaldmann> dennda: backends/fs.py:113 Revision is not defined
2008-07-27T12:16:11  <dreimark> waldi: is working on that too
2008-07-27T12:16:34  <TheSheep> dreimark: maybe that could be added to utils, so that when it's fixed, you can fix it in all places at the same time?
2008-07-27T12:17:37  <dreimark> TheSheep: the mathtran parser is not completly ready yet but I didn't want to forget some of the ideas we had at the ep and later on the sprint
2008-07-27T12:18:14  <TheSheep> dreimark: yeah, sorry, it's excellent, I'm just looking for places that can be improved :)
2008-07-27T12:19:30  <TheSheep> dreimark: I wonder if it's a good idea to include the page name in the cache key -- after all, you can use teh same image if it's the same formula on other pages
2008-07-27T12:19:31  <dreimark> with the cache action it is quite easy to do similiars
2008-07-27T12:20:40  <dreimark> yeah your are right, that was stupid (
2008-07-27T12:21:47  <TheSheep> dreimark: I like it how easy it looks with that cache action
2008-07-27T12:21:47  <ThomasWaldmann> TheSheep: one has to decide if one wants rather easy cache cleanup or save space
2008-07-27T12:22:30  <TheSheep> ThomasWaldmann: ah, beacause the cache clear action is tied to the page name?
2008-07-27T12:22:54  <TheSheep> ThomasWaldmann: it's not really about saving space but rather saving http requests
2008-07-27T12:23:14  <ThomasWaldmann> if a page is deleted, you could delete also caches for items of that page
2008-07-27T12:23:35  <TheSheep> fair enough
2008-07-27T12:23:36  <ThomasWaldmann> but if you use cache items from multiple pages, it gets complicated
2008-07-27T12:23:38  <dreimark> hmm, the refresh action of arnica is page related too
2008-07-27T12:23:44  <TheSheep> ThomasWaldmann: does the cache timeout on itlsef?
2008-07-27T12:23:52  <ThomasWaldmann> no
2008-07-27T12:24:11  <TheSheep> ThomasWaldmann: I wonder what happens when you put a lot of formulas on the page and then remove them from the page, without removing the page itself
2008-07-27T12:24:42  <ThomasWaldmann> nothing will happen
2008-07-27T12:24:53  <TheSheep> ThomasWaldmann: so the cache will accumulate?
2008-07-27T12:24:58  <ThomasWaldmann> yes
2008-07-27T12:26:01  <TheSheep> but you can clear it manually once in a while
2008-07-27T12:27:27  <dreimark> TheSheep: the refresh of arnica can clear it for a page
2008-07-27T12:28:15  <TheSheep> dreimark: I was raththre thinking about calling maint once a year ;)
2008-07-27T12:30:50  <dreimark> hehe, me is calling it once an update
2008-07-27T12:31:37  <TheSheep> dreimark: depending on the wiki, it might be the same ;)
2008-07-27T12:34:43  <ThomasWaldmann> in the cache metadata, there is also a last_modified key (gives cache creation time if you don't tell it to do something else)
2008-07-27T12:35:48  <ThomasWaldmann> so one could just purge everything last_modified a year ago
2008-07-27T12:36:21  <dreimark> that sounds like an other systemadmin action :)
2008-07-27T12:36:54  <ThomasWaldmann> or rather a cron script :)
2008-07-27T12:44:46  <TheSheep> dreimark: hmm... one potential problem with this approach that might be troublesome
2008-07-27T12:45:26  <TheSheep> dreimark: the image is downloaded and puth into the cache by the thread that renders the page
2008-07-27T12:46:26  <TheSheep> dreimark: so if you clear the cache and refresh the page, the browser will try to re-download the image before it is in the cache
2008-07-27T12:46:42  * dreimark tries
2008-07-27T12:47:24  <TheSheep> (itwont happen the first time, because the browser won't even know the url before the image is downloaded)
2008-07-27T12:47:32  <dreimark> complicated to reproduce.
2008-07-27T12:48:08  <TheSheep> dreimark: and another refresh will fix it, so maybe it's not that important
2008-07-27T12:48:19  <dreimark> rm *
2008-07-27T12:48:28  <dreimark> reload fixes it directly
2008-07-27T12:49:32  * dreimark looks now at the image only
2008-07-27T12:50:12  <TheSheep> hehe, added benefit: leeching protection
2008-07-27T12:55:40  * dreimark has added some more comments
2008-07-27T13:01:08  <dennda> good morning
2008-07-27T13:01:15  <dennda> lots of hilights. :)
2008-07-27T13:03:48  <dreimark> heh
2008-07-27T13:03:49  <dreimark> e
2008-07-27T13:04:14  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 3879:f042906b346e 1.8/MoinMoin/ (caching.py request/request_modpython.py): merged some 1.7 changesets
2008-07-27T13:04:59  <dreimark> bbl
2008-07-27T13:21:18  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 3881:15bd8dae9003 1.8/MoinMoin/ (config/multiconfig.py wikiutil.py): merged some 1.7 changesets
2008-07-27T13:28:55  <ThomasWaldmann> multiconfig sucks for merging now
2008-07-27T14:23:23  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 3883:9e40b4ecf68f 1.8/ (3 files in 3 dirs): merged some 1.7 changesets
2008-07-27T14:23:35  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 3887:f85cd27073a9 1.8/ (4 files in 4 dirs): merged some 1.7 changesets
2008-07-27T14:23:38  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 3891:977588b8f7c5 1.8/ (16 files in 4 dirs): merged some 1.7 changesets
2008-07-27T14:23:39  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 3895:fec6c6ccfc0b 1.8/MoinMoin/ (action/cache.py script/server/standalone.py): merged some 1.7 changesets
2008-07-27T14:23:43  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 3903:0f86861f1adb 1.8/ (19 files in 14 dirs): merged some 1.7 changesets
2008-07-27T14:23:44  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 3904:a452a1dab1f7 1.8/ (6 files in 5 dirs): use /moin_static180
2008-07-27T14:26:08  <ThomasWaldmann> xorAxAx: no changes from moon since 4d
2008-07-27T14:26:53  <xorAxAx> yeah, have been trying to ping him in the last days but he wasnt online
2008-07-27T14:29:49  <ThomasWaldmann> some students might get into trouble if someone checks whether their project was their main summer task
2008-07-27T14:30:04  <ThomasWaldmann> (or rather a 2d/week task)
2008-07-27T14:31:35  <dennda> ThomasWaldmann: How did you produce that "Revision is not defined" error?
2008-07-27T14:32:34  <ThomasWaldmann> i guess i posted some urls leading to tracebacks. and you don't need to reproduce, looking at the source line i posted reveals a rather obvious problem
2008-07-27T14:33:06  <ThomasWaldmann> (either wrong name or missing import)
2008-07-27T14:33:07  <dennda> yes, I am fixing it, just wanted to check if it works afterwards
2008-07-27T14:34:51  <ThomasWaldmann> http://localhost:8080/foo?action=info
2008-07-27T14:35:28  * xorAxAx sends him a mail
2008-07-27T14:35:51  <CIA-53> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com default * 4352:aa50c1f901ee 1.8-storage-cdenter/MoinMoin/storage/backends/fs.py: storage: FSBackend: Fixing 'Revision is not defined' error
2008-07-27T14:36:44  <ThomasWaldmann> yes, now it raises a different exception
2008-07-27T14:37:40  <dennda> Are you using the MemoryBackend?
2008-07-27T14:38:28  <ThomasWaldmann> fs
2008-07-27T14:39:52  <dennda> ok
2008-07-27T14:41:09  <dennda> Yes, that is caused by the edit-log stuff not yet being adjusted to use the new API
2008-07-27T14:48:05  <ThomasWaldmann> zenhase: A server error occurred.  Please contact the administrator.
2008-07-27T14:48:28  <ThomasWaldmann> that's all i get after starting ./wikiserver.py and pointing my browser to the wiki.
2008-07-27T14:48:43  <ThomasWaldmann> no info in the logs, nothing working... 8(
2008-07-27T14:49:21  <zenhase> ah (
2008-07-27T14:50:45  <ThomasWaldmann> ah, no, ignore that. i missed to unpack underlay after getting fresh clone some days ago.
2008-07-27T14:51:00  <zenhase> ah ok, i was already wondering
2008-07-27T14:51:06  <ThomasWaldmann> (there used to be a error on-screen in such cases, but it is gone)
2008-07-27T14:51:08  <zenhase> because it worked here
2008-07-27T14:51:52  <zenhase> ok, seems i have to integrate this error-checking code then
2008-07-27T14:52:40  <ThomasWaldmann> log format of static server does not match moin's log format
2008-07-27T14:53:19  <ThomasWaldmann> and it is somehow duplicate anyway
2008-07-27T14:54:28  <ThomasWaldmann> localhost -- [GET /moin_static180/modern/img/moin-www.png HTTP/1.1] 200 150
2008-07-27T14:54:28  <ThomasWaldmann> 2008-07-27 14:50:29,239 INFO werkzeug:88 localhost -- [GET /moin_static180/modern/img/moin-www.png HTTP/1.1] 200 150
2008-07-27T14:55:44  <zenhase> i will subclass the request-handler from werkzeug and change the logging routines accordingly
2008-07-27T14:56:36  <ThomasWaldmann> are there cases when it does not log duplicate stuff?
2008-07-27T14:57:05  <ThomasWaldmann> wsgiapp tests are very slow
2008-07-27T14:58:57  <ThomasWaldmann> AttachFile do=get does not work
2008-07-27T14:59:34  * dennda feels the flow coming back to his fingers :)
2008-07-27T14:59:52  <ThomasWaldmann> zenhase: seems to be related to send_file
2008-07-27T15:00:45  <zenhase> ok, will look into that too
2008-07-27T15:01:48  <ThomasWaldmann> action=Load fails also
2008-07-27T15:03:24  <ThomasWaldmann> zenhase: action=edit&editor=gui does not start the gui editor
2008-07-27T15:03:37  <byeongweon> xorAxAx: I just read your mail.
2008-07-27T15:06:18  <zenhase> i noted it down on my todo page
2008-07-27T15:06:31  <dennda> argh, gotta go. bbl
2008-07-27T15:11:29  <ThomasWaldmann> waldi: formatter/compatibility.py:489 typo, should be QName
2008-07-27T15:12:00  <ThomasWaldmann> <<Include(^)>> is really nice for finding bugs :)
2008-07-27T15:12:32  <waldi> ThomasWaldmann: but sloooowwwww ...
2008-07-27T15:20:53  <zenhase> ThomasWaldmann: what do you mean by slow for the wsgiapp-tests?
2008-07-27T15:21:32  <zenhase> with FindPage and RecentChanges i guess it uses 2 quite heavyload macro pages for testing
2008-07-27T15:22:22  <zenhase> here on my machine i didn't really notice testing there being slow, but if it's in the area of seconds on slow hardware, i could just change to pages to some less intensive ones
2008-07-27T15:25:40  <zenhase> the send_file bug was introduced when i split wsgiapp.init and wsgiapp.run across several methods
2008-07-27T15:26:30  <zenhase> i wanted to get rid of some of the excepts and ended up deleting the MoinMoinFinish clause too
2008-07-27T15:28:50  <ThomasWaldmann> zenhase: maybe just compare test speed on 1.8 main branch and your branch. i didn't measure it, but yours felt quit slower (that doesn't need to be a bad thing if it is caused by much more tests, but maybe some of your tests are too expensive without real need)
2008-07-27T15:29:16  <ThomasWaldmann> waldi: what is correct MacroBase class for BR macro?
2008-07-27T15:30:11  <waldi> ThomasWaldmann: none
2008-07-27T15:30:51  <ThomasWaldmann> shouldn't there be ONE? :)
2008-07-27T15:32:45  <xorAxAx> byeongweon: cool :)
2008-07-27T15:33:17  <xorAxAx> ThomasWaldmann: why?
2008-07-27T15:33:28  <byeongweon> xorAxAx: I'm sorry for didn't notice about visiting corps.
2008-07-27T15:33:30  <xorAxAx> much more pythonic api this way
2008-07-27T15:33:36  <xorAxAx> byeongweon: corps?
2008-07-27T15:33:59  <byeongweon> xorAxAx: military corps where I worked in.
2008-07-27T15:36:01  <byeongweon> xorAxAx: the ticket what I opened was change http://dev.fckeditor.net/ticket/2333
2008-07-27T15:36:51  <byeongweon> xorAxAx: I apply his patch. it works well.
2008-07-27T15:37:26  <byeongweon> xorAxAx: but unfinished tag problem occured again :-(
2008-07-27T15:37:36  <byeongweon> xorAxAx: now I try to found why.
2008-07-27T15:38:14  <xorAxAx> cool, the patch looks neat
2008-07-27T15:38:50  <waldi> ThomasWaldmann: no, it does not use the complete macro interface but is implemented in the input converter (see MoinMoin/converter2/_wiki_macro.py)
2008-07-27T15:48:41  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 44:53378e9b1814 EmeraldTree/emeraldtree/ElementTree.py: ElementTree - Update copyright, fix html output, force default namespace for html output
2008-07-27T15:57:43  * ThomasWaldmann tries to convert InterWiki macro to use ET
2008-07-27T16:06:35  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4063:738a8fd87893 1.8-dom-bblank/MoinMoin/Page.py: Page - Use html output method until we can produce xml in the theme
2008-07-27T16:06:36  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4064:b31a6f09553f 1.8-dom-bblank/MoinMoin/Page.py: Page - Set correct charset in serializer
2008-07-27T16:06:37  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4065:aa1bc11a25ff 1.8-dom-bblank/MoinMoin/converter2/html_out.py: HTML output converter - Remove debugging code
2008-07-27T16:06:38  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4066:3656e8b718df 1.8-dom-bblank/MoinMoin/converter2/ (5 files in 2 dirs): PEP8 fixes
2008-07-27T16:06:40  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4067:f635ddd90895 1.8-dom-bblank/MoinMoin/formatter/compatibility.py: Compatibility formatter - Fix name
2008-07-27T16:07:49  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4068:869624e59315 1.8-dom-bblank/MoinMoin/Page.py: Page - Really use html method
2008-07-27T16:20:01  * waldi does PageList
2008-07-27T16:37:47  <ThomasWaldmann> waldi: 'unicode' object has no attribute 'tag' (before merging the latest changes it worked :)
2008-07-27T16:38:40  <ThomasWaldmann> ET:831
2008-07-27T16:39:29  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4069:14bdf8b961e1 1.8-dom-bblank/MoinMoin/ (macro2/InterWiki.py macro/InterWiki.py): Migrate InterWiki macro to new interface
2008-07-27T16:39:30  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4070:ed49524c369f 1.8-dom-bblank/MoinMoin/ (7 files in 4 dirs): merge
2008-07-27T16:40:33  <gizmach> moin
2008-07-27T16:40:46  <ThomasWaldmann> hi melita!
2008-07-27T16:41:17  <gizmach> ThomasWaldmann: I have few questions if you have time
2008-07-27T16:41:33  <ThomasWaldmann> ask :)
2008-07-27T16:41:41  <waldi> ThomasWaldmann: ET update?
2008-07-27T16:42:02  <gizmach> ThomasWaldmann: where should lambda from wikiconfig_local be evaluated?
2008-07-27T16:42:26  <ThomasWaldmann> waldi: better :)
2008-07-27T16:42:47  <gizmach> I done simmilar test and thatworks but I can't get the real wiki to work
2008-07-27T16:42:49  <ThomasWaldmann> (sorry, didn't see that you changed ET)
2008-07-27T16:43:51  <ThomasWaldmann> gizmach: that lambda is just a different kind of factory-like thing, so it is the same place where you used the factory before
2008-07-27T16:45:14  * waldi writes testcases for the moin parser ...
2008-07-27T16:48:08  <xorAxAx> waldi: real men delete testcases for the moin parser
2008-07-27T16:48:27  <xorAxAx> waldi: seriously, now an xpath lib would be nice, lxml's etree supports that :)
2008-07-27T16:48:47  <waldi> xorAxAx: well, we could delete it and make creole the default :)
2008-07-27T16:49:02  <xorAxAx> waldi: yeah, moin could ship with a parser of the year
2008-07-27T16:49:13  <waldi> xorAxAx: ET have limited xpath support, but i'm not sure how it works with namespaces ...
2008-07-27T16:49:16  <xorAxAx> and drop the one of the last year
2008-07-27T16:49:32  <xorAxAx> waldi: that 50 kB module has xpath support?
2008-07-27T16:49:48  <waldi> yep
2008-07-27T16:49:52  <xorAxAx> oh yeah, namespaces, how advanced and misunderstood by most xml users and xpath implementors
2008-07-27T16:53:23  <waldi> _tests/test_moinwiki_in.py[50] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.FFFFFFFFFFFFFFFFFFF
2008-07-27T16:53:43  <waldi> not good. for the empty converter _all_ tests should fail
2008-07-27T16:53:56  <TheSheep> waldi: I wonder if you could simply pit the two parser against each other on some large corpus of data from random moinmoin wikis :0
2008-07-27T16:54:25  <waldi> ah, this is a test for empty result
2008-07-27T16:54:35  <xorAxAx> waldi: neeeat, first person doing TDD
2008-07-27T16:54:42  * xorAxAx hands waldi an award
2008-07-27T16:54:46  <waldi> TDD?
2008-07-27T16:54:53  <xorAxAx> test-driven development
2008-07-27T16:55:08  <xorAxAx> "dont write tests when the waterfall drowned you but do so before writing code" :)
2008-07-27T16:55:21  <xorAxAx> one tdd-related rule is that the test should fail before you finished the feature
2008-07-27T16:55:46  <xorAxAx> otherwise the test itself might be broken (py.test.raises(Foo, bar) raising always Foo, regardless of bar's status for example)
2008-07-27T16:56:09  <TheSheep> waldi: there is a saying in Poland: "once a year even an unloaded gun will shoot"
2008-07-27T16:56:30  <xorAxAx> TheSheep: which 2 parsers?
2008-07-27T16:56:39  <TheSheep> xorAxAx: old moin and new moin
2008-07-27T16:56:58  <TheSheep> xorAxAx: the fact that a test fails doesn't guarantee that it's correct
2008-07-27T16:57:09  <xorAxAx> sure. but what would you want to compare? the html?
2008-07-27T16:57:53  <TheSheep> xorAxAx: the least common part, I guess html after parsing it, in this case
2008-07-27T16:58:19  <TheSheep> xorAxAx: lxml has some nice functions for comparing html snippets
2008-07-27T16:58:43  <TheSheep> xorAxAx: ignoring whitespace and order of attributes and such
2008-07-27T16:59:18  <xorAxAx> yeah, xpath can be used as well
2008-07-27T16:59:24  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4071:02a2939ec7a2 1.8-dom-bblank/MoinMoin/macro2/GoTo.py: GoTo macro - Readd method and action attributes
2008-07-27T16:59:25  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4072:12309c518529 1.8-dom-bblank/MoinMoin/converter2/ (_tests/test_moinwiki_in.py moinwiki_in.py): Add skeleton for Moin Wiki input converter
2008-07-27T16:59:25  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4073:b13cb7b9c902 1.8-dom-bblank/MoinMoin/ (macro2/InterWiki.py macro/InterWiki.py): Merge
2008-07-27T16:59:26  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4074:be330af61eb1 1.8-dom-bblank/MoinMoin/macro2/_tests/test__base.py: PEP8 fixes
2008-07-27T16:59:27  <xorAxAx> waldi: i strongly urge you to use those :)
2008-07-27T16:59:32  <TheSheep> xorAxAx: of course some parts would fail because the old moin parser is broken there...
2008-07-27T16:59:35  * xorAxAx looks at waldi's test code
2008-07-27T17:00:24  <gizmach> also If I try to give to request/__init__ self.group_manager = self.cfg.group_manager(self) it says I gave lambda 2 parms and it required only one parm. (group_manager = lambda request ,......)
2008-07-27T17:00:43  <gizmach> probably it's something very stupid but I can't deal with it
2008-07-27T17:00:46  <waldi> xorAxAx: xpath is okay if you want to retrieve an exact set of nodes, not if you want to compare the tree for equality
2008-07-27T17:01:18  <waldi> err, equivalence
2008-07-27T17:01:19  <xorAxAx> waldi: well, you would formulate testable properties as xpath exprs with required value and test. but indeed, you would need a lot of xpath exprs
2008-07-27T17:01:48  <xorAxAx> but given that in your test you always have a canonical serialization function (as long as ET doesnt change its code!) it should be fine
2008-07-27T17:02:13  <xorAxAx> but i guess you could switch to comparing dom trees in case ET changes (by modifying _do)
2008-07-27T17:06:53  <gizmach> gtgt
2008-07-27T17:06:55  * ThomasWaldmann transformed Verbatim macro
2008-07-27T17:18:53  * ThomasWaldmann transformed GetText macro
2008-07-27T17:22:41  * ThomasWaldmann grabs PageSize next
2008-07-27T17:30:46  <xorAxAx> and now waldi decides to change the whole interace :)
2008-07-27T17:41:06  <ThomasWaldmann> :P
2008-07-27T17:43:27  <CIA-53> Florian Krupicka <florian.krupicka@googlemail.com> default * 3939:43da090ab838 1.8-wsgi-fkrupicka/MoinMoin/ (4 files in 3 dirs): Fixed exception-handling for MoinMoinFinish and relocated it to MoinMoin.web.request
2008-07-27T17:43:29  <CIA-53> Florian Krupicka <florian.krupicka@googlemail.com> default * 3940:3c6e893424f6 1.8-wsgi-fkrupicka/MoinMoin/ (wsgiapp.py web/serving.py): Fixed: log format and line-doubling in standalone server
2008-07-27T17:44:26  <zenhase> there is one line-doubling i did not get quite fixed, that is the one for 'running on ...' which is reported twice, one time without package-info, one time with
2008-07-27T17:45:15  <zenhase> this is a result from werkzeug adding a stderr-streamhandler to the werkzeug-package in his own logging functions
2008-07-27T17:47:09  <zenhase> also noticed something funny ... in 1.8 the loglines don't state response-size (seems to be always '-')
2008-07-27T17:47:39  <zenhase> in my tree the size get's calculated :)
2008-07-27T17:47:46  <zenhase> s/get's/gets
2008-07-27T17:50:51  <xorAxAx> now guess why its not possible in 1.8 :)
2008-07-27T17:52:16  <zenhase> i have no idea where this gets calculated, but well, it works now ... never thought about, just realized there was something different about those loglines
2008-07-27T17:57:54  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4075:70eebfa185ca 1.8-dom-bblank/MoinMoin/macro2/_Verbatim.py: Migrate Verbatim macro to new interface (but keep old style macro active, see also note in new macro)
2008-07-27T17:57:55  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4076:de58e3956f5a 1.8-dom-bblank/MoinMoin/macro2/_GetText.py: Migrate GetText macro to new interface (but keep old style macro active, see also note in new macro)
2008-07-27T17:57:56  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4077:1a24ad542e46 1.8-dom-bblank/MoinMoin/ (macro2/PageSize.py macro/PageSize.py): Migrate PageSize macro to new interface
2008-07-27T17:57:58  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4078:3a767d75755d 1.8-dom-bblank/MoinMoin/ (4 files in 4 dirs): merge
2008-07-27T18:02:48  <xorAxAx> zenhase: well, its not possible in the normal 1.8 for the standalone server at least
2008-07-27T18:02:54  <xorAxAx> zenhase: because its streaming
2008-07-27T18:03:25  <TheSheep> xorAxAx: doesn't werkzeug violate wsgi spec here and buffer?
2008-07-27T18:03:38  <xorAxAx> TheSheep: why does that violate the spec?
2008-07-27T18:03:57  <xorAxAx> also i think its zenhase's code and not werkzeug. and he has a good reason for it (moins code :))
2008-07-27T18:04:55  <zenhase> TheSheep: in old moin request.write did output directly to the streams
2008-07-27T18:06:07  <zenhase> TheSheep: for WSGI i use werkzeugs internal response.stream property to write to, which is actually a buffer-implementation with lists
2008-07-27T18:07:12  <zenhase> no actual output is written to the request until the WSGI-code beneath moin (like mod_wsgi, standalone-server, fcgi-adapter, whatever) gets back his control
2008-07-27T18:07:28  <zenhase> for files no buffer is used
2008-07-27T18:08:02  <zenhase> but an iterator over the file (or wrapped in environ['wsgi.file_wrapper'] if it's there)
2008-07-27T18:10:11  <xorAxAx> yep
2008-07-27T18:15:06  <TheSheep> the spec says it's wrong, because the app might use some additional connection to communicate, and then such a buffer would block
2008-07-27T18:15:35  <xorAxAx> i dont understand
2008-07-27T18:16:35  <TheSheep> xorAxAx: suppose that on a request from client you establish an additional connection to him, to some custom app, and expect additional communication through it, while sending data through http response
2008-07-27T18:16:56  <xorAxAx> that works perfectly fine
2008-07-27T18:17:14  <xorAxAx> you could e.g. include a moin page by fetching it from the same server via http with a small macro
2008-07-27T18:17:21  <TheSheep> let me find that part of the spec
2008-07-27T18:17:24  <xorAxAx> also zenhase's code completly adheres to the spec
2008-07-27T18:17:31  <xorAxAx> it says that blocks may not be delayed
2008-07-27T18:17:36  <xorAxAx> zenhase doesnt delay
2008-07-27T18:17:43  <xorAxAx> he sends the large block as soon as possible :)
2008-07-27T18:17:55  <zenhase> ;)
2008-07-27T18:18:24  <xorAxAx> i think mr. religious scam is not very concrete wrt errornous scenarios in the pep
2008-07-27T18:18:31  <gizmach> re
2008-07-27T18:18:32  <TheSheep> xorAxAx: he delays the beginning of the block until he gets all the data
2008-07-27T18:18:55  <xorAxAx> TheSheep: yes, but thats in the same app - that doesnt span middleware boundaries
2008-07-27T18:19:03  <xorAxAx> still, i dont see how that would lead to any deadlock
2008-07-27T18:19:12  <zenhase> TheSheep: i've never seen anything in the spec pertaining to how you have to handle content generation in the app internally
2008-07-27T18:19:25  <TheSheep> xorAxAx: of course this doesn't apply to werkzeug anyways, as it's not middleware, but something on top of wsgi, so it can do as it pleases
2008-07-27T18:19:32  <xorAxAx> btw, do you all know his church? :)
2008-07-27T18:19:43  <zenhase> if my content-generation is building up a large list of strings that gets joined at the end, wsgi cannot do anything about that
2008-07-27T18:19:47  <xorAxAx> TheSheep: werkzeug is fine, moin is fine, nobody was hurt :)
2008-07-27T18:20:15  <TheSheep> zenhase: yes, but if you send these string independently to wsgi, wsgi is not allowed to buffer them
2008-07-27T18:20:28  <zenhase> i don't send them to wsgi
2008-07-27T18:20:29  <TheSheep> xorAxAx: sure
2008-07-27T18:20:39  <zenhase> i send them to the werkzeug-response abstraction
2008-07-27T18:20:44  <TheSheep> zenhase: yeah
2008-07-27T18:21:38  <TheSheep> by 'violate the spec' I didn't mean that it's required to follow it
2008-07-27T18:21:42  <xorAxAx> please consume theownerscircle.com now
2008-07-27T18:22:11  <xorAxAx> ah, closed - hah
2008-07-27T18:22:33  <zenhase> xorAxAx: what exactly are you talking about?
2008-07-27T18:22:41  <xorAxAx> http://web.archive.org/web/20070629220608/http://theownerscircle.com/
2008-07-27T18:22:52  <xorAxAx> zenhase: the true spirit of the author of the spec we were talking about
2008-07-27T18:22:55  * ThomasWaldmann grabs RandomPage
2008-07-27T18:23:06  <TheSheep> Because I've discovered some dark secrets of the human brain (and body) that most self-help authors don't know — or are afraid to talk about!
2008-07-27T18:23:18  <xorAxAx> (just read the page i just linked :))
2008-07-27T18:23:32  <xorAxAx> TheSheep: Have you ever felt like you were meant to "be somebody"?
2008-07-27T18:24:04  <xorAxAx> zenhase: Because I believe that you — like me — really can: refactor moin
2008-07-27T18:24:23  <zenhase> o_O
2008-07-27T18:24:31  <xorAxAx> ;-)
2008-07-27T18:24:46  <xorAxAx> its only 2500 USD a year
2008-07-27T18:24:54  <zenhase> i really like things like david allens GTD or blogs like mindhacks and lifehacks
2008-07-27T18:25:06  <TheSheep> xorAxAx: making fun of things that at least some people seriously believe in can be very bad for healt
2008-07-27T18:25:09  <TheSheep> h
2008-07-27T18:25:17  <zenhase> but this looks like a weird 'we are the only ones that know how to get things done'-sect
2008-07-27T18:25:23  <TheSheep> xorAxAx: spontaneus ignitions were reported
2008-07-27T18:25:29  <xorAxAx> TheSheep: you are thinking of spanish inquisition etc.=
2008-07-27T18:25:44  <zenhase> also i totally don't dig paying for self-improvement advice
2008-07-27T18:25:50  <xorAxAx> s/of/about/
2008-07-27T18:26:05  <TheSheep> xorAxAx: I'm thinnking about not respecting other's beliefs in general
2008-07-27T18:26:09  <zenhase> NOBODY thinks about the spanish inquisition!
2008-07-27T18:26:12  <xorAxAx> hmm, he is cheaper than having every dinner at don giovanni
2008-07-27T18:26:20  <xorAxAx> zenhase: our chief weapon is surprise!
2008-07-27T18:26:21  <TheSheep> xorAxAx: and this is ad hominem, btw
2008-07-27T18:26:48  <zenhase> TheSheep: i respect belief, but i don't respect it, if it comes with a price tagh
2008-07-27T18:26:51  <zenhase> -h
2008-07-27T18:27:12  <xorAxAx> TheSheep: well, that was the link between the ontopic and the off topic discussion. but not necessarily the target :)
2008-07-27T18:27:20  <TheSheep> zenhase: then you'd run out of religions pretty fast in this world
2008-07-27T18:27:42  <zenhase> TheSheep: well, i am not member of any church right now
2008-07-27T18:27:49  <xorAxAx> TheSheep: or is that a reason not to talk about it at all?
2008-07-27T18:27:56  <TheSheep> zenhase: too stingy, eh? ;)
2008-07-27T18:28:17  <zenhase> TheSheep: i could easily get information on christian religion (ok, the price tag is a book here) but i don't have to pay an institution to be part of the belief
2008-07-27T18:28:20  <xorAxAx> TheSheep: is he religious?
2008-07-27T18:28:39  <zenhase> TheSheep: i could in the same way get access to several other religions
2008-07-27T18:28:52  <TheSheep> xorAxAx: beliefs != religion
2008-07-27T18:28:58  <zenhase> TheSheep: i could not get access to the lore of scientology this way ... here there is a monstrous price tag attached
2008-07-27T18:29:09  <xorAxAx> the element of control in his club of disciples is very similar to the ones found in other groups that declare themselves as churches. but even then, people most often do not consider scientology a church, at least in germany :)
2008-07-27T18:29:57  <zenhase> i mean 'This membership level is for people who want the tools to make steady forward progress in their lives, rather than just staying in the same place.'
2008-07-27T18:30:42  <TheSheep> there is a fine line between church and a self-improvemnt or self-help club, partly because churches have traditionally served this purpose since aeons
2008-07-27T18:31:02  <zenhase> hierarchical and monetary access to information is what makes religions sects in my eyes
2008-07-27T18:31:57  <xorAxAx> zenhase: its not just information, it is truth!
2008-07-27T18:31:58  <TheSheep> of course, you can use them both as a facade for a scam
2008-07-27T18:32:04  <xorAxAx> truth about yourself
2008-07-27T18:32:08  <TheSheep> xorAxAx: which truth?
2008-07-27T18:32:16  <zenhase> TheSheep: the 2nd
2008-07-27T18:32:20  <xorAxAx> TheSheep: his truth
2008-07-27T18:32:29  <TheSheep> xorAxAx: whenever there are two Poles, there are three truths :)
2008-07-27T18:32:51  <zenhase> hrhr
2008-07-27T18:33:17  <zenhase> ok then ... this guy is the one who wrote the WSGI spec?
2008-07-27T18:33:20  <xorAxAx> hehe, what a polished word
2008-07-27T18:33:30  <xorAxAx> zenhase: yes!
2008-07-27T18:33:40  <xorAxAx> its for free!
2008-07-27T18:33:54  <TheSheep> hmm... I guess you could translate it to "my shit", "your shit" and "bullshit", just in Polish there is 'truth' used in all these expressions
2008-07-27T18:33:58  <zenhase> but then, WSGI was endorsed and evangelized by a lot more people
2008-07-27T18:34:45  <zenhase> i mean you can read more posts connecting WSGI with Ian Bicking than with pje
2008-07-27T18:34:52  <TheSheep> zenhase: it's not important who wrote the spec, as long as everyone agrees to follow it
2008-07-27T18:34:53  <xorAxAx> of course we could move on like roland barthes and ignore the author
2008-07-27T18:35:03  <TheSheep> zenhase: and as long as it's possible to do so
2008-07-27T18:36:40  <TheSheep> xorAxAx: I don't have to agree with ESR's worldview to participate in opensource community either
2008-07-27T18:37:04  <zenhase> why did this discussion start in the first place?
2008-07-27T18:37:13  <TheSheep> zenhase: we were bored
2008-07-27T18:37:27  <xorAxAx> zenhase: because i wanted to introduce you pje
2008-07-27T18:37:27  <gizmach> can someone please tell me what I'm doing wrong (if something is obvuse) http://paste.pocoo.org/show/80486/
2008-07-27T18:37:49  <zenhase> xorAxAx: hmm ... i realize i already knew the guy from some other postings
2008-07-27T18:37:59  <zenhase> he's also the one who wrote setuptools, right?
2008-07-27T18:38:12  <xorAxAx> yes
2008-07-27T18:39:10  <TheSheep> gizmach: whenever you use self.foo(), self gets passed as the first argument to foo
2008-07-27T18:39:39  <gizmach> TheSheep: but how could I avoid that or something?
2008-07-27T18:39:53  <TheSheep> gizmach: lambda self, request: ...
2008-07-27T18:40:04  <gizmach> TheSheep: tried
2008-07-27T18:40:13  <TheSheep> gizmach: or call it directly from class, CLassName.foo()
2008-07-27T18:40:40  <gizmach> but that what I imported I had from MoinMOin import datastruct and it said datastruct doesn't exist
2008-07-27T18:41:26  <TheSheep> gizmach: just use normal def
2008-07-27T18:41:40  <gizmach> TheSheep: ?
2008-07-27T18:41:48  <TheSheep> gizmach: there is no need for lambda there, is it?
2008-07-27T18:41:53  <gizmach> I can't I don't have request
2008-07-27T18:41:55  <TheSheep> gizmach: I mean, you name the function anyways
2008-07-27T18:42:40  <TheSheep> gizmach: you can write def datastruct_manager(self, request): return ...
2008-07-27T18:42:53  <TheSheep> sorry, that's group_manager
2008-07-27T18:43:01  <gizmach> :)
2008-07-27T18:43:02  <gizmach> ok
2008-07-27T18:46:05  <gizmach> thx will play with that
2008-07-27T18:49:19  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4079:16890c89fad7 1.8-dom-bblank/MoinMoin/ (macro2/RandomPage.py macro/RandomPage.py): Migrate RandomPage macro to new interface
2008-07-27T18:59:41  * ThomasWaldmann grabs EditedSystemPages
2008-07-27T19:03:43  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4080:145a8bf42eb4 1.8-dom-bblank/MoinMoin/ (macro2/EditedSystemPages.py macro/EditedSystemPages.py): Migrate EditedSystemPages macro to new interface
2008-07-27T19:10:53  <dreimark> re
2008-07-27T19:19:36  * ThomasWaldmann grabs Date/DateTime
2008-07-27T19:23:44  <dreimark> btw. it may be good to add in time a CHANGES file to each students repo
2008-07-27T19:25:37  <dreimark> zenhase: from where do I get werkzeug.utils
2008-07-27T19:26:39  <dreimark> ok found it
2008-07-27T19:26:40  <dennda> dreimark: cheeseshop
2008-07-27T19:26:43  <zenhase> dreimark: it comes with werkzeug :)
2008-07-27T19:27:13  * dreimark clones it
2008-07-27T19:30:36  <dreimark> zenhase: do I have to configure something special or is starting eikiserver all ?
2008-07-27T19:31:13  <zenhase> it should suffice to start wikiserver
2008-07-27T19:31:15  <dreimark> s/wi/wi/
2008-07-27T19:31:22  <zenhase> untaring underlay first of course
2008-07-27T19:31:28  <dreimark> done
2008-07-27T19:32:23  <dreimark> beside standalone is already one of the other deployments implemented (cgi, fcgi ...) ?
2008-07-27T19:33:25  <zenhase> well, mod_wsgi is kind of implemented ;)
2008-07-27T19:33:39  <zenhase> it's just not documented yet
2008-07-27T19:33:58  <zenhase> there is still the question which of those modes to ship with moin
2008-07-27T19:34:03  <zenhase> and which to just document
2008-07-27T19:35:39  <dennda> mod_wsgi sounds good
2008-07-27T19:35:44  <dreimark> in the past there was no need to restart a cgi server process by small code changes
2008-07-27T19:35:51  <dennda> But I don't know what the users demand
2008-07-27T19:36:25  <dennda> Doesn't CGI by concept start a new process from scratch for every request?
2008-07-27T19:36:33  <zenhase> yes exactly
2008-07-27T19:36:54  <dreimark> it does the question is if this changes with using modwsgi internal
2008-07-27T19:37:02  <dreimark> or werkzeug
2008-07-27T19:37:39  <zenhase> for standalone i still need to get the reloader running
2008-07-27T19:38:09  <zenhase> regarding mod_wsgi or other variants: if it's configurable there, why not?
2008-07-27T19:38:20  <zenhase> i think mod_wsgi can reload modules on change
2008-07-27T19:39:32  <dennda> umm, depends on the version afair
2008-07-27T19:39:59  <dennda> in my 1.x I always need to restart apache because the code is kept in memory
2008-07-27T19:40:14  <dennda> With 2.0 it is sufficient to just touch the .wsgi file, as far as I know
2008-07-27T19:40:28  <dennda> mitsuhiko will know
2008-07-27T19:40:29  <zenhase> hmm ok
2008-07-27T19:41:58  <ThomasWaldmann> dennda: it is like that
2008-07-27T19:42:22  <ThomasWaldmann> and it doesn't reload modules, it restarts daemons, transparently
2008-07-27T19:43:11  <dreimark> hmm, what does it mean. If I add a macro for example does it recognize it and I can use the macro in the wiki
2008-07-27T19:43:21  <dreimark> or do I have to do something else
2008-07-27T19:43:45  <ThomasWaldmann> you have to touch moin.wsgi
2008-07-27T19:44:08  <ThomasWaldmann> and it will restart
2008-07-27T19:44:13  <dreimark> ok
2008-07-27T19:44:30  * dreimark reads http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading
2008-07-27T19:45:57  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4081:2ae1256db546 1.8-dom-bblank/MoinMoin/ (macro/__init__.py macro2/Date.py macro2/DateTime.py): Migrate Date/DateTime macros to new interface
2008-07-27T19:46:26  <ThomasWaldmann> dreimark: we have a help page about mod wsgi
2008-07-27T19:46:46  <dreimark> When a sub interpreter is created for a WSGI application, it would then normally persist for the life of the process. The only exception to this would be where interpreter reloading is enabled, in which case the sub interpreter would be destroyed and recreated when the WSGI application script file has been changed.
2008-07-27T19:47:12  <dreimark> ThomasWaldmann: I have it installed already three of my wiki's do use
2008-07-27T19:48:35  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4082:187f91329869 1.8-dom-bblank/MoinMoin/macro/__init__.py: Date/DateTime macro: remove dependencies dict entry of old implementation
2008-07-27T19:49:12  <ThomasWaldmann> dreimark: that part of the docs seems to talk of non-daemon mode
2008-07-27T19:49:21  <dreimark> The question was more likely about deployment shipping or documenting. I don't know why this is now in focus for zenhase.
2008-07-27T19:49:25  <ThomasWaldmann> (and that mode you don't want to use anyway)
2008-07-27T19:49:31  <dreimark> yeah
2008-07-27T19:50:34  <zenhase> dreimark: it should work with WSGIPythonPath set to find the right wikiconfig and just load up MoinMoin.wsgiapp.application as the wsgi-callable
2008-07-27T19:53:29  * dreimark will look at this tom. currently I do play with the standalone server
2008-07-27T19:55:07  <dreimark> zenhase: Installation of 'arnica-1.7.1beta2.zip' failed.
2008-07-27T19:55:26  <dreimark> because Exception RuntimeScriptException (line 21): Installing theme files is only
2008-07-27T19:55:31  <dreimark> supported for standalone type servers.
2008-07-27T19:55:48  <dreimark> so that is probably the correct
2008-07-27T19:57:54  <dreimark> but implies changing packages somehow is necessary
2008-07-27T19:58:32  <zenhase> uhm
2008-07-27T20:00:18  <zenhase> ah, got it
2008-07-27T20:00:55  <zenhase> what a strange 'check' ... sa = getattr(self.request, 'sareq', None)
2008-07-27T20:01:18  <dreimark> tell xorAxAx
2008-07-27T20:01:31  <zenhase> hmm, why actually is this only supported for standalone-servers anyway?
2008-07-27T20:01:55  <dreimark> the problem that we don't know the path on the server were htdocs is defined
2008-07-27T20:02:09  <dreimark> s/were/where
2008-07-27T20:02:26  <zenhase> hmm ok
2008-07-27T20:02:40  <zenhase> that information is only in wikiserverconfig.py of course :o
2008-07-27T20:03:04  <dreimark> or in the webserver config
2008-07-27T20:03:48  <zenhase> yeah
2008-07-27T20:04:47  <dreimark> which file in standalone should I touch now ?
2008-07-27T20:06:16  <zenhase> hmm?
2008-07-27T20:06:37  <zenhase> you mean for reload?
2008-07-27T20:07:00  <dreimark> yes, does the standalone server support this feature too ?
2008-07-27T20:07:07  <zenhase> not right now :o
2008-07-27T20:07:21  <zenhase> there is a reloader built into the werkzeug standalone server
2008-07-27T20:07:28  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4083:4c047e7cba8f 1.8-dom-bblank/MoinMoin/ (macro/__init__.py macro2/MailTo.py): Migrate MailTo macro to new interface
2008-07-27T20:07:35  <xorAxAx> zenhase: thats a pythonic check :-P :)
2008-07-27T20:07:43  <zenhase> but it crashes with the way wikiserver invokes the standalone-server o_O
2008-07-27T20:07:59  <dreimark> ah ok
2008-07-27T20:08:03  <zenhase> xorAxAx: you mean a ducktyped one?
2008-07-27T20:08:39  <dreimark> for eclipse debugging it would mean we need not to kill the standalone server process just touching the right file
2008-07-27T20:09:20  <zenhase> dreimark: actually the reloader, when he works, just reloads on every file that changed which is in the loaded modules
2008-07-27T20:09:31  <zenhase> so you don't have to touch anything special
2008-07-27T20:09:47  <xorAxAx> zenhase: yes
2008-07-27T20:09:52  <zenhase> saving a file in the editor will already suffice
2008-07-27T20:11:52  <zenhase> xorAxAx: i don't really know ... it feels strange to ducktype to something very particular like a custom attribute
2008-07-27T20:12:52  <zenhase> xorAxAx: i would expect ducktyping more for things like "if hasattr(obj, '__getitem__'): # dict like access ..."
2008-07-27T20:13:00  <zenhase> some very common ground
2008-07-27T20:13:32  <zenhase> but which objects do you actually know, that have a .sareq attribute?
2008-07-27T20:15:02  <xorAxAx> well, duck typing establishes inofficial protocols
2008-07-27T20:15:18  <dreimark> zenhase: when do you have last time merged 1.8
2008-07-27T20:15:24  <xorAxAx> wrt coupling, its fine as well
2008-07-27T20:15:24  <dreimark> from MoinMoin.action import AttachFile, cache
2008-07-27T20:15:30  <dreimark> ImportError: cannot import name cache
2008-07-27T20:16:11  <zenhase> dreimark: uh, i wanted to merge shortly before thomas found all those ldap_login errors with my code
2008-07-27T20:17:00  <zenhase> i actually forgot about that, will do that this evening
2008-07-27T20:17:49  <dreimark> ok
2008-07-27T20:18:15  <zenhase> is this from arnica?
2008-07-27T20:18:55  <dreimark> arnica is one of the first tools which uses the new cache action
2008-07-27T20:19:12  <dreimark> but the action itselfs is in 1.8 and 1.7.1
2008-07-27T20:19:23  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4084:0e4f06b9bbba 1.8-dom-bblank/MoinMoin/ (macro/__init__.py macro2/GetVal.py): Migrate GetVal macro to new interface
2008-07-27T20:19:28  <zenhase> i know, but in my tree its still known as sendcached
2008-07-27T20:19:59  <dreimark> ah, we have renamed it at the time it got some more methods
2008-07-27T20:20:06  <zenhase> :)
2008-07-27T20:33:17  <dreimark> waldi: byeongweon can you also please merge with 1.8
2008-07-27T20:36:07  <dreimark> dennda: pawel when do you have last time merged ?
2008-07-27T20:37:23  <dreimark> zenhase: I'm not sure if the import error of cache from arnica
2008-07-27T20:37:43  <dreimark> should show up as an empty page telling A server error occurred.  Please contact the administrator.
2008-07-27T20:38:17  <dreimark> if it is possible the content of the page should tell this and
2008-07-27T20:38:41  <dreimark> I want to have the possibilitiy to edit the page using the editbar
2008-07-27T20:40:17  * dreimark wonders a bit about why ?action=edit tells ImportError: cannot import name cache
2008-07-27T20:41:08  <dreimark> why does it know the broken module after I restarted the server
2008-07-27T20:41:31  <dreimark> on action=edit it should not render the page beforehand
2008-07-27T20:41:59  <TheSheep> maybe it doesn't know it shouldn't
2008-07-27T20:43:03  <CIA-53> Byeongweon [tasyblue@gmail.com] default * 3937:2aaf071baeda 1.8-guieditor-mbyeongweon/ (42 files in 20 dirs): merge with 1.8 main branch
2008-07-27T20:43:08  <CIA-53> Byeongweon [tasyblue@gmail.com] default * 3938:838c028c9fd6 1.8-guieditor-mbyeongweon/wiki/htdocs/applets/FCKeditor/ (476 files in 55 dirs): remove fckeditor to replace with recent version 2.6.3b
2008-07-27T20:43:14  <gizmach> moin again
2008-07-27T20:43:16  <CIA-53> Byeongweon [tasyblue@gmail.com] default * 3939:45d71759f13b 1.8-guieditor-mbyeongweon/wiki/htdocs/applets/FCKeditor/ (477 files in 55 dirs): add recent version of fckeditor 2.6.3b
2008-07-27T20:43:32  <dreimark> hi gizmach
2008-07-27T20:44:01  <ThomasWaldmann> byeongweon: always on the bleeding edge, eh? :)
2008-07-27T20:44:14  <dreimark> hmm ?action=raw works
2008-07-27T20:46:26  <gizmach> dreimark: dreimark I got wiki to work with new code (acl and userform) but now got some tests failing (think that would be smaller problem than this)
2008-07-27T20:48:50  <gizmach> and TheSheep advices helped a lot
2008-07-27T20:50:10  <dreimark> I assume RecentChanges is working too again
2008-07-27T20:50:59  <dreimark> gizmach: Are the ToDo s understandable ?
2008-07-27T20:51:37  <gizmach> dreimark: yes they are, thank you for writing that
2008-07-27T20:52:48  <dreimark> gizmach: thomas was helping
2008-07-27T20:53:28  <dreimark> zenhase: current 1.8 does not tell that error if I remove the cache file
2008-07-27T20:54:02  <gizmach> ok than thank you both for that
2008-07-27T20:56:09  <dreimark> zenhase: it tells the usual traceback
2008-07-27T20:56:50  <dreimark> and  ?action=edit  works
2008-07-27T20:56:57  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4085:9fb1c1e0558e 1.8-dom-bblank/MoinMoin/ (macro/__init__.py macro2/Anchor.py): Migrate Anchor macro to new interface (TODO: not working yet, because id attr doesn't get through to html output)
2008-07-27T20:57:41  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 45:722101222098 EmeraldTree/emeraldtree/ElementTree.py: ElementTree - Fix text output
2008-07-27T20:57:41  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 46:c228aba7258c EmeraldTree/emeraldtree/ElementTree.py: ElementTree - Also check nodes in children attribute
2008-07-27T21:03:38  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4086:a106b99c39d2 1.8-dom-bblank/MoinMoin/converter2/_wiki_macro.py: Pseudo-macro handling - Nop footnote placing call
2008-07-27T21:03:39  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4087:842ef6739543 1.8-dom-bblank/MoinMoin/formatter/compatibility.py: Compatibility formatter - Don't choke on empty macro expansions
2008-07-27T21:11:54  <CIA-53> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com default * 4372:3c5af4da80b4 1.8-storage-cdenter/MoinMoin/storage/ (5 files in 3 dirs): storage: Merge with 1.8-mercurialbackend-ppacana
2008-07-27T21:13:17  <dennda> dreimark: Right now. :)
2008-07-27T21:17:33  <dreimark> :)
2008-07-27T21:21:18  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4088:8481aa90f2f1 1.8-dom-bblank/MoinMoin/converter2/_wiki_macro.py: Pseudo-macro handling - Add callout to get footnote text parsed as well
2008-07-27T21:21:19  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4089:f7070ee5ea86 1.8-dom-bblank/MoinMoin/converter2/creole_in.py: Creole input converter - Fill macro text parser callout
2008-07-27T21:29:59  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4090:4d88a5477de9 1.8-dom-bblank/MoinMoin/macro2/_BR.py: Migrate BR macro to new interface (but keep old style macro active, see also note in new macro)
2008-07-27T21:30:00  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4091:e3ee7d582c66 1.8-dom-bblank/MoinMoin/ (3 files in 2 dirs): merge
2008-07-27T21:31:03  <dreimark> bbl
2008-07-27T21:37:29  <dennda> Got a question
2008-07-27T21:39:24  <dennda> 'SAVE', 'SAVENEW', 'SAVE/REVERT', 'SAVE/RENAME' <-- If a page was *NOT* saved with one of these actions, what other actions could have been used? Judging from MoinMoin/action's contents, quite a few. In the code I am rewriting right now, however, a comment somehow suggests that the only other action can be ATT*, what I translate to ATTACH
2008-07-27T21:41:51  <dennda> (or rather ATTNEW, ATTDEL, etc)
2008-07-27T21:48:27  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4092:453a36b9046e 1.8-dom-bblank/MoinMoin/macro2/_base.py: Macro base classes - Catch some macro exceptions
2008-07-27T21:49:02  <xorAxAx> dennda: which other have you found?
2008-07-27T21:49:16  <xorAxAx> i think there is no complete list
2008-07-27T21:49:18  <dennda> xorAxAx: I just looked at the contents of the action-folder
2008-07-27T21:49:20  <xorAxAx> but grepping might help
2008-07-27T21:49:20  <CIA-53> Byeongweon [tasyblue@gmail.com] default * 3940:f57069f6b187 1.8-guieditor-mbyeongweon/MoinMoin/converter/text_html_text_moin_wiki.py: fix indent problem on gui editor. p tag with left-margin style can indent
2008-07-27T21:49:21  <CIA-53> Byeongweon [tasyblue@gmail.com] default * 3941:491cf04e8c88 1.8-guieditor-mbyeongweon/wiki/htdocs/applets/FCKeditor/editor/ (2 files in 2 dirs): apply character replace problem on safari and opera bug fix : http://dev.fckeditor.net/attachment/ticket/2333/2333.patch
2008-07-27T21:49:25  <xorAxAx> dennda: ?
2008-07-27T21:49:31  <xorAxAx> dennda: those are unrelated to action plugins
2008-07-27T21:49:39  <dennda> CopyPage for instance
2008-07-27T21:49:46  <xorAxAx> what does it use?
2008-07-27T21:50:56  * dennda reads the package level description
2008-07-27T21:51:09  <xorAxAx> :-)
2008-07-27T21:51:21  <xorAxAx> actions are called controllers in web frameworks that are newer than moin :)
2008-07-27T21:52:35  <dennda> Yeah, I know MVC :)
2008-07-27T21:53:06  <dennda> Anyway, as far as I can tell by looking at the code I am rewriting, it doesn't matter too much that I understand it (for rewriting). I was just curious
2008-07-27T21:53:23  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4093:a8f3d4be1a1c 1.8-dom-bblank/MoinMoin/formatter/__init__.py:
2008-07-27T21:53:23  <CIA-53> Formatter base - Remove macro handling
2008-07-27T21:53:23  <CIA-53> Remove macro handling from the formatter base and therefor from the html
2008-07-27T21:53:23  <CIA-53> formatter. It is only used by old-style macros and a macro is not allowed to
2008-07-27T21:53:23  <CIA-53> create another.
2008-07-27T21:53:24  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4094:a3fecb8b2b40 1.8-dom-bblank/MoinMoin/ (macro/BR.py macro2/_BR.py):
2008-07-27T21:53:29  <CIA-53> Remove BR macro
2008-07-27T21:53:31  <CIA-53> BR was converted into a pseudo-macro.
2008-07-27T21:53:33  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4095:844ffec0c06f 1.8-dom-bblank/MoinMoin/macro/ (FootNote.py Include.py TableOfContents.py):
2008-07-27T21:53:36  <CIA-53> Remove FootNote, Include and TableOfContents macros
2008-07-27T21:53:38  <CIA-53> They got converted into pseudo-macros.
2008-07-27T21:56:06  <xorAxAx> dennda: yeah, understanding and knowledge is the root of all evil
2008-07-27T21:57:07  <dennda> Is it? :o)
2008-07-27T22:05:56  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4096:f7f9264d461a 1.8-dom-bblank/MoinMoin/formatter/compatibility.py: Compatibility formatter - Workaround a brokeness somewhere which produces list items without list
2008-07-27T22:17:51  <CIA-53> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com default * 4373:88a6c73e6c31 1.8-storage-cdenter/MoinMoin/ (PageEditor.py action/info.py):
2008-07-27T22:17:51  <CIA-53> storage: Rewriting info action to use the storage API directly rather than using
2008-07-27T22:17:51  <CIA-53> the editlog module. For now this only covers information retrival. Thus, there
2008-07-27T22:17:53  <CIA-53> will be KeyErrors for now. The code that stores the information in the metadata
2008-07-27T22:17:55  <CIA-53> in the first place must now be rewritten.
2008-07-27T22:18:59  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4097:ecc0e14bcad5 1.8-dom-bblank/MoinMoin/i18n/__init__.py: i18n - Use new converters for wiki format in translated texts
2008-07-27T22:21:46  <CIA-53> Bastian Blank <bblank@thinkmo.de> default * 4098:b21fc4235c77 1.8-dom-bblank/MoinMoin/ (macro2/Verbatim.py macro/Verbatim.py macro2/_Verbatim.py): Use new-style Verbatim macro
2008-07-27T22:27:43  <xorAxAx> byeongweon:
2008-07-27T22:27:44  <xorAxAx> +            indent_depth = int(left_margin / 40)
2008-07-27T22:27:44  <xorAxAx> +            if indent_depth > 0:
2008-07-27T22:28:10  <byeongweon> xorAxAx: I'm here
2008-07-27T22:28:10  <xorAxAx> byeongweon: hmm, why 40?
2008-07-27T22:28:26  <xorAxAx> byeongweon: isnt that a bit system/resolution dependant or hardwired in fckeditor?
2008-07-27T22:28:45  <byeongweon> xorAxAx: fckeditor use indentation as p tag with left-margin:40px
2008-07-27T22:29:16  <xorAxAx> byeongweon: hmm, ok
2008-07-27T22:30:05  <byeongweon> xorAxAx: I try to support multi depth indentation but wki syntax seems like doesn't support that.
2008-07-27T22:30:23  <byeongweon> xorAxAx: so I just determine with indent_depth > 0
2008-07-27T22:30:36  <xorAxAx> byeongweon: yeah, i realised that. its always normalised so that you can shift at most one level
2008-07-27T22:30:43  <xorAxAx> so the code is fine
2008-07-27T22:31:38  <byeongweon> xorAxAx: the patch which fckeditor team fixed about safari works well.
2008-07-27T22:32:15  <byeongweon> xorAxAx: as I told you, unfinished tag problem occured again :-(
2008-07-27T22:32:30  <xorAxAx> in which browser?
2008-07-27T22:32:38  <byeongweon> xorAxAx: I was tracking how data processed.
2008-07-27T22:32:42  <byeongweon> xorAxAx: on safari..
2008-07-27T22:32:56  <xorAxAx> hmm, so its probably again the same bug
2008-07-27T22:33:26  <byeongweon> xorAxAx: similar but different.
2008-07-27T22:33:34  <xorAxAx> yeah
2008-07-27T23:10:27  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4099:a868c2f307e2 1.8-dom-bblank/MoinMoin/macro2/ (EditedSystemPages.py _base.py): create MacroPageLinkListBase class for commonly used code
2008-07-27T23:10:28  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4100:cb753a5f60c4 1.8-dom-bblank/MoinMoin/ (3 files in 2 dirs): Migrate TemplateList macro to new interface, add a more generic (and better named) PagenameList macro
2008-07-27T23:44:07  <CIA-53> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4101:84b797c25927 1.8-dom-bblank/MoinMoin/ (macro2/Hits.py macro/Hits.py): Migrate Hits macro to new interface

MoinMoin: MoinMoinChat/Logs/moin-dev/2008-07-27 (last edited 2008-07-26 22:15:02 by IrcLogImporter)