1 2011-07-07T00:05:16 <dreimark> sinha: ready to commit?
2 2011-07-07T00:05:56 <sinha> dreimark: sry, yeah was busy all day, i commented on that variable naming thing
3 2011-07-07T00:06:44 <sinha> ah, i have seen your reply
4 2011-07-07T00:08:38 <CIA-114> Akash Sinha <akash2607@gmail.com> * 72899d48db41 r285 default/MoinMoin/ (4 files in 4 dirs): alphabetic listing of global index, with link to item index
5 2011-07-07T00:08:38 <CIA-114> Akash Sinha <akash2607@gmail.com> * 20a940e54ffb r286 default/MoinMoin/themes/modernized/static/img/moin-expand.png: icon for more link added
6 2011-07-07T00:08:43 <dreimark> sinha: you can subscribe all diary pages
7 2011-07-07T00:08:54 <dreimark> by a regex in settings
8 2011-07-07T00:09:54 <sinha> dreimark: what to write MoinMoin/GsocDiary/* ?
9 2011-07-07T00:10:26 <dreimark> MoinMoin:AkashSinha/Gsoc2011Diary.*
10 2011-07-07T00:11:20 <sinha> okay
11 2011-07-07T00:11:22 <dreimark> Settings
12 2011-07-07T00:11:26 <dreimark> ah good
13 2011-07-07T00:11:51 <dreimark> I did also
14 2011-07-07T00:25:32 <dreimark> sinha: please merge, i want to use pypi packages, less downloading and installing
15 2011-07-07T00:26:21 <dreimark> gn
16 2011-07-07T00:26:41 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * d1b8dc0abe68 r287 default/ (wikiconfig.py quickinstall.bat setup.py quickinstall): use jquery from XStatic-jQuery package
17 2011-07-07T00:26:43 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * 85d1cbf6922a r288 default/ (wikiconfig.py MoinMoin/templates/base.html quickinstall): merged main
18 2011-07-07T00:26:43 <CIA-114> Michael Kerrin <michael.kerrin@gmail.com> * d805136dc37e r289 default/MoinMoin/storage/backends/sqla.py: Fix moin to work with the latest sqlalchemy version 0.7.1
19 2011-07-07T00:26:43 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * 7a81ff51008a r290 default/setup.py: setup.py: avoid Flask >=0.7 until we have fixed moin2 for it
20 2011-07-07T00:26:43 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * 7a6b116afa20 r291 default/ (34 files in 12 dirs): (log message trimmed)
21 2011-07-07T00:26:43 <CIA-114> upgrade to flask 0.7.1 (not compatible to older flasks)
22 2011-07-07T00:26:43 <CIA-114> to upgrade to flask 0.7.1 you need to activate your virtual env and run:
23 2011-07-07T00:26:52 <sinha> dreimark: merged ( gn)
24 2011-07-07T00:27:40 <CIA-114> pip install --upgrade flask
25 2011-07-07T00:27:40 <CIA-114> what I had to do for upgrading moin src to flask 0.7.1:
26 2011-07-07T00:27:40 <CIA-114> ran the flask upgrade script, review what it did
27 2011-07-07T00:27:40 <CIA-114> added template_folder='templates' to BluePrint initializers where needed
28 2011-07-07T00:27:41 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * e969c9318772 r292 default/MoinMoin/app.py: remove HTTPException handler for setup_user that is not needed any more for flask >= 0.7
29 2011-07-07T00:27:41 <CIA-114> Reimar Bauer <rb.proj AT googlemail DOT com> * 58b9f645746f r293 default/wikiconfig.py: wikiconfig: renamed env_dir env to envxs
30 2011-07-07T00:27:42 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * b7fda720496b r294 default/ (wikiconfig.py quickinstall): change back both 'envxs' to 'env' to make it consistent with quickinstall.bat again
31 2011-07-07T00:27:42 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * 2c12608c7c38 r295 default/MoinMoin/apps/frontend/views.py: fix url generation for jquery-file-upload, use download instead of get for DL link
32 2011-07-07T00:28:40 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * 8a21b92d8985 r296 default/ (5 files in 3 dirs): use package XStatic-jQuery-File-Upload, require it in setup.py, remove it from quickinstall
33 2011-07-07T00:28:40 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * b062718d313d r297 default/ (wikiconfig.py quickinstall.bat setup.py quickinstall): use XStatic-svgweb package, require it via setup.py, remove it from quickinstall scripts
34 2011-07-07T00:28:40 <CIA-114> Thomas Waldmann <tw AT waldmann-edv DOT de> * 57a8a41014a4 r298 default/ (wikiconfig.py quickinstall.bat setup.py quickinstall): use XStatic-CKEditor package, require it via setup.py, remove it from quickinstall scripts
35 2011-07-07T00:28:40 <CIA-114> Reimar Bauer <rb.proj AT googlemail DOT com> * a09f9b06a48f r299 default/ (5 files in 2 dirs): use XStatic-TWikiDraw-moin package, require it via setup.py, remove it from quickinstall scripts
36 2011-07-07T00:28:41 <CIA-114> Reimar Bauer <rb.proj AT googlemail DOT com> * ff38aed82112 r300 default/ (wikiconfig.py quickinstall.bat setup.py quickinstall): use XStatic-AnyWikiDraw package, require it via setup.py, remove it from quickinstall scripts
37 2011-07-07T00:29:40 <CIA-114> Reimar Bauer <rb.proj AT googlemail DOT com> * 0513cfd0aaeb r301 default/ (wikiconfig.py quickinstall): use XStatic-MathJax package, require it via setup.py, remove it from quickinstall scripts
38 2011-07-07T00:29:40 <CIA-114> Akash Sinha <akash2607@gmail.com> * d70f30322e68 r302 default/ (39 files in 13 dirs): branch merged with main repo
39 2011-07-07T00:37:20 <CIA-114> Reimar Bauer <rb.proj AT googlemail DOT com> default * 277:88d8b4663efc 2.0/setup.py: setup: require MathJax, missed in previous changeset
40 2011-07-07T00:37:39 * dreimark mistake fixed
41 2011-07-07T00:37:47 <dreimark> now night
42 2011-07-07T00:39:11 <dreimark> sinha: http://paste.pocoo.org/show/431558/
43 2011-07-07T00:39:43 <dreimark> just wanted to try it. but this is a fresh wiki - i have only the preloaded stuff
44 2011-07-07T00:40:49 *** jek
45 2011-07-07T00:40:59 <sinha> dreimark: but this error isn't (wasn't) coming on mine
46 2011-07-07T00:41:18 <dreimark> ok, ThomasWaldmann fresh install
47 2011-07-07T00:41:36 <dreimark> i think that is the next update of flask
48 2011-07-07T00:41:38 *** jek
49 2011-07-07T00:42:29 <dreimark> '0.7.2'
50 2011-07-07T00:42:56 <dreimark> I guess there is something different broken now
51 2011-07-07T00:59:44 *** m4k3r
52 2011-07-07T01:05:48 *** humbu
53 2011-07-07T01:08:40 <sinha> dreimark: ThomasWaldmann: i have update my repo, and also upgraded flask but getting this error when try to run moin http://paste.pocoo.org/show/431586/
54 2011-07-07T01:14:59 <sinha> remove all these "from xstatic.pkg.." lines from wikiconfig.py ?
55 2011-07-07T01:21:10 *** sinha
56 2011-07-07T01:35:37 *** humbu
57 2011-07-07T02:01:55 *** jek
58 2011-07-07T02:01:55 *** jek
59 2011-07-07T03:59:24 *** Marchael
60 2011-07-07T05:54:21 *** Marchael
61 2011-07-07T05:56:28 <Marchael> moin
62 2011-07-07T06:38:11 *** m4k3r
63 2011-07-07T07:21:35 <Marchael> ThomasWaldmann: please, review http://codereview.appspot.com/4650073/ Patchset 7
64 2011-07-07T07:34:58 <Marchael> I have question about renaming. History using item_name to get item from backend, but if someone renames that item, history doesn't show other revisions of that item
65 2011-07-07T07:36:06 <Marchael> is it ok?
66 2011-07-07T07:39:24 <Marchael> Also, if someone get back old name for that item, all revisions will appear on history page, but moin log will have following error messages http://paste.pocoo.org/show/431928/
67 2011-07-07T07:55:20 <Marchael> It's happend because whoosh searcher returns all name what containing "Home", so "Home0", "Home1" also will be found for request "Home"
68 2011-07-07T07:55:32 <Marchael> s/name/revisions/
69 2011-07-07T07:56:19 <Marchael> and will be showing in history
70 2011-07-07T07:58:04 <CIA-114> Reimar Bauer <rb.proj AT googlemail DOT com> default * 278:ab67dd35c5f2 2.0/setup.py: setup.py: only Flask == 0.7.1 until we have fixed moin2 for newer releases
71 2011-07-07T08:03:48 <Marchael> I guess what searching by uuid will be better than searching by name
72 2011-07-07T08:04:10 <dreimark> Marchael: do you have still the Home item?
73 2011-07-07T08:04:52 <Marchael> yes
74 2011-07-07T08:05:04 <Marchael> It's common problem
75 2011-07-07T08:05:10 <dreimark> why don't you do what we tell since a week?
76 2011-07-07T08:05:50 <dreimark> we aked you to rm -r wiki, enter load_xml = None into the config and restart from an empty wiki
77 2011-07-07T08:06:27 <dreimark> without the Home item
78 2011-07-07T08:07:12 <Marchael> I can forget about default documents, but problem what if we have items with names "Item", "Item1", "Item2". And we want to look at "Item" history, we also will see history of "Item1" and "Item2"
79 2011-07-07T08:08:16 <Marchael> so I suggest to use uuid for searching documents
80 2011-07-07T08:08:17 <dreimark> the problem is you don't forget, you repeat since days the same problem
81 2011-07-07T08:08:24 <dreimark> with home item
82 2011-07-07T08:08:45 <dreimark> Marchael: as we said we know that we want to use uuid but this is not so simple
83 2011-07-07T08:09:00 <dreimark> as it looks to you.
84 2011-07-07T08:09:31 <Marchael> > but problem what if we have items with names "Item", "Item1", "Item2". And we want to look at "Item" history, we also will see history of "Item1" and "Item2"
85 2011-07-07T08:09:31 <Marchael> It's not depend from "Home"
86 2011-07-07T08:10:03 <dreimark> you must see it from this point of view. this limititation ins known from that point of scope
87 2011-07-07T08:10:32 <dreimark> we know that, it will automaticly change if uuid is perfectly implemented
88 2011-07-07T08:11:35 <dreimark> you can describe such parts on ep or the wiki page, but don't become blocked by this limitation
89 2011-07-07T08:11:45 <dreimark> and continue on the other parts
90 2011-07-07T08:22:50 * dreimark tries again flask-0.7.2 may be I tricked me
91 2011-07-07T08:26:49 <CIA-114> Reimar Bauer <rb.proj AT googlemail DOT com> default * 279:6addf72bd94e 2.0/setup.py: setup.py: reverted to 88d8b4663efc
92 2011-07-07T08:43:33 *** Marchael
93 2011-07-07T08:47:10 *** Marchael
94 2011-07-07T09:24:31 *** m4k3r
95 2011-07-07T09:25:37 <Marchael> btw, how I can disable building indexes at start up?
96 2011-07-07T09:25:51 *** m4k3r
97 2011-07-07T09:28:09 <dreimark> bbl
98 2011-07-07T09:31:38 *** m4k3r
99 2011-07-07T09:43:40 *** mkerrin
100 2011-07-07T09:55:05 *** hardy89
101 2011-07-07T09:55:54 <hardy89> hi dreimark
102 2011-07-07T09:57:53 <dreimark> hi hardy89
103 2011-07-07T09:59:07 <hardy89> dreimark: any idea what the test_item_create_existing_mixed_1 (line 410, test_backends.py) is doing?
104 2011-07-07T09:59:42 <hardy89> wait, i'll pastebin the relevant part
105 2011-07-07T10:00:08 <hardy89> dreimark: http://www.pastie.org/2176489
106 2011-07-07T10:01:03 <hardy89> dreimark: the test is expecting an ItemAlreadyExistsError on item2.commit, but that error is raised when item2 is first created (line 4 in the pastie)
107 2011-07-07T10:01:29 <hardy89> dreimark: looking at the code, i think this is exactly what should happen. so what is that test testing?
108 2011-07-07T10:10:23 <dreimark> waldi: ^
109 2011-07-07T10:11:24 <dreimark> for future pastes please use paste.pocoo.org
110 2011-07-07T10:12:47 <dreimark> the test verifies that you can't overwerite by create_item an existing item
111 2011-07-07T10:13:09 <dreimark> s/overwerite/recreate/
112 2011-07-07T10:14:10 <dreimark> hardy89: discuss these tests please with xorAxAx or waldi
113 2011-07-07T10:15:28 <hardy89> hm, but why does the test expect an error on item2.commit and not on create_item?
114 2011-07-07T10:15:31 <hardy89> xorAxAx, dreimark ^
115 2011-07-07T10:16:07 <Marchael> dreimark: I want to configure logging to see debug output, what should I do?
116 2011-07-07T10:16:32 <Marchael> I read docs shipped with moin but didn't found this info there
117 2011-07-07T10:17:24 <Marchael> also I see os.environ['MOIN_DEBUG'] = '1' but seems like it's only for moin1.9
118 2011-07-07T10:21:31 <dreimark> Marchael: you have read "Logging configuration" ?
119 2011-07-07T10:21:38 <Marchael> yes
120 2011-07-07T10:22:45 <Marchael> I just want to see logging.debug
121 2011-07-07T10:24:38 <xorAxAx> hardy89: because the first item1 wasnt yet published at the time the second item is created
122 2011-07-07T10:24:50 <dreimark> Marchael: and you have added it to the cmd ?
123 2011-07-07T10:25:15 <dreimark> with a config file describing what you want to log?
124 2011-07-07T10:25:59 <Marchael> mm, no. but I don't see it in logging configuration
125 2011-07-07T10:26:11 * Marchael looks in shipped docs
126 2011-07-07T10:26:12 <dreimark> log.load_config('wiki/config/logging/logfile')
127 2011-07-07T10:26:37 <dreimark> and log file syntax is described on python.org
128 2011-07-07T10:26:57 <Marchael> ok
129 2011-07-07T10:26:59 <dreimark> also there are examples in the doco
130 2011-07-07T10:27:18 <dreimark> http://test.moinmo.in/+serve/docs/admin/configure.html?highlight=logging
131 2011-07-07T10:27:40 <hardy89> xorAxAx: when is an item considered published? isn't it published when i do a create_item?
132 2011-07-07T10:27:46 <xorAxAx> no
133 2011-07-07T10:27:50 <hardy89> oh
134 2011-07-07T10:28:00 <Marchael> dreimark: I want to print some stuff directly to stdout, it's possible?
135 2011-07-07T10:28:16 <dreimark> Marchael: yes, it depends on your config
136 2011-07-07T10:28:27 <Marchael> I'll want to implement "show" method for indexing script
137 2011-07-07T10:28:32 <Marchael> *index script
138 2011-07-07T10:28:33 <xorAxAx> hardy89: and i am not sure whether its documented at all, ask ThomasWaldmann whether it is
139 2011-07-07T10:28:52 <hardy89> hm
140 2011-07-07T10:34:51 <dreimark> Marchael: http://hg.moinmo.in/moin/2.0/file/6addf72bd94e/MoinMoin/log.py is a bit more verbose than the docs
141 2011-07-07T10:35:24 <dreimark> bbl
142 2011-07-07T10:38:49 <hardy89> xorAxAx: one more thing. a few serialization tests expect the uuid of an item to be the same as the item name in the serialized XML. the serialized XML, otoh, has a uuid generated using the uuid module.
143 2011-07-07T10:39:25 <hardy89> xorAxAx: eg, the test expects item "foo" to have uuid "foo", but in my generated xml the uuid is d7b9e096ac0f459e85c3443c604fe337.
144 2011-07-07T10:41:17 <xorAxAx> hardy89: pastebin the particular tests
145 2011-07-07T10:42:09 <hardy89> xorAxAx: this is the test: http://www.pastie.org/2176608
146 2011-07-07T10:42:17 <hardy89> wait, pasting generated xml
147 2011-07-07T10:42:30 *** mkerrin
148 2011-07-07T10:43:50 *** mkerrin
149 2011-07-07T10:44:38 <hardy89> xorAxAx: http://www.pastie.org/2176615
150 2011-07-07T10:45:05 <hardy89> the ordering of the output is different too, but that will be a trivial fix i think
151 2011-07-07T10:45:10 <ThomasWaldmann> Marchael: http://paste.pocoo.org/show/431928/ you can only access the item via the current name of it. that is one of the issues i am trying to get rid of by using uuid.
152 2011-07-07T10:45:15 <Marchael> dreimark: I should put log.load_config('wiki/config/logging/logfile') in script? I try to put it in my local config but haven
153 2011-07-07T10:45:25 <Marchael> *haven't results
154 2011-07-07T10:45:41 <xorAxAx> hardy89: please use the xmldiff module to fix those tests
155 2011-07-07T10:46:06 <xorAxAx> hardy89: well, it looks like the test is broken
156 2011-07-07T10:46:54 <hardy89> xorAxAx: the test compares 2 XML strings, which is strange
157 2011-07-07T10:47:06 <xorAxAx> hardy89: yes, thats why you should use xmldiff
158 2011-07-07T10:47:11 <Marchael> ThomasWaldmann: but how I can avoid this? Need more strict search?
159 2011-07-07T10:47:14 <hardy89> xorAxAx: ajh
160 2011-07-07T10:47:16 <hardy89> *ah
161 2011-07-07T10:47:24 <hardy89> but what of the uuid issue?
162 2011-07-07T10:47:52 <xorAxAx> hardy89: the UUID should appear in the xml
163 2011-07-07T10:48:11 <Marchael> I also write about other issue, please look at ep line 209
164 2011-07-07T10:48:33 <xorAxAx> hardy89: http://www.logilab.org/859
165 2011-07-07T10:48:40 <hardy89> xorAxAx: but the expected output doesn't have an actual uuid. so i should just assume the test is broken and fix the test?
166 2011-07-07T10:49:12 <xorAxAx> hardy89: didnt you say that the uuid is generated?
167 2011-07-07T10:49:30 <xorAxAx> hardy89: ask ThomasWaldmann whether the UUID should be generated or not
168 2011-07-07T10:49:37 <hardy89> okay
169 2011-07-07T10:51:06 <ThomasWaldmann> Marchael: you ignore rename issues for now and put a comment there telling that there telling about the problem with rename.
170 2011-07-07T10:52:04 <Marchael> ok
171 2011-07-07T10:52:43 <hardy89> ThomasWaldmann: ^
172 2011-07-07T10:54:27 <ThomasWaldmann> hardy89: as I told already multiple times, the uuid code has still issues. so some failing tests related to it might be the consequence.
173 2011-07-07T10:58:17 <hardy89> ThomasWaldmann: ah, ok
174 2011-07-07T11:02:03 *** hardy89
175 2011-07-07T11:04:57 *** greg_f
176 2011-07-07T11:05:32 <Marchael> ThomasWaldmann: please, look at ep
177 2011-07-07T11:08:30 *** hardy89
178 2011-07-07T11:09:08 *** hardy89
179 2011-07-07T11:11:32 <Marchael> ThomasWaldmann: http://codereview.appspot.com/4650073/ patchset 8
180 2011-07-07T11:38:27 *** sinha
181 2011-07-07T11:47:47 <Marchael> ThomasWaldmann: may I commit my changes in MoinMoin.storage.backend.indexing?
182 2011-07-07T11:56:48 *** m4k3r
183 2011-07-07T11:57:06 *** m4k3r
184 2011-07-07T11:59:33 <Marchael> bbl
185 2011-07-07T11:59:43 <ThomasWaldmann> see latest review, but yes, mostly looks good
186 2011-07-07T12:23:01 *** m4k3r
187 2011-07-07T12:31:49 *** sinha
188 2011-07-07T12:46:44 *** sinha
189 2011-07-07T14:01:55 <dreimark> Marchael: it must be into the script added which is named moin
190 2011-07-07T14:02:07 <dreimark> and it is located in env/bin
191 2011-07-07T14:03:28 <Marchael> dreimark: I want to implement show method for index script. It should just print all revisions in given index
192 2011-07-07T14:03:46 <dreimark> Marchael: I am talking about logging
193 2011-07-07T14:04:12 <Marchael> yes, I should add this line in eac file?
194 2011-07-07T14:04:19 <Marchael> ah
195 2011-07-07T14:04:23 <Marchael> ok
196 2011-07-07T14:04:51 <dreimark> eac?
197 2011-07-07T14:05:48 <Marchael> ignore this
198 2011-07-07T14:10:32 <ThomasWaldmann> dreimark: then problem you had with flask 0.7.2, was this solved? reproduced? reported?
199 2011-07-07T14:10:38 <ThomasWaldmann> -n
200 2011-07-07T14:28:28 <CIA-114> pkumar <contactprashantat@gmail.com> * 5b68305a8211 r357 pytest2/MoinMoin/util/_tests/test_crypto.py: minor changes/test cleanup done in util/test_crypto
201 2011-07-07T14:28:29 <CIA-114> pkumar <contactprashantat@gmail.com> * 65922348740b r358 pytest2/MoinMoin/ (util/_tests/test_filesys.py wikiutil.py): code cleanup done in wikiutil.py and util/test_filesys.
202 2011-07-07T14:28:29 <CIA-114> pkumar <contactprashantat@gmail.com> * f734d9a2bb57 r359 pytest2/MoinMoin/themes/_tests/test_navi_bar.py: test added for themes.ThemeSupport.parent_item() in themes/test_navi_bar
203 2011-07-07T14:28:30 <CIA-114> pkumar <contactprashantat@gmail.com> * b46fbeae2939 r360 pytest2/MoinMoin/util/_tests/test_mime.py: test for util.mime.Type.__repr__() removed from util/test_mime as representation may vary
204 2011-07-07T14:28:30 <CIA-114> pkumar <contactprashantat@gmail.com> * 844ff806153c r361 pytest2/MoinMoin/converter/_tests/test_include.py: added test by increasing the stack content - stack doesn't get empty at top = stack.pop(), in converter.include.XPointer
205 2011-07-07T14:28:30 <CIA-114> pkumar <contactprashantat@gmail.com> * e7ce4bd1ac93 r362 pytest2/MoinMoin/_tests/test_error.py: added test for error.CompositeError in _test/test_error
206 2011-07-07T14:33:43 <ThomasWaldmann> bbl
207 2011-07-07T14:45:17 <dreimark> ThomasWaldmann: solved, no problem, mistake by me
208 2011-07-07T14:58:35 <sinha> dreimark: still getting that BuildError on /+index page, i peformed ` ./quickinstall again` and the also did "pip install --upgrade"
209 2011-07-07T14:59:36 <dreimark> sinha: you need to refactor your code
210 2011-07-07T14:59:41 <sinha> where ?
211 2011-07-07T14:59:48 <dreimark> look at the old changes thomas did
212 2011-07-07T15:00:50 <sinha> i am getting error at url_for('show_item', item_name=xyz), but this show_item also been used in /+history and other pages, why i am not getting BuildError there
213 2011-07-07T15:00:55 <dreimark> at the merge
214 2011-07-07T15:06:57 <Marchael> for 50 documents index_rebuild takes about 1-2 secs
215 2011-07-07T15:07:38 <Marchael> ThomasWaldmann: could you share your big dump?
216 2011-07-07T15:08:37 <dreimark> sinha: <td><a href="{{ url_for('frontend.show_item', item_name=rev.item.name, rev=rev.revno) }}">{{ _('show') }}</a></td>
217 2011-07-07T15:08:53 <dreimark> in history.html of http://hg.moinmo.in/moin/2.0/file/6addf72bd94e/MoinMoin/templates/history.html
218 2011-07-07T15:09:24 <sinha> yes i guess i found the difference
219 2011-07-07T15:09:35 <dreimark> :)
220 2011-07-07T15:09:47 <Marchael> dreimark: how can I set logging verbosility for single script? I tried logging.setLevel("INFO") but nothing happend
221 2011-07-07T15:11:29 <dreimark> Marchael: read http://hg.moinmo.in/moin/2.0/file/6addf72bd94e/docs/examples/config/logging/logfile_debug_auth
222 2011-07-07T15:11:44 <dreimark> and read python documentation about logging syntax
223 2011-07-07T15:11:54 <dreimark> you define it in that config file
224 2011-07-07T15:12:11 <Marchael> ah, ok
225 2011-07-07T15:12:12 <dreimark> there for example at line 26 it is DEBUG
226 2011-07-07T15:12:26 <dreimark> and section 22 is INFO
227 2011-07-07T15:26:26 <Marchael> dreimark: then I should add that config to my repo
228 2011-07-07T15:26:45 <Marchael> because script will requires that
229 2011-07-07T15:34:32 <dreimark> Marchael: be carefull because in a production system noone wants to have that by default
230 2011-07-07T15:35:19 <dreimark> you can also activate it by http://hg.moinmo.in/moin/2.0/file/6addf72bd94e/MoinMoin/log.py#l13
231 2011-07-07T15:36:17 <Marchael> dreimark: for showing indexes admin types command like "moin index --for both --action show" and think about way how to print this
232 2011-07-07T15:36:29 <Marchael> *and I think
233 2011-07-07T15:42:21 <sinha> dreimark: Re adding the path on top of index page, suppose when showing the index for item "A/B/C", we will have path something like this "Path: ../A/B", so and in that A and B will be links, so when these links will be clicked, what should i show, that item or index of that item ?
234 2011-07-07T15:54:15 <dreimark> sinha: you talk about the title links right of the icon? these have to ink to the item itselfs. Otherwise we can't escape from that view
235 2011-07-07T15:55:01 <dreimark> I think we need (not sure if it is ugly) something additional to move to an other index of different subitem or main item
236 2011-07-07T15:55:56 <sinha> okay, let me complete this we will talk about that
237 2011-07-07T15:56:09 <dreimark> Marchael: output to a file, if it it an important info you want to look at that afterwards
238 2011-07-07T16:49:36 *** m4k3r
239 2011-07-07T17:01:55 <sinha> dreimark : please take a look http://moinmo.in/AkashSinha/Gsoc2011Diary/2011-07-07
240 2011-07-07T17:29:09 *** m4k3r
241 2011-07-07T17:30:19 *** m4k3r
242 2011-07-07T17:33:09 *** hardy89
243 2011-07-07T17:53:50 <dreimark> sinha: looks good
244 2011-07-07T17:53:56 <dreimark> I review soon
245 2011-07-07T17:59:45 *** hardy89
246 2011-07-07T18:30:08 *** hardy89_afk
247 2011-07-07T18:34:36 *** raignarok
248 2011-07-07T18:39:55 *** mkerrin
249 2011-07-07T18:40:46 *** m4k3r
250 2011-07-07T18:46:50 *** m4k3r
251 2011-07-07T18:55:48 *** brunomartin
252 2011-07-07T18:56:01 *** brunomartin
253 2011-07-07T18:56:11 *** brunomartin
254 2011-07-07T19:04:01 <Marchael> Is there any way to allow logging.info for single script without config?
255 2011-07-07T19:10:38 *** pkumar
256 2011-07-07T19:21:35 *** m4k3r
257 2011-07-07T19:23:32 *** m4k3r
258 2011-07-07T19:24:44 <pkumar> hardy89 : hey, its July &th so shall we update he EP with the task of the week?
259 2011-07-07T19:24:52 <pkumar> 7th
260 2011-07-07T19:24:54 <pkumar> *
261 2011-07-07T19:25:05 <hardy89> pkumar: hi. sure
262 2011-07-07T19:26:52 <pkumar> hardy89 : would you like to continue the work of modify/add tests in the existing tests? or something else?
263 2011-07-07T19:27:22 <pkumar> as mentioned in EP for last week
264 2011-07-07T19:27:25 <hardy89> pkumar: yes. that has to be there in my opinion.
265 2011-07-07T19:29:59 <pkumar> hardy89 : are you fine with the modules you were working last week?
266 2011-07-07T19:31:06 <hardy89> pkumar: almost. i'm working on the storage module and reading and have also started reading and working with pytest-cov.
267 2011-07-07T19:32:19 <hardy89> pkumar: also, kindly look into test_backends_fs2 as we decided earlier so that we can complete storage module.
268 2011-07-07T19:32:44 <hardy89> pkumar: i even need a bit of your help regarding pytest-cov
269 2011-07-07T19:33:02 <pkumar> hardy89 : for pytest-cov your goal is to use it as a tool to find test coverage
270 2011-07-07T19:33:31 <pkumar> hardy89 : what about test_backend_fs2 and decided what?
271 2011-07-07T19:34:30 <hardy89> pkumar: correct. i did use it that way. but if a test does not have a good coverage, then how shall we proceed further?
272 2011-07-07T19:36:22 <pkumar> thats the point. you need to improve it, add some tests. http://pypi.python.org/pypi/pytest-cov should explain about pytest-cov to use it.
273 2011-07-07T19:36:26 <pkumar> hardy89 : ^
274 2011-07-07T19:36:33 <hardy89> pkumar: also, i asked you to work on fs2 as you were already working a bit on it long back.
275 2011-07-07T19:36:47 <hardy89> pkumar: thanks thanks :)
276 2011-07-07T19:38:21 <pkumar> hardy89 : I don't remember any such thing and I was working on a issue regarding file leak on py.test when run using fs2
277 2011-07-07T19:39:08 <pkumar> hardy89 : its different from the issue right now in test_backend_fs2
278 2011-07-07T19:39:22 <pkumar> either way, I'll have a look at it
279 2011-07-07T19:39:32 <hardy89> pkumar: i asked you on 22 june to work on take up fs2
280 2011-07-07T19:40:24 <hardy89> pkumar: no no. not improving the coverage thing but handling Fs and Es in test_backend_fs2.
281 2011-07-07T19:41:00 *** greg_f
282 2011-07-07T19:41:21 <pkumar> hardy89 : actually that was a file leak issue which I was talking about. py.test leaks file when run using fs2.
283 2011-07-07T19:41:21 <hardy89> pkumar: ok lets decide and add work on EP
284 2011-07-07T19:42:07 <pkumar> yeah, there are 4 errors noe in test_backend_fs2 and some failures I guess
285 2011-07-07T19:42:08 <hardy89> pkumar: in that case i'll see to it.
286 2011-07-07T19:42:17 <hardy89> hmmm
287 2011-07-07T19:42:35 <hardy89> pkumar: nevermind. we'll do it :)
288 2011-07-07T19:42:37 <pkumar> hardy89 : ^
289 2011-07-07T19:42:37 <pkumar> though I'll have a look at it and tell you if I get something :)
290 2011-07-07T19:43:11 <hardy89> pkumar: hm. now the tasks on EP?
291 2011-07-07T19:43:53 <pkumar> hardy89 : yeah, so you still need to go through the first part of the test improvement task.
292 2011-07-07T19:44:18 <pkumar> line 266
293 2011-07-07T19:44:21 <pkumar> in EP
294 2011-07-07T19:44:43 <pkumar> so you add that as your task for this week
295 2011-07-07T19:45:19 <hardy89> pkumar: ok.
296 2011-07-07T19:46:43 <hardy89> pkumar: line 266 is a part of test coverage. right?
297 2011-07-07T19:47:09 <pkumar> yeah, you need to use the tool pytest-cov and improve it
298 2011-07-07T19:47:40 <pkumar> s/need to/can
299 2011-07-07T19:48:00 <hardy89> pkumar: hm
300 2011-07-07T19:49:07 *** m4k3r
301 2011-07-07T19:50:17 <hardy89> pkumar: what will yo be working on this week?
302 2011-07-07T19:50:30 *** m4k3r
303 2011-07-07T19:50:57 <pkumar> lemme add
304 2011-07-07T19:53:13 <pkumar> no no you. I would suggest you not to work on 2nd part until you complete the 1st one
305 2011-07-07T19:53:18 <pkumar> hardy89 : ^
306 2011-07-07T19:53:47 <pkumar> hardy89 : it itself is a big task for a week
307 2011-07-07T19:54:34 <hardy89> pkumar: i've added it. in case i get time, i'll do it, else i'll write the test for i18n in upcoming week.
308 2011-07-07T19:55:27 <hardy89> pkumar: util does not have any tests?
309 2011-07-07T19:55:28 <pkumar> hardy89 : it includes reading test and file codes, understand and then write the test for it(if you want to have a good test)
310 2011-07-07T19:55:56 <hardy89> pkumar: hm
311 2011-07-07T19:56:27 <pkumar> hardy89 : it surely have but there are some files which don't have any test
312 2011-07-07T19:56:35 <hardy89> pkumar: ok.
313 2011-07-07T20:00:26 <pkumar> hardy89 : also it would be better if you could correct your bitbucket, since you don't have much changesets in them
314 2011-07-07T20:01:15 <hardy89> pkumar: will do it. the problem so far has been that i've made too many repos, so all the changesets have been distributed in various repos.
315 2011-07-07T20:01:25 <hardy89> pkumar: right from the time of porting till now.
316 2011-07-07T20:01:31 <hardy89> pkumar: still, will do it
317 2011-07-07T20:02:11 <pkumar> hardy89 : I was talking about changeset - 5a3f3a4d307f
318 2011-07-07T20:03:20 <hardy89> pkumar: hm. i know. just in quest of adding the name of real contributor, it resulted in creating multiple heads.
319 2011-07-07T20:03:29 <hardy89> pkumar: will repair it.
320 2011-07-07T20:04:37 <pkumar> I understand it would be little troublesome but for the good of project :)
321 2011-07-07T20:04:45 <pkumar> hardy89 : ^
322 2011-07-07T20:05:14 <hardy89> pkumar: oh yeah. i have to do it. even if its troublesome. i understand that. :)
323 2011-07-07T20:05:48 <pkumar> hardy89 : also, you could have just pull the changes from default repo for that.
324 2011-07-07T20:06:00 <hardy89> h
325 2011-07-07T20:06:04 <hardy89> *hm
326 2011-07-07T20:08:00 *** m4k3r
327 2011-07-07T20:08:53 *** m4k3r
328 2011-07-07T20:15:29 *** m4k3r
329 2011-07-07T20:24:30 *** hardy89
330 2011-07-07T20:31:45 *** pkumar
331 2011-07-07T20:42:17 <Marchael> ThomasWaldmann: I'm add new field as you asked and now issue with renaming is gone
332 2011-07-07T20:43:50 <Marchael> ehrm, now need some fixes for unit tests
333 2011-07-07T20:52:49 <ThomasWaldmann> you just use the name_exact field if you exactly know the name. user input searches the name field (not exact).
334 2011-07-07T20:53:01 * ThomasWaldmann has gprs internet :(
335 2011-07-07T20:54:10 <Marchael> ThomasWaldmann: can you help me with this traceback http://paste.pocoo.org/show/432530/ line 139
336 2011-07-07T20:55:14 <ThomasWaldmann> you need to set index_dir in the wiki config
337 2011-07-07T20:55:28 <Marchael> I have done it
338 2011-07-07T20:55:37 <ThomasWaldmann> if this is generally needed with you changes, you may compute index_dir in wikiconfig.py
339 2011-07-07T20:55:41 <Marchael> in local wikiconfig
340 2011-07-07T20:55:43 <ThomasWaldmann> no, you did not
341 2011-07-07T20:56:05 <ThomasWaldmann> E AttributeError: 'Config' object has no attribute 'index_dir'
342 2011-07-07T20:56:06 <Marchael> so contest.py ignores my local cnfig?
343 2011-07-07T20:56:31 <ThomasWaldmann> look into _tests/wikiconfig.py
344 2011-07-07T20:57:28 <Marchael> then for test working admin should specify index_dir in wiki config
345 2011-07-07T21:00:10 <Marchael> ThomasWaldmann: I should add index_dir to Config class in wikiconfig.py?
346 2011-07-07T21:00:48 <ThomasWaldmann> you compute it using some other known dir
347 2011-07-07T21:03:43 <Marchael> what?
348 2011-07-07T21:03:59 <Marchael> error raising from app.py
349 2011-07-07T21:04:09 <Marchael> how can I use another dir?
350 2011-07-07T21:04:37 <Marchael> it happends during backends initialization
351 2011-07-07T21:10:14 <Marchael> ThomasWaldmann: ^
352 2011-07-07T21:12:04 <ThomasWaldmann> you may have some "data_dir" there, then you just use os.path.join(data_dir, "index")
353 2011-07-07T21:15:52 <Marchael> there where? in app.py?
354 2011-07-07T21:16:02 <Marchael> or tests?
355 2011-07-07T21:16:37 <ThomasWaldmann> wiki config
356 2011-07-07T21:19:58 <Marchael> But how can it helps me, I put index_dir value to Config class in wikiconfig.py. but app.py continue raising AttributeError: 'Config' object has no attribute 'index_dir'
357 2011-07-07T21:28:28 <Marchael> ah
358 2011-07-07T21:28:32 * Marchael saw
359 2011-07-07T21:45:25 *** brunomartin
360 2011-07-07T21:53:24 <Marchael> ThomasWaldmann: incoming big changeset 9 http://codereview.appspot.com/4650073/
361 2011-07-07T21:53:39 <Marchael> please, review
362 2011-07-07T22:04:08 <ThomasWaldmann> ok
363 2011-07-07T22:10:22 <ThomasWaldmann> Marchael: what you do with your comments above the functions heads should be docstrings within the function
364 2011-07-07T22:10:51 <Marchael> ok
365 2011-07-07T22:11:19 <Marchael> but I can write documentation after this commit
366 2011-07-07T22:11:33 <Marchael> it's rather big now
367 2011-07-07T22:12:10 <ThomasWaldmann> it doesn't get bigger due to this
368 2011-07-07T22:12:38 <Marchael> so i should just move that comment to docsting?
369 2011-07-07T22:12:45 <Marchael> *comments
370 2011-07-07T22:19:11 <ThomasWaldmann> must go ...
371 2011-07-07T22:25:54 <Marchael> ThomasWaldmann: docsting in patchset 10
372 2011-07-07T22:26:00 <Marchael> *docstring
373 2011-07-07T22:33:15 <Marchael> ThomasWaldmann: update docs on ep, line 30
374 2011-07-07T22:35:00 <dreimark> Marchael: testsetup has a different wikiconfig.py see http://hg.moinmo.in/moin/2.0/file/6addf72bd94e/MoinMoin/_tests/wikiconfig.py
375 2011-07-07T22:38:28 <Marchael> dreimark: thanks, Thomas already told about that
376 2011-07-07T22:39:19 <Marchael> but I still have question
377 2011-07-07T22:39:19 <Marchael> > Is there any way to allow logging.info for single script without config?
378 2011-07-07T22:40:40 <dreimark> I always use config because of possibility to select what i want, why do you ask?
379 2011-07-07T22:41:39 <dreimark> http://hg.moinmo.in/moin/2.0/file/6addf72bd94e/MoinMoin/log.py
380 2011-07-07T22:41:55 <Marchael> I want implement method show, so wiki admin can see revisions in indexes
381 2011-07-07T22:42:19 <dreimark> is it a cli script?
382 2011-07-07T22:42:24 <Marchael> but info and debug it's not what I want
383 2011-07-07T22:42:44 <Marchael> yes
384 2011-07-07T22:42:48 <dreimark> then you can print it to stdout
385 2011-07-07T22:43:03 <dreimark> a admin can redirect it to a file
386 2011-07-07T22:43:14 <Marchael> hm, just print?
387 2011-07-07T22:43:21 <dreimark> why not?
388 2011-07-07T22:43:39 <Marchael> iirc print doesn't show anything
389 2011-07-07T22:44:20 <Marchael> i was wron
390 2011-07-07T22:44:22 <dreimark> why ?
391 2011-07-07T22:44:24 <Marchael> (wrong
392 2011-07-07T22:44:38 <Marchael> :)
393 2011-07-07T22:44:42 <dreimark> you can also write into a file and tell where that file is
394 2011-07-07T22:45:09 <dreimark> old http://hg.moinmo.in/moin/1.9/file/62202e5435e2/MoinMoin/script/maint/cleanpage.py
395 2011-07-07T22:45:18 <dreimark> writes too with print
396 2011-07-07T22:46:54 <Marchael> working well
397 2011-07-07T22:46:56 <Marchael> thx!
398 2011-07-07T22:47:00 *** raignarok
399 2011-07-07T22:49:00 <dreimark> Marchael: try with some russian words
400 2011-07-07T22:54:39 <sinha> dreimark: regarding that hassubitem, how should i get list of all items to check if one has subitem, by using that get_index() function ? or something else ?
401 2011-07-07T22:56:54 <ThomasWaldmann> re
402 2011-07-07T22:58:11 <dreimark> ThomasWaldmann: can we fast get all item names and find out which are the subitems?
403 2011-07-07T22:59:44 <ThomasWaldmann> for?
404 2011-07-07T23:00:10 <sinha> ThomasWaldmann: i need to know whether a item has subitem or not
405 2011-07-07T23:00:19 <dreimark> http://codereview.appspot.com/4631094/patch/1/2 simplifying the loop there
406 2011-07-07T23:01:08 <ThomasWaldmann> well, i once wrote that flat_index function. if you call it with a main item name, it will tell you wether it has direct children and which.
407 2011-07-07T23:01:52 <dreimark> it can't be called with '/' or ?
408 2011-07-07T23:02:09 <ThomasWaldmann> sure, with ''
409 2011-07-07T23:02:13 <dreimark> ah
410 2011-07-07T23:02:23 <dreimark> sinha: that gives the full list
411 2011-07-07T23:03:00 <Marchael> ThomasWaldmann: http://codereview.appspot.com/4650073/ patchset 11
412 2011-07-07T23:03:18 <sinha> dreimark: but i guess get_index() will give full list, because in flat_index() there is a filter which discards item having "/" in their name
413 2011-07-07T23:03:35 <sinha> so again we will have top level items
414 2011-07-07T23:05:37 <dreimark> unfortunately
415 2011-07-07T23:08:58 <dreimark> sinha: if we have no easy why to simplify that now, just look that it is not twice time in the code
416 2011-07-07T23:08:58 *** raignarok
417 2011-07-07T23:10:11 <dreimark> one way could be to have it in meta, but i think i rather don't want that
418 2011-07-07T23:10:23 <dreimark> because renaming can change that
419 2011-07-07T23:10:33 <sinha> dreimark: i guess we can do this, just tell me can we make a regex search in a list, because after the get_index function we get a list of items
420 2011-07-07T23:11:17 <dreimark> sinha: try with kodos, multiline
421 2011-07-07T23:11:20 <ThomasWaldmann> Marchael: review done
422 2011-07-07T23:11:55 <dreimark> a list can be '\n'.joined
423 2011-07-07T23:13:50 * Marchael looks
424 2011-07-07T23:14:19 <ThomasWaldmann> dreimark: summary: setup.py: reverted to 88d8b4663efc
425 2011-07-07T23:14:51 <ThomasWaldmann> you can just say "reverted <changeset that was undone>"
426 2011-07-07T23:14:51 <dreimark> ThomasWaldmann: i reverted my flask setup change
427 2011-07-07T23:15:04 <dreimark> ok, next time
428 2011-07-07T23:15:05 <ThomasWaldmann> (not the one before)
429 2011-07-07T23:15:27 <ThomasWaldmann> because you then can just look at that changeset id
430 2011-07-07T23:15:34 <dreimark> oh - yes, thats better to understand no further reading
431 2011-07-07T23:15:58 <ThomasWaldmann> so, it works with 0.7.2 or why did you revert?
432 2011-07-07T23:16:38 <dreimark> because I was in sinhas repo and I had not recognized he had a merge problem
433 2011-07-07T23:16:56 <ThomasWaldmann> ah
434 2011-07-07T23:17:51 * ThomasWaldmann pulls and upgrades flask
435 2011-07-07T23:19:08 <ThomasWaldmann> hmm, installing mathjax takes rather long?
436 2011-07-07T23:19:22 <dreimark> 6mb fonts and images
437 2011-07-07T23:19:50 *** raignarok
438 2011-07-07T23:19:55 <ThomasWaldmann> Installing /home/tw/w/moin-2.0/env/lib/python2.7/site-packages/XStatic_MathJax-1.1-py2.7-nspkg.pth
439 2011-07-07T23:20:05 <ThomasWaldmann> there was a rather long pause after that msg
440 2011-07-07T23:20:30 <dreimark> hmm, it needs some time to unpack that stuff
441 2011-07-07T23:21:10 <Marchael> ThomasWaldmann: patchset 12
442 2011-07-07T23:21:23 <ThomasWaldmann> you are getting faster :)
443 2011-07-07T23:23:17 <ThomasWaldmann> Marchael: looks ok
444 2011-07-07T23:23:22 <dreimark> gn
445 2011-07-07T23:23:28 <Marchael> may i commit?
446 2011-07-07T23:23:35 <Marchael> dreimark: bye
447 2011-07-07T23:23:50 <ThomasWaldmann> yup
448 2011-07-07T23:29:18 <CIA-114> Michael Mayorov <marchael@kb.csu.ru> * 5d06ad313f7d r310 moin-2.0/MoinMoin/ (4 files in 4 dirs): WhooshIndex object creation at start up, implemented some functions for working with indexes
449 2011-07-07T23:29:18 <CIA-114> Michael Mayorov <marchael@kb.csu.ru> * d91abc361954 r311 moin-2.0/MoinMoin/ (script/maint/index.py app.py storage/backends/indexing.py): Implemented add revision to whoosh indexes, some minor fixes in names
450 2011-07-07T23:29:26 <CIA-114> Michael Mayorov <marchael@kb.csu.ru> * dc04953b1ee8 r312 moin-2.0/ (5 files in 5 dirs): (log message trimmed)
451 2011-07-07T23:29:26 <CIA-114> Testing and working:
452 2011-07-07T23:29:26 <CIA-114> MoinMoin.storage.backend.indexing
453 2011-07-07T23:29:26 <CIA-114> Add revisions to whoosh indexes
454 2011-07-07T23:29:27 <CIA-114> Remove revisions from whoosh indexes
455 2011-07-07T23:29:27 <CIA-114> Show history for given item or whole indexes
456 2011-07-07T23:29:28 <CIA-114> Show all items for given tag
457 2011-07-07T23:29:36 *** raignarok
458 2011-07-07T23:30:11 <Marchael> that's not all
459 2011-07-07T23:30:14 <Marchael> hm
460 2011-07-07T23:34:13 *** raignarok
461 2011-07-07T23:34:54 <Marchael> ThomasWaldmann: what next?
462 2011-07-07T23:35:03 <Marchael> add content to indexes?
463 2011-07-07T23:35:11 <Marchael> *adding
464 2011-07-07T23:37:45 <ThomasWaldmann> think about data indexing infrastructure
465 2011-07-07T23:38:09 <ThomasWaldmann> and check etherpad for todos that are still open in your current code
466 2011-07-07T23:39:39 <Marchael> what about content filters?
467 2011-07-07T23:42:03 <Marchael> gn/bbl
468 2011-07-07T23:49:35 <ThomasWaldmann> dreimark: maybe we should specify XStatic==0.0.1, so that we can avoid breakage until all packages are updated
469 2011-07-07T23:49:56 <ThomasWaldmann> and also XStatic-Foo==x.x.x