2009-07-24T00:01:47 <CIA-45> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6244:900fcfd83df4 2.0-storage/ (124 files in 31 dirs): merged moin/1.9
2009-07-24T00:08:40 <ThomasWaldmann> (some stuff is broken, see tests)
2009-07-24T00:21:10 <dreimark> flup has got some updates http://hg.saddi.com/flup-server
2009-07-24T00:21:21 <dreimark> how can we get sure that this is all what we need?
2009-07-24T00:28:40 *** grzywacz has quit IRC
2009-07-24T00:38:43 <ThomasWaldmann> what do you mean?
2009-07-24T00:44:09 <dreimark> if I copy the recent flup files over the old in support
2009-07-24T00:44:41 <dreimark> what all needs to be checked
2009-07-24T00:45:26 <ThomasWaldmann> well, aside from doing a test with fastcgi, use hg st to check whether there are new files that need to be added
2009-07-24T05:12:05 *** TheSheep has quit IRC
2009-07-24T05:12:57 *** TheSheep has joined #moin-dev
2009-07-24T05:21:18 *** TheSheep has quit IRC
2009-07-24T05:21:18 *** ChanServ has quit IRC
2009-07-24T05:22:14 *** ChanServ has joined #moin-dev
2009-07-24T05:22:14 *** TheSheep has joined #moin-dev
2009-07-24T05:22:14 *** irc.freenode.net sets mode: +o ChanServ
2009-07-24T08:01:12 <ThomasWaldmann> moin
2009-07-24T08:24:34 <CIA-45> Alexandre Martani <amartani AT gmail DOT com> default * 6168:ebd0bac40032 2.0-storage-editor-amartani/MoinMoin/web/static/htdocs/applets/Mobwrite/mobwrite_moinmoin.js: Real-time editor: Replace all requests by loadXMLHttp wrapper.
2009-07-24T08:39:29 <dimazest> moin
2009-07-24T08:41:09 <dimazest> dreimark: http://paste.pocoo.org/show/130374/ this is refactored macro_GetVal
2009-07-24T09:03:32 <dreimark> moin
2009-07-24T09:03:50 <dreimark> dimazest: 173 assert u'SomeNotExistingDict' not in dicts
2009-07-24T09:03:59 <dreimark> the test var is a key not a dict
2009-07-24T09:06:34 <dreimark> looks ok then
2009-07-24T09:06:51 * dreimark plays with a flup update
2009-07-24T09:27:58 <dreimark> dimazest: you have to fix setup.py (the two dirs of datastruct do miss)
2009-07-24T09:45:19 <dreimark> dimazest: MoinMoin/script/maint/cleancache.py", line 65
2009-07-24T09:45:29 <dreimark> syntax error in for key caching.get_cache_list(request, arena, scope):
2009-07-24T09:48:27 <dimazest> dreimark: http://paste.pocoo.org/show/130492/ changes to setup
2009-07-24T09:48:50 <dreimark> dimazest: :)
2009-07-24T10:22:42 <CIA-45> Reimar Bauer <rb.proj AT googlemail DOT com> default * 4893:c1ed36a3fd5e 1.9/MoinMoin/userprefs/suid.py: userprefs.suid: allowed only if request.cfg.auth_have_login is given
2009-07-24T10:56:47 <dennda> ThomasWaldmann: syspages
2009-07-24T10:57:16 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6245:519d780ba5b8 2.0-storage/MoinMoin/storage/__init__.py: storage: add revision.tell() to storage api definition
2009-07-24T10:57:18 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6246:70c234f7333b 2.0-storage/MoinMoin/storage/__init__.py: storage: oops. Add the actual method as well of course
2009-07-24T10:57:20 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6247:4dc8b2b82ba4 2.0-storage/MoinMoin/storage/backends/memory.py: storage: Implement StoredRevision.tell() for memorybackend
2009-07-24T10:57:21 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6248:0cf9fc959223 2.0-storage/MoinMoin/storage/_tests/test_backends.py: storage: add test for seek and tell
2009-07-24T10:57:23 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6249:8f7a6efc77bf 2.0-storage/ (124 files in 31 dirs): merge remote 2.0-storage
2009-07-24T10:57:27 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6250:1e278252cc03 2.0-storage/MoinMoin/storage/backends/ (__init__.py router.py): storage: When performing an inter-backend rename, copy the item directly to the new name instead of copying first and renaming later
2009-07-24T10:57:42 <dennda> ThomasWaldmann: I don't really get how unserialization works. Can you sketch an example?
2009-07-24T11:10:04 <CIA-45> Dmitrijs Milajevs <dimazest@gmail.com> default * 4893:0ec0d096af42 1.9-groups-dmilajevs/MoinMoin/ (3 files in 3 dirs): Groups2009: GetVal macro was refactored. It returns an empty string if requested dictionary does not exist. ACL check is made only if dictionary is defined on a wikipage.
2009-07-24T11:10:07 <CIA-45> Dmitrijs Milajevs <dimazest@gmail.com> default * 4894:3440ba2a89b2 1.9-groups-dmilajevs/setup.py: Groups2009: MoinMoin.datastruct and MoinMoin.datastruct.backends were added to a list of packages in setup.py
2009-07-24T11:10:08 <CIA-45> Dmitrijs Milajevs <dimazest@gmail.com> default * 4895:4cc429db5bd1 1.9-groups-dmilajevs/MoinMoin/script/maint/cleancache.py: Groups2009: Syntax error fix in cleancache.
2009-07-24T11:13:55 <dimazest> dreimark: ThomasWaldmann i pushed some changes to groups-... repo http://hg.moinmo.in/moin/1.9-groups-dmilajevs/rev/0ec0d096af42
2009-07-24T11:14:30 <dimazest> could you review them
2009-07-24T11:42:21 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6251:9ae51908f93f 2.0-storage/MoinMoin/storage/__init__.py: storage: Remove ancient XXXs and make them what they should be: Instructions for developers implementing a backend
2009-07-24T11:42:22 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6252:860a28f96950 2.0-storage/MoinMoin/storage/ (__init__.py backends/memory.py): storage: Remove invalid documentation hint. Why should we raise two different exceptions for the same problem?
2009-07-24T11:43:26 <dennda> ThomasWaldmann: nvm, just found the docstring ;)
2009-07-24T12:21:27 <ThomasWaldmann> dimazest: dreimark: test_get is not good enough, it should also test whether giving another default value works. docstring in get() is missing.
2009-07-24T12:23:38 <dennda> hm
2009-07-24T12:25:26 <ThomasWaldmann> dimazest: you didn't fix the typos i told you?
2009-07-24T12:25:57 <dennda> ThomasWaldmann: We agreed to introduce MoinMoin.storage.upgrade_syspages. How would that be invoked so that the real target backend is handed over?
2009-07-24T12:26:18 <dennda> (As I need that when cloning from tmp_backend to real target backend)
2009-07-24T12:26:39 <dennda> by some script where the backend_uri is provided as parameter?
2009-07-24T12:30:30 <ThomasWaldmann> dennda: test_seek_and_tell does not even call tell() X(
2009-07-24T12:30:44 <dennda> lol
2009-07-24T12:31:58 <ThomasWaldmann> and when fixing that, please seek with SET, END, CUR before testing each new position with tell()
2009-07-24T12:32:27 <CIA-45> Reimar Bauer <rb.proj AT googlemail DOT com> default * 386:2987a4ef997a extensions/data/plugin/action/InstallLanguage.py: action InstallLanguage: The superuser gets a table of language packs dependent on the selected language for installation.
2009-07-24T12:33:29 <ThomasWaldmann> dennda: 1.5 assert rev.read(-123) == "Alle meine Entchen" * 10 !?
2009-07-24T12:33:38 <dennda> ThomasWaldmann: I'm not sure what you mean. SET, END, CUR?
2009-07-24T12:33:51 * dreimark had not seen that the connection was broken
2009-07-24T12:34:01 <ThomasWaldmann> dennda: see seek docs
2009-07-24T12:34:08 <dennda> ok
2009-07-24T12:36:45 <dennda> """If the size argument is negative or omitted, read until EOF is reached."""
2009-07-24T12:36:50 <dennda> superfluous test
2009-07-24T12:36:54 <dennda> not harmful tho
2009-07-24T12:37:41 <dreimark> ThomasWaldmann: InstallLanguage is currently only good useable by middle mouse clicks.
2009-07-24T12:38:08 <dreimark> otherwise it jumps to the LanguageSetup page which I want to avoid
2009-07-24T12:39:39 <ThomasWaldmann> what's InstallLanguage?
2009-07-24T12:39:59 <dreimark> it is an action for selecting language packs to install from
2009-07-24T12:40:05 <dreimark> I have added it to extensions
2009-07-24T12:40:30 <dreimark> (it is based on the CheckTranslation action)
2009-07-24T12:43:27 <ThomasWaldmann> that looks like for 1.9, but we have already "install" on the AttachFile page
2009-07-24T12:44:45 <dreimark> yes but AttachList on LanguageSetup is quite difficult to read and to get the lang u ant
2009-07-24T12:44:50 <dreimark> +w
2009-07-24T12:47:06 <ThomasWaldmann> ok, but you are aware that if we add that to 1.9, we'll have just another non-working thing in 2.0
2009-07-24T12:50:16 <dreimark> I know. I think it avoids some requests and we want something similiar in 2.0 too
2009-07-24T12:52:21 <ThomasWaldmann> dreimark: can you check cleancache for data/cache/wikiconfig/drafts/ cleaning?
2009-07-24T12:52:30 <ThomasWaldmann> (see ML)
2009-07-24T12:53:33 <dreimark> yes
2009-07-24T12:57:35 <dimazest> ThomasWaldmann: should i remove page.clean_acl_cache()
2009-07-24T12:58:07 * dreimark has tried the flup update by cgi, cgi + http_auth, fcgi
2009-07-24T12:58:58 <dreimark> it seems to work but I am wondering a bit why I always have 1 thread in fcg (this happens also in the not patched version)
2009-07-24T12:59:01 <ThomasWaldmann> dimazest: file,line?
2009-07-24T13:00:55 <dimazest> ThomasWaldmann: MoinMoin/packages.py:375
2009-07-24T13:02:26 <dimazest> ThomasWaldmann: http://hg.moinmo.in/moin/1.9-groups-dmilajevs/file/4cc429db5bd1/MoinMoin/Page.py#l1602 clean_acl_cache is empty
2009-07-24T13:02:50 <dimazest> may be it worth to remove it
2009-07-24T13:03:40 <ThomasWaldmann> who wrote " It is not necessary should be removed.
2009-07-24T13:03:42 <ThomasWaldmann> "?
2009-07-24T13:03:53 <dimazest> me
2009-07-24T13:05:26 <ThomasWaldmann> the code in that function is a NOP anyway
2009-07-24T13:05:38 <ThomasWaldmann> remove it
2009-07-24T13:19:41 *** moinBot has joined #moin-dev
2009-07-24T13:22:34 * ThomasWaldmann gave the moin VM vcpus=6 and memory=3500
2009-07-24T13:34:38 <CIA-45> Reimar Bauer <rb.proj AT googlemail DOT com> default * 4348:5440059649f7 1.8/ (MoinMoin/script/maint/cleancache.py docs/CHANGES): script.maint.cleancache: users draft files got also cleaned
2009-07-24T13:36:45 <dreimark> bbl
2009-07-24T14:05:38 <ThomasWaldmann> dreimark: http://hg.moinmo.in/moin/1.9/rev/c1ed36a3fd5e why?
2009-07-24T14:09:03 <CIA-45> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 4897:98a6aa0ce17e 1.9/ (5 files in 5 dirs): merged moin/1.9-groups-dmilajevs
2009-07-24T14:10:18 <ThomasWaldmann> dreimark: dimazest: maybe we can just work in moin/1.9 from now on.
2009-07-24T14:10:37 <ThomasWaldmann> (for group/dicts related fixes)
2009-07-24T14:11:45 <dimazest> ThomasWaldmann: ok, but i would prefer first push to groups and 1.9
2009-07-24T14:14:35 <ThomasWaldmann> well, technically it doesn't make a big difference, it is just more work
2009-07-24T14:15:22 <ThomasWaldmann> (your repo does not only contain your changesets, and main 1.9 repo contains all your changesets also)
2009-07-24T14:15:58 <dimazest> ThomasWaldmann: ok, i'll push to 1.9
2009-07-24T14:18:03 <ThomasWaldmann> dennda: did you commit test data to tests/data?
2009-07-24T14:19:07 <dennda> when?
2009-07-24T14:19:44 <dennda> omg just received an email "Eingangsbestaetigung" from DELL without EVER having ordered anything
2009-07-24T14:21:10 <CIA-45> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6259:94614f132969 2.0-storage/ (7 files in 7 dirs): merged moin/1.9
2009-07-24T14:21:38 <ThomasWaldmann> i guess it must have been somehow recently
2009-07-24T14:21:45 <dennda> No, I didn't
2009-07-24T14:21:47 <CIA-45> Dmitrijs Milajevs <dimazest@gmail.com> default * 4898:c299e8ece712 1.9/MoinMoin/ (4 files in 3 dirs): Groups2009: Docstring for get() for BaseDictsBackend, BaseDict and BaseGroupsBackend. Tests for get check if another default value returned for not existing keys. Typo and other refinements.
2009-07-24T14:21:48 <CIA-45> Dmitrijs Milajevs <dimazest@gmail.com> default * 4899:d11540d1c5a0 1.9/MoinMoin/ (Page.py PageEditor.py packages.py): Page.clean_acl_cache() was killed.
2009-07-24T14:21:50 <CIA-45> Dmitrijs Milajevs <dimazest@gmail.com> default * 4900:19e9f1edb2f1 1.9/MoinMoin/ (7 files in 4 dirs): Automated merge with http://hg.moinmo.in/moin/1.9
2009-07-24T14:21:53 <ThomasWaldmann> i just stumbled over it after killing everything under tests/
2009-07-24T14:23:52 <ThomasWaldmann> hmm, hg log tells 15. Aug 2008
2009-07-24T14:24:21 <ThomasWaldmann> dennda: and you did it, back then :)
2009-07-24T14:24:55 <dennda> doesn't count as "recently" :D
2009-07-24T14:27:13 <ThomasWaldmann> where is it used?
2009-07-24T14:28:25 <dennda> can't remember. which changeset?
2009-07-24T14:29:11 <ThomasWaldmann> use hg log
2009-07-24T14:29:18 <ThomasWaldmann> on one of the files
2009-07-24T14:36:19 <ThomasWaldmann> PawelPacana: there is some pep8 error in hg backend src, some deprecation error (and of course it still falls over missing destroy() stuff) - see tests in moin/2.0
2009-07-24T14:37:07 <dennda> it will also fall over missing tell
2009-07-24T14:37:33 <ThomasWaldmann> maybe overwriting the destroy tests with py.test.skip("destroy is not implemented yet") will reduce amount of tracebacks in test output
2009-07-24T14:38:27 <ThomasWaldmann> dennda: E raise NoSuchItemError("No such item, %r" % (itemname))
2009-07-24T14:38:28 <ThomasWaldmann> > NoSuchItemError: No such item, 'FrontPage'
2009-07-24T14:38:44 <ThomasWaldmann> it doesn't look like that tests/data is used at all
2009-07-24T14:39:16 <ThomasWaldmann> so maybe just kill it
2009-07-24T14:39:50 <dennda> ThomasWaldmann: What do we do with the tests that expect it, then?
2009-07-24T14:40:20 <ThomasWaldmann> well, I still have an xml file here with the few pages it needs
2009-07-24T14:40:40 <dennda> jut
2009-07-24T14:40:46 <ThomasWaldmann> as i already said, I just didn't get it working correctly within the test framework
2009-07-24T14:41:49 <ThomasWaldmann> and the tests need some way to tell whether they want empty backend or not
2009-07-24T14:54:00 <dennda> umm
2009-07-24T14:54:07 <dennda> could it be that that folder is just at the wrong place?
2009-07-24T14:56:45 <ThomasWaldmann> using the flatfile backend for such stuff is not good enough anyway
2009-07-24T14:57:25 <dennda> i was just thinking about the fails that you get if you try to run py.test on a fresh clone
2009-07-24T14:59:37 * dennda just removes it and creates empty folders so that you can run tests on freshly cloned backends
2009-07-24T15:01:00 <dimazest> trying to import search i get this exception http://paste.pocoo.org/show/130516/ any ideas?
2009-07-24T15:10:08 <ThomasWaldmann> gtg/bbl
2009-07-24T15:12:37 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6260:3f10f42361b7 2.0-storage/tests/ (13 files in 2 dirs): storage: remove unused files
2009-07-24T15:38:35 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6261:ab90657eef13 2.0-storage/MoinMoin/storage/ (__init__.py _tests/test_backends.py): storage: refine seek and tell test
2009-07-24T15:38:57 <dennda> ThomasWaldmann: With SET, END, CUR, did you mean these different modes? --^
2009-07-24T15:39:05 <dennda> Couldn't find anything else in seek's docs
2009-07-24T16:01:24 <dennda> ThomasWaldmann: When you return, please see my questions around 12:25
2009-07-24T16:05:33 <dreimark> dimazest: http://paste.pocoo.org/show/130532/
2009-07-24T16:06:06 <dreimark> that is a known workaround of this
2009-07-24T16:07:27 <dreimark> ThomasWaldmann: because if you don'T have logout you can't logout a suid'ed user
2009-07-24T16:09:08 <dimazest> dreimark: thank you
2009-07-24T16:13:40 <dennda> ThomasWaldmann: I guess we can have a UI action to do that and that could pass the request
2009-07-24T16:20:35 <dreimark> damn I did it wrong
2009-07-24T16:28:09 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6262:1cacb6c6f3db 2.0-storage/MoinMoin/storage/__init__.py: storage: Introduce totally non-functional MoinMoin.storage.upgrade_syspages. Needs integration.
2009-07-24T16:28:11 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6263:c08eb62632a4 2.0-storage/MoinMoin/storage/__init__.py: storage: Introduce Item.next_revno
2009-07-24T16:28:14 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6264:c4fb1249d2cc 2.0-storage/MoinMoin/storage/_tests/test_backends.py: storage: add test for Item.next_revno
2009-07-24T16:28:15 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6265:2e6f130e745a 2.0-storage/MoinMoin/storage/__init__.py: storage: remove cyclic import
2009-07-24T16:33:09 <ThomasWaldmann> 1.7 - self._backend._tell_revision_data(self)
2009-07-24T16:33:09 <ThomasWaldmann> 1.8 + return self._backend._tell_revision_data(self)
2009-07-24T16:33:16 <ThomasWaldmann> "refine", yeah :D
2009-07-24T16:34:45 <CIA-45> Reimar Bauer <rb.proj AT googlemail DOT com> default * 4901:6c8aa68b803c 1.9/MoinMoin/userprefs/suid.py: userprefs.suid: requires an auth_method which can logout (corrected changeset 4893:c1ed36a3fd5e)
2009-07-24T16:36:23 <ThomasWaldmann> dennda: 1.15 + return max(revs) + 1
2009-07-24T16:36:43 <ThomasWaldmann> is that max() really necessary or can we just use rev[-1] + 1?
2009-07-24T16:37:13 <dennda> sure
2009-07-24T16:38:54 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6266:4b5444c1afb0 2.0-storage/MoinMoin/items/__init__.py: storage: add metadata constants for syspages
2009-07-24T16:38:55 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6267:74dba4c1b0e6 2.0-storage/MoinMoin/storage/__init__.py: storage: max(revs) -> revs[-1]
2009-07-24T16:39:45 <dennda> now I need to find the right spot in items.__init__ where the syspages metadata should be copied :-)
2009-07-24T16:40:21 <dennda> _save I guess
2009-07-24T16:40:22 <ThomasWaldmann> better :)
2009-07-24T16:44:23 <dennda> ThomasWaldmann: What is the sha value in revisions used for?
2009-07-24T16:45:17 <dreimark> fast item comparison
2009-07-24T16:46:18 <dennda> dreimark: you mean compare all revisions by the sha value?
2009-07-24T16:46:28 <dennda> of two items?
2009-07-24T16:47:54 <dennda> I was just wondering because it seems it's based *only* on item contents (metadata and creation timestamp aren't considered)
2009-07-24T16:50:41 <ThomasWaldmann> dennda: currently for fast "binary diff" (same or not same), etag generation
2009-07-24T16:50:49 <dreimark> if you add the time stamp then the sha will always be different and you can't identify dups
2009-07-24T16:51:18 <ThomasWaldmann> can be also used to verify data against hashcode (no code yet, but easy to do)
2009-07-24T16:51:50 <ThomasWaldmann> yes, it is only for rev data
2009-07-24T16:54:11 <dennda> ok so that's intended then
2009-07-24T16:54:23 *** amartani has quit IRC
2009-07-24T16:54:36 <dennda> ThomasWaldmann: Do you have a syspages.xml file?
2009-07-24T16:54:43 <dennda> for testing
2009-07-24T16:56:11 *** amartani has joined #moin-dev
2009-07-24T17:16:20 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6268:341c0527a507 2.0-storage/MoinMoin/items/__init__.py: storage: Don't copy the SYSPAGE_VERSION metadata flag when editing an item
2009-07-24T17:16:22 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6269:38bca068eff4 2.0-storage/MoinMoin/items/__init__.py: storage: reduce code duplication
2009-07-24T17:16:24 <CIA-45> Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com> default * 6270:b8dc169e739e 2.0-storage/MoinMoin/ (items/__init__.py storage/backends/__init__.py): storage: fixes related to item copying
2009-07-24T17:20:47 <ThomasWaldmann> dennda: http://static.moinmo.in/temp/test_items.xml
2009-07-24T17:21:05 <dennda> thx
2009-07-24T17:21:23 <ThomasWaldmann> (you can also create whatever you like by calling serialize() after backend creation)
2009-07-24T17:21:25 <dennda> waaah
2009-07-24T17:21:29 <dennda> all on one line in gvim
2009-07-24T17:21:36 <ThomasWaldmann> sure :)
2009-07-24T17:21:45 <CIA-45> Bastian Blank <bblank@thinkmo.de> default * 6627:e43827089abf 2.0-storage-dom-bblank/MoinMoin/util/mime.py: Type MIME helper - Always make type lowercase
2009-07-24T17:21:46 <dennda> -_-
2009-07-24T17:21:48 <CIA-45> Bastian Blank <bblank@thinkmo.de> default * 6628:df261df2745e 2.0-storage-dom-bblank/MoinMoin/ (11 files in 3 dirs): Replace internal type name
2009-07-24T17:21:48 <ThomasWaldmann> use ff to look at it
2009-07-24T17:23:03 <dennda> ThomasWaldmann: qq/>a<CR><ESC> and all is well
2009-07-24T17:23:49 <ThomasWaldmann> ?
2009-07-24T17:23:57 <dennda> vim macro for prettyfying that
2009-07-24T17:24:25 <ThomasWaldmann> ah
2009-07-24T17:25:24 <dennda> ah damn
2009-07-24T17:25:34 <dennda> that doesn't have the syspage metadata of course
2009-07-24T17:26:07 <ThomasWaldmann> that needs to be put into the fs19 converter as an option for converting underlay
2009-07-24T17:26:21 <dennda> and into the packages later
2009-07-24T17:27:12 <ThomasWaldmann> once it is in the metadata, it will also be in the xml packages
2009-07-24T17:34:09 <dennda> gotta go, bbl
2009-07-24T19:20:19 *** grzywacz has joined #moin-dev
2009-07-24T19:49:06 <CIA-45> Reimar Bauer <rb.proj AT googlemail DOT com> default * 387:9b68e1090065 extensions/data/plugin/action/InstallLanguage.py: action InstallLanguage: install action improved
2009-07-24T19:51:59 <dreimark> ThomasWaldmann: we could also add a note or interconnect missing translations with the CheckTRanslation action on the master wiki
2009-07-24T19:57:12 <dreimark> we also could call 'text'.title() for the filenames. so we can use lower case chars. me is not sure if we want them stored in upper and lower case now
2009-07-24T20:05:03 <CIA-45> Alexandre Martani <amartani AT gmail DOT com> default * 6169:997af24590b6 2.0-storage-editor-amartani/MoinMoin/web/static/htdocs/applets/Mobwrite/mobwrite_moinmoin.js: Real-time editor: Attach sync actions to syncRun2
2009-07-24T20:42:02 <dreimark> ThomasWaldmann: can we sort this a bit different http://paste.pocoo.org/show/130591/
2009-07-24T20:55:41 <CIA-45> Reimar Bauer <rb.proj AT googlemail DOT com> default * 4902:6049883eb89e 1.9/MoinMoin/support/flup/ (17 files in 2 dirs): updated flup to 1.0.2+ (http://hg.saddi.com/flup-server changeset 100:af072c39193e)
2009-07-24T20:56:20 <dimazest> dreimark: today i've tried to query index built by moin using xappy
2009-07-24T20:56:33 <dimazest> but i cannot get documents
2009-07-24T20:56:46 <ThomasWaldmann> #xapian exists :)
2009-07-24T20:56:57 <dimazest> i used different xapian versions, no success
2009-07-24T20:57:06 <dimazest> i know :)
2009-07-24T20:57:08 <ThomasWaldmann> iirc you need 1.06 at least
2009-07-24T20:57:27 <dimazest> tried 1.06 and 1.14
2009-07-24T20:59:54 <dreimark> dimazest: can you show the script
2009-07-24T21:00:29 <dimazest> dreimark: http://moinmo.in/Xapian2009/2009-07-24
2009-07-24T21:01:55 <dreimark> btw. we need a good name for this new action (preferable in lowercase and understandable)
2009-07-24T21:03:39 <dimazest> dreimark: which action?
2009-07-24T21:04:53 <dreimark> http://hg.moinmo.in/moin/extensions/file/9b68e1090065/data/plugin/action/InstallLanguage.py
2009-07-24T21:05:02 <dreimark> if we have a name I'll move it into 1.9
2009-07-24T21:05:24 <dreimark> it should be called from LanguageSetup
2009-07-24T21:07:39 * dreimark builds xapian index
2009-07-24T21:27:07 <ThomasWaldmann> dreimark: LanguageSetup maybe? ;)
2009-07-24T21:27:52 <dreimark> dimazest: >>> conn.get_doccount()
2009-07-24T21:27:52 <dreimark> 578
2009-07-24T21:28:28 <dreimark> ThomasWaldmann: I though on that to but if we have it written this way it shows up in more actions
2009-07-24T21:29:25 <dreimark> is that ok?
2009-07-24T21:29:48 <ThomasWaldmann> maybe better not
2009-07-24T21:29:57 <dreimark> (probably it is not shown if one has no right to use it)
2009-07-24T21:30:08 * dreimark looks
2009-07-24T21:30:50 <ThomasWaldmann> no rights check on every request
2009-07-24T21:31:01 <ThomasWaldmann> language_setup
2009-07-24T21:31:09 <dimazest> dreimark: i'll look later
2009-07-24T21:31:21 <dreimark> ok^2
2009-07-24T21:33:28 <dreimark> dimazest: you may want to look at the example xappy-0.5/examples$ more search.py
2009-07-24T21:33:37 <dreimark> from the xappy tgz file
2009-07-24T21:34:25 <dreimark> >>> q = sconn.query_parse(search, default_op=sconn.OP_AND)
2009-07-24T21:34:25 <dreimark> >>> results = sconn.search(q, 0, 10)
2009-07-24T21:34:25 <dreimark> >>> results
2009-07-24T21:34:25 <dreimark> <SearchResults(startrank=0, endrank=10, more_matches=True, matches_lower_bound=249, matches_upper_bound=249, matches_estimated=249, estimate_is_exact=True)>
2009-07-24T21:35:56 *** devilsadvocate has quit IRC
2009-07-24T21:37:10 *** devilsadvocate has joined #moin-dev
2009-07-24T21:45:46 <CIA-45> Reimar Bauer <rb.proj AT googlemail DOT com> default * 388:fb3f4a1fb50b extensions/data/plugin/action/InstallLanguage.py: action InstallLanguage: moved to moin-1.9 repo as language_setup
2009-07-24T21:45:49 <CIA-45> Reimar Bauer <rb.proj AT googlemail DOT com> default * 4903:4eea6a2856dd 1.9/MoinMoin/action/language_setup.py: action language_setup: The superuser gets a table of language packages listed dependent on the selected language for installation.
2009-07-24T21:47:29 <amartani> is it possible to simulate different requests on tests?
2009-07-24T21:48:16 <TheSheep> I belive werkzeug has a dummy request object for that purpose
2009-07-24T21:51:18 <dreimark> wb TheSheep
2009-07-24T22:09:40 *** CIA-45 has quit IRC
2009-07-24T22:12:56 <ronny> amartani: the test client has a tool for generating the wsgi environments
2009-07-24T22:15:56 <amartani> should I use MM.web.request.TestRequest?
2009-07-24T22:17:16 <ronny> MM ?
2009-07-24T22:17:23 <dreimark> MoinMoin
2009-07-24T22:17:44 <ronny> i have no idea about that part of moinmoin
2009-07-24T22:20:46 <amartani> well, I'll try it.
2009-07-24T22:21:51 *** CIA-43 has joined #moin-dev
2009-07-24T22:29:53 <dreimark> amartani: just an idea. is it possible by mobwrite to communicate similiar to irc with other editors of the page?
2009-07-24T22:31:33 <dennda> 17:26 < ThomasWaldmann> that needs to be put into the fs19 converter as an option for converting underlay
2009-07-24T22:31:36 <dennda> thinking about that
2009-07-24T22:31:47 <dennda> didn't we agree to kill all underlay and provide xml files from now on?
2009-07-24T22:32:42 <dreimark> yes, I think language_setup is the only page we will add
2009-07-24T22:33:12 <dreimark> but we need to convert underlay to xml somehow
2009-07-24T22:33:58 <dreimark> gn
2009-07-24T22:35:16 <ThomasWaldmann> dennda: the xml serialization is a feature of mm20, so we first need to get the existing stuff into a mm20 backend
2009-07-24T22:42:19 <dennda> ThomasWaldmann: "existing stuff" == "old underlay"?
2009-07-24T22:47:46 <CIA-43> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6271:a9ad5eeee054 2.0-storage/MoinMoin/storage/backends/hg.py: PEP8 fixes
2009-07-24T22:48:18 <ThomasWaldmann> dennda: yes, or do you want to type in all those pages? :P
2009-07-24T22:50:32 <dennda> ThomasWaldmann: why don't we convert the underlay ourselves, add the syspages metadata, serialize it and provide an xml file instead of underlay.tar?
2009-07-24T22:51:09 <ThomasWaldmann> that's the plan
2009-07-24T22:51:34 <ThomasWaldmann> i just thought that the fs19 backend adds the syspages metadata
2009-07-24T22:52:32 <ThomasWaldmann> otoh, for later release we need a "tagging script" anyway
2009-07-24T22:52:51 * ThomasWaldmann tries to implement seek for the fs backend
2009-07-24T22:52:58 <dennda> good luck
2009-07-24T22:54:28 <dennda> ok then I'll create an xml file consisting of the current underlay + syspages info
2009-07-24T22:55:14 <ThomasWaldmann> ah, you tried already X)
2009-07-24T22:55:37 <dennda> tried what?
2009-07-24T22:56:24 <dennda> but seek should be there
2009-07-24T22:56:31 <dennda> i added tell
2009-07-24T22:57:25 <dennda> looks like a two-liner
2009-07-24T22:59:56 <amartani> dreimark: no. they plan to add something like status messages, but I don't know about chat.
2009-07-24T23:00:55 <ThomasWaldmann> dennda: it doesn't work
2009-07-24T23:01:44 <dennda> ThomasWaldmann: "it" being...?
2009-07-24T23:04:46 <dennda> ThomasWaldmann: are you confusing seek and tell? I didn't modify fs at all. the failing seek there is johill's fault and it's missing tell obviously
2009-07-24T23:08:10 <ThomasWaldmann> seek in fs
2009-07-24T23:08:30 <dennda> not my fault :-)
2009-07-24T23:09:05 <dennda> ThomasWaldmann: what should I provide as SYSPAGE_VERSION?
2009-07-24T23:09:17 <dennda> i suggest some tuple for easy comparison, but what exactly do you want there?
2009-07-24T23:16:17 <ThomasWaldmann> think about what we need to do with it
2009-07-24T23:18:54 <ThomasWaldmann> dennda: btw, can we please have some consistency whether it is rev or revision param?
2009-07-24T23:19:45 <dennda> compare it to other versions of the same syspage. so essentially an integer would suffice, unless you have any other plans
2009-07-24T23:19:48 <dennda> ThomasWaldmann: where?
2009-07-24T23:21:57 <ThomasWaldmann> in storage api params
2009-07-24T23:22:05 <ThomasWaldmann> or backend params
2009-07-24T23:22:19 <ThomasWaldmann> def _seek_revision_data(self, rev, position, mode):
2009-07-24T23:22:24 <ThomasWaldmann> + def _tell_revision_data(self, revision):
2009-07-24T23:22:27 <dennda> oh
2009-07-24T23:22:32 <dennda> let's use rev
2009-07-24T23:22:51 <CIA-43> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6272:bf3a21aacdd9 2.0-storage/MoinMoin/storage/backends/fs.py: fs backend: fix seek, implement tell
2009-07-24T23:24:32 <dennda> what do I need to pass to backend.serialize() as xmlgen? the docs say "items.xml" for example, but: AttributeError: 'str' object has no attribute 'startElement'
2009-07-24T23:25:38 <ThomasWaldmann> use the serialize function
2009-07-24T23:26:11 <dennda> ah
2009-07-24T23:32:59 <CIA-43> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6273:05dda5aea8ab 2.0-storage/MoinMoin/storage/backends/hg.py: hg backend: implement tell
2009-07-24T23:34:18 <dennda> http://the-space-station.com/~dennda/tmp/underlay_19.xml
2009-07-24T23:34:33 <dennda> this is how it could look like if we used SYSPAGE_VERSION = (2, 0, 0)
2009-07-24T23:34:38 <dennda> 12.5 MB, beware!
2009-07-24T23:41:39 <ThomasWaldmann> so what will you do with that tuple exactly?
2009-07-24T23:43:50 <dennda> well as I said, an int would suffice
2009-07-24T23:44:07 <dennda> and then we just enumerate the syspages releases
2009-07-24T23:44:15 <dennda> which can be independent of moin releases
2009-07-24T23:48:56 <dennda> would that be ok? then i'll create it for SYSPAGE_VERSION = 1 once and put it somewhere so we can use it later
2009-07-24T23:53:44 <ThomasWaldmann> ok
2009-07-24T23:56:46 <CIA-43> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 6274:c1a4b4540c35 2.0-storage/MoinMoin/storage/backends/fs.py: fs backend: reduce code duplication, make tell work when file was not opened yet
MoinMoin: MoinMoinChat/Logs/moin-dev/2009-07-24 (last edited 2009-07-23 22:15:02 by IrcLogImporter)