1 2011-05-12T00:03:11 *** grzywacz
2 2011-05-12T00:38:47 *** RogerHaase
3 2011-05-12T05:38:55 *** Marchael
4 2011-05-12T05:39:34 <Marchael> moin
5 2011-05-12T07:11:46 *** Marchael
6 2011-05-12T07:14:13 *** Marchael
7 2011-05-12T08:11:41 *** Marchael
8 2011-05-12T08:12:04 *** Marchael
9 2011-05-12T09:17:06 *** sinha
10 2011-05-12T09:22:41 <dreimark> moin
11 2011-05-12T09:22:44 <dreimark> hi sinha
12 2011-05-12T09:24:42 <sinha> hi
13 2011-05-12T09:25:05 <sinha> i wanted to discuss few things
14 2011-05-12T09:25:18 <sinha> like from which feature to start first
15 2011-05-12T09:27:05 <dreimark> sinha: have you looked at http://etherpad.osuosl.org/moin-2-ui
16 2011-05-12T09:27:48 <dreimark> we should first have a plan how to implement anything of that
17 2011-05-12T09:27:56 <sinha> yes
18 2011-05-12T09:28:14 <sinha> i was trying to look into the functions for global history
19 2011-05-12T09:28:53 <sinha> in the file frontend/views/py there is a function called akash.reflectperfection@gmail.com
20 2011-05-12T09:28:55 <sinha> sry
21 2011-05-12T09:29:19 <sinha> in the file frontend/views/py there is a function "history = flaskg.storage.history(item_name='') "
22 2011-05-12T09:29:35 <sinha> dreimark: ^ where is its implementation ?
23 2011-05-12T09:32:02 * dreimark looks
24 2011-05-12T09:34:05 <dreimark> sinha: http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/MoinMoin/storage/__init__.py#l168
25 2011-05-12T09:34:27 <dreimark> btw. do you have eclipse and pydev or some other tool to search in the source?
26 2011-05-12T09:35:16 * dreimark is looking in more details
27 2011-05-12T09:36:42 <dreimark> sinha: please show me the line where you got that flaskg.storage.history(item_name='')
28 2011-05-12T09:38:26 <sinha> dreimark: http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/MoinMoin/apps/frontend/views.py#l592
29 2011-05-12T09:41:22 <dreimark> ok http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/MoinMoin/storage/backends/indexing.py#l65
30 2011-05-12T09:42:35 <dreimark> or http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/MoinMoin/storage/backends/indexing.py#l385
31 2011-05-12T09:44:28 * dreimark looks at the order
32 2011-05-12T09:47:24 *** Marchael
33 2011-05-12T09:53:05 <sinha> dreimark: For pagination of the result i need to limit the number of results
34 2011-05-12T09:53:17 <sinha> as in that function there is an option for offset
35 2011-05-12T09:56:31 <sinha> i guess, first i will go through the functions implemented and try to understand them, then will come up with a implementation plan.
36 2011-05-12T09:57:06 <dreimark> sinha: if there is no offset yet we have to implement it
37 2011-05-12T09:57:24 <sinha> yes by number of results
38 2011-05-12T09:57:27 <sinha> as done in SQL
39 2011-05-12T09:57:44 <dreimark> try to start with which function is needed or where implementation is done
40 2011-05-12T09:57:51 <dreimark> we can help editing in the pad too
41 2011-05-12T09:57:52 <sinha> current offset is on the basis of timestamp
42 2011-05-12T09:58:01 <dreimark> but it should not everything come from us
43 2011-05-12T09:58:19 <sinha> yes
44 2011-05-12T09:58:47 <dreimark> at the moment we have only the bookmark functionality of 1.9
45 2011-05-12T09:59:05 <sinha> i haven't understood that functionality
46 2011-05-12T09:59:11 <sinha> i set a bookmark on a page
47 2011-05-12T09:59:17 <dreimark> look logged in at http://moinmo.in/RecentChanges
48 2011-05-12T09:59:30 <dreimark> and clickl a bookmark at e.g. 10th
49 2011-05-12T10:00:30 <dreimark> at first you should recognize icons left hand changes
50 2011-05-12T10:01:17 <dreimark> sinha: right of each date there is a "Set bookmark"
51 2011-05-12T10:01:32 <dreimark> e.g. http://moinmo.in/4ct10n/bookmark/RecentChanges?action=bookmark&time=1305067503000000
52 2011-05-12T10:01:46 <sinha> dreimark: yes i have clicked on one after 10th
53 2011-05-12T10:02:01 <sinha> and all the below results dissapear
54 2011-05-12T10:02:22 <sinha> but when i again click for the history of last 14 days
55 2011-05-12T10:02:32 <sinha> i can still see the changes of 10th
56 2011-05-12T10:02:47 <dreimark> yes but the amount of the diff is different
57 2011-05-12T10:02:57 <dreimark> you see only diffs after 10th
58 2011-05-12T10:03:10 <dreimark> if a page was edited every day
59 2011-05-12T10:03:23 <dreimark> you see now only diffs from 10th to 12th
60 2011-05-12T10:04:39 <dreimark> on bottom the legend explains it
61 2011-05-12T10:04:49 <dreimark> [UPDATED]
62 2011-05-12T10:04:51 <dreimark> marks pages edited since you set your bookmark (click for a bookmark diff)
63 2011-05-12T10:04:57 <dreimark> marks pages created since you set your bookmark, and were not edited after creation
64 2011-05-12T10:05:45 <sinha> yes i get it
65 2011-05-12T10:06:28 <dreimark> it is very useful if you use as entry page the recent changes page of a wiki
66 2011-05-12T10:06:40 <dreimark> by that you know all the time what is going on
67 2011-05-12T10:06:52 *** Marchael
68 2011-05-12T10:07:55 <sinha> when i again click on RecentChanges it only shows the results after 10th
69 2011-05-12T10:07:56 <sinha> but when i click for last 7 or 14 days all of them shown
70 2011-05-12T10:07:56 <sinha> Bookmark is also done through offset, i guess ?
71 2011-05-12T10:08:39 <dreimark> http://hg.moinmo.in/moin/1.9/file/c162353f99ed/MoinMoin/macro/RecentChanges.py
72 2011-05-12T10:09:07 <dreimark> this is the old macro - without nice separation between code and template
73 2011-05-12T10:11:19 <dreimark> bookmark_usecs = request.user.getBookmark() or 0
74 2011-05-12T10:11:47 <dreimark> the bookmarks time stamp was in the user objcet/profile stored
75 2011-05-12T10:12:03 <dreimark> http://hg.moinmo.in/moin/1.9/file/c162353f99ed/MoinMoin/macro/RecentChanges.py#l254
76 2011-05-12T10:14:04 <dreimark> the layout of the template should may be at least have the same functionality as that old RC
77 2011-05-12T10:14:10 <dreimark> and functions too
78 2011-05-12T10:14:15 <dreimark> or better :)
79 2011-05-12T10:14:19 <sinha> yes
80 2011-05-12T10:14:25 <sinha> i also need to go through the user profiles implementation in moin2 and administration modules
81 2011-05-12T10:14:46 <sinha> to get more understanding about the overall working
82 2011-05-12T10:14:50 <dreimark> yes
83 2011-05-12T10:15:08 <dreimark> i think you should early start to add some ideas to the pad
84 2011-05-12T10:15:27 <dreimark> because we can help to refine or help undrestanding stuff
85 2011-05-12T10:15:45 <sinha> i will do it soon
86 2011-05-12T10:15:52 <dreimark> i mean it is not so good if you wait to write down only after you understand everything
87 2011-05-12T10:15:53 <sinha> i just need few more hours
88 2011-05-12T10:16:32 <sinha> okay
89 2011-05-12T10:17:58 <dreimark> sinha: can you run irc over a server, so that you can be online here all the day?
90 2011-05-12T10:18:21 <dreimark> at least the client?
91 2011-05-12T10:19:05 <sinha> the thing is i have moved back to my home from my college
92 2011-05-12T10:19:35 <sinha> okay i will arrange something
93 2011-05-12T10:26:42 <dreimark> history(self, reverse=True, item_name=u'', start=None, end=None) method of MoinMoin.storage.backends.router.RouterBackend instance
94 2011-05-12T10:32:36 <dreimark> sinha: ^
95 2011-05-12T10:35:56 <sinha> dreimark: this function is defined under class ItemIndex
96 2011-05-12T10:36:18 <sinha> in the file storage/backends/indexing.py
97 2011-05-12T10:42:19 <sinha> i guess this is the parent class of RouterBackend class
98 2011-05-12T10:42:24 <sinha> bbl
99 2011-05-12T10:42:29 *** sinha
100 2011-05-12T10:42:30 <dreimark> yes
101 2011-05-12T10:42:36 <dreimark> too late
102 2011-05-12T11:11:51 <ThomasWaldmann> moin
103 2011-05-12T11:12:27 <Marchael> hi ThomasWaldmann
104 2011-05-12T11:34:29 *** Marchael
105 2011-05-12T12:02:20 *** jek
106 2011-05-12T12:06:04 *** jek
107 2011-05-12T12:46:45 *** greg_f
108 2011-05-12T13:29:15 *** m4k3r
109 2011-05-12T14:46:30 *** m4k3r
110 2011-05-12T15:02:37 *** Marchael
111 2011-05-12T15:35:21 *** sinha
112 2011-05-12T16:08:31 *** sinha
113 2011-05-12T17:50:31 <ThomasWaldmann> bbl
114 2011-05-12T18:33:48 *** CIA-66
115 2011-05-12T18:35:31 *** jek
116 2011-05-12T18:35:31 *** jek
117 2011-05-12T19:02:22 *** CIA-66
118 2011-05-12T19:12:22 *** sinha
119 2011-05-12T19:21:44 *** CIA-68
120 2011-05-12T19:38:58 *** greg_f
121 2011-05-12T20:07:42 *** grzywacz
122 2011-05-12T20:07:42 *** grzywacz
123 2011-05-12T20:25:20 *** ronny
124 2011-05-12T20:27:55 *** ronny
125 2011-05-12T21:21:48 *** CIA-68
126 2011-05-12T21:38:42 *** CIA-69
127 2011-05-12T22:04:52 <sinha> where is the ACLs defined
128 2011-05-12T22:05:03 <sinha> like which user can access what stuff
129 2011-05-12T22:08:38 <dreimark> sinha: http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/MoinMoin/security/__init__.py
130 2011-05-12T22:08:59 <dreimark> l96 ++
131 2011-05-12T22:09:51 * sinha looking
132 2011-05-12T22:10:28 <sinha> dreimark: okay this is the backend and in which file we can actually specify which user can perform what actions
133 2011-05-12T22:11:16 <dreimark> you verif by checking e.g. if user.may.read(pagename)
134 2011-05-12T22:11:22 <dreimark> verify
135 2011-05-12T22:12:12 <sinha> suppose i am a wiki admin and want to add privileges to any user, then which file i would be editing
136 2011-05-12T22:13:14 <dreimark> http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/MoinMoin/apps/frontend/views.py#l711
137 2011-05-12T22:13:41 <dreimark> sinha: if you want to set default rights you do that in wikiconfig.py
138 2011-05-12T22:14:09 <sinha> i want to create a user with admin privileges
139 2011-05-12T22:14:19 <sinha> yes, looking at moin2 docs
140 2011-05-12T22:14:39 <dreimark> sinha: admin privilege is a acl right of an item
141 2011-05-12T22:14:42 <dreimark> not of an user
142 2011-05-12T22:15:00 <dreimark> it just means the user has the right on the item to change acls
143 2011-05-12T22:15:02 <sinha> like an example given here http://static.moinmo.in/m2/html/admin/configure.html#acl-for-functions
144 2011-05-12T22:16:40 <dreimark> sinha: ok, we need ThomasWaldmann for that
145 2011-05-12T22:16:51 <dreimark> i am not sure if that is already completly implemented
146 2011-05-12T22:17:14 <sinha> okay and in the docs also it is also not that much clear
147 2011-05-12T22:19:13 <dreimark> the textcha could also be disabled by adding a user to a trusted editor group
148 2011-05-12T22:19:42 <sinha> and how to do that
149 2011-05-12T22:19:48 <dreimark> so we should maybe exchange that example too, that could be misleading
150 2011-05-12T22:23:15 <dreimark> sinha: i was not uptodate with http://hg.moinmo.in/moin/2.0/log?rev=textcha
151 2011-05-12T22:25:54 <dreimark> sinha: looks like you can give a user that as default right now
152 2011-05-12T22:26:41 * sinha still wondering where to make the change
153 2011-05-12T22:27:10 <dreimark> what exactly
154 2011-05-12T22:27:13 <sinha> dreimark: i am searching for some kind of config files where i can add those rights
155 2011-05-12T22:27:34 <sinha> like i want to add similar line "u"SuperMan:read,write,create,destroy,admin All:read,write""
156 2011-05-12T22:27:43 <dreimark> read http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/wikiconfig.py
157 2011-05-12T22:28:06 <dreimark> keep care of line 86++
158 2011-05-12T22:28:17 <dreimark> otherwise you submit that file
159 2011-05-12T22:30:22 <sinha> dreimark: i guess somewhat here http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/MoinMoin/storage/backends/__init__.py#l56
160 2011-05-12T22:34:24 <dreimark> acl_functions = u'+YourName:superuser TrustedEditorGroup:notextcha'
161 2011-05-12T22:34:48 <dreimark> instead of TrustedEditorGroup you could also use your name
162 2011-05-12T22:35:21 <dreimark> and for content
163 2011-05-12T22:35:23 <dreimark> http://static.moinmo.in/m2/html/admin/configure.html#acls-for-contents
164 2011-05-12T22:36:17 <dreimark> e.g. before=u'YourName:read,write,create,destroy,admin',
165 2011-05-12T22:36:46 <dreimark> this string becomes parsed
166 2011-05-12T22:37:10 <sinha> dreimark: this above line acl_functions=u'... has to be written in the corresponding function in views.py ?
167 2011-05-12T22:37:41 <dreimark> NO
168 2011-05-12T22:38:04 <dreimark> it must be written in your wikiconfig_editme
169 2011-05-12T22:41:08 <sinha> and that above for content in this file http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/MoinMoin/storage/backends/__init__.py#l56
170 2011-05-12T22:42:44 <dreimark> sinha: http://paste.pocoo.org/show/387764/
171 2011-05-12T22:43:10 <dreimark> just read bottom of wikiconfig and create your developer setup
172 2011-05-12T22:44:10 <dreimark> before=u'All:'
173 2011-05-12T22:44:31 <dreimark> means noone has any access rights before acls set on an item
174 2011-05-12T22:44:55 <dreimark> with before rights you have absolute rights
175 2011-05-12T22:45:29 <dreimark> they overwrite exising acl definitions for an item
176 2011-05-12T22:46:16 <dreimark> without that you can setup rights on an item noone is able to reset
177 2011-05-12T22:46:29 <dreimark> default=u'All:read,write,create', # mostly harmless by default
178 2011-05-12T22:46:49 <dreimark> means All users can create read and write to an item
179 2011-05-12T22:47:33 <sinha> yeah thats file but i have also other attributes defined like destroy and admin
180 2011-05-12T22:47:39 <dreimark> after adds rights which are processed after the rights on the item
181 2011-05-12T22:48:07 <dreimark> sinha: the other attributes are dependent to the storage backend
182 2011-05-12T22:48:34 <dreimark> so they need to be defined at initialisation of the backend
183 2011-05-12T22:48:58 <ThomasWaldmann> re
184 2011-05-12T22:49:38 <dreimark> you need a copy of the definition in your wikiconfig_editme for
185 2011-05-12T22:49:41 <dreimark> the http://hg.moinmo.in/moin/2.0/file/bac248bcf98c/wikiconfig.py#l41
186 2011-05-12T22:50:22 <ThomasWaldmann> in moin2, if you want to read an item/revision, you usually just try
187 2011-05-12T22:50:43 <ThomasWaldmann> either it'll work, or you'll get an AccessDeniedException (or so)
188 2011-05-12T22:51:32 <dreimark> it depends if you want destinguis not exists or no access
189 2011-05-12T22:52:02 <ThomasWaldmann> you'll get an exception for both
190 2011-05-12T22:57:32 <sinha> and one more strange thing i observed, if i delete a item, again i get redirected to that item page but there i get a message that "this item is not present.Create it ?"
191 2011-05-12T22:57:50 <sinha> ThomasWaldmann: ^ is this intentionally done ?
192 2011-05-12T22:59:37 <ThomasWaldmann> this it to show that it's not there any more :)
193 2011-05-12T22:59:41 <dreimark> sinha: depends, where should it redirect to?
194 2011-05-12T22:59:59 <dreimark> it just can be recreated, content type changed
195 2011-05-12T23:00:04 <dreimark> etc
196 2011-05-12T23:00:41 <sinha> to the page to create new items, i guess OR just a message like this item has been deleted
197 2011-05-12T23:02:17 <dreimark> yeah the mesg is missing but the link i think is good
198 2011-05-12T23:02:34 <dreimark> because you must see it from the point of someone reading an item
199 2011-05-12T23:02:44 <dreimark> and having there a not existing link too
200 2011-05-12T23:02:53 <dreimark> he can recreate the item then
201 2011-05-12T23:03:52 <sinha> yes agreed
202 2011-05-12T23:06:02 <sinha> should keep it in list of TODOs ?
203 2011-05-12T23:06:48 <dreimark> yeah at the end if we have time left b
204 2011-05-12T23:08:45 <sinha> and also do we have to create groups into config file itself ?
205 2011-05-12T23:09:27 <dreimark> sinha: various ways
206 2011-05-12T23:09:32 <dreimark> there or in meta
207 2011-05-12T23:09:36 <dreimark> of an item
208 2011-05-12T23:11:29 <dreimark> at the time we have a comfortable meta editor
209 2011-05-12T23:11:41 <dreimark> everyone usually will prefer it to setup there
210 2011-05-12T23:12:20 <sinha> okay
211 2011-05-12T23:55:39 <ronny> hi
212 2011-05-12T23:55:57 <ronny> where is that testing student ? :P
213 2011-05-12T23:57:07 <dreimark> both are not here
214 2011-05-12T23:57:48 <ThomasWaldmann> ronny: india, both
215 2011-05-12T23:58:33 <sinha> one guy form india still awaking :P
216 2011-05-12T23:58:39 <sinha> s/form/from
217 2011-05-12T23:59:10 <ThomasWaldmann> hehe :)