1 2011-03-23T00:15:57 <dreimark> grad: i think you can co mentor but not be a main mentor
2 2011-03-23T00:16:23 <dreimark> because you don't be familiar with moin-2
3 2011-03-23T00:23:39 <dreimark> we don't have seen you much interacting with the community too
4 2011-03-23T00:26:49 <dreimark> .oO sinha we had something similiar before
5 2011-03-23T00:27:42 <dreimark> what do we do now with the free space?
6 2011-03-23T00:50:32 <dreimark> sinha: http://www.web-toolbox.net/webtoolbox/menues/menue-bsp11/menue-bsp11.htm something like that for subitemes index would be nice
7 2011-03-23T00:51:03 <dreimark> with mimetype dependent icons
8 2011-03-23T01:08:38 *** cdom
9 2011-03-23T01:25:30 *** grad
10 2011-03-23T01:51:38 *** cdom
11 2011-03-23T02:02:06 *** cdom
12 2011-03-23T03:03:30 *** sl33k_
13 2011-03-23T03:57:05 *** sl33k_
14 2011-03-23T04:38:33 *** Marchael
15 2011-03-23T05:18:41 *** Marchael
16 2011-03-23T05:54:58 *** Marchael
17 2011-03-23T06:01:35 *** Marchael
18 2011-03-23T06:04:20 *** cdom
19 2011-03-23T06:34:51 *** cdom
20 2011-03-23T07:24:44 *** Marchael
21 2011-03-23T07:29:01 *** Marchael
22 2011-03-23T07:41:50 *** andialbrecht_
23 2011-03-23T07:43:37 *** kasun
24 2011-03-23T07:45:50 *** cdom
25 2011-03-23T07:46:53 *** cdom
26 2011-03-23T08:01:40 *** kasun
27 2011-03-23T08:06:55 *** cdom
28 2011-03-23T08:21:05 *** andialbrecht
29 2011-03-23T08:46:45 *** kasun
30 2011-03-23T08:51:15 *** gwork
31 2011-03-23T09:11:36 <sl33k_> Why i dont see the changes i make after running from the workdir?
32 2011-03-23T09:21:15 *** sinha_
33 2011-03-23T09:25:10 *** sinha_
34 2011-03-23T09:37:42 <dreimark> moin
35 2011-03-23T09:37:58 <dreimark> sl33k_: rephrase please, what do you mean by "see the changes"
36 2011-03-23T09:40:00 <sl33k_> dreimark: i changed some easy code in my workdir, then quickinstalled and ran the server, but no changes i made i see
37 2011-03-23T09:40:23 <sl33k_> *that i made
38 2011-03-23T09:42:00 <dreimark> sl33k_: you need only once run ./quickinstall
39 2011-03-23T09:42:42 <dreimark> do you see a new .pyc file of your changed code file?
40 2011-03-23T09:43:28 <dreimark> if not then you may have a bug in your modifications
41 2011-03-23T09:43:36 <dreimark> and it can't be compiled
42 2011-03-23T09:44:20 <dreimark> sl33k_: diff of your changes on pastebin please
43 2011-03-23T09:47:28 <sl33k_> dreimark: http://paste.pocoo.org/show/358175/ incomplete code?
44 2011-03-23T09:50:27 <sl33k_> and no .pyc
45 2011-03-23T10:02:43 <dreimark> sl33k_: line 26?
46 2011-03-23T10:02:51 <dreimark> there are some lines missing
47 2011-03-23T10:03:58 <dreimark> you can also ask pylint opinion e.g. moin-2.0$ pylint MoinMoin/apps/frontend/views.py
48 2011-03-23T10:04:49 <dreimark> there should be no new E of your lines added
49 2011-03-23T10:04:50 <sl33k_> dreimark: it is incomplete, i am writing code for getting items a user has contributed too
50 2011-03-23T10:05:14 <dreimark> well it can only compile if it is functional valid code
51 2011-03-23T10:05:33 <dreimark> and if it can't you don't see some of your changes
52 2011-03-23T10:06:48 <dreimark> xorAxAx: do you know some pylint report generator for bug reports
53 2011-03-23T10:06:58 <dreimark> based on E:?
54 2011-03-23T10:07:09 <dreimark> or a unit test which covers that?
55 2011-03-23T10:07:11 <sl33k_> yea, i am somewhat blocked in this task. this is login user's contributed items? where do i look for metadata?
56 2011-03-23T10:07:43 <sl33k_> also do i need a new template?
57 2011-03-23T10:08:19 <xorAxAx> dreimark: i dont understand
58 2011-03-23T10:09:17 <dreimark> xorAxAx: if we run pylint it may show errors and warnings
59 2011-03-23T10:10:08 <dreimark> do you know a tool which can create bitbucket issue reports for each error
60 2011-03-23T10:11:40 <dreimark> sl33k_: which IDE do you use?
61 2011-03-23T10:11:49 <sl33k_> gedit
62 2011-03-23T10:13:11 <dreimark> do you have considered to use eclipse and pydev for example?
63 2011-03-23T10:13:43 <sl33k_> i have emacs, not much familiar with it
64 2011-03-23T10:14:55 <sl33k_> installing pydev
65 2011-03-23T10:17:47 <dreimark> install also bpython
66 2011-03-23T10:18:22 <dreimark> that can be helpfull too
67 2011-03-23T10:18:54 <sl33k_> ok
68 2011-03-23T10:28:12 <dreimark> sl33k_: if you have an account on a moin-2 wiki
69 2011-03-23T10:28:18 <dreimark> and you create a test page
70 2011-03-23T10:28:32 <dreimark> the meta of the revision looks like this
71 2011-03-23T10:28:40 <dreimark> http://paste.pocoo.org/show/358190/
72 2011-03-23T10:28:56 <dreimark> you have to look for userid of each revision
73 2011-03-23T10:29:36 <dreimark> use the configured attribute
74 2011-03-23T10:29:39 <dreimark> from MoinMoin.config import USERID
75 2011-03-23T10:31:44 <dreimark> sl33k_: moin shelll supports ipython, so install that too
76 2011-03-23T10:33:28 <sl33k_> dreimark: how would i roughly get all the pages i contributed to? is there a need for separate template?
77 2011-03-23T10:34:40 <xorAxAx> dreimark: no, i think it would be rather pointless
78 2011-03-23T10:35:32 <dreimark> sl33k_: you get all items similiar to _orphans
79 2011-03-23T10:36:04 <dreimark> and then you have to look at your own USERID and collect where it is used on this items
80 2011-03-23T10:37:36 *** Marchael
81 2011-03-23T10:38:41 <dreimark> sl33k_: you have to look on all revisions of the item
82 2011-03-23T10:39:05 <Marchael> moin
83 2011-03-23T10:40:00 <dreimark> sl33k_: you can search for "get_revision"
84 2011-03-23T10:40:07 <dreimark> bbl
85 2011-03-23T10:40:16 <sl33k_> dreimark: cool
86 2011-03-23T10:50:15 <dreimark> if you want to try out some stuff on the interpreter looks at >moin shell
87 2011-03-23T10:50:59 <dreimark> htg
88 2011-03-23T10:51:56 *** Marchael
89 2011-03-23T10:52:03 *** Marchael
90 2011-03-23T10:54:49 *** greg_f
91 2011-03-23T11:02:06 *** grad
92 2011-03-23T11:13:14 *** Marchael
93 2011-03-23T11:14:16 *** Marchael
94 2011-03-23T12:56:15 *** sl33k_
95 2011-03-23T13:27:56 *** ronny
96 2011-03-23T13:34:01 *** m4k3r
97 2011-03-23T15:28:54 *** ErSame
98 2011-03-23T16:03:42 *** Marchael
99 2011-03-23T17:04:54 *** Marchael
100 2011-03-23T17:16:20 *** Marchael
101 2011-03-23T17:24:30 *** Marchael
102 2011-03-23T17:41:57 *** m4k3r
103 2011-03-23T17:47:31 *** Marchael
104 2011-03-23T17:52:01 *** Marchael
105 2011-03-23T18:24:08 *** kasun
106 2011-03-23T18:37:17 *** Marchael
107 2011-03-23T18:37:41 *** Marchael
108 2011-03-23T18:48:49 *** Marchael
109 2011-03-23T18:49:42 *** sl33k_
110 2011-03-23T18:50:10 *** sl33k_
111 2011-03-23T18:50:45 *** andialbrecht_
112 2011-03-23T18:51:48 *** Marchael
113 2011-03-23T19:10:02 *** Marchael
114 2011-03-23T19:23:23 *** greg_f
115 2011-03-23T19:25:05 *** andialbrecht
116 2011-03-23T19:27:14 *** sinha_
117 2011-03-23T19:38:47 <sinha_> ThomasWaldmann: Hello
118 2011-03-23T19:38:50 <sinha_> ThomasWaldmann: I tried changing the item view on top bar you can see it here http://web.iiit.ac.in/~akash.sinhaug08/moin/Home.html
119 2011-03-23T19:38:52 <sinha_> ThomasWaldmann: If this thing is cool..i guess we can workout on the items at footer part
120 2011-03-23T19:42:55 *** sinha__
121 2011-03-23T19:43:34 *** sinha__
122 2011-03-23T19:44:04 *** sinha__
123 2011-03-23T19:44:10 *** sinha_
124 2011-03-23T19:45:15 *** sinha
125 2011-03-23T19:45:41 *** sinha__
126 2011-03-23T19:47:55 <dreimark> sinha: see http://moinmo.in/MoinMoinChat/Logs/moin-dev/2011-03-23#CA-e4b7d0d7c9146f7d72350e923c643bf4b4e80222_4
127 2011-03-23T19:48:01 <dreimark> htg, bbl
128 2011-03-23T19:58:32 *** kasun
129 2011-03-23T19:59:42 *** grzywacz
130 2011-03-23T20:21:26 *** andialbrecht_
131 2011-03-23T20:24:36 *** andialbrecht
132 2011-03-23T20:25:10 <sinha> dreimark: okay so you want to show that menu item based on mime time like in the content part or in top menu item i.e for Show,Delete,Modify ?
133 2011-03-23T20:26:22 <dreimark> sinha: for the mimetype
134 2011-03-23T20:26:44 <dreimark> it is just an idea to get more information about what the subitem is
135 2011-03-23T20:26:56 <sinha> dreimark: Like for a pdf item in the content we can have a icon against it
136 2011-03-23T20:26:57 <sinha> ?
137 2011-03-23T20:27:22 <dreimark> yes, and also show how the hierarchy like a tree looks like
138 2011-03-23T20:27:34 <sinha> hierarchy for what..i didnt get it
139 2011-03-23T20:27:43 <dreimark> this is a item
140 2011-03-23T20:27:51 <dreimark> and this is a item/subitem
141 2011-03-23T20:28:42 <sinha> can you show this in any reference or at any link ?
142 2011-03-23T20:28:46 <dreimark> http://test.moinmo.in/+index/item
143 2011-03-23T20:28:55 <dreimark> this is how it looks currently
144 2011-03-23T20:30:55 <dreimark> currently we show only one level
145 2011-03-23T20:31:26 <dreimark> but a subitem can also have other subitems http://test.moinmo.in/+index/item/subitem
146 2011-03-23T20:32:12 <dreimark> in principle not only a tree structure is nice also some kind of navigation, moving, drag and drop
147 2011-03-23T20:32:33 <sinha> okay it means in the index page of a item..we can show the tree like structure for each subitem , right ?
148 2011-03-23T20:33:31 <dreimark> yes and may be also something similar for the global one
149 2011-03-23T20:33:33 <dreimark> http://test.moinmo.in/+index?item_name=item%2Fsubitem
150 2011-03-23T20:34:32 <dreimark> now that only shows the items without subitems
151 2011-03-23T20:34:48 <sinha> for each item on the index page i have to fetch their subitems and initially keep it hidden and when user click on it i can show its subtiems..like that
152 2011-03-23T20:35:38 <dreimark> and may be a flag to open all, or close all
153 2011-03-23T20:35:45 <sinha> yes
154 2011-03-23T20:36:38 <sinha> okay i get the concept..but i still am confused in thing that from where what variable is reaching to a template and how and from where to call functions to get a sub item
155 2011-03-23T20:36:45 <dreimark> also some filter would be nice mimetype or name
156 2011-03-23T20:36:54 <sinha> okay
157 2011-03-23T20:37:11 <sinha> is reading about jinja2 will be helpful
158 2011-03-23T20:37:15 <dreimark> yes
159 2011-03-23T20:37:47 <sinha> and in the docs how MoinMoin works is it valid for moin2.0 or for moin1.9x ?
160 2011-03-23T20:40:13 <dreimark> http://hg.moinmo.in/moin/2.0/file/8b811bdef521/MoinMoin/apps/frontend/views.py#l495
161 2011-03-23T20:40:45 <dreimark> sinha: http://static.moinmo.in/m2/html/ this is moin2 docs
162 2011-03-23T20:41:21 <dreimark> on the lines l495++ index = item.flat_index()
163 2011-03-23T20:41:54 <dreimark> is then send to the template global_index.html by render_template
164 2011-03-23T20:42:25 <sinha> okay and where is function to get index of any item
165 2011-03-23T20:42:34 <dreimark> http://hg.moinmo.in/moin/2.0/file/8b811bdef521/MoinMoin/templates/global_index.html
166 2011-03-23T20:42:40 <dreimark> lets continue here
167 2011-03-23T20:43:16 <dreimark> you have a python like syntax
168 2011-03-23T20:43:40 <sinha> yes
169 2011-03-23T20:43:49 <dreimark> index was inputted
170 2011-03-23T20:44:12 <dreimark> also you can call fuctions like url_for
171 2011-03-23T20:45:05 <sinha> here i am getting the item name ..now i have to fetch the subitems for each item ..
172 2011-03-23T20:45:21 <dreimark> sinha: which ide do you use ?
173 2011-03-23T20:45:28 <sinha> vim
174 2011-03-23T20:45:32 <dreimark> do you have one with search capability
175 2011-03-23T20:45:39 <sinha> yes
176 2011-03-23T20:45:57 <dreimark> then just search for the views call
177 2011-03-23T20:46:22 <sinha> okay..but how do i call a function from the template file itself
178 2011-03-23T20:46:55 <sinha> because i am getting the item name in template file itself..i have to call a function to retrieve its subitems from there ..
179 2011-03-23T20:48:18 <dreimark> you can setup init_jinja_globals, but maybe we have that function already
180 2011-03-23T20:49:26 * dreimark uses eclipse and pydev
181 2011-03-23T20:50:03 <sinha> okay ..and also on has to go deeper and deeper so one wont be knowing upto what level we are having a subitem..its like recusrion ?
182 2011-03-23T20:51:18 <sinha> How about doing it with ajax ?
183 2011-03-23T20:51:51 <sinha> we can fetch the subitems dynamically if it exists for a item ?
184 2011-03-23T20:52:43 <dreimark> ajax is welcome - and someone who maintains it also
185 2011-03-23T20:53:24 *** ronny
186 2011-03-23T20:53:25 <dreimark> on many places, later on for search too
187 2011-03-23T20:54:29 <sinha> i am willing to do it in ajax
188 2011-03-23T20:54:55 <sinha> i just need some initial push..like in general whenever a file is called..all templates are loaded
189 2011-03-23T20:55:09 <sinha> what if we just want to load some text only ?
190 2011-03-23T20:56:20 <sinha> can i create a any template like item_ajax.html and into it i can only have list of subitems..not the whole layout
191 2011-03-23T21:15:03 *** moinBot
192 2011-03-23T21:15:03 *** moinBot`
193 2011-03-23T21:22:10 <dreimark> sinha: look at some of the modify_* templates
194 2011-03-23T21:22:33 <dreimark> it depends where it becomes rendered
195 2011-03-23T21:22:59 <sinha> in these files that layou.html isn't being called
196 2011-03-23T21:23:01 <dreimark> if you have to use layout
197 2011-03-23T21:23:47 <dreimark> http://hg.moinmo.in/moin/2.0/file/8b811bdef521/MoinMoin/items/__init__.py#l261
198 2011-03-23T21:23:50 <dreimark> e.g.
199 2011-03-23T21:23:52 <dreimark> ^
200 2011-03-23T21:24:23 <sinha> and when this function is called
201 2011-03-23T21:24:25 <sinha> ?
202 2011-03-23T21:24:43 <sinha> like for url +index which function gets called ? how to identify those functions ?
203 2011-03-23T21:29:04 *** m4k3r
204 2011-03-23T21:39:19 *** sinha
205 2011-03-23T21:47:46 *** ronny
206 2011-03-23T21:55:39 *** grad
207 2011-03-23T23:16:03 *** ronny
208 2011-03-23T23:37:37 *** ronny
209
MoinMoin: MoinMoinChat/Logs/moin-dev/2011-03-23 (last edited 2011-03-22 23:45:02 by IrcLogImporter)