1 2011-06-21T00:06:48 <pkumar> bbl
2 2011-06-21T00:07:00 *** pkumar
3 2011-06-21T00:25:46 <ThomasWaldmann> re
4 2011-06-21T00:56:05 *** xjjk
5 2011-06-21T01:12:41 <ThomasWaldmann> Marchael: review what code? please put it on codereview and post url.
6 2011-06-21T01:41:55 *** xjjk
7 2011-06-21T01:42:04 *** xjjk
8 2011-06-21T01:52:17 *** brunomartin
9 2011-06-21T04:05:19 *** franklin_
10 2011-06-21T04:05:44 *** eSyr_
11 2011-06-21T04:10:24 *** eSyr
12 2011-06-21T04:10:25 *** franklin
13 2011-06-21T04:32:08 *** Marchael
14 2011-06-21T05:38:41 *** Marchael
15 2011-06-21T05:39:26 <Marchael> moin
16 2011-06-21T06:20:41 <Marchael> ThomasWaldmann: I'm answered on your question.
17 2011-06-21T06:22:01 <Marchael> Also, I think what sometimes better update only one index(all or latest revisions)
18 2011-06-21T06:47:29 *** eSyr_
19 2011-06-21T07:36:04 <dreimark> moin
20 2011-06-21T07:39:32 <Marchael> hi dreimark
21 2011-06-21T08:52:16 *** Marchael
22 2011-06-21T09:18:40 *** Marchael
23 2011-06-21T09:36:43 *** Marchael
24 2011-06-21T09:53:56 *** Marchael
25 2011-06-21T09:56:42 *** greg_f
26 2011-06-21T10:14:07 <dreimark> http://pypi.python.org/pypi/pika
27 2011-06-21T10:18:44 <dreimark> http://packages.python.org/kombu/
28 2011-06-21T10:24:13 *** gwork
29 2011-06-21T10:46:36 <ThomasWaldmann> moin
30 2011-06-21T10:47:59 <Marchael> hi ThomasWaldmann
31 2011-06-21T10:48:53 <ThomasWaldmann> Marchael: i was asking for why you are doing it, not what you are doing
32 2011-06-21T10:50:26 <ThomasWaldmann> btw, wireless here still sucks, so you should invest more time on more precisely doing stuff / thinking more about it yourself
33 2011-06-21T10:53:23 <Marchael> If I won't ckeck all revisions, then how I can determine which revision is newer?
34 2011-06-21T10:54:22 <ThomasWaldmann> well, first revision is 0, next is 1. 1 is usually newer than 0.
35 2011-06-21T10:54:42 <ThomasWaldmann> that principles generally applies.
36 2011-06-21T10:54:57 <Marchael> no, I mean revisions from backend and from indexes
37 2011-06-21T10:55:06 <ThomasWaldmann> also, revision are immutable. once saved, they never change content.
38 2011-06-21T10:55:25 <ThomasWaldmann> the only thing that might happen is that a revision gets destroyed.
39 2011-06-21T10:55:30 <Marchael> so I should update only last revisions?
40 2011-06-21T10:55:48 <ThomasWaldmann> no, you have to think it all through
41 2011-06-21T10:56:03 <ThomasWaldmann> not just guess, think
42 2011-06-21T10:57:52 <ThomasWaldmann> visualize it in your mind, if it helps you
43 2011-06-21T10:58:26 <ThomasWaldmann> do everything needed to have a consistent index, but do not do more than needed
44 2011-06-21T10:59:09 <Marchael> may be checck count of revisions in backend and indexes?
45 2011-06-21T10:59:16 <ThomasWaldmann> no
46 2011-06-21T10:59:49 <ThomasWaldmann> counts are mostly pointless (this also applies to testing, btw)
47 2011-06-21T11:02:21 <Marchael> check mtime of last revision in backend and in indexes, if they aren't equal then rebuild all revisions for that document
48 2011-06-21T11:04:01 <ThomasWaldmann> first half of you last sentence is a good beginning, but second half is wrong
49 2011-06-21T11:04:34 <ThomasWaldmann> i think for getting a quick index update, you maybe just ignore for now that revisions can be destroyed
50 2011-06-21T11:05:32 <ThomasWaldmann> but you have to consider that items can get trashed
51 2011-06-21T11:05:51 <ThomasWaldmann> (trashing == renaming the item to Trash/...)
52 2011-06-21T11:06:08 <ThomasWaldmann> and also of course any other renames
53 2011-06-21T11:06:14 <Marchael> but their uuid is changed?
54 2011-06-21T11:06:32 <ThomasWaldmann> newer
55 2011-06-21T11:06:35 <ThomasWaldmann> never
56 2011-06-21T11:07:08 <ThomasWaldmann> the whhole point of uuid is that it never changes (and that it is unique)
57 2011-06-21T11:07:27 <ThomasWaldmann> ok, i need to leave again, cu
58 2011-06-21T11:24:20 <dreimark> ThomasWaldmann: we should have an itemtype for http://www.mathjax.org/
59 2011-06-21T11:26:10 <dreimark> waldi: ^
60 2011-06-21T11:29:18 <waldi> why? this is mathml or latex
61 2011-06-21T11:41:52 <dreimark> no it is just js with the fonts of latex
62 2011-06-21T11:54:10 * dreimark will add a request for dual licensing
63 2011-06-21T12:00:45 <dreimark> xstatic would also help
64 2011-06-21T14:02:25 *** m4k3r
65 2011-06-21T14:10:35 *** m4k3r
66 2011-06-21T14:16:56 <CIA-70> Reimar Bauer <rb.proj AT googlemail DOT com> default * 254:91330de48b9c 2.0/MoinMoin/ (items/__init__.py templates/modify_svg-edit.html): items: implemented 2.6 r:2031 alpha of svg-edit using a save extension for doing a single post for svg and png data.
67 2011-06-21T14:45:44 <ThomasWaldmann> re
68 2011-06-21T14:47:52 <Marchael> ThomasWaldmann: check mtime of last revision in backend and in indexes, if they aren't equal then go to previous revision of document and compare mtimes from index and backend, if the aren't equal then .... If we found revisions with equal mtimes then we get next documents from backend
69 2011-06-21T14:50:31 <ThomasWaldmann> dreimark: archive is in place, please test
70 2011-06-21T15:01:00 <ThomasWaldmann> Marchael: exactly
71 2011-06-21T15:01:48 <ThomasWaldmann> also, you have to detect when index has items that are not there any more under that name in the wiki storage
72 2011-06-21T15:07:53 <Marchael> ok
73 2011-06-21T15:20:00 <ThomasWaldmann> (and of course also the opposite)
74 2011-06-21T15:20:28 <Marchael> opposite?
75 2011-06-21T15:22:02 <ThomasWaldmann> detect when storage has items that are not in the index
76 2011-06-21T15:22:08 <ThomasWaldmann> gtg/bbl
77 2011-06-21T16:12:58 *** sinha
78 2011-06-21T16:13:02 <sinha> re
79 2011-06-21T16:19:36 <sinha> dreimark: i tried adding count field for user object, where i could save the count entered by the user, i mean i have seen the implementation of bookmark, it uses some dict for this, why ? cant we simply do something like `self.bookmark = value` ?
80 2011-06-21T18:39:51 <ThomasWaldmann> re
81 2011-06-21T18:42:08 <dreimark> re
82 2011-06-21T18:44:14 <dreimark> sinha: look at user.setBookmark
83 2011-06-21T18:45:07 <sinha> dreimark: what is interwikiname there ?
84 2011-06-21T18:45:45 <dreimark> the inter communication name of the wiki, can be set in the config
85 2011-06-21T18:46:04 <dreimark> it is used for easy simple links
86 2011-06-21T18:46:23 <dreimark> e.g interwikimap defines MoinMoin to the moinmo.in url
87 2011-06-21T18:46:50 <sinha> okay, but why do we need to save this as key for bookmark
88 2011-06-21T18:47:01 <sinha> i mean is there gonna be more interwikiname
89 2011-06-21T18:47:06 <dreimark> you can then create a link to the moin site by writing [[MoinMoin:somepage]]
90 2011-06-21T18:47:33 <dreimark> sinha because of wikifarms
91 2011-06-21T18:47:51 <dreimark> you can share an account over more than one wiki
92 2011-06-21T18:48:21 <sinha> okay
93 2011-06-21T18:48:33 <sinha> so do i need to do similar thing for count also ?
94 2011-06-21T18:49:09 <dreimark> sinha: yes
95 2011-06-21T18:49:54 <brunomartin> I'm trying to use storage.terms.ItemHasMetaDataValue... I made a test to it on storage.terms._test, and seens to be working, but not on my code... the patch for storage.terms._test.test_terms that works is here: http://paste.pocoo.org/show/416282/ and the code that don't work is here: http://paste.pocoo.org/show/416289/
96 2011-06-21T18:50:28 <ThomasWaldmann> hi brunomartin
97 2011-06-21T18:50:35 <brunomartin> hi!
98 2011-06-21T18:54:04 <ThomasWaldmann> hmm, maybe the problem is that is it a list, not just a plain value?
99 2011-06-21T18:56:59 <brunomartin> yeah, the problem is, I have a metada like "list": ["value"] in some items, and I want to find then using the term ItemHasMetaDataValue("list", "value")
100 2011-06-21T18:57:46 <ThomasWaldmann> did you look at the code whether this is expected to work?
101 2011-06-21T19:00:40 <brunomartin> yes, it seems that only works for dicts, right?
102 2011-06-21T19:23:59 <ThomasWaldmann> it only works for key: value, not for key: [..., value, ...]
103 2011-06-21T19:24:25 <ThomasWaldmann> but you can easily extend that
104 2011-06-21T19:24:51 <ThomasWaldmann> like ItemHasMetaDataValueAsMember or so
105 2011-06-21T19:35:41 *** sinha
106 2011-06-21T19:35:47 *** sinha
107 2011-06-21T19:59:03 <brunomartin> ThomasWaldmann: ok, I will extend it! ;-)
108 2011-06-21T20:10:30 *** greg_f
109 2011-06-21T20:51:27 <dreimark> ThomasWaldmann: i'll test that from the hotels wifi
110 2011-06-21T21:06:28 <brunomartin> ThomasWaldmann: well, I implemented LastRevisionHasMetaDataValueAsMember (http://paste.pocoo.org/show/416355/). I can't do it with item (MoinMoin.storage.backends.router.RouterItem) like in ItemHasMetaDataValue... but this solves my problem!
111 2011-06-21T21:12:14 <brunomartin> this solves the problem of having more tags when you have a template... if you put "tags": ["templante", "another_tag"], that page isn't recognized as template... here the patch that fix it (2 lines of code :-P) : http://paste.pocoo.org/show/416362/
112 2011-06-21T21:14:04 <brunomartin> ops... here the patch: http://paste.pocoo.org/show/416365/
113 2011-06-21T21:39:18 <sinha> dreimark: when i try to add form element in my history template, why i am getting error that 'form is not defined', i am writing it almost similar to the one given in other templates, this is the traceback http://paste.pocoo.org/show/416412/
114 2011-06-21T22:09:59 <CIA-70> pkumar <contactprashantat@gmail.com> * 6cbcec2eb46f r274 pytest2/MoinMoin/apps/frontend/_tests/test_frontend.py: init_test_app called in setup_method() of TestUsersettings to avoid the test failure in test_frontend.
115 2011-06-21T22:09:59 <CIA-70> pkumar <contactprashantat@gmail.com> * 9db7ce03cbc5 r275 pytest2/MoinMoin/datastruct/backends/_tests/ (test_wiki_groups.py test_wiki_dicts.py): test_init_app called in test_wiki_dicts and test_wiki_groups
116 2011-06-21T22:09:59 <CIA-70> pkumar <contactprashantat@gmail.com> * 229747dcc230 r276 pytest2/MoinMoin/datastruct/backends/_tests/ (test_wiki_groups.py test_wiki_dicts.py): teardown created in test_wiki_groups and test_wiki_dicts to call deinit_test_app
117 2011-06-21T22:09:59 <CIA-70> pkumar <contactprashantat@gmail.com> * cfc4cefc5182 r277 pytest2/MoinMoin/storage/_tests/test_backends_fs2.py: init_test_app and deinit_test_app called in test_backend_fs2.
118 2011-06-21T22:09:59 <CIA-70> pkumar <contactprashantat@gmail.com> * 32025c625b66 r278 pytest2/MoinMoin/storage/_tests/test_backends_memory.py: init_test_app and deinit_test_app called in test_backend_memory.
119 2011-06-21T22:37:36 <Marchael> ThomasWaldmann: please, review that code http://codereview.appspot.com/4539114/patch/34002/50007 but I don't test it for now
120 2011-06-21T22:37:56 <Marchael> after sleep I'll test that
121 2011-06-21T22:38:59 <Marchael> gn/bbl