2009-08-15T00:08:35 <dreimark> re
2009-08-15T00:22:40 <dreimark> dimazest: please add later a comment at r = copy.copy(request)
2009-08-15T00:23:31 <dreimark> and explain in it why it is done with copy to avoid someone else getting the idea to do it again with a new request module
2009-08-15T00:23:54 <dreimark> s/module/object/
2009-08-15T00:36:47 <dreimark> dimazest: hmm a category definition is done without the -----
2009-08-15T00:38:12 <dreimark> the regex is extended by this to match only pages where it is defined after a hr line
2009-08-15T03:07:48 *** grzywacz has quit IRC
2009-08-15T04:16:58 *** PawelPacana has quit IRC
2009-08-15T04:17:30 *** PawelPacana has joined #moin-dev
2009-08-15T06:03:17 *** jdmjdm has joined #moin-dev
2009-08-15T06:13:28 *** jdmjdm has quit IRC
2009-08-15T07:31:24 *** JosefMeier has joined #moin-dev
2009-08-15T07:54:08 *** devilsadvocate has joined #moin-dev
2009-08-15T08:08:37 *** JosefMeier_ has joined #moin-dev
2009-08-15T08:27:02 *** JosefMeier has quit IRC
2009-08-15T10:42:43 *** JosefMeier_ has quit IRC
2009-08-15T10:47:40 *** JosefMeier has joined #moin-dev
2009-08-15T10:47:45 <JosefMeier> moin moin
2009-08-15T10:50:51 <JosefMeier> I like to change the action of AttachFile with a plugin. Is that possible?
2009-08-15T10:55:25 <TheSheep> sure, AttachFile itself is a plugin
2009-08-15T10:55:33 <TheSheep> you can override it
2009-08-15T10:56:43 <dreimark> moin
2009-08-15T10:57:00 <dreimark> AttachFile is gone in 2.0
2009-08-15T10:59:40 <TheSheep> will be gone
2009-08-15T11:02:47 <JosefMeier> great
2009-08-15T11:03:17 <JosefMeier> how much work is it to get into the 2.0 framework? maybe it's a good idea for me to bring my features into 1.9 but also in 2.0
2009-08-15T11:06:00 <dennda> depends on what you want to do
2009-08-15T11:07:10 <TheSheep> it will take a while until its ready, but of course all help is appreciated
2009-08-15T11:07:16 <JosefMeier> I want to get it running
2009-08-15T11:07:42 <dennda> what?
2009-08-15T11:07:44 <dennda> a 2.0 wiki?
2009-08-15T11:07:49 <JosefMeier> for sure
2009-08-15T11:07:54 <dennda> not that difficult
2009-08-15T11:08:04 <dennda> just download, unpack, ./wikiserver :-)
2009-08-15T11:08:21 <JosefMeier> really? but which version?
2009-08-15T11:08:27 <JosefMeier> sorry: which branch
2009-08-15T11:08:35 <dennda> most of our work is going on in 2.0-storage
2009-08-15T11:08:58 <JosefMeier> I can clone it to a local repo and it will run?
2009-08-15T11:09:03 <dennda> it should
2009-08-15T11:09:21 <dennda> hg clone ...; cd 2.0-storage; ./wikiserver.py
2009-08-15T11:09:23 <JosefMeier> is there any documentation for the framework which is more than one page ;-) ?
2009-08-15T11:09:44 <dennda> What "framework"? The storage "framework"?
2009-08-15T11:09:50 <JosefMeier> the 2.0 framework
2009-08-15T11:10:26 <dennda> i'm not too sure what you mean by that. there are several things that changed in 2.0
2009-08-15T11:10:31 <dennda> one big part is the storage api
2009-08-15T11:10:45 <dennda> it has been redone completely and there are docs for that
2009-08-15T11:11:15 <dennda> the UI is being redone as well (at least in parts)
2009-08-15T11:11:28 <JosefMeier> so you mean that if I know the sturcture of the 1.8.4 I will find my way also through the 2.0 code?
2009-08-15T11:12:03 <dennda> perhaps I should have asked what you want to achieve
2009-08-15T11:12:32 <JosefMeier> I want to contribute
2009-08-15T11:12:43 <JosefMeier> that it get's ready for download soon
2009-08-15T11:12:48 <dennda> from my point of view, the 2.0 apis are different, but a lot less entangled and simpler than 1.x
2009-08-15T11:13:01 <dennda> oh in that case you're very welcome :-)
2009-08-15T11:13:32 <dreimark> http://moinmo.in/MoinMoinTodo/Release 2.0/short
2009-08-15T11:13:54 <dreimark> is the todo besides implemting new ideas other refactoring
2009-08-15T11:13:55 <dennda> http://moinmo.in/Storage2009
2009-08-15T11:14:13 <JosefMeier> But I also want to get it very soon. That's why I modify my own 1.8.4 to my needs. I have this running as prototype in my company. I want to get people attracted by the easyness and rich features of a wiki to use it for documentation and project colloboration
2009-08-15T11:14:20 <dennda> it has a quick overview over what has been done, links to the three doc pages I wrote/modified for 2.0, and a todo list for 2.0
2009-08-15T11:16:07 <JosefMeier> thanks
2009-08-15T11:16:27 <dennda> if your work will be storage related, the two HelpOnStorageConfiguration and HelpOnStorageDevelopment pages linked there are a must-read
2009-08-15T11:16:47 <dennda> and while doing that, give me feedback so I can improve them :-)
2009-08-15T11:21:32 <JosefMeier> problem: a) cloned 2.0-storage on my repo b) started wikiserver.py c) accessed localhost:8080 d) get error messages (windowserror: [error 183)
2009-08-15T11:22:03 <dennda> you are on win32?
2009-08-15T11:22:05 <JosefMeier> somewhere in the storage code
2009-08-15T11:22:09 <JosefMeier> yes. I'm on vista
2009-08-15T11:22:20 <dennda> ok, then you need to adjust the storage part of your configuration
2009-08-15T11:22:32 <JosefMeier> where?
2009-08-15T11:22:34 <dennda> by default it uses a filesystem backend that unfortunately is not yet working on windows platforms
2009-08-15T11:23:28 <dennda> http://moinmo.in/Storage2009/HelpOnStorageConfiguration#Mercurial_Backend_.28hg.29
2009-08-15T11:23:48 <dennda> In your wikiconfig, set namespace mapping as mentioned there
2009-08-15T11:24:06 <dennda> this, however, assumes that you have an appropriate version of mercurial installed as you will be using the mercurial backend then
2009-08-15T11:24:39 <dennda> if you don't have that either, I'm afraid you'll have to use a memorybackend. this will work, but all your changes will be gone as soon as the wikiserver quits
2009-08-15T11:26:42 <JosefMeier> So you mean that at the moment 2.0 is only working on unix platforms?
2009-08-15T11:27:38 <dennda> Not quite. 2.0 works on all major platforms, only the filesystem backend is currently limited to POSIX
2009-08-15T11:28:10 <dennda> so if you are a windows developer and want to help out, that is one of the best things we could currently think of :-) (someone fixing filesystem backend to work on windows)
2009-08-15T11:28:22 <dennda> it may be a bit difficult tho
2009-08-15T11:29:24 <JosefMeier> why should it be difficult. share your thoughts with me. be honest :-) !
2009-08-15T11:29:42 <dennda> well for me it would because I've no clue about that low-level filesystem stuff
2009-08-15T11:30:01 <JosefMeier> have you written it in assembler?
2009-08-15T11:30:07 <dennda> no
2009-08-15T11:30:09 <dennda> python :-)
2009-08-15T11:30:11 <JosefMeier> good :-)
2009-08-15T11:30:44 <JosefMeier> I don't want to do it with this mercurial way. Like to make some windows changes directly to the code.
2009-08-15T11:30:58 <JosefMeier> where should I start? Is there one file with all low level stuff?
2009-08-15T11:31:20 <dennda> so you want to try fixing the fs backendß
2009-08-15T11:31:23 <dennda> ?
2009-08-15T11:32:00 <dennda> if yes: read the two storage help pages that are linked on the page i gave you above
2009-08-15T11:32:00 <JosefMeier> ok. it's not easy. isn't it?
2009-08-15T11:32:19 <dennda> if it was trivial we'd have already done it :-)
2009-08-15T11:32:45 <dennda> it's just that no one around here develops on windows
2009-08-15T11:35:31 <JosefMeier> I can't imagine that. MoinMoin was the first Wiki framework which ran on my windows systems without a flaw
2009-08-15T11:36:12 <dreimark> well for us it is difficult to extrapolate
2009-08-15T11:36:34 <dreimark> one of the problems is that ms filesystems don't folllow the inode concept
2009-08-15T11:37:41 <dreimark> since long for example the caching concept has some workarounds for windows because of the filesystem time granularity
2009-08-15T11:38:03 <dreimark> some fs do have 2 seconds
2009-08-15T11:38:30 <ThomasWaldmann> moin
2009-08-15T11:39:18 <JosefMeier> while looking through the code I saw that some code is not debuggable. Is this the cache stuff?
2009-08-15T11:39:32 <JosefMeier> cache = compiled python code?
2009-08-15T11:40:43 <ThomasWaldmann> JosefMeier: 1.9 or 2.0?
2009-08-15T11:41:11 *** grzywacz has joined #moin-dev
2009-08-15T11:41:44 <JosefMeier> 1.8.4 :-)
2009-08-15T11:42:24 <ThomasWaldmann> it compiles wiki page content to python code
2009-08-15T11:42:46 <JosefMeier> I'm was working only with 1.8.4 up to now cause thats the version which is running at my prototype wiki in the company. I get a lot of requests from my prototype users and I always try to implement it as soon as possible to get them attracted to the Wiki system
2009-08-15T11:43:08 <JosefMeier> how do you debug compiled wiki pages?
2009-08-15T11:43:45 <ThomasWaldmann> either it works for you as is or you switch off the compiling
2009-08-15T11:44:07 <JosefMeier> how to switch it off?
2009-08-15T11:45:01 <ThomasWaldmann> caching_formats = []
2009-08-15T11:47:00 <JosefMeier> I'm using Komodo IDE for development on windows. Which IDE are you using?
2009-08-15T11:49:35 <dreimark> eclipse, vim
2009-08-15T11:49:42 <JosefMeier> ok
2009-08-15T11:56:38 <JosefMeier> do I have to install Jinja2 ? It's giving me an importerrror about that
2009-08-15T11:56:50 <dennda> jup
2009-08-15T11:59:32 <dennda> ThomasWaldmann: why is jinja2 not shipped?
2009-08-15T12:08:28 <dreimark> dennda: isn't it?
2009-08-15T12:09:04 <dennda> why would he get an importerror then? havn't checked though
2009-08-15T12:09:08 <dreimark> JosefMeier: what is your sys.path
2009-08-15T12:09:17 <dennda> hm no, it's shipped
2009-08-15T12:09:54 <ThomasWaldmann> JosefMeier: it should be in MoinMoin.support
2009-08-15T12:09:55 <dennda> JosefMeier: you don't need to install it then. it comes with moin
2009-08-15T12:10:05 <ThomasWaldmann> dennda: please care about sqla stuff, you are low on time
2009-08-15T12:10:34 <dennda> ok
2009-08-15T12:23:12 <dreimark> bbl
2009-08-15T12:30:46 <JosefMeier> there is no jinja
2009-08-15T12:31:14 <JosefMeier> C:\Python26\Lib\site-packages\MoinMoin in the support dir is no jinja
2009-08-15T12:31:35 <JosefMeier> downloaded it and installed it with an installer I had also to download (easy_install).
2009-08-15T12:33:35 <JosefMeier> you're partially right: jinja is in the repo
2009-08-15T12:33:46 <JosefMeier> but it seems not to be installed by setup.py
2009-08-15T12:33:54 <JosefMeier> moinmoins setup.py
2009-08-15T12:34:31 * ThomasWaldmann looks
2009-08-15T12:35:47 * dreimark that will need a lot more additions
2009-08-15T12:36:11 <dreimark> currently devs don't install it they use it with the builtin wiki
2009-08-15T12:36:19 <dreimark> also for debugging
2009-08-15T12:36:25 <JosefMeier> I setup MoinMoin with an apache webserver. Cause I found no other way to debug it
2009-08-15T12:36:51 <JosefMeier> My Komodo IDE dev environment starts moin.cgi and I can debug that. I found no way to debug on localhost:8080
2009-08-15T12:36:53 <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6604:908948addda5 2.0-storage/setup.py: add jinja2 package to setup.py
2009-08-15T12:36:53 <dreimark> in eclipse you can run wikiserver
2009-08-15T12:37:08 <dreimark> and with the standlone server you could use werzeug debugging
2009-08-15T12:37:20 <dreimark> so you have two debuggers
2009-08-15T12:37:31 <ThomasWaldmann> JosefMeier: that's because we all develop in the hg workdir and usually noone uses setup.py
2009-08-15T12:38:08 <JosefMeier> so werkzeug debugging is used to debug moinmoin over localhost?
2009-08-15T12:38:11 <dreimark> see wikiserverconfig debug = os.environ.get('MOIN_DEBUGGER', 'off')
2009-08-15T12:38:26 <dreimark> but read the comment before that line
2009-08-15T12:40:48 <JosefMeier> Is there a documentation page about how to debug MoinMoin on localhost:8080 with this werkzeug tool?
2009-08-15T12:40:58 <dreimark> you could in eclipse start the wikiserver for debugging, you can set breakpoints
2009-08-15T12:42:32 <dreimark> JosefMeier: the debugging of werkzeug is used at the time you get a traceback
2009-08-15T12:42:50 <JosefMeier> hmpf
2009-08-15T12:43:07 * dreimark guesses komodo can run the wikiserver from the hg dir too
2009-08-15T12:43:53 <dreimark> so you can run by your ide the whole wiki and debug it by your ide
2009-08-15T12:45:07 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6605:c7f971444874 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: use rev.setup() and don't close the session the rev was bound to when it was retrieved from the DB
2009-08-15T12:45:09 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6606:6b3a046f7bb1 2.0-storage/MoinMoin/storage/ (_tests/test_backends.py backends/sqla.py): storage: sqla: fix destroy revision, implement item.destroy()
2009-08-15T12:45:11 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6607:4fb67d2f795c 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: fixes for item.commit()
2009-08-15T12:45:13 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6608:5240fd9e3c57 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: fix revision.size
2009-08-15T12:45:15 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6609:5541fc6a1de9 2.0-storage/MoinMoin/storage/ (_tests/test_backends_sqla.py backends/sqla.py): storage: sqla: keep chunksize in chunk, not in data.
2009-08-15T12:45:20 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6610:916e8ca8627b 2.0-storage/setup.py: storage: merge remote 2.0-storage
2009-08-15T12:46:53 <JosefMeier> yes I can start wikiserver with komodo too. But it only sends this message: 2009-08-15 12:44:47,500 INFO werkzeug:106 * Running on http://localhost:8080/ and waits for requests then
2009-08-15T12:47:34 <dreimark> now start a browser and go to http://localhost:8080/
2009-08-15T12:47:50 <JosefMeier> yes. the browser hangs. where could I set a goot breakpoint then?
2009-08-15T12:47:57 <JosefMeier> good breakpoint?
2009-08-15T12:48:02 <dreimark> at the first time it takes a minute
2009-08-15T12:48:18 <dreimark> or two because it has to setup a lot of stuff
2009-08-15T12:48:53 *** grzywacz has quit IRC
2009-08-15T12:49:26 <JosefMeier> you mean if I start wikiserver I can work normally with my wiki by only using the webbrowser?
2009-08-15T12:49:34 <dreimark> yes
2009-08-15T12:49:43 <JosefMeier> and I'm able to debug the code meanwhile? that would be great.
2009-08-15T12:49:47 <dreimark> yes
2009-08-15T12:49:56 <JosefMeier> I did everything by calling moin.cgi and setting the requests manually :-)
2009-08-15T12:50:02 <dreimark> this is the DesktopEdition wiki
2009-08-15T12:50:22 <dreimark> everyone could use it for everything he wants
2009-08-15T12:51:23 <dreimark> you may want to know http://master19.moinmo.in/InstallDocs#quick
2009-08-15T12:51:33 <dreimark> (new docs for 1.9)
2009-08-15T12:51:39 <JosefMeier> hm. do I have to enable debugging in wikiserverconfig to "web"?
2009-08-15T12:51:52 <dreimark> this desktopedition was integrated at 1.6
2009-08-15T12:52:15 <dreimark> if you want to use the werkzeugdebugger then yes
2009-08-15T12:54:07 <dreimark> JosefMeier: many of my user do use on their own the desktopedition and sync to their public wikis
2009-08-15T13:13:00 <JosefMeier> How do you get Eclipse to listen to port 8080 ?
2009-08-15T13:33:49 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6611:6cfe2934c8c3 2.0-storage/MoinMoin/storage/_tests/test_backends.py: storage: use unicode for test item names
2009-08-15T13:33:50 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6612:ab798948264b 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: When getting an item from the DB, don't close the session it is bound to
2009-08-15T13:36:32 <JosefMeier> got it :-)
2009-08-15T13:36:33 <JosefMeier> cool
2009-08-15T14:01:47 *** dreimark has quit IRC
2009-08-15T14:02:30 *** dreimark has joined #moin-dev
2009-08-15T14:23:51 <JosefMeier> I get an exception with unserializing this huge system content xml (18 meg). Is this file unpacked only once?
2009-08-15T14:29:01 <dreimark> yes
2009-08-15T14:39:47 <JosefMeier> is this xml and cdb stuff new in 2.0 ?
2009-08-15T14:40:13 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6613:dcc9248d97b3 2.0-storage/MoinMoin/storage/_tests/test_backends_sqla.py: storage: sqla tests themselves should use unicode item names as well
2009-08-15T15:18:47 *** devilsadvocate has quit IRC
2009-08-15T15:22:27 <ThomasWaldmann> JosefMeier: xml serialization is rather fresh
2009-08-15T15:22:42 <ThomasWaldmann> cdb usage in fs backend is from last year
2009-08-15T15:22:59 <ThomasWaldmann> and both is new in 2.0
2009-08-15T15:23:33 <ThomasWaldmann> JosefMeier: put your exception into a pastebin
2009-08-15T15:41:40 *** grzywacz has joined #moin-dev
2009-08-15T15:59:52 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6614:9e79a81b0bb6 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: keep session per item
2009-08-15T15:59:55 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6615:28cd04a4b49c 2.0-storage/MoinMoin/storage/ (_tests/test_backends_sqla.py backends/sqla.py): storage: sqla: cleanup backend __init__
2009-08-15T15:59:58 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6616:3417e3fe2e55 2.0-storage/MoinMoin/storage/ (_tests/test_backends_sqla.py backends/sqla.py): storage: sqla: Set chunksize to 64KiB
2009-08-15T16:02:56 <JosefMeier> Thomas: solved it already. On windows systems you can't rename a file if there is a file with the same name
2009-08-15T16:03:00 <JosefMeier> I fixed it
2009-08-15T16:03:31 <JosefMeier> what's a pastebin?
2009-08-15T16:03:42 <ThomasWaldmann> JosefMeier: PawelPacana suggested a quite good "fix" recently.
2009-08-15T16:04:09 <JosefMeier> where is his suggestion?
2009-08-15T16:04:26 <dreimark> JosefMeier: paste.pocoo.org
2009-08-15T16:04:45 <JosefMeier> my suggestion is to delete the destination file of the rename if the file still exists before renaming
2009-08-15T16:06:13 <dreimark> sounds like locking is needed
2009-08-15T16:06:44 <JosefMeier> imagine there are two files : test.tmp and test.ndb
2009-08-15T16:07:07 <JosefMeier> if you want to rename test.tmp to test.ndb this won't work before you delete test.ndb before on a windows system
2009-08-15T16:11:16 <dreimark> yes and because someone else does the same at the same time the operation needs locking
2009-08-15T16:13:54 <JosefMeier> but this has nothing to do with windows, isn't it? why do you now that? admit that you have some kind of hidden documentation for the new stuff! I want to see that :-) !!!
2009-08-15T16:15:05 <dreimark> no experience
2009-08-15T16:15:48 <ThomasWaldmann> JosefMeier: http://selenic.com/repo/hg/file/4e7149ed98e8/mercurial/util.py#l419
2009-08-15T16:15:53 <JosefMeier> windows doesn't support hard links. How did you handle such tasks in the past?
2009-08-15T16:16:19 <ThomasWaldmann> and that rename should go to MoinMoin.util.filesys.rename
2009-08-15T16:16:50 <ThomasWaldmann> JosefMeier: in the past we tried to just use compatible api calls :P
2009-08-15T16:17:31 <JosefMeier> So this link stuff isn't from you
2009-08-15T16:18:32 <ThomasWaldmann> see header
2009-08-15T16:19:37 <JosefMeier> bad guy
2009-08-15T16:20:50 <JosefMeier> i changed the link command to "copy". now it seems to unpack the xml to a lot of pages
2009-08-15T16:21:28 <JosefMeier> yeah !!!
2009-08-15T16:21:45 <JosefMeier> Now I see the page "LanguageSetup"
2009-08-15T16:21:47 <ThomasWaldmann> not sure if that's correct
2009-08-15T16:22:03 <JosefMeier> the wiki works
2009-08-15T16:22:12 <JosefMeier> can see page content
2009-08-15T16:23:15 <dreimark> bbl
2009-08-15T16:24:22 <JosefMeier> bbl?
2009-08-15T16:25:28 <dreimark> be back later
2009-08-15T16:25:51 <dreimark> JosefMeier: I am on a server so my cloak is always vissible
2009-08-15T16:25:59 <dreimark> so I like to tell when I leave
2009-08-15T16:26:05 <JosefMeier> ok
2009-08-15T16:26:23 <JosefMeier> I created a page. but I don't find it under "content". Where is it?
2009-08-15T16:28:03 <ThomasWaldmann> it should be in the backend that is mapped to /, usually that is the content backend
2009-08-15T16:29:09 <JosefMeier> where do I define this "mapping"
2009-08-15T16:29:22 <dennda> http://moinmo.in/Storage2009/HelpOnStorageConfiguration
2009-08-15T16:30:31 <JosefMeier> so MoinMoin 2.0 is running under windows. can we do sometihng with my changes or are they already known? You mentioned this link "http://selenic.com/repo/hg/file/4e7149ed98e8/mercurial/util.py#l419" before.
2009-08-15T16:31:03 <JosefMeier> are this namespaces directory names?
2009-08-15T16:32:34 <ThomasWaldmann> they are item name prefixes
2009-08-15T16:32:53 <ThomasWaldmann> it is somehow like fstab
2009-08-15T16:33:19 <JosefMeier> and as a windows guy I know nothing about fstab
2009-08-15T16:36:48 <ThomasWaldmann> posix systems have only 1 namespace for all files
2009-08-15T16:36:54 <ThomasWaldmann> no drive letters :)
2009-08-15T16:37:16 <ThomasWaldmann> so you mount one partition to / and another to /home/ for example
2009-08-15T16:37:53 <JosefMeier> ok. so you mean that I have to find a why how I can change the "/" to an absolute path on windows?
2009-08-15T16:38:02 <ThomasWaldmann> the user does not notice that there are multiple partitions in the game, except when using diskfree display
2009-08-15T16:38:26 <ThomasWaldmann> no
2009-08-15T16:38:39 <ThomasWaldmann> first begin with a clear problem definition
2009-08-15T16:41:45 <JosefMeier> Hm. I tried to create a page the "old way" by adding it to the URL. Like localhost:8080/Dada
2009-08-15T16:42:10 <JosefMeier> one times I saw the common page where I'm asked to create an empty page or use a template
2009-08-15T16:42:19 <JosefMeier> but now there is a page called "create new item?"
2009-08-15T16:42:29 <JosefMeier> what do I have to do now?
2009-08-15T16:47:43 <dennda> click that, fill in your text, save
2009-08-15T16:52:03 <JosefMeier> but where is the GUI editor?
2009-08-15T16:52:10 <dennda> there's none yet
2009-08-15T16:53:16 <JosefMeier> So a typical page consists of "Item: <page name>" followed by the page content, followed by some Meta data followed by the history?
2009-08-15T16:54:30 <dennda> not quite. sorry I'm still working on my GSoC stuff and need that finished until monday evening. i can answer your questions afterwards no problem, but before that I gotta hurry a bit :-)
2009-08-15T16:57:26 <JosefMeier> no problem. Thus MoinMoin 2.0 is now running on my windows pc are the changes to fs.py helpful to anybody?
2009-08-15T17:00:58 <ThomasWaldmann> make a diff, put it into pastebin to review
2009-08-15T17:01:35 <ThomasWaldmann> (for fixes, it is always important to do the right thing, not just to make it work somehow :)
2009-08-15T17:03:30 <JosefMeier> http://paste.pocoo.org/show/134447/
2009-08-15T17:04:48 <JosefMeier> ThomasWaldmann: for sure. But if you are new to something but want to contribute, it's hard to know what "the right thing" is. Maybe I missed something.
2009-08-15T17:05:40 <ThomasWaldmann> JosefMeier: see the hg rename i posted, the problem is a bit more complex that your solution
2009-08-15T17:05:48 <ThomasWaldmann> ...than...
2009-08-15T17:06:47 <ThomasWaldmann> also, we do not want to fix that at 100 places, but have a filesys.rename call that we can just use independent of the OS
2009-08-15T17:07:34 <ThomasWaldmann> if you look into filesys.py, you'll find quite some other hacks for crappy non-posix OSses :D
2009-08-15T17:08:48 <ThomasWaldmann> also, that fix should likely go into 1.8 or 1.9, because wanting to rename something is not specific to 2.0
2009-08-15T17:08:50 <JosefMeier> Ok. I understand the problem.
2009-08-15T17:09:15 <ThomasWaldmann> (it will be merged into all newer release then)
2009-08-15T17:09:49 <JosefMeier> If the solution is clear (util.py as you posted it) why isn't it fixed then? Lack of time?
2009-08-15T17:10:22 <ThomasWaldmann> btw, we already have filesys.rename since long
2009-08-15T17:10:36 <ThomasWaldmann> obviously johannes didn't know
2009-08-15T17:11:08 <ThomasWaldmann> so the best fix is to improve filesys.rename with the code from hg in 1.8
2009-08-15T17:11:40 <ThomasWaldmann> then check all rename( calls in 1.8 whether they use filesys.rename
2009-08-15T17:13:38 <ThomasWaldmann> looks like PageEditor.py:621 should be filesys.rename()
2009-08-15T17:14:02 <JosefMeier> saw that already
2009-08-15T17:14:18 <ThomasWaldmann> i wouldn't change the other places, though (mig scripts, the one test that is skipped for win32 anyway)
2009-08-15T17:14:25 <JosefMeier> you mean that the os.rename statements in fs.py should be renamed to "filesys.rename" ?
2009-08-15T17:14:43 <ThomasWaldmann> yes
2009-08-15T17:15:15 <JosefMeier> ah ok. and why it isn't done up to now?
2009-08-15T17:15:18 <ThomasWaldmann> of course you won't get atomicity by doing that, but at least it'll work mostly
2009-08-15T17:15:50 <ThomasWaldmann> as you've seen, that code wasn't written in a platform independant way
2009-08-15T17:17:06 <ThomasWaldmann> so: fix filesys.rename in 1.8 using hg code and have a good testing on win32
2009-08-15T17:17:25 <ThomasWaldmann> commit to 1.8, pull into 1.9 and 2.0
2009-08-15T17:17:34 <JosefMeier> sorry for asking so much. don't want to bother you but: If you know that the "os.rename" has only be changed to "filesys.rename" and MoinMoin 2.0 will run on windows, why has no one changed it up to now
2009-08-15T17:17:46 <ThomasWaldmann> fix fs.py and other os.rename users in 2.0 (also check 1.9)
2009-08-15T17:18:31 <ThomasWaldmann> JosefMeier: a) johill didn't knew I think. b) I knew, but I also know that this is not all.
2009-08-15T17:18:51 <ThomasWaldmann> you also have to solve the hardlink stuff and it needs testing on win32.
2009-08-15T17:19:15 <ThomasWaldmann> (and as I usually do not use win32, I am not the right one to fix that)
2009-08-15T17:19:25 <JosefMeier> ok.
2009-08-15T17:20:03 <JosefMeier> I have some straight feeling that there are so much unix guys but no windows guy who's working on MoinMoin. Is it aimed to be used on Unix systems only?
2009-08-15T17:20:11 * ThomasWaldmann looks into 1.9 for os.rename
2009-08-15T17:20:29 <ThomasWaldmann> no, but obviously windows has more users than developers
2009-08-15T17:21:24 <JosefMeier> Do you have a vision what you want MoinMoin to be in the future? My vision is to see it as the #1 choice for open source company wikis. What's yours?
2009-08-15T17:21:41 <ThomasWaldmann> #1 wiki :)
2009-08-15T17:22:46 <JosefMeier> Then - if I allowed to make this offer to you - you should make more tutorials and concept pages for 2.0
2009-08-15T17:23:16 <ThomasWaldmann> feel free. might be a bit early though (depending on what you mean).
2009-08-15T17:24:26 <JosefMeier> I have absolute no idea what MoinMoin 2.0 should look like. So if I would change something cause I think it's a bug, I could make some serious error cause I don't know much about how you want to act it like.
2009-08-15T17:25:07 <JosefMeier> How do you want to make people contributions if the concept is not clearly documented or are you working on the concept at the moment?
2009-08-15T17:26:41 <ThomasWaldmann> well, the rough concept is clear (mimetype item based, item class hierarchy)
2009-08-15T17:26:55 <ThomasWaldmann> what's mostly missing is theme and UI
2009-08-15T17:27:06 <dreimark> and cover your code by unit tests
2009-08-15T17:27:06 <JosefMeier> http://paste.pocoo.org/show/134455/
2009-08-15T17:28:14 <dreimark> dimazest: do you hve seen my reply about ---- in the category regex
2009-08-15T17:28:40 <JosefMeier> Do you think that the existing page "Storage2009" is enough to understand what you want to achieve? It's good to get a rough idea but then you don't know where you can contribute if you're not in the details.
2009-08-15T17:28:41 <ThomasWaldmann> JosefMeier: much better, but the copy stuff should not be in that changeset
2009-08-15T17:28:58 <ThomasWaldmann> JosefMeier: i can strip that and commit it
2009-08-15T17:29:01 <JosefMeier> ThomasWaldmann: but without the copy stuff it won't work on windows
2009-08-15T17:29:04 <dreimark> JosefMeier: please do not create dummypages on moinmo.in
2009-08-15T17:29:10 <dreimark> e.g. http://moinmo.in/SeppTest
2009-08-15T17:29:32 <ThomasWaldmann> JosefMeier: yes, but we first have to think about whether that is correct. can you comment it?
2009-08-15T17:29:58 <JosefMeier> you mean to comment the changes or to comment the commit?
2009-08-15T17:30:48 <JosefMeier> dreimark: lol. That's the page I wanted to create on my local pc :-) That's why I didn't found it here. Sorry ;-)
2009-08-15T17:33:16 <ThomasWaldmann> JosefMeier: why copy is a correct replacement for link
2009-08-15T17:36:20 *** JosefMeier_ has joined #moin-dev
2009-08-15T17:38:15 <ThomasWaldmann> JosefMeier: shall I commit that "hg rename" to 1.8 and you try it then on win32?
2009-08-15T17:39:07 <dimazest> dreimark: yes
2009-08-15T17:39:41 <dimazest> dreimark: i'll cahnge the comment
2009-08-15T17:40:42 <JosefMeier_> yes
2009-08-15T17:40:45 <dreimark> dimazest: do you see ahance that the search result can look similiar to moin's search?
2009-08-15T17:40:59 <dreimark> s/ahance/ a chance/
2009-08-15T17:41:04 <JosefMeier_> Thomas: yes
2009-08-15T17:42:49 <ThomasWaldmann> JosefMeier: ok.
2009-08-15T17:45:23 <ThomasWaldmann> JosefMeier: how did the 2.0 patch work for you, there was an import missing
2009-08-15T17:46:46 <dreimark> dimazest: I guess http://hg.moinmo.in/moin/1.9-xapian-dmilajevs/file/tip/MoinMoin/search/Xapian.py#l528 is fixed by copy.copy now too
2009-08-15T17:51:36 *** JosefMeier has quit IRC
2009-08-15T17:51:48 <dimazest> dreimark: may be, i need to check it, but after queryparser refactoring, by now 1 file changed, 90 insertions(+), 218 deletions(-)
2009-08-15T17:52:38 <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6617:cb444ac684bd 2.0-storage/MoinMoin/storage/backends/fs.py: fs storage backend: use filesys.rename to give it a chance under win32 (thanks to Josef Meier for the patch)
2009-08-15T17:53:56 <ThomasWaldmann> JosefMeier_: so, why is copy() correct?
2009-08-15T18:00:11 <dreimark> dimazest: so you saved 128 lines :)
2009-08-15T18:00:24 <ThomasWaldmann> http://hg.moinmo.in/moin/2.0-storage/file/cb444ac684bd/MoinMoin/storage/backends/fs.py#l419
2009-08-15T18:00:49 <ThomasWaldmann> can someone explain why that is os.link and not just a rename?
2009-08-15T18:03:04 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6618:5f32227811b2 2.0-storage/MoinMoin/storage/backends/__init__.py: storage: create_simple_mapping: support sqla
2009-08-15T18:03:06 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6619:ca040b6dada7 2.0-storage/MoinMoin/storage/backends/__init__.py: storage: create_simple_mapping: name variables more consistently
2009-08-15T18:03:08 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6620:6135343d0269 2.0-storage/MoinMoin/storage/backends/fs.py: storage: merge remote 2.0-storage
2009-08-15T18:08:11 <ThomasWaldmann> birkenfeld: xorAxAx: PawelPacana: TheSheep: waldi: see 8 minutes ago
2009-08-15T18:08:54 <ThomasWaldmann> (that's maybe the last thing in the way to have fs backend mostly working on windows)
2009-08-15T18:09:43 <TheSheep> won't rename fail if the file exists on windows?
2009-08-15T18:09:57 <ThomasWaldmann> not if we use filesys.rename
2009-08-15T18:10:28 <ThomasWaldmann> (like we do at all those other places there that just use filesys.rename)
2009-08-15T18:11:05 <ThomasWaldmann> also, johannes used rename all over the place, just not in that place, there he used a hardlink
2009-08-15T18:11:45 <TheSheep> then I don't know
2009-08-15T18:11:47 *** amartani has joined #moin-dev
2009-08-15T18:11:50 <ThomasWaldmann> and I don't quite understand why, because link at new place + unlink at old place looks pretty much like a rename
2009-08-15T18:12:05 <TheSheep> except that renames are atomic in posix
2009-08-15T18:12:32 <TheSheep> but atomicity is usually an advantage
2009-08-15T18:12:51 <ThomasWaldmann> yeah, we can't have that for windows. but most windows users might prefer a backend that works 99.9% of the time than having no backend. :)
2009-08-15T18:13:35 <TheSheep> I can't really imagine what a windows user wants, wanting to use windows is already hard enough to justify ;)
2009-08-15T18:13:49 <ThomasWaldmann> :D
2009-08-15T18:15:14 <ThomasWaldmann> TheSheep: we must not convince Josef to use Linux, otherwise we again have noone caring for Windows. :)
2009-08-15T18:15:48 <TheSheep> I didn't say anything
2009-08-15T18:16:07 <ThomasWaldmann> "das schweigen der laemmer", yeah :)
2009-08-15T18:16:15 <TheSheep> anyways, perhaps he wasn't always unlinking it before, and then he changed it and didn't change that into rename?
2009-08-15T18:16:53 <ThomasWaldmann> the old place is just some tempfile
2009-08-15T18:17:42 <ThomasWaldmann> i guess I just try changing it and leave a comment with the old code and some words about it
2009-08-15T18:18:07 <TheSheep> Once I had a problem with rights of temporary files, they are not created respecting the umask
2009-08-15T18:18:59 <TheSheep> so if you create a temp file, and rename it, you end up with wrong permissions
2009-08-15T18:19:01 <dreimark> hmm, renaming soes not work over fs borders
2009-08-15T18:19:06 <dreimark> s/s/d/
2009-08-15T18:19:21 <TheSheep> different mount points
2009-08-15T18:19:24 <TheSheep> that may be it
2009-08-15T18:19:35 <TheSheep> but I don't think linking does...
2009-08-15T18:20:08 <CIA-38> Alexandre Martani <amartani AT gmail DOT com> default * 6807:520297f8e6af 2.0-storage-editor-amartani/ (8 files in 4 dirs): merge 2.0-storage
2009-08-15T18:20:30 <TheSheep> anyways, the solution was to create a temporary directory, create a file inside it, rename the file and remove the directory
2009-08-15T18:24:33 <ThomasWaldmann> ah, I guess I know now why
2009-08-15T18:24:43 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6621:b5f8c12dbb9e 2.0-storage/MoinMoin/storage/ (_tests/test_backends.py backends/sqla.py): storage: sqla: instead of skipping the test, better fix it
2009-08-15T18:24:51 <ThomasWaldmann> os.rename kills the destination on posix
2009-08-15T18:25:02 <ThomasWaldmann> but it shall not do that at that place
2009-08-15T18:25:50 <ThomasWaldmann> so this is emulating win32 semantics on posix :)
2009-08-15T18:26:56 <ThomasWaldmann> TheSheep: do you agree?
2009-08-15T18:27:55 <ThomasWaldmann> looks like we need a filesys.rename_no_overwrite
2009-08-15T18:30:50 <ThomasWaldmann> JosefMeier_: thus, copy is likely not what we need, because that also overwrites.
2009-08-15T18:32:34 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6622:023843f8abf2 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: fix for read(-n)
2009-08-15T19:09:30 <birkenfeld> ThomasWaldmann: maybe to avoid a race condition?
2009-08-15T19:10:12 <TheSheep> ThomasWaldmann: you are right
2009-08-15T19:11:04 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6623:5bb438cf408c 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: implement history
2009-08-15T19:18:14 <ThomasWaldmann> ok, I add some rename_no_overwrite to 1.8 (and also the hg rename implementation for win32)
2009-08-15T19:29:29 *** y84 has joined #moin-dev
2009-08-15T19:32:25 <ThomasWaldmann> JosefMeier_: can you try os.rename('foo','bar') with existing 'bar' on win32?
2009-08-15T19:39:13 <JosefMeier_> ThomasWaldmann: Sorry. Was sleeping after a massage by my girlfriend ;-)
2009-08-15T19:39:21 <JosefMeier_> os.rename fails on windows
2009-08-15T19:39:27 <JosefMeier_> if "bar" exists
2009-08-15T19:39:56 <JosefMeier_> Nice to see that you unix guys try to make it work on windows, too.
2009-08-15T19:40:08 <dreimark> bbl
2009-08-15T19:41:27 <ThomasWaldmann> JosefMeier_: i need err.errno from that
2009-08-15T19:41:44 <JosefMeier_> what?
2009-08-15T19:41:58 <ThomasWaldmann> try:
2009-08-15T19:42:00 <ThomasWaldmann> ...
2009-08-15T19:42:07 <ThomasWaldmann> except OSError, err:
2009-08-15T19:42:11 <ThomasWaldmann> print err.errno
2009-08-15T19:42:40 <JosefMeier_> ok
2009-08-15T19:44:16 <ThomasWaldmann> (after that, please open 'bar' from another process and retry that to see if it gives same errno)
2009-08-15T19:47:28 <JosefMeier_> error 17
2009-08-15T19:47:34 <ThomasWaldmann> import errno
2009-08-15T19:47:39 <ThomasWaldmann> print errno.EEXIST
2009-08-15T19:47:55 <JosefMeier_> what? where?
2009-08-15T19:48:11 <ThomasWaldmann> just look what number EEXIST has
2009-08-15T19:48:14 <JosefMeier_> Is "17" not helpful enough?
2009-08-15T19:48:18 <ThomasWaldmann> no
2009-08-15T19:48:19 <JosefMeier_> ah ok
2009-08-15T19:49:59 <ThomasWaldmann> just use a python interpreter and enter that
2009-08-15T19:54:22 <JosefMeier_> both times the code is 17
2009-08-15T19:54:45 <ThomasWaldmann> ok
2009-08-15T19:54:50 <JosefMeier_> also the exception said something like "on a windows machine you can't rename an existing file ..."
2009-08-15T19:54:56 <ThomasWaldmann> now try the "rename to some open file"
2009-08-15T19:55:02 <JosefMeier_> ok
2009-08-15T19:57:00 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6624:5fa75fca99b6 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: Move Session from module level to class level so as to allow creating several backends with different engines
2009-08-15T19:58:36 <JosefMeier_> ThomasWaldmann: no error
2009-08-15T19:58:45 <JosefMeier_> the rename worked
2009-08-15T19:58:53 <JosefMeier_> with the original file open
2009-08-15T19:59:13 <ThomasWaldmann> no, i mean the destination: existing and even open
2009-08-15T19:59:28 * dennda fixes timestamp
2009-08-15T19:59:52 <JosefMeier_> I did it this way: created "test.txt". opened it. renamed "test.txt" to "test2.txt". After that, I had a renamed file "test2.txt" and a opened file "test.txt"
2009-08-15T20:00:07 <JosefMeier_> is that what you want?
2009-08-15T20:00:24 <ThomasWaldmann> no
2009-08-15T20:00:58 <ThomasWaldmann> try renaming 'src' to 'dst', but open 'dst' before trying
2009-08-15T20:01:00 <JosefMeier_> ah. you want me to open "test2.txt" and rename an other file to it
2009-08-15T20:01:03 <JosefMeier_> ok
2009-08-15T20:04:01 <JosefMeier_> both times 17
2009-08-15T20:05:05 <ThomasWaldmann> ok, great
2009-08-15T20:05:34 <JosefMeier_> is this good news?
2009-08-15T20:05:41 <JosefMeier_> and when yes, why?
2009-08-15T20:09:36 <JosefMeier_> I changed my delete stuff to filesys.rename
2009-08-15T20:09:42 <JosefMeier_> but it's missing some import now.
2009-08-15T20:09:54 <JosefMeier_> looking
2009-08-15T20:12:00 <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4358:506ce7e1f8e0 1.8/MoinMoin/util/filesys.py: replace filesys.rename for win32 (thanks to the Mercurial developers!)
2009-08-15T20:12:28 <ThomasWaldmann> JosefMeier_: try that ^^
2009-08-15T20:12:34 <JosefMeier_> have it
2009-08-15T20:12:38 <JosefMeier_> it seems to work
2009-08-15T20:13:08 <JosefMeier_> I also used "copy" instead of "link". Was googling about it and found a code sample but I don't have it found again
2009-08-15T20:13:21 <JosefMeier_> They were using "copy" instead
2009-08-15T20:13:37 <JosefMeier_> Is it helpful for you if I zip my content folder and send it to you?
2009-08-15T20:13:51 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6625:d3c61971d130 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: implement revision.timestamp
2009-08-15T20:13:53 <JosefMeier_> You could compare the unix result with my result then
2009-08-15T20:18:50 <JosefMeier_> without the link / copy it won't work
2009-08-15T20:19:05 <ThomasWaldmann> i am fixing that right now
2009-08-15T20:30:02 <JosefMeier_> found another problematic rename location: MoinMoin\support\pycdb.py (at the very end of the file)
2009-08-15T20:30:50 <JosefMeier_> and in MoinMoin/storage/backends/flatfile.py
2009-08-15T20:31:22 <JosefMeier_> and somehow in MoinMoin/support/pygment/lexers/_luabuiltins.py
2009-08-15T20:50:57 <ThomasWaldmann> http://paste.pocoo.org/show/134492/
2009-08-15T20:51:15 <ThomasWaldmann> i guess we could use that in fs.py ^^
2009-08-15T20:54:00 <JosefMeier_> great. and also in the other files which contain "os.rename"
2009-08-15T20:54:15 <JosefMeier_> found also a few files in moinmoin-2.0-storage which contain os.link
2009-08-15T20:54:36 <JosefMeier_> most of them are in storage code
2009-08-15T20:56:57 <ThomasWaldmann> no, that is not the usual rename replacement
2009-08-15T20:57:38 <ThomasWaldmann> but it can be used at the one place in fs.py that calls os.link
2009-08-15T20:58:10 <JosefMeier_> ah ok
2009-08-15T20:58:37 <JosefMeier_> Can you give me a hint about how I can override methods of attachfile.py in a action extension?
2009-08-15T20:58:45 <JosefMeier_> <- learning python
2009-08-15T21:01:53 <ThomasWaldmann> better don't do attachfile hacks
2009-08-15T21:02:21 <CIA-38> Dmitrijs Milajevs <dimazest@gmail.com> default * 4985:cb9561447c78 1.9-xapian-dmilajevs/MoinMoin/search/queryparser.py: Xapian2009: BaseExpression.search() refactoring.
2009-08-15T21:02:23 <amartani> ThomasWaldmann: templates dir is also missing from setup.py
2009-08-15T21:02:23 <CIA-38> Dmitrijs Milajevs <dimazest@gmail.com> default * 4986:7762acfc26c9 1.9-xapian-dmilajevs/MoinMoin/search/queryparser.py: Xapian2009: highlight_re() which returns an empty string was removed, because BaseExpression.highlight_re() returns an emprty string.
2009-08-15T21:02:36 <CIA-38> Dmitrijs Milajevs <dimazest@gmail.com> default * 4987:5db393a37ab5 1.9-xapian-dmilajevs/MoinMoin/search/queryparser.py: Xapian2009: xapian_need_postproc() was moved to the BaseExpression.
2009-08-15T21:02:37 <CIA-38> Dmitrijs Milajevs <dimazest@gmail.com> default * 4988:7ab1128bae9a 1.9-xapian-dmilajevs/MoinMoin/search/queryparser.py: Xapian2009: BaseExpression.__init__() refactoring.
2009-08-15T21:02:40 <CIA-38> Dmitrijs Milajevs <dimazest@gmail.com> default * 4989:008009d8cfa0 1.9-xapian-dmilajevs/MoinMoin/search/queryparser.py: Xapian2009: Costs computatin for expressions was refactored.
2009-08-15T21:02:54 <CIA-38> Dmitrijs Milajevs <dimazest@gmail.com> default * 4990:c56728051226 1.9-xapian-dmilajevs/MoinMoin/search/queryparser.py: Xapian2009: xapian_wanted() was removed.
2009-08-15T21:02:55 <CIA-38> Dmitrijs Milajevs <dimazest@gmail.com> default * 4991:bc42755b5820 1.9-xapian-dmilajevs/MoinMoin/search/ (Xapian.py _tests/test_search.py queryparser.py): Xapian2009: AndExpression.xapian_term() was refactored. Tests for "and" were updated.
2009-08-15T21:02:57 <CIA-38> Dmitrijs Milajevs <dimazest@gmail.com> default * 4992:b4f41e24833c 1.9-xapian-dmilajevs/MoinMoin/search/queryparser.py: Xapian2009: TestXapianSearch.test_mimetype_search_simple test fix.
2009-08-15T21:03:44 <ThomasWaldmann> amartani: it worked for me
2009-08-15T21:04:38 <JosefMeier_> ThomasWaldmann : I want to create a new action which can handle SVG files with JHotDraw
2009-08-15T21:04:49 <JosefMeier_> I'm almost finished with it
2009-08-15T21:05:01 <amartani> what is the easiest way of running the server after installing?
2009-08-15T21:05:02 <JosefMeier_> but up to now it's a framework hack for 1.8.4 and no extension
2009-08-15T21:07:50 <ThomasWaldmann> JosefMeier_: didn't we talk yesterday about that extending doesn't work great for 1.8/1.9?
2009-08-15T21:07:51 <dimazest> hmm, 3 files changed, 122 insertions(+), 306 deletions(-). OOP is good thing :)
2009-08-15T21:08:52 <JosefMeier_> ThomasWaldmann: we did. But I need it urgently for my company. So you would recommend me to do it my way without committing it to 1.8.4 ever?
2009-08-15T21:09:33 <ThomasWaldmann> well, the problem is that drawing: is occupied for twikidraw
2009-08-15T21:10:02 <JosefMeier_> that's why I want to extend attachfile with "drawingSVG"
2009-08-15T21:10:36 <ThomasWaldmann> you will also have to extend the parser and the formatter and ...
2009-08-15T21:10:45 <JosefMeier_> but that's easy
2009-08-15T21:11:06 <JosefMeier_> only have to copy the drawing code
2009-08-15T21:11:10 <JosefMeier_> and change it slightly
2009-08-15T21:11:39 <JosefMeier_> it would be fully upwards compatible
2009-08-15T21:12:13 <JosefMeier_> I also would add GUI editor support for it
2009-08-15T21:13:20 <ThomasWaldmann> sounds like a bigger hack :)
2009-08-15T21:13:37 <JosefMeier_> I'm almost ready
2009-08-15T21:13:44 <JosefMeier_> the java applet is ready
2009-08-15T21:13:45 <ThomasWaldmann> be warned, AttachFile is ugly :)
2009-08-15T21:14:03 <JosefMeier_> Could I have a repo for that?
2009-08-15T21:14:15 <JosefMeier_> then some guys could test it
2009-08-15T21:14:22 <JosefMeier_> and the merge would be easier for you
2009-08-15T21:14:25 <ThomasWaldmann> sure
2009-08-15T21:14:58 <ThomasWaldmann> moin/1.8-svgeditor-jmeier?
2009-08-15T21:15:13 <JosefMeier_> could you name it "moin/1.8-guieditor-enhancements-jmeier
2009-08-15T21:15:26 <JosefMeier_> cause there is more coming :-)
2009-08-15T21:15:45 <ThomasWaldmann> if you mix all that stuff, it will be a merge problem
2009-08-15T21:15:55 <JosefMeier_> ok
2009-08-15T21:16:30 <JosefMeier_> but I have also other things like new handling of <<br>> macro which is cool but not related to svg
2009-08-15T21:17:01 <JosefMeier_> but the other stuff are smaller patches
2009-08-15T21:17:22 <ThomasWaldmann> sounds like you either need to concentrate or use 2 repos
2009-08-15T21:17:27 <JosefMeier_> you could play around with it and decide if it makes sense
2009-08-15T21:18:15 <ThomasWaldmann> sure
2009-08-15T21:18:47 <JosefMeier_> if we wouldn't do it this way I had to remove all my changes, take a clean 1.8.4 and add only single features
2009-08-15T21:19:04 <JosefMeier_> is this the way people work here?
2009-08-15T21:19:31 <ThomasWaldmann> the problem is that you work on stable release
2009-08-15T21:19:36 <JosefMeier_> hm
2009-08-15T21:20:03 <ThomasWaldmann> and if you add a lot of changes into a single clone of that, we likely can't just merge that repo
2009-08-15T21:20:11 <JosefMeier_> I understand. but for me it's easier cause I don't know 1.9 very well. would be easy for you to merge my 1.8* stufff into 1.9
2009-08-15T21:20:19 <JosefMeier_> hm
2009-08-15T21:20:24 <ThomasWaldmann> that means cherrypicking changesets and that is quite more work
2009-08-15T21:20:47 <JosefMeier_> ok. I'll try to concentrate on a clean 1.8.4 with only the JHotDraw stuff
2009-08-15T21:20:48 <ThomasWaldmann> esp. if the changesets are unclean or conflicting with / depending on each other
2009-08-15T21:21:28 <JosefMeier_> but give me a second repo, where I can put everything in
2009-08-15T21:21:36 <JosefMeier_> so everybody can try it out
2009-08-15T21:22:04 <JosefMeier_> please
2009-08-15T21:22:06 <JosefMeier_> :-)
2009-08-15T21:23:22 <JosefMeier_> 1. moin/1.8-SVGEditor-jmeier
2009-08-15T21:23:35 <JosefMeier_> 2. moin/1.8-GEditorEnhancements-jmeier
2009-08-15T21:23:53 <ThomasWaldmann> JosefMeier_: send me your ssh pubkey to tw-public at gmx dot de
2009-08-15T21:24:15 <JosefMeier_> How can I create it?
2009-08-15T21:25:20 <ThomasWaldmann> http://hg.moinmo.in/moin/1.8-jmeier/
2009-08-15T21:25:36 <ThomasWaldmann> http://hg.moinmo.in/moin/1.8-svgdraw-jmeier/
2009-08-15T21:26:45 <ThomasWaldmann> ssh-keygen
2009-08-15T21:27:01 <ThomasWaldmann> (or however that works under windows)
2009-08-15T21:29:05 <dennda> HAH!
2009-08-15T21:30:11 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6626:f8bef42a9800 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: load revisions eagerly
2009-08-15T21:30:13 <CIA-38> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6627:f4241b763863 2.0-storage/MoinMoin/storage/backends/sqla.py: storage: sqla: fix for item metadata locking. only acquire the lock if the item was truly committed (and hence has an id)
2009-08-15T21:30:18 <dennda> ThomasWaldmann: looky looky ^
2009-08-15T21:30:25 <dennda> i can create pages and even load them now :-)
2009-08-15T21:30:33 <dennda> 1 failing test remaining
2009-08-15T21:30:39 <ThomasWaldmann> cool
2009-08-15T21:31:07 <JosefMeier_> Thomas: which type of ssh -> a) SSH-1 (RSA) b) SSH-2 RSA c) SSH-2 DSA ???
2009-08-15T21:31:09 <dennda> looks like I should've booked my vacation for tomorrow already
2009-08-15T21:31:19 <dennda> JosefMeier_: I would go for b)
2009-08-15T21:33:24 <ThomasWaldmann> b
2009-08-15T21:35:13 <JosefMeier_> You should have it (thanks to PuttY)
2009-08-15T21:35:36 <dennda> putty is a bit special afair
2009-08-15T21:35:46 <JosefMeier_> but it's working on windows
2009-08-15T21:35:49 <dennda> yes
2009-08-15T21:35:55 <dennda> did you generate the key with puttygen?
2009-08-15T21:35:59 <JosefMeier_> yes
2009-08-15T21:36:12 <dennda> ok then it should work, I guess
2009-08-15T21:36:15 <JosefMeier_> you have to move the mouse in a window and then it generates the key pair out of it
2009-08-15T21:36:21 <JosefMeier_> nice idea
2009-08-15T21:36:51 <JosefMeier_> @dennda: creation of a page works now?
2009-08-15T21:36:51 <moinBot> JosefMeier_: Error: "dennda:" is not a valid command.
2009-08-15T21:37:07 <JosefMeier_> dennda: creation of pages works now with the new storage mechanisms?
2009-08-15T21:37:45 <dennda> JosefMeier_: what do you mean with "new storage mechanism"? if you mean the new SQLAlchemy backend, then yes, it should work
2009-08-15T21:37:53 <JosefMeier_> cool
2009-08-15T21:38:03 <JosefMeier_> is sqlalchemy part of moinmoin distribution?
2009-08-15T21:38:13 <dennda> not yet, but it will end up in MoinMoin.support
2009-08-15T21:38:35 <ThomasWaldmann> JosefMeier_: ok, try cloning the repos
2009-08-15T21:39:05 <JosefMeier_> you put the last 1.8.4 in "my" repos?
2009-08-15T21:40:49 <ThomasWaldmann> no, the current 1.8
2009-08-15T21:41:04 <JosefMeier_> the current one has my list bugfix in it?
2009-08-15T21:41:31 <ThomasWaldmann> hg log # :)
2009-08-15T21:41:46 <JosefMeier_> nice
2009-08-15T21:42:56 <JosefMeier_> how can I put my locally committed changes to the online repo later? by using "synchronize" ?
2009-08-15T21:44:49 <ThomasWaldmann> on the cmdline you first use hg clone to get a copy of the repos onto your disk
2009-08-15T21:44:59 <JosefMeier_> i have the tortoise hg gui
2009-08-15T21:44:59 <ThomasWaldmann> then you commit changesets to your local repo
2009-08-15T21:45:02 <JosefMeier_> ok
2009-08-15T21:45:04 <JosefMeier_> and then?
2009-08-15T21:45:11 <ThomasWaldmann> then you push them to the remote repo
2009-08-15T21:45:39 <ThomasWaldmann> btw, did you set a passphrase for your ssh private key?
2009-08-15T21:45:58 <JosefMeier_> no. but no one get's it. it's on my hard drive
2009-08-15T21:46:29 <ThomasWaldmann> yeah, windows machines are super secure. :P
2009-08-15T21:47:34 <ThomasWaldmann> (if you set a passphrase, you have to unlock your key so it is useful. when someone steals it and doesn't know the passphrase, it is useless.)
2009-08-15T21:48:16 <JosefMeier_> ok
2009-08-15T21:48:42 <JosefMeier_> where am I asked to enter my public ssh key in tortoiseHg?
2009-08-15T21:49:25 <ThomasWaldmann> there is a howto somewhere iirc. and it rather needs your private key.
2009-08-15T21:49:38 <JosefMeier_> ok
2009-08-15T21:50:37 <JosefMeier_> next question :-) : Where do I have to put my Java applet if I only want to work with the repo workdir by using wikiserver?
2009-08-15T21:51:16 <JosefMeier_> in "wiki/htdocs/applets" ?
2009-08-15T21:52:00 <ThomasWaldmann> PawelPacana: ffii wants hg backend :)
2009-08-15T21:52:16 <dennda> who's that?
2009-08-15T21:52:52 <ThomasWaldmann> ffii.org
2009-08-15T22:08:38 <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4359:37b919adfab4 1.8/MoinMoin/util/filesys.py: add filesys.rename_no_overwrite (win32 rename semantics, plus optional removal of src file in any case)
2009-08-15T22:09:12 <ThomasWaldmann> JosefMeier_: if you are still there, could you test both renames on win32?
2009-08-15T22:09:45 <JosefMeier_> yip
2009-08-15T22:11:34 * ThomasWaldmann writes some py.test test
2009-08-15T22:11:41 <ThomasWaldmann> JosefMeier_: you have py.test installed?
2009-08-15T22:12:01 <JosefMeier_> is it in the distribution?
2009-08-15T22:12:04 <JosefMeier_> of moinmoin
2009-08-15T22:13:42 <dennda> no
2009-08-15T22:13:59 <JosefMeier_> where to get it from and how to install it?
2009-08-15T22:14:33 <dennda> easy_install py
2009-08-15T22:14:44 <dennda> if you have the python setuptools installed
2009-08-15T22:14:53 <dennda> http://codespeak.net/py/dist/test/quickstart.html
2009-08-15T22:16:28 <JosefMeier_> but where is this py package?
2009-08-15T22:17:50 <dennda> Once you have the python setuptools installed, you can install it from the commandline by entering "easy_install py" as admin
2009-08-15T22:19:44 <JosefMeier_> ah ok. it's downloading files from the internet
2009-08-15T22:19:56 <JosefMeier_> and now?
2009-08-15T22:20:02 <JosefMeier_> it's for unit tests?
2009-08-15T22:20:41 <dennda> yes
2009-08-15T22:20:48 <dennda> try to enter py.test on the command line
2009-08-15T22:22:34 <JosefMeier_> i love unit tests :-)
2009-08-15T22:23:14 <JosefMeier_> where are the results written?
2009-08-15T22:23:28 <dennda> to the standard output
2009-08-15T22:23:37 <dennda> you need to run it from the directory that contains the tests
2009-08-15T22:23:52 <dennda> e.g. from your 1.8-guieditor-jmeier\ folder
2009-08-15T22:24:12 <JosefMeier_> did it. there are a few ......FF....... in it. Does this mean "error" ?
2009-08-15T22:24:19 <JosefMeier_> failure
2009-08-15T22:24:47 <JosefMeier_> this failures are in the current 1.8
2009-08-15T22:25:20 <dennda> yep, F is failure, . is passed and s is skipped
2009-08-15T22:26:03 * ThomasWaldmann will commit rename* tests soon
2009-08-15T22:27:09 <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4360:020f7bdf3282 1.8/MoinMoin/util/_tests/test_filesys.py: add tests for filesys.rename*
2009-08-15T22:27:56 <JosefMeier_> is it normal that there are errors in a stable release?
2009-08-15T22:28:35 <dennda> ideally there shouldn't
2009-08-15T22:28:41 <dennda> please pastebin the output
2009-08-15T22:28:43 <ThomasWaldmann> you are testing the repo, not the release
2009-08-15T22:29:22 * ThomasWaldmann already fixes the pep8 failures
2009-08-15T22:29:59 <JosefMeier_> does this mean that the repo has error or are the tests erroneous
2009-08-15T22:30:34 <ThomasWaldmann> see next cs
2009-08-15T22:30:52 <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4361:3695ad9d93f2 1.8/MoinMoin/converter/text_html_text_moin_wiki.py: fix pep8 failures
2009-08-15T22:32:36 <ThomasWaldmann> JosefMeier_: that should give 0 failures
2009-08-15T22:50:43 <CIA-38> Alexandre Martani <amartani AT gmail DOT com> default * 6808:bf86d6e15ad9 2.0-storage-editor-amartani/setup.py: add mobwrite and simplejson packages to setup.py
2009-08-15T22:50:45 <CIA-38> Alexandre Martani <amartani AT gmail DOT com> default * 6809:667f58926339 2.0-storage-editor-amartani/MoinMoin/action/ajax_info.py: pep8 fix
2009-08-15T22:50:46 <CIA-38> Alexandre Martani <amartani AT gmail DOT com> default * 6810:2612214fadb4 2.0-storage-editor-amartani/MoinMoin/ (action/_tests/test_mobwrite.py items/lock.py): Real-time editor: Remove text from mobwrite when lock is deleted
2009-08-15T22:50:48 <CIA-38> Alexandre Martani <amartani AT gmail DOT com> default * 6811:dcdfe143f147 2.0-storage-editor-amartani/MoinMoin/action/mobwrite.py: Real-time editor: Docstring for get_worker method
2009-08-15T23:09:50 *** amartani has quit IRC
2009-08-15T23:10:45 <ThomasWaldmann> JosefMeier_: still there?
2009-08-15T23:10:55 <JosefMeier_> yes
2009-08-15T23:11:24 <JosefMeier_> you want me to test the rename on 1.8 ?
2009-08-15T23:12:42 <ThomasWaldmann> yes, please, on win32
2009-08-15T23:12:53 <ThomasWaldmann> just run py.test from the toplevel dir
2009-08-15T23:21:53 <JosefMeier_> it's running...
2009-08-15T23:27:27 <JosefMeier_> http://paste.pocoo.org/show/134508/
2009-08-15T23:29:09 <ThomasWaldmann> gna
2009-08-15T23:29:22 <ThomasWaldmann> JosefMeier_: that's because your py.test is too new
2009-08-15T23:29:37 <ThomasWaldmann> >= 1.0
2009-08-15T23:29:51 <JosefMeier_> what's the problem with it?
2009-08-15T23:30:00 <ThomasWaldmann> funcargs
2009-08-15T23:30:09 <ThomasWaldmann> can you cd to MoinMoin/util/
2009-08-15T23:30:25 <JosefMeier_> ok. and now?
2009-08-15T23:30:29 <ThomasWaldmann> cd _tests
2009-08-15T23:30:56 <ThomasWaldmann> py.test test_util.py
2009-08-15T23:31:55 <JosefMeier_> ok. and now?
2009-08-15T23:32:56 <ThomasWaldmann> does it show failures?
2009-08-15T23:33:16 <JosefMeier_> no. it tests only one object
2009-08-15T23:33:34 <JosefMeier_> I got ".." as answer
2009-08-15T23:33:59 <ThomasWaldmann> ehrm
2009-08-15T23:34:12 <ThomasWaldmann> sorry, py.test test_filesys.py of course
2009-08-15T23:35:32 <JosefMeier_> it shows ...s.......
2009-08-15T23:35:47 <JosefMeier_> how can I test the complete moinmoin with py?
2009-08-15T23:36:01 <dennda> just run py.test in the toplevel folder
2009-08-15T23:36:05 <JosefMeier_> cause you said, that my version is to new. Where can I get an older verision of py from?
2009-08-15T23:36:50 <dennda> easy_install -m; easy_install py==VERSIONGOESHERE
2009-08-15T23:36:59 <ThomasWaldmann> JosefMeier_: ok, looks good. what does it say about the skip?
2009-08-15T23:37:26 <JosefMeier_> Inode change detection not supported on win32
2009-08-15T23:37:51 <JosefMeier_> which version of py do I need for MoinMoin ?
2009-08-15T23:38:09 <ThomasWaldmann> ah, ok
2009-08-15T23:38:18 <JosefMeier_> good or bad?
2009-08-15T23:38:27 <ThomasWaldmann> good
2009-08-15T23:38:53 <JosefMeier_> ok.
2009-08-15T23:38:58 <JosefMeier_> which version of py do I need?
2009-08-15T23:39:09 <ThomasWaldmann> < 1.0
2009-08-15T23:39:16 <ThomasWaldmann> (at least for 1.8)
2009-08-15T23:39:31 <JosefMeier_> which version do you use?
2009-08-15T23:39:46 <ThomasWaldmann> (or someone backports the fix from ... 1.9?)
2009-08-15T23:40:02 <ThomasWaldmann> 0.9.1
2009-08-15T23:41:44 <JosefMeier_> ok. thanks
2009-08-15T23:42:49 <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4948:068c47fc2c3a 1.9/MoinMoin/ (3 files in 3 dirs): merged moin/1.8
2009-08-15T23:42:59 <JosefMeier_> how can I find out my version
2009-08-15T23:43:45 <JosefMeier_> version 0.9.2 shows still errors
2009-08-15T23:44:22 <dennda> gn8
2009-08-15T23:44:31 <JosefMeier_> n8
2009-08-15T23:45:28 <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6638:dd8cf73c25b5 2.0-storage/MoinMoin/ (6 files in 6 dirs): merged moin/1.9
2009-08-15T23:45:40 <ThomasWaldmann> gn dennda
2009-08-15T23:47:05 <JosefMeier_> http://paste.pocoo.org/show/134510/
2009-08-15T23:47:11 <JosefMeier_> but much less errors
2009-08-15T23:51:20 <ThomasWaldmann> most is harmless pep8 stuff
2009-08-15T23:51:34 <ThomasWaldmann> but it seem to have some trouble with accessing the zip file
2009-08-15T23:52:07 <ThomasWaldmann> and the EmbedObject error is strange
2009-08-15T23:52:46 <JosefMeier_> ok
2009-08-15T23:52:56 <ThomasWaldmann> 2.0 currently 1 failure
2009-08-15T23:53:08 <ThomasWaldmann> (in sqla stuff)
2009-08-15T23:53:30 <JosefMeier_> but 1.8.4 should be stable also on windows (0 failures)
2009-08-15T23:53:39 <ThomasWaldmann> JosefMeier_: could you try whether 2.0 works for you (tests)?
2009-08-15T23:54:31 <JosefMeier_> running
2009-08-15T23:54:37 <ThomasWaldmann> ehrm, wait a sec
2009-08-15T23:55:49 <CIA-38> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6639:7870fbfd490a 2.0-storage/MoinMoin/storage/backends/fs.py: fs backend: use new filesys.rename_no_overwrite call (should make it work on win32)
2009-08-15T23:55:53 <ThomasWaldmann> now :)
2009-08-15T23:56:44 <JosefMeier_> http://paste.pocoo.org/show/134511/
2009-08-15T23:59:36 <ThomasWaldmann> looks like the sourcecode excludes don't work for win32
MoinMoin: MoinMoinChat/Logs/moin-dev/2009-08-15 (last edited 2009-08-14 22:15:02 by IrcLogImporter)