1 2011-04-08T00:00:11 <Marchael> ThomasWaldmann: could I ask about searching? If I understand right searching module should be able to convert queries coming from searchbox to whoosh and also show results on separate page.
2 2011-04-08T00:01:02 <ThomasWaldmann> Marchael: yes, there should be likely 2 ways to enter queries:
3 2011-04-08T00:01:29 <ThomasWaldmann> via the search box for simple stuff, via some search query view for complex queries
4 2011-04-08T00:01:55 <Marchael> second can be done with jinja2 template
5 2011-04-08T00:02:12 <ThomasWaldmann> yes
6 2011-04-08T00:02:28 <ThomasWaldmann> but for the beginning, one would start with the search box
7 2011-04-08T00:03:02 <ThomasWaldmann> and of course, after submitting the query, whoosh will search and come back with results
8 2011-04-08T00:03:37 <Marchael> ok, do I need implement parser for special queries such as "mimetype:image moin.jpg"?
9 2011-04-08T00:06:36 *** yufra
10 2011-04-08T00:06:52 <ThomasWaldmann> afaics, whoosh has a query parser
11 2011-04-08T00:07:34 <Marchael> I know :)
12 2011-04-08T00:07:49 <yufra> ThomasWaldmann, I tried using the fs19 backend in moin2 and noticed that there is a linux-specific dependency on /dev/shm
13 2011-04-08T00:07:50 *** pkumar_
14 2011-04-08T00:07:58 * yufra uses a mac.
15 2011-04-08T00:09:01 <Marchael> then queries can be delivered to whoosh without any changes
16 2011-04-08T00:09:48 *** pkumar
17 2011-04-08T00:10:26 <ThomasWaldmann> yufra: suggest a fix :)
18 2011-04-08T00:11:19 <yufra> I have used tempfile.mkdtemp for now
19 2011-04-08T00:11:43 <yufra> on linux/mac that gets put into something that resembles shared memory (I think)
20 2011-04-08T00:16:22 <ThomasWaldmann> ok, publish a patch or changeset :)
21 2011-04-08T00:17:29 <yufra> I want to test it on linux first... the fs19 backend is still broken on mac but I think that is something else to fix first
22 2011-04-08T00:24:55 <ThomasWaldmann> do you have a traceback?
23 2011-04-08T00:27:28 <yufra> it was a few days ago, just looking into it again now
24 2011-04-08T00:27:41 <yufra> testing the patch on linux and then I'll look at the mac one again
25 2011-04-08T00:29:43 <yufra> hmm, nope same error on my linux copy... do you have a preferable paste site? or is pastebin.com ok?
26 2011-04-08T00:29:53 <yufra> ah, I see the topic nevermind :-)
27 2011-04-08T00:31:40 <yufra> http://paste.pocoo.org/show/367538/
28 2011-04-08T00:32:15 <yufra> I don't know a lot about SQL so I was having trouble debugging the traceback
29 2011-04-08T00:39:04 <ThomasWaldmann> that's a bug and not platform specific
30 2011-04-08T00:39:29 <yufra> ok, I'll post a /dev/shm patch in a second
31 2011-04-08T00:39:34 <ThomasWaldmann> it tries to insert "UserName" twice into a column that should be unique
32 2011-04-08T00:40:37 <yufra> here is the patch: http://paste.pocoo.org/show/367541/
33 2011-04-08T00:42:51 <yufra> I'll try to figure out where the second UserName is being put in, too
34 2011-04-08T00:45:09 *** moin5
35 2011-04-08T00:45:27 <ThomasWaldmann> yufra: instead of tempfile, can you try sqlite:// ?
36 2011-04-08T00:45:57 <ThomasWaldmann> see where that path finally ends up being used
37 2011-04-08T00:46:34 <moin5> Hi developers. Could you consider including my cheap patch from http://moinmo.in/MoinMoinBugs/MonthCalendarMouseOverBrokenWithAmpersandInPageName for 1.9 ?
38 2011-04-08T00:50:07 <ThomasWaldmann> moin5: you are referring to formatter.url, where is it?
39 2011-04-08T00:52:51 <moin5> It's called a few lines later, with fmtlink = formatter.url(1, daypage.url(request, query), csslink, **attrs) + str(day) + formatter.url(0)
40 2011-04-08T00:53:37 <moin5> http://hg.moinmo.in/moin/1.9/file/70dfb3dea12d/MoinMoin/macro/MonthCalendar.py#l392
41 2011-04-08T00:56:26 <ThomasWaldmann> ok, did you do some experiments whether some stuff is now not escaped although it should be?
42 2011-04-08T00:57:53 <moin5> I am running it live on a productive wiki farm since Do Nov 4 04:59:00 2010 . No problems were reported from our users, and the users first found the problem.
43 2011-04-08T00:58:16 <moin5> I tested the code with all examples that came to my mind.
44 2011-04-08T00:58:31 * ThomasWaldmann tries
45 2011-04-08T00:59:04 <moin5> I did not test with pagenames in languages I don't speak ...
46 2011-04-08T01:04:04 <ThomasWaldmann> ok, looks good. shall i tell your name in the changeset?
47 2011-04-08T01:05:48 <moin5> nty
48 2011-04-08T01:06:15 <ThomasWaldmann> ok
49 2011-04-08T01:06:57 <CIA-25> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 5777:fa44b15b1ff1 1.9/MoinMoin/macro/MonthCalendar.py: Fix MonthCalendar mouseover for pages with Ampersand in page name (was double-escaping)
50 2011-04-08T01:07:08 *** Marchael
51 2011-04-08T01:07:19 <yufra> ThomasWaldmann, here is your sqlite:// patch (it crashes at the same username insertion) http://paste.pocoo.org/show/367550/
52 2011-04-08T01:07:53 <ThomasWaldmann> moin5: ^^
53 2011-04-08T01:08:10 <moin5> tyvm
54 2011-04-08T01:08:22 <ThomasWaldmann> yufra: but it works as well as tempfile would, right?
55 2011-04-08T01:08:24 <yufra> I had to modify fs19.Index's __init__ method, but a quick grep through the rest of the code looks like there are no other calls to fs19.Index that need to be updated
56 2011-04-08T01:08:31 <yufra> ThomasWaldmann, correct
57 2011-04-08T01:09:17 <moin5> The next 1.9 bug on my list is http://moinmo.in/MoinMoinBugs/ACLNotWorkingAutoAdminNewPageMailNotification , but I wasn't able to fix it..
58 2011-04-08T01:10:14 <yufra> but if you can look at that fs19.Index change I would appreciate it... I am not sure if there are indirect calls to it that assume the previous %s/index.db format
59 2011-04-08T01:10:33 <ThomasWaldmann> yufra: maybe we should just give the full db url
60 2011-04-08T01:11:05 <yufra> that is what I am doing now, no?
61 2011-04-08T01:11:31 <yufra> my knowledge of sqlalchemy is poor
62 2011-04-08T01:12:25 <ThomasWaldmann> i mean including the sqlite://
63 2011-04-08T01:12:29 <ThomasWaldmann> not just ''
64 2011-04-08T01:12:32 <yufra> gotcha
65 2011-04-08T01:12:42 <ThomasWaldmann> moin5: I'll have a look
66 2011-04-08T01:13:08 <moin5> If there is anything I can do :-) ...
67 2011-04-08T01:13:47 <yufra> your call of course... I think it makes sense to have path actually be a file path (and not require the sqlite prefix)
68 2011-04-08T01:14:24 <yufra> someone (like me) who is not versed in SQL can ignore the fact that it is an SQL database and treat it as a black box that way
69 2011-04-08T01:15:22 <ThomasWaldmann> moin5: maybe the problem is due to the acl getting effective AFTER the save (and not already at the time when it creates the notification)
70 2011-04-08T01:15:44 <ThomasWaldmann> moin5: can you try to reproduce without autoadmin, just using acls in config and on page?
71 2011-04-08T01:16:18 <moin5> Nope. I tried that but the problem only occurs with AutoAdmin.
72 2011-04-08T01:16:36 <ThomasWaldmann> ah, yeah, just continued reading that on the bug page
73 2011-04-08T01:16:42 *** pkumar
74 2011-04-08T01:17:03 <moin5> kk
75 2011-04-08T01:27:42 <ThomasWaldmann> moin5: i don't see why this should behave strange. maybe something related to __getattr__
76 2011-04-08T01:31:52 <yufra> ThomasWaldmann, ok I think I found the issue and it is probably specific to me... I have two entries in wiki/data/user, both with the same name
77 2011-04-08T01:32:00 <moin5> I wasn't able to find the root cause ... At first I though tit might be as MoinMoin/security/autoadmin.py only extends admin, and that is not used when evaluationg the acls for notifications ...
78 2011-04-08T01:32:17 <yufra> not sure how I managed that, but probably not something that needs to be handled in general
79 2011-04-08T01:36:15 <ThomasWaldmann> moin5: it subclasses the normal Permissions class. so if you use it instead, .read() should behave the same as it is inherited
80 2011-04-08T01:37:36 <moin5> Yes, but something must be diffrent as it doesn't behave in the same way.
81 2011-04-08T01:40:03 <yufra> ThomasWaldmann, now I am getting metadata/UUID issues: http://paste.pocoo.org/show/367556/
82 2011-04-08T01:40:49 <yufra> these probably shouldn't be instances of StoredRouterRevision when being converted, right?
83 2011-04-08T01:42:32 <ThomasWaldmann> no, seems to be unrelated to __getattr__
84 2011-04-08T01:42:57 <ThomasWaldmann> moin5: well, it calls .read() before sending notifies, so something must be wrong
85 2011-04-08T01:45:17 <ThomasWaldmann> yufra: looks broken. i still need to find a good place for the uuid stuff, looks like my last 2 tries don't work.
86 2011-04-08T01:46:07 <moin5> ThomasWaldmann: just to be sure, I look at the same place, we talk about that line: http://hg.moinmo.in/moin/1.9/file/fa44b15b1ff1/MoinMoin/Page.py#l863
87 2011-04-08T01:47:13 <yufra> *nod* If you want any coding/testing done let me know... I'll pop off and on IRC as I have time
88 2011-04-08T01:50:34 <ThomasWaldmann> moin5: yes
89 2011-04-08T01:51:33 <ThomasWaldmann> moin5: that should call autoadmin class and by inheritance methods from default permissions class
90 2011-04-08T01:57:00 <ThomasWaldmann> moin5: if you have a setup that reproduces the problem, maybe put some logging output at these places
91 2011-04-08T01:58:05 <moin5> Thomas: You mean like here http://hg.moinmo.in/moin/1.9/file/fa44b15b1ff1/MoinMoin/security/autoadmin.py#l77
92 2011-04-08T01:59:58 *** yufra
93 2011-04-08T02:03:22 <ThomasWaldmann> moin5: admin() method is only called if it checks for admin rights (when changing acls)
94 2011-04-08T02:03:37 <ThomasWaldmann> before it notifies, it checks for read right
95 2011-04-08T02:05:00 <moin5> Yes: http://hg.moinmo.in/moin/1.9/file/fa44b15b1ff1/MoinMoin/Page.py#l863
96 2011-04-08T02:06:32 <moin5> And the acl of th new page is handled at http://hg.moinmo.in/moin/1.9/file/fa44b15b1ff1/MoinMoin/security/__init__.py#l85
97 2011-04-08T02:11:59 <moin5> And somewhere in all these functions it doesn't use the #acl set by an AutoAdmin, but it does use the #acl from someone with admin in acl_rights_before.
98 2011-04-08T02:20:32 <ThomasWaldmann> anyway, i need bed() permission now :)
99 2011-04-08T02:22:43 <moin5> Me too, I hope it's correctly subclassed.
100 2011-04-08T03:15:59 *** eSyr
101 2011-04-08T03:17:55 *** eSyr
102 2011-04-08T03:43:22 *** moin5
103 2011-04-08T03:57:43 *** hardy89
104 2011-04-08T04:13:31 *** chandan_kumar
105 2011-04-08T04:15:30 <chandan_kumar> ThomasWaldmann, ping
106 2011-04-08T04:18:21 *** chandan_kumar
107 2011-04-08T04:38:43 *** ronny
108 2011-04-08T04:51:40 *** ronny
109 2011-04-08T05:06:17 *** eSyr
110 2011-04-08T05:06:24 *** eSyr
111 2011-04-08T05:51:29 *** Marchael
112 2011-04-08T06:00:48 *** eSyr
113 2011-04-08T06:05:24 <Marchael> moin
114 2011-04-08T06:14:11 *** Marchael
115 2011-04-08T06:14:17 *** Marchael
116 2011-04-08T06:23:21 *** eSyr
117 2011-04-08T06:33:46 *** Marchael
118 2011-04-08T06:51:19 *** Marchael
119 2011-04-08T07:16:57 *** m4k3r
120 2011-04-08T07:44:28 *** m4k3r
121 2011-04-08T08:18:56 <ThomasWaldmann> moin
122 2011-04-08T08:26:42 <dreimark> moin
123 2011-04-08T09:32:58 *** andialbrecht_
124 2011-04-08T09:35:08 <CIA-25> Reimar Bauer <rb.proj AT googlemail DOT com> default * 563:de89a01a1bc2 extensions/data/plugin/action/mailto.py: action.mailto: shows the superuser all email addresses of wikiusers in mailto format
125 2011-04-08T09:59:05 * dreimark dream from an advanced ui so that the user knows which additional functions he has because of attributes, like superuser
126 2011-04-08T10:14:28 * Marchael writining proposal for last 3 days and already rewrited it with blank page 4 times
127 2011-04-08T10:26:09 *** MattMaker
128 2011-04-08T10:29:20 *** MattMaker
129 2011-04-08T10:56:06 *** Marchael
130 2011-04-08T11:30:27 *** sinha
131 2011-04-08T11:55:56 *** cosmo_
132 2011-04-08T11:56:05 <cosmo_> moin :)
133 2011-04-08T11:56:24 *** cosmo_
134 2011-04-08T12:39:17 *** sinha
135 2011-04-08T12:39:23 *** greg_f
136 2011-04-08T12:42:02 *** moin3
137 2011-04-08T12:42:49 <moin3> ThomasWaldmann: I have put my findings on http://moinmo.in/MoinMoinBugs/ACLNotWorkingAutoAdminNewPageMailNotification .
138 2011-04-08T12:43:29 <moin3> (But I need to get some food now first.)
139 2011-04-08T12:57:56 <ThomasWaldmann> moin3: well, what you found for reusing page objects doesn't explain why it does not work with autoadmin
140 2011-04-08T12:58:17 <ThomasWaldmann> or why it works when not using autoadmin
141 2011-04-08T12:58:45 <ThomasWaldmann> also, without that reuse it might get slower, acls are checked rather often
142 2011-04-08T13:18:40 *** jek
143 2011-04-08T13:28:24 *** Marchael
144 2011-04-08T13:28:51 <moin3> ThomasWaldmann: Yes, it is not a real fix for the problem. But did you read my guess on why it happens?
145 2011-04-08T14:00:50 <ThomasWaldmann> yes, but as I said, that is MAYBE another problem.
146 2011-04-08T14:01:12 <ThomasWaldmann> we still need to point at the place why it misbehaves with the one and works with the other
147 2011-04-08T14:01:43 <ThomasWaldmann> if you suspect it is the admin() call, maybe do the Permissions.xxx() call earlier, so it happens in any case
148 2011-04-08T14:01:52 <ThomasWaldmann> moin3:
149 2011-04-08T14:21:31 <moin3> ThomasWaldmann. I tried with Permissions.__getattr__(self, 'admin')(pagename) in admin() of autoadmin but it didn't solve the problem.
150 2011-04-08T14:21:56 *** m4k3r
151 2011-04-08T15:06:24 *** m4k3r_
152 2011-04-08T15:07:40 *** m4k3r
153 2011-04-08T15:21:04 *** Marchael1
154 2011-04-08T15:21:09 *** Marchael
155 2011-04-08T15:24:55 *** sinha
156 2011-04-08T16:29:49 *** andialbrecht
157 2011-04-08T16:32:34 *** Marchael
158 2011-04-08T16:32:46 *** Marchael1
159 2011-04-08T16:58:45 *** sinha
160 2011-04-08T17:04:07 *** Marchael
161 2011-04-08T17:04:13 *** Marchael
162 2011-04-08T17:51:36 *** pkumar
163 2011-04-08T18:20:16 <ThomasWaldmann> reminder: Summer of Code applicants have about 2.5hours left until 19:00 UTC
164 2011-04-08T18:21:16 *** sinha
165 2011-04-08T18:21:38 <ThomasWaldmann> try to avoid mission critical issues by not depending on melange, your web connection, your pc, whatever in the last hour or minute
166 2011-04-08T18:22:17 <ThomasWaldmann> so, submit something reasonable early, not last minute.
167 2011-04-08T18:24:02 *** jek
168 2011-04-08T18:25:34 <ThomasWaldmann> hi jek
169 2011-04-08T18:29:47 <jek> howdy
170 2011-04-08T18:30:07 <ThomasWaldmann> soon we'll know :)
171 2011-04-08T18:36:57 *** Marchael
172 2011-04-08T18:37:29 *** Marchael
173 2011-04-08T18:41:48 *** m4k3r_
174 2011-04-08T18:55:53 *** moin3
175 2011-04-08T19:01:11 *** sinha
176 2011-04-08T19:29:24 <ronny> soup
177 2011-04-08T19:39:09 <ThomasWaldmann> steak :)
178 2011-04-08T19:51:35 *** greg_f
179 2011-04-08T20:46:43 *** m4k3r
180 2011-04-08T21:09:21 <ThomasWaldmann> ok, looks like application deadline is over
181 2011-04-08T21:09:47 <Marchael> 8 minutes ^:)
182 2011-04-08T21:10:04 <pkumar> Yup!
183 2011-04-08T21:12:40 <ThomasWaldmann> looks like our stuff was somehow most attractive for students from india :)
184 2011-04-08T21:14:02 * Marchael knows much about indian coding
185 2011-04-08T21:14:22 <Marchael> it`s joke :)
186 2011-04-08T21:14:40 <pkumar> Seems like many applicants from India.
187 2011-04-08T21:17:19 <pkumar> What would be the approx count of applicants?
188 2011-04-08T21:17:21 *** sinha
189 2011-04-08T21:18:14 <Marchael> looks like deadline increase! :)
190 2011-04-08T21:18:19 <Marchael> time machine
191 2011-04-08T21:20:07 <Marchael> countdown continue increasing :)
192 2011-04-08T21:20:43 <ThomasWaldmann> can one still submit?
193 2011-04-08T21:21:04 <pkumar> Not update at least.
194 2011-04-08T21:21:26 <Marchael> I don`t know, looks like melange bug or Google just waiting for other proposals
195 2011-04-08T21:21:28 <ThomasWaldmann> Marchael: btw, the notification email told me you submitted a NEW proposal at 18:57 UTC
196 2011-04-08T21:21:43 <Marchael> o_0
197 2011-04-08T21:22:33 <Marchael> no, I submitted my proposal about 18:00 UTC
198 2011-04-08T21:22:58 <ThomasWaldmann> strange
199 2011-04-08T21:23:37 <ThomasWaldmann> maybe it took an hour to create all that notification spam
200 2011-04-08T21:24:23 <ThomasWaldmann> ok, the good news for you students is that we do not have as many applications as usual
201 2011-04-08T21:24:46 <pkumar> That is comforting.
202 2011-04-08T21:24:47 <Marchael> and bad?
203 2011-04-08T21:24:59 <ThomasWaldmann> maybe due to the fact that it was a bit harder this year to just copy and paste some stuff together :)
204 2011-04-08T21:25:16 <sinha> its closed now !
205 2011-04-08T21:25:32 <ThomasWaldmann> the (maybe?) bad news is that we have multiple proposals for same topics
206 2011-04-08T21:26:22 <ThomasWaldmann> we are allowed to do multiple projects for same topic though, if we think it should be done
207 2011-04-08T21:27:39 <sinha> how many projects will be mentored (selected) ?
208 2011-04-08T21:27:53 <ThomasWaldmann> btw, does someone now a person named jesingani?
209 2011-04-08T21:28:31 <ThomasWaldmann> sinha: we do not know yet (and we also do not know yet how many slots we will get)
210 2011-04-08T21:29:16 <sinha> okay
211 2011-04-08T21:30:02 <ThomasWaldmann> so, for the next days, keep cool, do impress us by some little moin fixes, look at stuff, communicate with us
212 2011-04-08T21:31:12 <pkumar> How many students are assigned to a project in general?
213 2011-04-08T21:32:13 <sinha> ThomasWaldmann: I am thinking of going through the documentations (moin,jinja2 etc) more clearly and will go through the functions implementation on which i may have to work ? is it good ? or should i do some coding stuff ?
214 2011-04-08T21:33:00 <ThomasWaldmann> pkumar: usually one. but for some stuff it might make sense doing it multiple times.
215 2011-04-08T21:34:04 <ThomasWaldmann> either to choose the better one in the end, or because the proposals are for same big topic, but internally different enough in detail
216 2011-04-08T21:37:01 <pkumar> ThomasWaldmann: What do you say of the idea about having all the tests inside a single dir?
217 2011-04-08T21:37:36 <ThomasWaldmann> http://blog.jitbit.com/2011/04/chinese-magic-drive.html lol
218 2011-04-08T21:37:40 <pkumar> Though it may take some initial effort.
219 2011-04-08T21:38:48 <sinha> yeah seen that today,chinese really do such nice things :P
220 2011-04-08T21:38:57 <ThomasWaldmann> matter of taste. but we have bigger issues with the tests than that.
221 2011-04-08T21:39:22 <Marchael> ;D
222 2011-04-08T21:42:07 <pkumar> ThomasWaldmann:could you direct me to some link where I could know more about leaking problems of current tests
223 2011-04-08T21:48:27 <ThomasWaldmann> $ top
224 2011-04-08T21:48:39 <ThomasWaldmann> then just run them
225 2011-04-08T21:48:53 <ThomasWaldmann> there is also a related issue on bitbucket issue tracker
226 2011-04-08T21:49:05 <Marchael> htop is rather better them top
227 2011-04-08T21:53:44 <pkumar> yup, I just looked both of it.
228 2011-04-08T21:53:53 <pkumar> htop seems better.
229 2011-04-08T21:56:21 <pkumar> http://en.wikipedia.org/wiki/Htop
230 2011-04-08T22:07:18 *** jek
231 2011-04-08T22:07:18 *** jek
232 2011-04-08T22:19:59 *** cosmos_thought
233 2011-04-08T22:23:44 *** sinha
234 2011-04-08T22:27:20 *** Marchael
235 2011-04-08T22:29:35 *** cosmo_
236 2011-04-08T23:02:58 *** pkumar
237 2011-04-08T23:07:05 *** m4k3r
238 2011-04-08T23:07:22 *** m4k3r
239 2011-04-08T23:10:49 *** m4k3r
240 2011-04-08T23:11:22 *** m4k3r
241 2011-04-08T23:13:11 *** m4k3r
242 2011-04-08T23:40:10 *** m4k3r
243 2011-04-08T23:51:37 *** m4k3r
244