2009-07-20T00:06:07  <dennda> ThomasWaldmann: How can I get the wiki config in wikiserver.py? Especially I need access to the storage attribute...
2009-07-20T00:06:52  <dennda> oh
2009-07-20T00:06:58  <dennda> just from wikiconfig import LocalConfig? Oo
2009-07-20T00:07:02  <dennda> that'd be to easy!
2009-07-20T00:16:33  * dreimark hates test_search
2009-07-20T00:19:10  <dreimark> I have 14 tests in that module and the last one or two takes currently some minutes.
2009-07-20T00:20:31  <dreimark> ThomasWaldmann: that hack http://paste.pocoo.org/show/129614/ makes suid working
2009-07-20T00:21:04  <dreimark> the intersting question is why request.user.valid is different to userobj.valid
2009-07-20T00:21:09  <dreimark> or always False
2009-07-20T00:26:21  <ThomasWaldmann> http://pics.nase-bohren.de/uiuiui.jpg < nice bg picture %-)
2009-07-20T00:28:40  <waldi> urgs
2009-07-20T00:30:58  <ThomasWaldmann> dreimark: can you explain that change?
2009-07-20T00:32:00  <dreimark> it looks like userobj.valid is True while request.user.valid is always False
2009-07-20T00:32:29  <dreimark> user.isSuperUser checks request.user and request.user.valid
2009-07-20T00:32:40  <dreimark> and that is then always False too
2009-07-20T00:34:50  <dreimark> in wsgiapp.setup_user userobj = auth.setup_from_session(context, session) gives also userobj.valid = True
2009-07-20T00:35:41  <ThomasWaldmann> btw, maybe we begin with the problem definition
2009-07-20T00:35:42  <dreimark> the next line userobj, olduser = auth.setup_setuid(context, userobj) calls then also userobj and userobj.isSuperUser()
2009-07-20T00:35:48  <dreimark> ok
2009-07-20T00:35:55  <dreimark> did that already twice today
2009-07-20T00:36:51  <dreimark> 1.) you slect in desktop edition an other user by settings switch user
2009-07-20T00:37:10  <dreimark> normally you should stay as this user since you click logout
2009-07-20T00:37:36  <dreimark> but you jump back to your account immeadiatly with the next request
2009-07-20T00:38:26  <dreimark> (it happens also in 1.9 fresh clone)
2009-07-20T00:38:54  <ThomasWaldmann> iirc this had already worked some time ago
2009-07-20T00:39:13  <dreimark> I know too
2009-07-20T00:39:21  <ThomasWaldmann> is DesktopEdition = True required for the bug?
2009-07-20T00:39:28  <dreimark> yes
2009-07-20T00:41:46  <ThomasWaldmann> works for me
2009-07-20T00:41:51  <dreimark> default settings. if you add a user to superuser then it works because of the second condition in that method
2009-07-20T00:42:54  <ThomasWaldmann> ok, without superuser it jumps back
2009-07-20T00:43:21  <dreimark> we should check 1.8 too
2009-07-20T00:44:00  <dreimark> (that was the reason why I haven't seen it before in 1.9)
2009-07-20T00:44:22  <dreimark> (and only in dimazest repo)
2009-07-20T00:45:51  <ThomasWaldmann> isSuperUser looks suspicious
2009-07-20T00:46:14  <ThomasWaldmann> in the upper part it uses request.user and in the lower it uses self
2009-07-20T00:47:03  <dreimark> seen this too, but don't know if there was a reason for this
2009-07-20T00:47:54  <dreimark> also I am wondering if it make sense to have this request.cfg.DesktopEdition request instead of defining the current userlist in wikiconfig.py
2009-07-20T00:50:50  <dennda> jesus christ
2009-07-20T00:52:58  <dreimark> [user.User(request, id).name for id in user.getUserList(request)]
2009-07-20T00:53:09  <dreimark> dennda: ?
2009-07-20T00:54:44  * dennda is just doing a major refactoring wrt dev wiki creation
2009-07-20T00:55:03  <dennda> and I just realized that I should've made like... 5 changesets already, but now it's all in one :-)
2009-07-20T01:00:22  <ThomasWaldmann> dreimark: http://pastebin.com/f699fffcf
2009-07-20T01:03:01  <dreimark> makes sense and verified to work
2009-07-20T01:03:48  <ThomasWaldmann> querying request.user at that time can't work as it is assigned later
2009-07-20T01:04:15  <dreimark> yeah it runs in circles
2009-07-20T01:05:43  <dreimark> should be fixed in 1.8
2009-07-20T01:08:12  <ThomasWaldmann> is it broken in 1.8?
2009-07-20T01:08:53  *** PawelPacana has quit IRC
2009-07-20T01:09:04  * dreimark looks
2009-07-20T01:11:40  <dreimark> works in 1.8 no fix necessary
2009-07-20T01:14:14  <dreimark> http://paste.pocoo.org/show/129625/ a lambda in the DesktopEditions wikiconfig could make this DE check superfluos.
2009-07-20T01:16:49  <dreimark> good night
2009-07-20T01:17:48  <CIA-36> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6088:18317195db29 2.0-storage/create_persistent_dev_wiki.py: storage: remove create_persistent_dev_wiki script
2009-07-20T01:17:49  <CIA-36> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6089:f1188519741f 2.0-storage/ (4 files in 2 dirs): storage: CAUTION! In order to make this changeset work, perform 'rm .success; rm -rdf instance/'. Refactoring that allows to put a persistent dev wiki in any backend. Support for hg still needs to be added
2009-07-20T01:17:51  <CIA-36> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6090:15f15d3b9097 2.0-storage/MoinMoin/storage/backends/enduser.py: storage: Allow specifying a hg backend_uri. If you want to use hg for development/testing, all you need to do is set backend_uri='hg:instance' in wikiconfig. Underlay will automatically be converted into that backend
2009-07-20T01:19:40  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4761:83390406fc5c 1.9/MoinMoin/user.py:
2009-07-20T01:19:40  <CIA-36> Fix isSuperUser(). See below for details.
2009-07-20T01:19:40  <CIA-36> Querying request.user was wrong due to 2 reasons:
2009-07-20T01:19:40  <CIA-36> * it does not check if THIS user (== self) is super user (but request.user)
2009-07-20T01:19:40  <CIA-36> * request.user is not assigned yet when userobj.isSuperUser() is called
2009-07-20T01:19:42  <CIA-36> early in the request processing.
2009-07-20T01:19:46  <CIA-36> Simplified the code a bit by first checking self.valid.
2009-07-20T01:22:06  <dennda> ok. now I'm even more tired than I was when I started working on that
2009-07-20T01:22:17  <dennda> in the hope that I have not caused collateral damage: good night
2009-07-20T01:25:38  <ThomasWaldmann> gn :)
2009-07-20T03:52:54  *** amartani has joined #moin-dev
2009-07-20T06:39:11  *** devilsadvocate has quit IRC
2009-07-20T06:39:29  *** devilsadvocate has joined #moin-dev
2009-07-20T08:25:03  <ThomasWaldmann> moin
2009-07-20T08:37:51  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6091:2001b52ee052 2.0-storage/MoinMoin/items/__init__.py: Item: more debug logging
2009-07-20T08:37:53  <CIA-36> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6092:932149c82929 2.0-storage/ (8 files in 4 dirs): merge main
2009-07-20T10:07:22  *** PawelPacana has joined #moin-dev
2009-07-20T10:39:54  <dreimark> moin
2009-07-20T10:55:50  *** xorAxAx has quit IRC
2009-07-20T10:55:50  *** vpv has quit IRC
2009-07-20T10:55:50  *** dimazest has quit IRC
2009-07-20T10:55:50  *** dennda has quit IRC
2009-07-20T10:55:50  *** birkenfeld has quit IRC
2009-07-20T10:55:50  *** PawelPacana has quit IRC
2009-07-20T10:55:50  *** ronny has quit IRC
2009-07-20T10:55:50  *** waldi has quit IRC
2009-07-20T10:55:50  *** devilsadvocate has quit IRC
2009-07-20T10:55:50  *** ser has quit IRC
2009-07-20T10:55:50  *** ChanServ has quit IRC
2009-07-20T10:55:50  *** franklin_ has quit IRC
2009-07-20T10:55:50  *** amartani has quit IRC
2009-07-20T10:55:50  *** CIA-36 has quit IRC
2009-07-20T10:55:50  *** _peck_ has quit IRC
2009-07-20T10:55:50  *** TheSheep has quit IRC
2009-07-20T10:55:50  *** starshine_away has quit IRC
2009-07-20T10:56:31  *** ChanServ has joined #moin-dev
2009-07-20T10:56:31  *** PawelPacana has joined #moin-dev
2009-07-20T10:56:31  *** devilsadvocate has joined #moin-dev
2009-07-20T10:56:31  *** amartani has joined #moin-dev
2009-07-20T10:56:31  *** _peck_ has joined #moin-dev
2009-07-20T10:56:31  *** xorAxAx has joined #moin-dev
2009-07-20T10:56:31  *** birkenfeld has joined #moin-dev
2009-07-20T10:56:31  *** dennda has joined #moin-dev
2009-07-20T10:56:31  *** CIA-36 has joined #moin-dev
2009-07-20T10:56:31  *** waldi has joined #moin-dev
2009-07-20T10:56:31  *** ronny has joined #moin-dev
2009-07-20T10:56:31  *** ser has joined #moin-dev
2009-07-20T10:56:31  *** TheSheep has joined #moin-dev
2009-07-20T10:56:31  *** franklin_ has joined #moin-dev
2009-07-20T10:56:31  *** starshine_away has joined #moin-dev
2009-07-20T10:56:31  *** vpv has joined #moin-dev
2009-07-20T10:56:31  *** dimazest has joined #moin-dev
2009-07-20T10:56:31  *** irc.freenode.net sets mode: +o ChanServ
2009-07-20T11:02:12  *** PawelPacana has quit IRC
2009-07-20T11:04:13  *** PawelPacana has joined #moin-dev
2009-07-20T11:13:30  <PawelPacana> moin
2009-07-20T11:19:59  *** PawelPacana has quit IRC
2009-07-20T11:20:34  *** PawelPacana has joined #moin-dev
2009-07-20T11:58:12  <ThomasWaldmann> PawelPacana: when saving a new rev:
2009-07-20T11:58:16  <ThomasWaldmann>   File "/usr/share/python-support/mercurial-common/mercurial/changelog.py", line 192, in add
2009-07-20T11:58:20  <ThomasWaldmann>     extra = self.encode_extra(extra)
2009-07-20T11:58:22  <ThomasWaldmann>   File "/usr/share/python-support/mercurial-common/mercurial/changelog.py", line 135, in encode_extra
2009-07-20T11:58:25  <ThomasWaldmann>     return "\0".join(items)
2009-07-20T11:58:28  <ThomasWaldmann> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 13: ordinal not in range(128)
2009-07-20T12:01:25  <ThomasWaldmann> (a bit strange, because i did not enter any non-ascii stuff)
2009-07-20T12:03:00  *** PawelPacana has quit IRC
2009-07-20T12:06:51  <dreimark> ThomasWaldmann: I am not sure if TestXapianIndex is broken or Xapian.Index
2009-07-20T12:07:23  <dreimark> after each run of this two tests the index increases
2009-07-20T12:07:41  <dreimark> in tests/wiki/data/cache/xapian
2009-07-20T12:08:34  <ThomasWaldmann> any test expecting a non-empty backend is likely to fail currently
2009-07-20T12:10:30  <dreimark> the test does not fail
2009-07-20T12:10:53  <dreimark> btw. in 1.9
2009-07-20T12:11:09  <dreimark> +17MB at each run here
2009-07-20T12:12:05  <ThomasWaldmann> maybe it just adds new documents and does not delete old
2009-07-20T12:12:06  <dreimark> (while it could only add the same content)
2009-07-20T12:13:03  *** PawelPacana has joined #moin-dev
2009-07-20T12:13:22  <PawelPacana> ThomasWaldmann: i'm aware of that, happened to me yesterday
2009-07-20T12:14:00  <PawelPacana> I probably won't find time to investiate this before tomorrow
2009-07-20T12:14:22  <ThomasWaldmann> ok
2009-07-20T12:15:37  <waldi> ThomasWaldmann: abort: unexpected response: empty string
2009-07-20T12:15:57  <waldi> you broke the access to the EmeraldTree repository
2009-07-20T12:16:51  <ThomasWaldmann> i didn't change anything there recently
2009-07-20T12:17:29  <waldi> within the last 10 months?
2009-07-20T12:18:35  <ThomasWaldmann> pulling works for me
2009-07-20T12:19:15  <waldi> i can't push
2009-07-20T12:19:49  <waldi> hmm
2009-07-20T12:22:28  <CIA-36> Bastian Blank <bblank@thinkmo.de> default * 6625:430e190034e7 2.0-storage-dom-bblank/MoinMoin/converter2/moinwiki_in.py: Moin Wiki input converter - Always append strings
2009-07-20T12:22:29  <CIA-36> Bastian Blank <bblank@thinkmo.de> default * 6626:80620e1e398e 2.0-storage-dom-bblank/MoinMoin/items/__init__.py: Items - Add page href, write documents as unicode
2009-07-20T12:23:44  <ThomasWaldmann> waldi: export the changeset and publish it, so i can try to reproduce
2009-07-20T12:24:41  <waldi> ThomasWaldmann: the push got through, but somehow the hg process didn't respond with something the client expected
2009-07-20T12:29:03  * ThomasWaldmann suspects cia
2009-07-20T12:31:42  * ThomasWaldmann fixed hgrc
2009-07-20T12:32:23  <ThomasWaldmann> (it tried to use the external hgcia module (not there any more as it is builtin now))
2009-07-20T12:47:44  <CIA-36> Reimar Bauer <rb.proj AT googlemail DOT com> default * 4762:08dfaece84ad 1.9/MoinMoin/ (_tests/__init__.py search/_tests/test_search.py): test_search: calls now nuke_xapian_index for deleting everything in xapian index dir
2009-07-20T13:40:01  *** PawelPacana has quit IRC
2009-07-20T14:21:28  *** PawelPacana has joined #moin-dev
2009-07-20T14:22:31  <dimazest> make install
2009-07-20T14:23:02  <dimazest> that's me installing xapian-bindings :)
2009-07-20T14:41:31  <dreimark> dimazest: ?
2009-07-20T14:42:11  <dimazest> dreimark: i typed in a wrong window
2009-07-20T14:42:25  <dreimark> ah
2009-07-20T14:42:28  <dimazest> anyway, now i can import xapian
2009-07-20T14:43:10  <dreimark> please use for xapian http://moinmo.in/Xapian2009
2009-07-20T14:44:14  <dreimark> we also have to discuss the questions below on that page
2009-07-20T14:47:47  <dreimark> dimazest: ^
2009-07-20T14:48:16  <dimazest> ok
2009-07-20T14:50:08  <ThomasWaldmann> dimazest: i suggest you have a look at xapwrap and xappy docs and at what moin uses from xapwrap
2009-07-20T14:51:18  <dimazest> ThomasWaldmann: ok
2009-07-20T17:35:10  *** amartani has quit IRC
2009-07-20T17:47:44  <dimazest> ThomasWaldmann: dreimark about "continue with xapwrap (dead) or use xappy (or flax?) " question
2009-07-20T17:48:12  <dimazest> may be it worth to migrate to something which is alive
2009-07-20T17:50:42  * dimazest reading xappy documentation
2009-07-20T17:58:14  <dreimark> dimazest: yes and doing this in 2.0
2009-07-20T17:58:55  <dreimark> we were not aware of that at the beginning of gsoc (at least me learned that at ep)
2009-07-20T18:24:57  *** amartani has joined #moin-dev
2009-07-20T18:57:19  <dimazest> dreimark: how migration is going in the 2.0?
2009-07-20T19:02:55  <dreimark> you mean data migration into 2.0? this will be done later by a migration script similiar to all the others
2009-07-20T19:03:40  <dimazest> dreimark: i mean change xapwrap to xappy
2009-07-20T19:04:44  <dreimark> ah, you will get a repo based on 2.0-storage and could refactor xapian in that
2009-07-20T19:05:10  <dimazest> ok, so refactoring is part of my task
2009-07-20T19:07:31  <dreimark> currently I see the problem if you continue in 1.9 with xapwrap that likly becomes not migrated to 2.0 because in 2.0 we will have time to refactore xapian by using xappy
2009-07-20T19:08:54  <dimazest> ok, so i should look at the 2.0 branch
2009-07-20T19:09:04  <dreimark> (we don't want to have much dependencies on dead code)
2009-07-20T19:29:57  <ThomasWaldmann> dimazest: I don't know how much effort it is to move from xapwrap to xappy. if it is not much, we could also consider doing it in 1.9.
2009-07-20T19:31:05  <ThomasWaldmann> iirc, the xapian based stuff in 2.0 is still quite similar to 1.9, so merging 1.9 changes into 2.0 should work.
2009-07-20T19:32:03  <ThomasWaldmann> so basically the question is how long it will take us to get 1.9 stable again if we do the xapian stuff there.
2009-07-20T19:36:48  <ThomasWaldmann> dimazest: can you look over the groups/dicts stuff again, open TODOs?, XXX?, open request from dreimark or me?
2009-07-20T19:52:05  *** amartani has quit IRC
2009-07-20T20:05:35  *** grzywacz has joined #moin-dev
2009-07-20T20:19:24  *** amartani has joined #moin-dev
2009-07-20T20:30:58  <dimazest> ThomasWaldmann: ok, i'll look at groups/dicts
2009-07-20T20:41:51  <ThomasWaldmann> don't forget docs/CHANGES.d...
2009-07-20T21:27:20  * ThomasWaldmann moves shell.moinmo.in
2009-07-20T21:28:11  *** dreimark has quit IRC
2009-07-20T21:28:11  *** ThomasWaldmann has quit IRC
2009-07-20T22:06:17  *** dreimark has joined #moin-dev
2009-07-20T22:06:29  <dreimark> re
2009-07-20T22:12:05  *** amartani has quit IRC
2009-07-20T22:15:18  *** amartani has joined #moin-dev
2009-07-20T22:18:10  *** thw has joined #moin-dev
2009-07-20T22:18:34  <thw> waldi: Error: memory_dynamic_max must be greater than zero
2009-07-20T22:19:23  <thw> (because of that I can't restart the shell.moinmo.in domain that was running flawlessly before, wtf?)
2009-07-20T22:25:12  <TheSheep> thw: mod_wsgi?
2009-07-20T22:25:19  <thw> xen
2009-07-20T22:25:20  <waldi> thw: config?
2009-07-20T22:25:34  <thw> waldi: unchanged
2009-07-20T22:25:40  <dreimark> TheSheep: xen
2009-07-20T22:27:02  *** amartani has quit IRC
2009-07-20T22:27:12  <thw> http://paste.pocoo.org/show/129781/
2009-07-20T22:27:17  *** amartani has joined #moin-dev
2009-07-20T22:31:49  <waldi> thw: i would start with using the correct data types. then i would use an uptodate kernel
2009-07-20T22:32:17  <dreimark> memory = 600
2009-07-20T22:32:42  <dreimark> thw: which xen version is it
2009-07-20T22:35:07  <thw> the one from lenny
2009-07-20T22:38:35  <dreimark> http://www.pastacode.de/howto-virtualisierung-mit-xen-unter-debian-lenny-linux-kernel-2626/de/
2009-07-20T22:38:59  <dreimark> in that example they give memory = 256Mb    # Memory size
2009-07-20T22:39:09  <dreimark> I mean they use a unit
2009-07-20T22:39:21  <waldi> this is a python script
2009-07-20T22:40:09  <thw> as i said: it worked until i shut down the domain and tried to create it again
2009-07-20T22:44:15  *** thw has quit IRC
2009-07-20T22:48:46  <dreimark> the net is full with questions about that
2009-07-20T22:59:03  *** thw has joined #moin-dev
2009-07-20T23:34:45  <thw> waldi: any ideas?
2009-07-20T23:35:51  <waldi> no. ive never seen such an error before
2009-07-20T23:51:13  <dreimark> http://wiki.debian.org/Xen
2009-07-20T23:51:45  <dreimark> they have a -2 kernel
2009-07-20T23:52:22  * waldi .o( and 2.6.30.1 broke it ... patching ... )

MoinMoin: MoinMoinChat/Logs/moin-dev/2009-07-20 (last edited 2009-07-19 22:15:01 by IrcLogImporter)