2009-09-20T00:00:20  <CIA-34> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 5156:94fbaf908135 1.9/MoinMoin/datastruct/backends/ (__init__.py _tests/__init__.py): use DictMixin to make datastruct.BaseDict usable like a normal dict, add test
2009-09-20T00:10:17  <ThomasWaldmann>  CAFED00D/150.7 OR CAFED00D/160.1
2009-09-20T00:10:19  <ThomasWaldmann> hehe
2009-09-20T01:11:48  *** tpfennig has joined #moin-dev
2009-09-20T01:40:24  *** tpfennig has quit IRC
2009-09-20T09:36:19  <dreimark> the packed file isn't corrupt it works on standalone
2009-09-20T09:37:07  <dreimark> and removing it is not a real option. If you have a slow connection
2009-09-20T09:37:35  <dreimark> it can take very long to download the unpacked file and that makes your firefox looking broken
2009-09-20T09:37:54  <dreimark> if you kill firefox you get it really broken
2009-09-20T09:46:51  <dreimark> bbl
2009-09-20T11:12:23  *** JosefMeier has joined #moin-dev
2009-09-20T11:12:31  <JosefMeier> Moin Moin
2009-09-20T12:06:24  <ThomasWaldmann> moin josef
2009-09-20T12:07:20  <ThomasWaldmann> btw, please commit those "essential changes" that ones needs to make the packed awd applet work
2009-09-20T12:12:01  <JosefMeier> ThomasWaldmann: Reimar made everything with gzipping the applet
2009-09-20T12:13:31  <ThomasWaldmann> (23:25) < JosefMeie> I had to do some changes in the applet for that. Only minor but necessary
2009-09-20T12:16:28  <JosefMeier> Ok. I don't think that is necessary any more. On my iMac MoinMoin 1.9 with AnyWikiDraw works.
2009-09-20T12:16:42  <JosefMeier> So also WSGI seems to be no problem
2009-09-20T12:16:51  <JosefMeier> But on my kubuntu it doesn't work for some reason
2009-09-20T12:17:05  <JosefMeier> Don't think it has something to do with WSGI
2009-09-20T12:18:51  <ThomasWaldmann> the java stuff is only downloaded once and then cached, right?
2009-09-20T12:23:41  <CIA-34> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 5157:9c67e4b79190 1.9/MoinMoin/action/SyncPages.py: fix NameError in SyncPages action
2009-09-20T12:28:24  <CIA-34> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 5158:a29847f26281 1.9/MoinMoin/action/LocalSiteMap.py: fix NameError in LocalSiteMap action
2009-09-20T12:31:08  <ThomasWaldmann> dreimark: JosefMeier: next sunday = final beta, any changes that shall get into 1.9 must be finished until then
2009-09-20T12:32:11  <JosefMeier> ThomasWaldmann: it's downloaded once and then cached. Yes. You can clear the cache with the controlpanel of java. Only after clearing the cache a new applet will be downloaded
2009-09-20T12:32:58  <JosefMeier> ThomasWaldmann: Next sunday sounds goodl. It would be great if we could also merge my modified handling of the <<BR>> macro in the GUI editor with that. I will commit my changes to moin/1.8-jmeier today
2009-09-20T12:34:06  <ThomasWaldmann> that likely need some cross-browser testing
2009-09-20T12:40:20  <JosefMeier> ThomasWaldmann: That's my job.
2009-09-20T12:40:32  <JosefMeier> I found out why so much line breaks where added
2009-09-20T12:40:48  <JosefMeier> I introduced a new macro called <<P>> for paragraphs
2009-09-20T12:41:01  <JosefMeier> Now line breaks also work in tables
2009-09-20T12:41:34  <JosefMeier> cause in GUI editor a simple line break always is transformed into a <P> tag.
2009-09-20T12:41:53  <JosefMeier> So we have to take care about that.
2009-09-20T12:47:32  <JosefMeier> I don't understand what I have written here myself. Please have a look on my repo to understand what I mean later this afternoon :-)
2009-09-20T13:02:14  *** JosefMeier has quit IRC
2009-09-20T13:02:52  *** JosefMeier has joined #moin-dev
2009-09-20T15:41:19  <CIA-34> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4404:df7d3de0e8cb 1.8/MoinMoin/filter/application_pdf.py: pdf filter: add comment that poppler-utils package also provides a pdftotext command
2009-09-20T15:55:24  *** tpfennig has joined #moin-dev
2009-09-20T16:10:20  *** JosefMeier has quit IRC
2009-09-20T16:11:02  *** JosefMeier has joined #moin-dev
2009-09-20T16:12:04  <ThomasWaldmann> IOError: [Errno 36] File name too long: '/srv/in.moinmo/data/pages/4ct10n(2f)content(2f)4ct10n(2f)content(2f)4ct10n(2f)content(2f)4ct10n(2f)content(2f)4ct10n(2f)content(2f)4ct10n(2f)content(2f)4ct10n(2f)content(2f)4ct10n(2f)content(2f)4ct10n(2f)content(2f)4ct10n(2f)content(2f)JosefMeier(3f)action(3d)AttachFile(26)do(3d)get(26)target(3d)example2(2e)svg(3f)action(3d)content(3f)action(3d)content(3f)action(3d)content(3f)action(3d)content(3
2009-09-20T16:12:40  <JosefMeier> ?
2009-09-20T16:13:39  <ThomasWaldmann> from the log :)
2009-09-20T16:14:15  <ThomasWaldmann> running on moinmo.in is good for finding bugs
2009-09-20T16:44:03  <JosefMeier> ThomasWaldmann: Which command shows me which files are affected by a changeset in the shell?
2009-09-20T16:48:17  <ThomasWaldmann> hg log -v
2009-09-20T16:48:52  <ThomasWaldmann> network: Downloading resource: http://moinmo.in/moin_static190/applets/anywikidraw/lib/AnyWikiDrawForTWiki.jar Content-Length: 846,310 Content-Encoding: pack200-gzip
2009-09-20T16:49:00  <ThomasWaldmann> that doesn't make sense:
2009-09-20T16:49:38  <ThomasWaldmann> the url is for the uncompressed jar, the content-length matches the uncompressed jar, but it tells the content-encoding is pack200-gzip?
2009-09-20T16:50:37  <ThomasWaldmann> or does apache pack/gzip it?
2009-09-20T16:52:40  <JosefMeier> ThomasWaldmann: dreimark did compress it somehow. there are two versions of the applet: the uncompressed and the gzipped one. Both are in the htdocs folder
2009-09-20T16:53:34  <ThomasWaldmann> that doesn't explain it
2009-09-20T16:53:51  <CIA-34> Josef Meier <jo.meier@gmx.de> default * 4404:d47dcffb0f0b 1.8-jmeier/MoinMoin/ (2 files in 2 dirs): Hide BR macro in GUI editor. Don't show the yellow text "<<BR>>" if a page is opened with the GUI editor.
2009-09-20T16:53:54  <CIA-34> Josef Meier <jo.meier@gmx.de> default * 4405:726382109017 1.8-jmeier/MoinMoin/ (4 files in 4 dirs): Line breaks now work in tables without explicitly using the <<BR>> macro. I added a new paragraph macro for that. This now supports conversion from <P> tag to <<P>> macro and vice versa.
2009-09-20T16:57:43  <ThomasWaldmann> a html4 line break is <br> not <br />
2009-09-20T16:58:58  <ThomasWaldmann> also, i do not see how you differentiate between wanted brs (like when using <<BR>>) and unwanted brs (like stuff inserted by gui editor)
2009-09-20T16:59:09  <JosefMeier> both works
2009-09-20T16:59:36  <JosefMeier> the gui editor always uses <br /> also the tests test for <br /> instead of <BR>
2009-09-20T17:02:29  <ThomasWaldmann> what we emit and what gui editor gives back are different things
2009-09-20T17:02:46  <ThomasWaldmann> we emit html4 (because we can't emit xhtml)
2009-09-20T17:03:00  <ThomasWaldmann> gui editor gives back xml / xhtml
2009-09-20T17:04:33  <ThomasWaldmann> also, while I can see that <<P>> is MAYBE useful in tables (although most people just used <<BR>> for that, i think it has the same problem as br after your changes
2009-09-20T17:06:28  <ThomasWaldmann> network: Downloading resource: http://moinmo.in/moin_static190/applets/anywikidraw/lib/AnyWikiDrawForTWiki.jar.pack.gz Content-Length: -1 Content-Encoding: pack200-gzip
2009-09-20T17:06:32  <ThomasWaldmann> java.io.IOException: Corrupted pack file: magic/ver = 1F8B0800/0.0 should be CAFED00D/150.7 OR CAFED00D/160.1
2009-09-20T17:06:48  <ThomasWaldmann> btw, this is what it tries first, bevor it tries the uncompressed file url
2009-09-20T17:06:54  <JosefMeier> ThomasWaldmann: Indeed I don't see the problem with the tag
2009-09-20T17:07:14  <ThomasWaldmann> maybe you just try editing and saving some bigger page?
2009-09-20T17:07:33  <ThomasWaldmann> then use diff to see how roundtripping works (or not works)
2009-09-20T17:07:47  <JosefMeier> In my company I have big pages with this mechanism. works great
2009-09-20T17:08:14  <JosefMeier> If the only problem is to replace <br /> by <br> than this is no problem I think.
2009-09-20T17:08:23  <ThomasWaldmann> how many <<P>> and <<BR>> do you have after saving?
2009-09-20T17:10:29  <JosefMeier> one
2009-09-20T17:10:36  <JosefMeier> they don't grow in count
2009-09-20T17:10:52  <JosefMeier> if I only use BR than I get more and more BRs
2009-09-20T17:11:26  <JosefMeier> With <<P>> in addition everything works as expected
2009-09-20T17:13:40  <JosefMeier> ThomasWaldmann: regarding anywikidraw applet: it works on a iMac. Does it work on your ubuntu if you open the wikisandbox from the MoinMoin homepage?
2009-09-20T17:15:51  <ThomasWaldmann> http://moinmo.in/moin_static190/applets/anywikidraw/lib/AnyWikiDrawForTWiki.jar.pack.gz if i request that url with FF, livehttpheaders doesn't show any headers
2009-09-20T17:16:22  <ThomasWaldmann> no, it doesn't work
2009-09-20T17:16:44  <ThomasWaldmann> JosefMeier: so it doesn't transform all <p> to <<P>>?
2009-09-20T17:17:05  <JosefMeier> No. Only <p> in tables
2009-09-20T17:18:27  <ThomasWaldmann> but that still adds <<P>> where nothing was before, right?
2009-09-20T17:19:03  <ThomasWaldmann> (and for no obvious reason :)
2009-09-20T17:20:22  <JosefMeier> the reason is, that also the gui editor creates <p> tags around table entries
2009-09-20T17:20:30  <ThomasWaldmann> if i request same url with wget, it downloads the file
2009-09-20T17:20:37  <JosefMeier> and my modification converts this p tags to <<P>> macro
2009-09-20T17:21:17  <ThomasWaldmann> yeah, but who want || <<P>> foo || <<P>> bar || instead of || foo || bar ||?
2009-09-20T17:21:25  <JosefMeier> so it's not right that there was nothing before the <<P>> tag
2009-09-20T17:21:52  <JosefMeier> ThomasWaldmann: The ones which want to have line breaks in tables. Try it out. It works great
2009-09-20T17:22:13  <ThomasWaldmann> those ones used <<BR>>
2009-09-20T17:22:20  <JosefMeier> But this doesn't work
2009-09-20T17:22:33  <ThomasWaldmann> sure it does
2009-09-20T17:23:26  <JosefMeier> today I broke a table with that
2009-09-20T17:24:00  <JosefMeier> But if you use the GUI editor and want to automatically convert line breaks in tables you have to do it with the P macro
2009-09-20T17:25:35  <JosefMeier> If someone doesn't use the GUI editor than he shouldn't see any difference
2009-09-20T17:27:01  <JosefMeier> <<BR>> instead of <<P>> doesn't work with GUI editor. I tried that out before but this led to leading line breaks where I didn't expected them.
2009-09-20T17:38:14  <ThomasWaldmann> sorry, but that all sounds confusing
2009-09-20T17:45:12  <JosefMeier> but it works
2009-09-20T17:45:16  <JosefMeier> :)
2009-09-20T17:46:14  <JosefMeier> maybe I missed something but I found no other way to get line breaks in tables (with gui editor!) working.
2009-09-20T17:50:27  <JosefMeier> Your problem is, that you don't see the need for the P macro ?
2009-09-20T17:50:44  <JosefMeier> ThomasWaldmann: ?
2009-09-20T17:57:00  <ThomasWaldmann> i don't want <<P>> appearing in tables at places that did not need them before
2009-09-20T17:58:24  <ThomasWaldmann> btw, the awd problem vanish if it doesn't find that .pack.gz file any more
2009-09-20T18:05:42  <JosefMeier> so we should delete the pack.gz file
2009-09-20T18:07:20  <JosefMeier> ThomasWaldmann: Is there a way to find out how many rows a table has?
2009-09-20T18:09:47  <CIA-34> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 5159:32f7a1724d14 1.9/MoinMoin/ (2 files in 2 dirs): remove anywikidraw .pack.gz file, makes more trouble than it's worth
2009-09-20T18:10:27  <ThomasWaldmann> no
2009-09-20T18:16:31  <JosefMeier> ThomasWaldmann: It works now
2009-09-20T18:16:35  <JosefMeier> the applet
2009-09-20T18:17:58  <JosefMeier> ThomasWaldmann: If I have no idea about the row count in a table than I can't decide when to automatically insert a BR macro and when not. At least one BR would always be insert. Also if the row count is zero.
2009-09-20T18:18:31  <JosefMeier> cause pressing the enter key in GUI editor always creates a paragraph instead of a <br>
2009-09-20T18:24:53  <JosefMeier> ThomasWaldmann: If we have the new domtree than it's much easier to handle that. Will it be merged it into 1.9 ?
2009-09-20T18:34:45  <ThomasWaldmann> shift-enter == br?
2009-09-20T18:36:09  <ThomasWaldmann> another thing that is a bit awkward is that <<P>> means that there is a special paragraph macro just for tables that you don't need to use outside of tables (you can, but it would be silly)
2009-09-20T18:41:06  <JosefMeier> ThomasWaldmann: shift-enter is not intuitive. It's also awkward to force people to press shift-enter in tables to get a line break, while it works by pressing only enter outside of tables
2009-09-20T18:42:00  <JosefMeier> If I would replace the html <p> from the gui editor to <<BR>> than every line inside a cell would be followed by a <<BR>>. Even if there is only one row. Would this be ok for you ?
2009-09-20T18:50:31  <ThomasWaldmann> enter = paragraph, shift-enter = line break
2009-09-20T18:50:40  <ThomasWaldmann> iirc even word processors do it like that
2009-09-20T18:51:13  <ThomasWaldmann> don't do crappy workarounds
2009-09-20T18:51:27  <ThomasWaldmann> either solve cleanly or leave as is
2009-09-20T18:53:47  <JosefMeier> ThomasWaldmann: Enter doesn't work in tables
2009-09-20T18:53:53  <JosefMeier> and that confuses people
2009-09-20T18:55:31  <JosefMeier> at least with the gui editor
2009-09-20T18:59:27  <dreimark> re
2009-09-20T18:59:37  <JosefMeier> Hi dreimark.
2009-09-20T19:01:37  <dreimark> ThomasWaldmann: JosefMeier the moin-1.9 awd is the original one without any change from us
2009-09-20T19:01:58  <JosefMeier> dreimark: also the gzipped version?
2009-09-20T19:01:59  <dreimark> sun jre 1.6 has a problem with that icedtea not
2009-09-20T19:02:27  <JosefMeier> My iMac runs also jre 1.5. There it works perfectly
2009-09-20T19:03:03  <JosefMeier> my kbuntu uses jre 1.6. This supports your theory
2009-09-20T19:06:02  <dreimark> JosefMeier: yes
2009-09-20T19:06:27  <dreimark> it is a known problem for 1.6
2009-09-20T19:07:09  <dreimark> what I was not understanding is that we don't see it at standalone server
2009-09-20T19:07:14  <dreimark> it should occure there too
2009-09-20T19:07:28  <JosefMeier> yes. but it doesn't
2009-09-20T19:07:50  <JosefMeier> that means that we can't use the compressed one until we found a solution for 1.6
2009-09-20T19:08:14  <dreimark> or it means we have a further on going problem not understanding why it is different
2009-09-20T19:09:12  * dreimark was one of the 100kPeople today visiting DLR
2009-09-20T19:12:36  <JosefMeier> open door ?
2009-09-20T19:13:30  <dreimark> :)
2009-09-20T19:30:13  * dreimark plays with 1.9b4 on a local apache for investigating awd pack problems
2009-09-20T19:32:46  <dreimark> hmm, first time I recog that twiki draw askes me to enter my credentiel for an http_auth setup again
2009-09-20T19:35:51  <dreimark> network: Ressource herunterladen: http://localhost/mywiki/moin_static190/applets/anywikidraw/lib/AnyWikiDrawForTWiki.jar.pack.gz Content-Length: 257.376 Content-Encoding: pack200-gzip
2009-09-20T19:36:11  <dreimark> cgi setup and http_auth
2009-09-20T19:36:41  <dreimark> awd also asks for the credentials
2009-09-20T19:40:35  <ThomasWaldmann> dreimark: try with and without gzip compression from apache
2009-09-20T19:41:04  <dreimark> will do, currently i try first the setups i have
2009-09-20T19:41:38  <dreimark> afterwards repeating with that changes
2009-09-20T19:42:14  <dreimark> ThomasWaldmann: can we move the dict of drawing ext to multiconfig?
2009-09-20T19:46:37  <dreimark> cgi without http_auth works too
2009-09-20T19:49:28  <dreimark> fcg twd, awd also
2009-09-20T19:56:03  <dreimark> mod_wsgi2.3 with http_auth works too
2009-09-20T20:09:39  <ThomasWaldmann> try mod-gzip or whatever it was called
2009-09-20T20:10:40  <dreimark> now doing, just wanted to be sure first I reload the packed file and I haven't cached it
2009-09-20T20:10:47  <dreimark> http://paste.pocoo.org/show/140717/
2009-09-20T20:10:51  <dreimark> without gzip
2009-09-20T20:13:47  * dreimark need to install it first
2009-09-20T20:30:32  <CIA-34> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4405:1f922d6aaba6 1.8/MoinMoin/i18n/__init__.py: i18n: check if languages is not initialized yet, don't crash
2009-09-20T20:35:29  <dreimark> with setting SetInputFilter DEFLATE for htdocs I can reproduce the misbehavior for pack 20
2009-09-20T20:35:32  <dreimark> 0
2009-09-20T21:55:56  <ThomasWaldmann> JosefMeier: http://moinmo.in/MoinMoinBugs/GuiEditorDontAllowBrInTables
2009-09-20T22:03:18  <JosefMeier> ThomasWaldmann: I know this. But it doesn't work in Internet Explorer. Explorer always adds extra BR
2009-09-20T22:03:20  <ThomasWaldmann> http://moinmo.in/MoinMoinBugs/DrawingsHandledInconsistently < me looks at that
2009-09-20T22:03:42  <JosefMeier> ThomasWaldmann: My P solution works in both browsers.
2009-09-20T22:03:46  <JosefMeier> firefox and IE
2009-09-20T22:04:43  <JosefMeier> I'm looking why IE makes trouble
2009-09-20T22:04:55  <ThomasWaldmann> because it always does :P
2009-09-20T22:06:55  <JosefMeier> ThomasWaldmann: Yes. But there must be a reason that IE has no trouble with <p> but with <br>
2009-09-20T22:07:58  <JosefMeier> I'm so bored about this yellow <<BR>> text ... :-) !!!
2009-09-20T22:10:00  <dreimark> JosefMeier: there can be another generic solution
2009-09-20T22:10:14  <dreimark> by just running it to wikiutil.renderText
2009-09-20T22:10:27  <dreimark> and remebering the markup
2009-09-20T22:11:17  <JosefMeier> dreimark: and then?
2009-09-20T22:12:18  <dreimark> then it is shown rendered
2009-09-20T22:12:54  <dreimark> I am thinking on a more generic approach for all macro markup
2009-09-20T22:13:57  <dreimark> e.g. <<Hits>> should also show the result, also it needs to be known that a macro gives that result
2009-09-20T22:14:08  <dreimark> so that you don't remove the resulting numbers
2009-09-20T22:14:33  <dreimark> when you want to remove the macro
2009-09-20T22:14:40  <JosefMeier> dreimark: You are speaking of some kind of multi pass html renderer ?
2009-09-20T22:15:31  <dreimark> wikiutil.renderText can render snippets
2009-09-20T22:15:43  <dreimark> of wikimarkup to html
2009-09-20T22:16:02  <dreimark> so the result is the rendered macro
2009-09-20T22:16:49  <dreimark> most macros are now using the argumentparser so we know their arguments/keywords
2009-09-20T22:17:15  <dreimark> we need to render in the gui editor their parameters if one wants to change their settings
2009-09-20T22:17:55  <dreimark> each macro needs to get automated form data to alter the values
2009-09-20T22:18:53  <dreimark> for the rendered result there must be the option a) to remove the macro which removes the output, b) to alter its params by some forms
2009-09-20T22:20:17  <dreimark> the output of the macro needs to be separated somehow from normal content, so that it is clear which region of the content is done by the macro
2009-09-20T22:21:31  <dreimark> the current approach is that you can imagine it by the yellow background
2009-09-20T22:26:23  <JosefMeier> ah ok. so the current state is just some milestone to the final solution?
2009-09-20T22:26:52  <dreimark> yes
2009-09-20T22:27:06  <dreimark> may be another soc gui student
2009-09-20T22:27:23  <dreimark> or some work of all of us
2009-09-20T23:06:11  *** grzywacz has quit IRC

MoinMoin: MoinMoinChat/Logs/moin-dev/2009-09-20 (last edited 2009-11-30 07:01:33 by RenatoSilva)