1 2011-03-26T00:27:44 <sl33k_> What am i doing wrong with _contributions()? http://paste.pocoo.org/show/359700/
2 2011-03-26T00:37:24 <ThomasWaldmann> USERID == flaskg.user.id that doesn't make sense
3 2011-03-26T00:37:52 <ThomasWaldmann> revision == item.get_revision(-1) neither does that
4 2011-03-26T00:38:55 <ThomasWaldmann> revision behaves like a dict of meta items, so what you need to check is revision[USERID]
5 2011-03-26T00:39:00 <ThomasWaldmann> sl33k_:
6 2011-03-26T00:56:53 *** ronny
7 2011-03-26T01:44:03 *** ronny
8 2011-03-26T01:51:39 *** kasun
9 2011-03-26T02:52:09 *** ei-grad
10 2011-03-26T04:05:13 *** ronny
11 2011-03-26T04:06:37 *** ronny
12 2011-03-26T04:53:27 *** Marchael
13 2011-03-26T05:08:06 *** kasun
14 2011-03-26T05:30:20 *** Marchael
15 2011-03-26T06:28:18 *** kursor
16 2011-03-26T06:44:26 *** __t
17 2011-03-26T06:45:28 <__t> ThomasWaldmann: are you awake?
18 2011-03-26T06:53:48 *** Marchael
19 2011-03-26T06:59:33 *** sl33k_
20 2011-03-26T07:13:16 *** __t
21 2011-03-26T07:17:38 *** __t
22 2011-03-26T07:17:48 *** __t1
23 2011-03-26T07:21:40 *** __t
24 2011-03-26T08:12:56 <Marchael> moin
25 2011-03-26T08:20:02 *** Marchael
26 2011-03-26T08:35:05 *** __t1
27 2011-03-26T08:45:00 *** Marchael
28 2011-03-26T09:17:39 *** __t
29 2011-03-26T10:12:25 *** not-xjjk
30 2011-03-26T10:17:00 *** xjjk
31 2011-03-26T10:28:27 *** Marchael
32 2011-03-26T10:29:27 *** Marchael
33 2011-03-26T11:08:07 *** __t
34 2011-03-26T12:45:11 <ThomasWaldmann> moin
35 2011-03-26T13:23:33 *** Marchael
36 2011-03-26T13:30:07 *** sl33k_
37 2011-03-26T13:31:49 <ThomasWaldmann> hmm, argparse for py 2.6 has licensing issues for us, has different distribution archives and the maintainer has no time
38 2011-03-26T13:32:08 <sl33k_> This seems to work http://paste.pocoo.org/show/359843/
39 2011-03-26T13:32:56 <ThomasWaldmann> http://code.google.com/p/argparse/issues/detail?id=79
40 2011-03-26T13:33:09 <ThomasWaldmann> http://code.google.com/p/argparse/issues/detail?id=80
41 2011-03-26T13:36:44 <ThomasWaldmann> sl33k_: why break in 51
42 2011-03-26T13:36:46 <ThomasWaldmann> ?
43 2011-03-26T13:37:19 <ThomasWaldmann> explain 53 please
44 2011-03-26T13:39:11 <sl33k_> 53 right hand side when added to if looks like a huge expression
45 2011-03-26T13:39:27 <sl33k_> is that bad coding style?
46 2011-03-26T13:41:15 <sl33k_> and break statement leaves the revision for loop
47 2011-03-26T13:42:15 *** Marchael
48 2011-03-26T13:43:55 <ThomasWaldmann> explain what 53 does
49 2011-03-26T13:44:25 <ThomasWaldmann> explain why you leave the loop
50 2011-03-26T13:47:08 <sl33k_> left the loop as the item's latest revision is needed.
51 2011-03-26T13:49:02 <ThomasWaldmann> where do you use revno?
52 2011-03-26T13:49:37 <sl33k_> 53 i am not sure if its good. I assigned the revision's user id to curr?
53 2011-03-26T13:50:32 * ThomasWaldmann suggest you think about that code again, line by line and then come back with an improved version
54 2011-03-26T13:51:53 <ThomasWaldmann> and, either write a unit test for it or at least practically try whether it works in a non-trivial example
55 2011-03-26T13:52:42 <ThomasWaldmann> and you have to make sure all code pathes work, under all conditions, not just sometimes
56 2011-03-26T13:52:50 <ThomasWaldmann> brb
57 2011-03-26T14:16:46 *** grzywacz
58 2011-03-26T14:56:05 *** kasun
59 2011-03-26T15:11:38 *** moin0
60 2011-03-26T15:12:08 *** moin0
61 2011-03-26T15:27:36 *** RogerHaase
62 2011-03-26T15:32:16 *** greg_f
63 2011-03-26T15:42:30 *** kasun
64 2011-03-26T15:51:03 <dreimark> moin
65 2011-03-26T16:20:04 *** Marchael
66 2011-03-26T16:21:47 *** Marchael
67 2011-03-26T16:32:10 *** __t
68 2011-03-26T17:01:00 *** ronny
69 2011-03-26T17:11:59 <Marchael> where usually storing index and metadata of item? sqla put them in current backend?
70 2011-03-26T17:13:25 <ThomasWaldmann> your question is unclear
71 2011-03-26T17:15:37 <Marchael> MoinMoin/storage/backends/indexing.py ItemIndex.__init__(self, index_uri) create a table with columns using index_uri.
72 2011-03-26T17:16:41 <Marchael> this mean that index may store in any backend supporting by moin?
73 2011-03-26T17:16:55 <Marchael> s/mean/means/
74 2011-03-26T17:20:45 <ThomasWaldmann> no
75 2011-03-26T17:20:49 <Marchael> s/moin/sqla/
76 2011-03-26T17:20:56 <ThomasWaldmann> it means that it will use index_uri to store the index
77 2011-03-26T17:21:32 <ThomasWaldmann> but of course the index will be used with any backend
78 2011-03-26T17:25:08 <Marchael> KVStoreMeta and KVStore using sqla for key/value storing. It is using only for indexing or for indexing and something else?
79 2011-03-26T17:42:08 <ThomasWaldmann> that's only for indexing, not for storing authoritative data
80 2011-03-26T17:43:00 <Marchael> seems complicated...
81 2011-03-26T17:44:48 <ThomasWaldmann> why?
82 2011-03-26T17:50:24 <Marchael> may be I am mistaken, but if we will be using whoosh instead of sqla, we could provide easier interface for indexing.
83 2011-03-26T17:52:43 <Marchael> also looks like whoosh can do same things as sqla and has detailed documentation
84 2011-03-26T17:53:08 *** ronny
85 2011-03-26T17:53:51 <Marchael> say 'same things' I mean indexing
86 2011-03-26T17:56:02 <ThomasWaldmann> Marchael: yes, maybe. that's what you should research more deeply. :)
87 2011-03-26T17:57:01 <ThomasWaldmann> kvstore can e.g. store ANY key/value pair, the keys must not be known beforehand. can whoosh do that and retrieve the value?
88 2011-03-26T17:58:00 <Marchael> are you means that? http://files.whoosh.ca/whoosh/docs/latest/schema.html
89 2011-03-26T17:59:00 *** kursor
90 2011-03-26T18:00:25 <Marchael> If I understand right, we just need to correctly design the schema
91 2011-03-26T18:01:06 <Marchael> *design schema correctly
92 2011-03-26T18:01:28 <ThomasWaldmann> no
93 2011-03-26T18:01:40 <ThomasWaldmann> you do not know user-defined keys beforehand
94 2011-03-26T18:06:01 <Marchael> what means user-defined?
95 2011-03-26T18:09:43 <ThomasWaldmann> foo: bar
96 2011-03-26T18:10:18 <ThomasWaldmann> if you edit a item, you can also add your own metadata (just be careful to have valid json syntax right now)
97 2011-03-26T18:15:28 <Marchael> before creating schema we know about all `key:value` pairs, so if we need to update schema we can create new->copy data from old scheme->add new->delete old scheme
98 2011-03-26T18:17:01 <Marchael> or is it bad way?
99 2011-03-26T18:19:03 *** __t
100 2011-03-26T18:23:15 <Marchael> sorry, I need to go home. Get back in 30 minutes
101 2011-03-26T18:23:19 <ThomasWaldmann> i don't think you can to copy data over all the time
102 2011-03-26T18:23:27 *** Marchael
103 2011-03-26T18:32:12 *** sinha
104 2011-03-26T18:51:41 *** pkumar
105 2011-03-26T19:09:02 *** Marchael
106 2011-03-26T19:34:09 <Marchael> ThomasWaldmann: http://files.whoosh.ca/whoosh/docs/latest/api/fields.html#whoosh.fields.Schema.add may be this
107 2011-03-26T19:36:53 *** pkumar
108 2011-03-26T19:39:19 <ThomasWaldmann> Adds a field to this schema. This is a low-level method; use keyword arguments to the Schema constructor to create the fields instead.
109 2011-03-26T19:55:01 *** greg_f
110 2011-03-26T19:55:26 <sinha> ThomasWaldmann : dreimark: Tree navigation for index item has been added at https://bitbucket.org/sinha/moin-2.0/changeset/85a494a87a2b
111 2011-03-26T19:59:55 <sinha> Here is a copy for same ,icons updated http://web.iiit.ac.in/~akash.sinhaug08/moin/Web%20Tutorial.html
112 2011-03-26T20:06:01 <ThomasWaldmann> sinha: I'll have a look soon, currently trying to fix argparse issues.
113 2011-03-26T20:06:25 <sinha> okay
114 2011-03-26T20:16:27 *** __t
115 2011-03-26T20:16:36 *** __t1
116 2011-03-26T20:20:59 *** __t
117 2011-03-26T20:43:08 *** Marchael
118 2011-03-26T20:54:02 <dreimark> sinha: i tried a clone of your repo, i see icons at my example but not a tree
119 2011-03-26T21:02:17 <sinha> dreimark: means items are not coming in tree form..how are the subitems coming ?
120 2011-03-26T21:03:50 <sinha> dreimark: is the jquery file getting loaded "navigate-index.js "?
121 2011-03-26T21:06:06 <dreimark> it isn't
122 2011-03-26T21:06:24 <dreimark> it looks like the old index with icons in front of them
123 2011-03-26T21:06:29 <dreimark> but only one level
124 2011-03-26T21:07:04 <sinha> dreimark: navigate-index.js file initializes the expand/collapse thing
125 2011-03-26T21:07:15 <sinha> when document is loaded
126 2011-03-26T21:07:41 <dreimark> i see, i create currently a little tree by the moin command
127 2011-03-26T21:10:39 * dreimark tries a new env
128 2011-03-26T21:16:33 <dreimark> sinha: now it works
129 2011-03-26T21:16:51 <dreimark> or at least partly
130 2011-03-26T21:17:32 <sinha> measn
131 2011-03-26T21:17:39 * sinha what isnt working
132 2011-03-26T21:17:51 <dreimark> i have to add more subsubitems :)
133 2011-03-26T21:17:59 <sinha> yeah..
134 2011-03-26T21:19:44 *** MattMaker
135 2011-03-26T21:23:37 <dreimark> sinha: http://test.moinmo.in/+get/sinha
136 2011-03-26T21:24:15 <dreimark> moin maint_xml -l -f sinha.xml
137 2011-03-26T21:25:03 <dreimark> if you look at http://localhost:8080/+index/B
138 2011-03-26T21:25:15 <dreimark> and expand A the other A becomes also expanded
139 2011-03-26T21:25:54 <dreimark> expand item B B and A
140 2011-03-26T21:26:06 <dreimark> then you see A/C and A/E too
141 2011-03-26T21:26:45 <dreimark> if you expand A/E there is on bottom an F shown
142 2011-03-26T21:26:53 <dreimark> below B/A
143 2011-03-26T21:34:18 <dreimark> i guess you have an id conflict, can you may be use the uuid of the item
144 2011-03-26T21:34:22 <sinha> dreimark: " moin maint_xml -l -f sinha.xml " is showing error on running..btw can you send your page source code
145 2011-03-26T21:34:33 <sinha> yes i am using the name of the item
146 2011-03-26T21:34:40 <dreimark> sinha: that is the page source
147 2011-03-26T21:34:40 <sinha> is there something unique i could use
148 2011-03-26T21:34:58 <dreimark> the meta uuid is quniq
149 2011-03-26T21:35:01 <dreimark> -q
150 2011-03-26T21:35:25 <dreimark> which error shows it, because then there is a bug in the serializer
151 2011-03-26T21:35:58 <sinha> sqlalchemy.exc.IntegrityError: (IntegrityError) column name is not unique u'INSERT INTO item_table (uuid, name) VALUES (?, ?)' (u'a74c1d36da734ebeb90a9376aecaa227', u'Home')
152 2011-03-26T21:36:10 <dreimark> i created the items by moin maint_create_item -f test1.txt -m text.moin.wiki -n B/C/E/F
153 2011-03-26T21:36:23 <dreimark> and having a line in test1.txt
154 2011-03-26T21:37:54 <sinha> i just need something unique..i thought item name will be unique
155 2011-03-26T21:38:06 <sinha> is there something i could get from returned index
156 2011-03-26T21:38:10 <dreimark> look at meta
157 2011-03-26T21:38:14 <dreimark> of one of the items
158 2011-03-26T21:38:19 <dreimark> you see uuid
159 2011-03-26T21:38:24 <dreimark> this is unique
160 2011-03-26T21:43:49 <sinha> dreimark: i have used some regex in item name searching in jquery file..i guess that is not doing well..i will update them and will test them against such kind of testcases
161 2011-03-26T21:44:25 <sinha> i guess it is failing in the case of item A B/C/A/D here on clicking at A its opening the other A
162 2011-03-26T21:45:45 <dreimark> yes
163 2011-03-26T21:45:52 <dreimark> or closes it
164 2011-03-26T21:46:33 <sinha> i figured out the problem..its in that jquery script
165 2011-03-26T21:47:19 <sinha> i guess using absolute path for each item may work..they cant be duplicated
166 2011-03-26T21:49:32 <dreimark> yes, the next part is to test with some cyrrilic and other chars
167 2011-03-26T21:52:34 <sinha> okay
168 2011-03-26T21:55:37 *** sinha
169 2011-03-26T22:13:08 *** sinha
170 2011-03-26T22:15:39 *** sinha
171 2011-03-26T23:10:54 <sl33k_> some changes made, got rid of revision number http://paste.pocoo.org/show/360113/
172 2011-03-26T23:34:00 * ThomasWaldmann compiles py 2.5
173 2011-03-26T23:39:48 *** MattMaker
174 2011-03-26T23:47:07 *** not-xjjk
175