1 2011-05-23T00:05:45  *** MattMaker_ has joined #moin-dev
   2 2011-05-23T00:07:01  *** MattMaker has quit IRC
   3 2011-05-23T00:07:01  *** MattMaker_ is now known as MattMaker
   4 2011-05-23T00:10:24  *** RogerHaase has left #moin-dev
   5 2011-05-23T00:12:42  <dreimark> at least not immeadiatly
   6 2011-05-23T00:12:47  <dreimark> ops
   7 2011-05-23T00:13:01  <dreimark> it works, but didn't crash yet
   8 2011-05-23T00:13:53  <dreimark> sinha: do you had the same trouble ?
   9 2011-05-23T00:15:09  <sinha> dreimark: still getting the earlier error, that Assertion error thing, cloned my repo just a min ago
  10 2011-05-23T00:16:43  <dreimark> sinha: is it on bitbucket ?
  11 2011-05-23T00:16:52  <dreimark> url?
  12 2011-05-23T00:17:52  <dreimark> you  have py 2.7?
  13 2011-05-23T00:18:14  <sinha> no my local pc
  14 2011-05-23T00:18:24  <sinha> the old one is working fine
  15 2011-05-23T00:18:24  <dreimark> you can't use the old env.
  16 2011-05-23T00:18:31  <sinha> oh
  17 2011-05-23T00:18:47  <sinha> so i need to install a fresh one
  18 2011-05-23T00:19:26  <sinha> mean a new virtual env or just sqlalchemy ?
  19 2011-05-23T00:19:58  <sinha> can i copy that older env directory to my new repo to run moin? currently i am running the env through its path
  20 2011-05-23T00:20:13  <dreimark> that likly won' work
  21 2011-05-23T00:22:43  <dreimark> sinha: http://moinmo.in/4ct10n/info/MoinMoinChat/Logs/moin-dev/2011-05-22#CA-d854827fce5dd3a9d5de85ac2bfd4d09eb5f9f2b_15
  22 2011-05-23T00:24:39  <dreimark> the env pathes are static of the directory where it was initiated
  23 2011-05-23T00:24:43  <sinha> or running the older env with correct path in the new repo
  24 2011-05-23T00:26:08  <sinha> dreimark: but doing above thing, i can run moin successfully, only the error is coming in modifying any element ?
  25 2011-05-23T00:26:26  <dreimark> i can modify and create without an error
  26 2011-05-23T00:26:41  <dreimark> i did a hg clone http://hg.moinmo.in/moin/2.0
  27 2011-05-23T00:26:53  <dreimark> and run ./quickinstall
  28 2011-05-23T00:27:15  <dreimark> before I called deactivate for stopping the other env
  29 2011-05-23T00:29:44  <sinha> dreimark: i didnt run quickinstall, just activated the env form previous installation and moin ran fine !
  30 2011-05-23T00:31:36  <dreimark> yes, but it likly tries to store in that path or ?
  31 2011-05-23T00:31:50  <dreimark> it loads the config from the old path
  32 2011-05-23T00:32:07  <dreimark> so you need to clean the wiki there
  33 2011-05-23T00:35:45  <dreimark> depends may be on configuration.
  34 2011-05-23T00:38:07  <dreimark> e.g. if I try in /tmp/2.0/MoinMoin  to call the moin command, it shows a traceback of
  35 2011-05-23T00:38:17  <dreimark> e.g. File "/home/reimar/workspace/moin-2.0/MoinMoin/config/default.py", line 116, in __init__
  36 2011-05-23T00:38:57  <dreimark> that can make trouble if you have a moin dir in your old env
  37 2011-05-23T00:42:38  <CIA-69> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 236:7a77ae08161e 2.0/MoinMoin/items/ (__init__.py _tests/test_Item.py): (log message trimmed)
  38 2011-05-23T00:42:38  <CIA-69> items: cleanup contenttype handling in modify/_save, see below
  39 2011-05-23T00:42:38  <CIA-69> contenttype in query string -> force this content type (put it into metadata)
  40 2011-05-23T00:42:38  <CIA-69> If _save() does not find CONTENTTYPE in the new metadata, it uses:
  41 2011-05-23T00:42:38  <CIA-69> 1. current content type (previous revision)
  42 2011-05-23T00:42:39  <CIA-69> 2. the guessed content type (see below)
  43 2011-05-23T00:42:40  <CIA-69> 3. application/octet-stream
  44 2011-05-23T00:43:27  <dreimark> sinha: pleae create a bitbucket repo if you don't have
  45 2011-05-23T00:43:38  <ThomasWaldmann> hopefully that ^^ didn't break something
  46 2011-05-23T00:44:52  <sinha> dreimark: i have a old one with lots of unwanted commits
  47 2011-05-23T00:44:57  * sinha creating one
  48 2011-05-23T00:46:44  <dreimark> ThomasWaldmann: we have some confluence 2 moin pages on MM :)
  49 2011-05-23T00:58:44  <ThomasWaldmann> yeah, seen
  50 2011-05-23T01:30:34  *** MattMaker has quit IRC
  51 2011-05-23T01:33:39  *** MattMaker has joined #moin-dev
  52 2011-05-23T01:34:11  *** sinha has left #moin-dev
  53 2011-05-23T03:06:44  *** MattMaker has quit IRC
  54 2011-05-23T03:15:54  *** MattMaker has joined #moin-dev
  55 2011-05-23T05:48:32  *** Marchael has joined #moin-dev
  56 2011-05-23T05:49:42  <Marchael> moin
  57 2011-05-23T08:02:21  *** Marchael has quit IRC
  58 2011-05-23T08:04:20  *** m4k3r_ has quit IRC
  59 2011-05-23T08:21:18  *** Marchael has joined #moin-dev
  60 2011-05-23T08:42:46  *** ronny has quit IRC
  61 2011-05-23T08:48:33  *** Marchael has quit IRC
  62 2011-05-23T09:12:44  *** Marchael has joined #moin-dev
  63 2011-05-23T10:31:34  <dreimark> moin
  64 2011-05-23T11:19:25  *** greg_f has joined #moin-dev
  65 2011-05-23T11:25:26  *** ronny has joined #moin-dev
  66 2011-05-23T11:39:42  *** Marchael has quit IRC
  67 2011-05-23T12:02:53  <ThomasWaldmann> moin
  68 2011-05-23T12:45:36  *** Marchael has joined #moin-dev
  69 2011-05-23T12:58:14  *** Marchael has quit IRC
  70 2011-05-23T12:59:11  *** Marchael has joined #moin-dev
  71 2011-05-23T13:07:31  *** Marchael has quit IRC
  72 2011-05-23T13:47:41  *** Marchael has joined #moin-dev
  73 2011-05-23T14:19:30  *** m4k3r has joined #moin-dev
  74 2011-05-23T14:45:34  *** sinha has joined #moin-dev
  75 2011-05-23T15:17:15  *** sinha has left #moin-dev
  76 2011-05-23T15:22:06  *** Marchael has joined #moin-dev
  77 2011-05-23T16:33:13  *** sinha has joined #moin-dev
  78 2011-05-23T17:18:57  *** ronny has quit IRC
  79 2011-05-23T17:22:57  *** ronny has joined #moin-dev
  80 2011-05-23T17:26:33  *** sinha has left #moin-dev
  81 2011-05-23T18:17:52  *** Marchael has quit IRC
  82 2011-05-23T19:03:55  *** montefuscolo has joined #moin-dev
  83 2011-05-23T19:04:56  <ThomasWaldmann> hi montefuscolo :)
  84 2011-05-23T19:05:22  <montefuscolo> hello!
  85 2011-05-23T19:05:40  <ThomasWaldmann> you're interested in moin development?
  86 2011-05-23T19:06:44  <montefuscolo> yes, we plan to use moin2 in our work
  87 2011-05-23T19:07:13  <ThomasWaldmann> ah, what is that?
  88 2011-05-23T19:08:30  *** pkumar has joined #moin-dev
  89 2011-05-23T19:08:52  <montefuscolo> in one of our projects we need several wikis to exchange information
  90 2011-05-23T19:09:27  <montefuscolo> we see that moin moin has wiki synchronization, and want to understand more on how it works
  91 2011-05-23T19:10:01  <montefuscolo> basically, our idea with moin and mercurial is:
  92 2011-05-23T19:10:05  <ThomasWaldmann> be aware that moin2's first release target is having a rather basic, but functional wiki
  93 2011-05-23T19:10:24  <ThomasWaldmann> (the wikisync as in 1.9 is not part of that)
  94 2011-05-23T19:10:56  <ThomasWaldmann> ah, mercurial, ok, that's a different thing
  95 2011-05-23T19:11:06  <montefuscolo> we'd like to have one main wiki, with a few editors, but it can be cloned so people with fewer permissions would be able to edit the clone
  96 2011-05-23T19:11:22  <montefuscolo> and then editors in main wiki would be able to approve the changes in main wiki
  97 2011-05-23T19:11:52  <montefuscolo> (we're aware, and we have good developers here, we need to make a conceptual choice now for a long term project)
  98 2011-05-23T19:12:18  <ThomasWaldmann> sounds like implementing a cms workflow in wiki
  99 2011-05-23T19:12:19  <montefuscolo> do you think that a proof of concept of what I just described would be too complicated in current stage of development?
 100 2011-05-23T19:12:28  <montefuscolo> a bit of it
 101 2011-05-23T19:12:57  <montefuscolo> but, people who work in the clone are not "waiting for approval". they have their own wiki and do whatever they want
 102 2011-05-23T19:13:15  <montefuscolo> and in the main wiki, it's admin's choice if the change is relevante for the main wiki or not
 103 2011-05-23T19:13:38  <ThomasWaldmann> yeah, that might be a bit too special for right now
 104 2011-05-23T19:14:04  <ThomasWaldmann> you'ld likely need branching and merging, like as in mercurial, with wiki ui
 105 2011-05-23T19:14:05  <montefuscolo> maybe one change won't be accepted and will remain in clone. and people there will see their change immediately
 106 2011-05-23T19:14:15  <montefuscolo> exactly! you got the idea :-)
 107 2011-05-23T19:14:47  <montefuscolo> so, we have our own wiki, based on git, that would fit, but it's still too young and missing a lot of things that any wiki implements
 108 2011-05-23T19:14:47  <ThomasWaldmann> there are some issues with that:
 109 2011-05-23T19:15:15  <montefuscolo> we have to choose some base software to work on, that might be our young wiki, or might be moin.
 110 2011-05-23T19:15:27  <ThomasWaldmann> a) although such stuff might be daily routine for developers, it might be beyond what most other people are used to do (or are willing to deal with)
 111 2011-05-23T19:15:35  <montefuscolo> and we plan to invest around 80 development hours in this customization
 112 2011-05-23T19:16:25  <ThomasWaldmann> b) moin's storage doesn't have branching and also isn't just mercurial, but also other non-dvcs backends
 113 2011-05-23T19:18:49  <ThomasWaldmann> c) mercurial maybe has issues if you put lots of large binary stuff into it
 114 2011-05-23T19:19:45  <montefuscolo> if we want to implement that using moin as a base, where do you recommend us to start hacking?
 115 2011-05-23T19:20:33  <montefuscolo> (ah, btw, maybe we could implement git backend, we have done so in our wiki and maybe it wouldn't be difficult to port to moin)
 116 2011-05-23T19:20:35  <ThomasWaldmann> (and also, i think 80h are not realistic for the whole thing)
 117 2011-05-23T19:20:44  <montefuscolo> no, 80h is just for a proof of concept
 118 2011-05-23T19:21:04  <montefuscolo> after that the project may start as a real project
 119 2011-05-23T19:21:10  <ThomasWaldmann> and git maybe makes it even worse, as it is not python
 120 2011-05-23T19:21:37  <ThomasWaldmann> and not that much platform-independant either
 121 2011-05-23T19:22:00  <montefuscolo> we're using dulwich library, which handles git objects directly
 122 2011-05-23T19:22:07  <ThomasWaldmann> well, you could have a look at how mercurial backend currently works
 123 2011-05-23T19:22:37  <ThomasWaldmann> dulwich is a binary dependency iirc
 124 2011-05-23T19:23:26  <ThomasWaldmann> maybe think it through on a more conceptual level
 125 2011-05-23T19:24:21  <ThomasWaldmann> (like how to solve the fundamental problems)
 126 2011-05-23T19:24:55  <montefuscolo> yes. I was not aware of binary dependency with dulwich. I tried gitpython, but couldn't overcome the unicodedecodeerrors
 127 2011-05-23T19:25:12  <ThomasWaldmann> also, maybe first define exactly what usecase that should solve. for some usecases there might be much simpler solutions.
 128 2011-05-23T19:26:14  <montefuscolo> yes. this conversation has already given us some light on how to organize the several wikis (branching instead of cloning)
 129 2011-05-23T19:26:26  <ThomasWaldmann> like e.g. if you do not trust some users enough to give them write rights on the main wiki, would you ever be able to do some standard pull/merge?
 130 2011-05-23T19:27:02  <ThomasWaldmann> or would it be rather copy&pasting some of their stuff and no assisted merging at all?
 131 2011-05-23T19:27:44  <ThomasWaldmann> in that case, you could also just let them edit and revert stuff if it's not good enough
 132 2011-05-23T19:28:24  <ThomasWaldmann> or let them comment on a discussion page and have some editor move content from there to main page
 133 2011-05-23T19:30:30  <montefuscolo> the real case is:
 134 2011-05-23T19:31:15  <montefuscolo> we have a school environment. teachers can edit the main content, but they don't like students to edit it directly
 135 2011-05-23T19:31:38  *** greg_f has quit IRC
 136 2011-05-23T19:31:40  <montefuscolo> in some areas of the wiki, students can edit directly, but in others it need approval
 137 2011-05-23T19:32:38  <montefuscolo> but we don't want approval workflow, so in a class environment, changes should be seen immediately, even if it's not accurate. then a teacher can either accept a change, or go back to class to work with students before it can be accepted
 138 2011-05-23T19:33:02  <ThomasWaldmann> i don't think a dvcs workflow can solve that
 139 2011-05-23T19:33:08  <montefuscolo> just copy&pasting may cause a big mess in concurrent editions
 140 2011-05-23T19:33:37  <ThomasWaldmann> (theoretically it could maybe, but not practically)
 141 2011-05-23T19:34:21  <montefuscolo> why do you think so?
 142 2011-05-23T19:34:33  <ThomasWaldmann> because of people :)
 143 2011-05-23T19:34:43  <montefuscolo> well, it has worked for developers :-)
 144 2011-05-23T19:34:53  <montefuscolo> we would need tons of good interface
 145 2011-05-23T19:36:08  <ThomasWaldmann> yes, but developers are (or should be) very careful when editing sourcecode. there are automated tests that avoid some mistakes. and it is usually just plain text, not that much binaries.
 146 2011-05-23T19:36:13  <montefuscolo> our project demands that each class have at least 1 student that participates in a geek group that meets weekly
 147 2011-05-23T19:36:22  <montefuscolo> and they will help teachers on geek stuff
 148 2011-05-23T19:36:47  <montefuscolo> this would be mainly text too, just wiki pages
 149 2011-05-23T19:38:27  <ThomasWaldmann> i just recently discussed "having a document repository" with mostly non-developers (but still technically inclined people).
 150 2011-05-23T19:38:53  <ThomasWaldmann> i showed them hg and tortoisehg, but they found it too complicated.
 151 2011-05-23T19:40:10  <ThomasWaldmann> btw, the problem can get worse if there are lots of people working on the exact same stuff
 152 2011-05-23T19:40:46  <ThomasWaldmann> in a software project, there is lots of space usually so devs usually work in different areas and don't produce too much conflicts
 153 2011-05-23T19:41:15  <ThomasWaldmann> if you have a class like thing and 20 people all work in page X, you might get into conflict hell
 154 2011-05-23T19:42:19  <ThomasWaldmann> and if the teacher then is the one who has to resolve it, that won't be good for his nerves :D
 155 2011-05-23T19:42:21  <montefuscolo> yes, we can't have 20 people on same page, that's true.
 156 2011-05-23T19:42:55  <montefuscolo> we would need a specific strategy for hub pages
 157 2011-05-23T19:44:48  <montefuscolo> anyway, we are having trouble building what this first version would be, I think now the problems are clearer. we really need to simplify this concept
 158 2011-05-23T19:46:59  <ThomasWaldmann> KISS :)
 159 2011-05-23T19:47:14  <montefuscolo> sure! :-)
 160 2011-05-23T19:47:17  <ThomasWaldmann> can you try comment pages maybe?
 161 2011-05-23T19:47:27  <montefuscolo> I'll hack a bit the hg storage
 162 2011-05-23T19:49:08  *** asaman has joined #moin-dev
 163 2011-05-23T19:50:48  <montefuscolo> comment pages works like discussion pages, i think
 164 2011-05-23T19:52:43  <ThomasWaldmann> yes, that's what I mean
 165 2011-05-23T19:53:00  <ThomasWaldmann> in moin, the concept is a bit more general than in mw
 166 2011-05-23T19:53:35  <ThomasWaldmann> it is just a subitem, you can use it for anything you want (even if it is not discussion or comments)
 167 2011-05-23T19:54:11  <asaman> ThomasWaldmann: what is mw?
 168 2011-05-23T19:54:18  * asaman is in computer besides montefuscolo
 169 2011-05-23T19:54:31  <ThomasWaldmann> must be a big computer
 170 2011-05-23T19:54:47  <asaman> hehe
 171 2011-05-23T19:54:49  <asaman> at computer :-)
 172 2011-05-23T19:55:11  <ThomasWaldmann> mw = mediawiki
 173 2011-05-23T20:05:54  * ThomasWaldmann brb
 174 2011-05-23T20:09:05  <pkumar> xorAxAx: hi
 175 2011-05-23T20:10:23  <pkumar> xorAxAx: I was wondering I would I know if I'm doing my project right or something else should also be done?
 176 2011-05-23T20:10:42  <pkumar> I*
 177 2011-05-23T20:11:29  <montefuscolo> i think the teacher want to read a single page, not the discussion. perhaps, we need three pages: the main page, a page for draft and other for the discussion
 178 2011-05-23T20:11:34  <montefuscolo> so the students use the discussion page and write the draft page. the teacher approve (or not) the draft page to be the main page
 179 2011-05-23T20:22:17  *** montefuscolo has left #moin-dev
 180 2011-05-23T20:23:23  <pkumar> ThomasWaldmann: Do we need to use something to get our codes evaluated?
 181 2011-05-23T20:23:53  <pkumar> Though it may not be needed much at present time.
 182 2011-05-23T20:24:29  <xorAxAx> pkumar: i havent had time for review, but you also didnt setup CIA notifications :)
 183 2011-05-23T20:25:49  *** sinha has joined #moin-dev
 184 2011-05-23T20:26:07  <pkumar> xorAxAx: There was an option in services saying 'CIA.vc', I created one. How do configure it to display on irc?
 185 2011-05-23T20:26:25  *** ronny has quit IRC
 186 2011-05-23T20:26:28  <xorAxAx> pkumar: which project did you set?
 187 2011-05-23T20:26:37  <xorAxAx> it needs to be set to moin
 188 2011-05-23T20:26:46  <pkumar> ok, and module?
 189 2011-05-23T20:27:12  <xorAxAx> does it have a branch setting?
 190 2011-05-23T20:27:30  <pkumar> I don' t think so
 191 2011-05-23T20:27:32  <xorAxAx> if not, set module to your branchname
 192 2011-05-23T20:27:50  <pkumar> ok
 193 2011-05-23T20:28:40  *** ronny has joined #moin-dev
 194 2011-05-23T20:32:43  <pkumar> ronny: hi
 195 2011-05-23T20:33:02  <xorAxAx> pkumar: now try to commit+push something :)
 196 2011-05-23T20:33:10  <pkumar> ok
 197 2011-05-23T20:33:41  <pkumar> just a moment
 198 2011-05-23T20:36:51  <ronny> sup
 199 2011-05-23T20:38:36  <pkumar> ronny: you remember of porting conftest.py. you have added pytest_pycollect_makeitem() function there
 200 2011-05-23T20:39:26  <CIA-69> pkumar * bcbdb9caa1e4 r250 moin_pytest-2/MoinMoin/util/_tests/test_pysupport.py: test invoke method in test_pysupport.py modified.
 201 2011-05-23T20:39:29  <ThomasWaldmann> re
 202 2011-05-23T20:40:02  <pkumar> I'm getting an error saying collector has no module _istestclasscandidate
 203 2011-05-23T20:40:18  <pkumar> xorAxAx: thanks, it works great
 204 2011-05-23T20:40:50  <pkumar> ronny: would you like to suggest something for it?
 205 2011-05-23T20:41:41  <ronny> pkumar: in what context?
 206 2011-05-23T20:41:56  <pkumar> ronny: http://moinmo.in/pkumar_diary/2011-05-23
 207 2011-05-23T20:42:03  <ThomasWaldmann> pkumar: didn't you want to concentrate on porting this week?
 208 2011-05-23T20:42:09  <pkumar> porting moinmoin for pytest-2
 209 2011-05-23T20:42:43  <pkumar> ronny:^
 210 2011-05-23T20:42:54  <ronny> pkumar: did you take my branch?
 211 2011-05-23T20:43:24  <pkumar> ThomasWaldmann: yes, if you have not made any recent changes.
 212 2011-05-23T20:43:34  <pkumar> ronny:^
 213 2011-05-23T20:43:41  <ronny> ok
 214 2011-05-23T20:43:51  <ronny> got something where i can pull from?
 215 2011-05-23T20:43:56  <pkumar> ThomasWaldmann: sorry, that was for ronny
 216 2011-05-23T20:44:05  <ThomasWaldmann> pkumar: how is invoking the tests in a cosmetically different way related to porting?
 217 2011-05-23T20:44:29  <pkumar> ronny: yup, https://bitbucket.org/pkumar/moin_pytest-2
 218 2011-05-23T20:45:50  <pkumar> ThomasWaldmann: If we try to run any test, the above mentioned error shows up
 219 2011-05-23T20:46:44  <pkumar> ThomasWaldmann: so, I thought it would be better to fix it
 220 2011-05-23T20:47:15  <ThomasWaldmann> ?
 221 2011-05-23T20:47:27  <ThomasWaldmann> how does your change fix an error?
 222 2011-05-23T20:47:32  <ThomasWaldmann> and which error?
 223 2011-05-23T20:47:38  <ronny> pkumar: ah, it changed, i think its better to change the file collector now
 224 2011-05-23T20:48:35  * ThomasWaldmann talks about that stuff: https://bitbucket.org/pkumar/moin_pytest-2/changeset/bcbdb9caa1e4
 225 2011-05-23T20:49:28  <ronny> pkumar: ok, i suppose its better to check for isinstance type and Test in __name__
 226 2011-05-23T20:49:41  <ronny> pkumar: the _istestclasscandidate helper is gone since some changes
 227 2011-05-23T20:49:53  <ronny> pkumar: checking for being a type and fitting should do for now
 228 2011-05-23T20:50:14  <pkumar> ronny: okay, I'll do that. thanks
 229 2011-05-23T20:50:47  <pkumar> ThomasWaldmann: I'm sorry, I thought you are referring to error in conftest.py
 230 2011-05-23T20:52:22  <ronny> pkumar: maybe better use inspect.getclass(obj) + collector.classnamefilter(name)
 231 2011-05-23T20:52:24  <pkumar> ThomasWaldmann: I think it would make it more pythonic as in 'python testfilename'
 232 2011-05-23T20:52:49  <ThomasWaldmann> read line 128 in the etherpad
 233 2011-05-23T20:53:33  <ThomasWaldmann> (and put a todo on the list so it can be done after porting, in one systematic change for all modules)
 234 2011-05-23T20:56:30  <ThomasWaldmann> maybe some section "systematic todo"
 235 2011-05-23T20:57:50  *** asaman has left #moin-dev
 236 2011-05-23T20:59:02  <pkumar> ThomasWaldmann: As this invocation method is introduced new in pytest, I thought to carry it out in porting process
 237 2011-05-23T20:59:19  <pkumar> ThomasWaldmann: Though, I'll add a todo list
 238 2011-05-23T20:59:24  <pkumar> in EP
 239 2011-05-23T20:59:25  <ronny> uhm
 240 2011-05-23T20:59:40  <ronny> why not just use the testrunner like it was intended to
 241 2011-05-23T20:59:45  <ronny> its required anyway
 242 2011-05-23T20:59:59  <ronny> the less code there is to maintain the better
 243 2011-05-23T21:00:23  <pkumar> ronny: yes, a script to run all tests right?
 244 2011-05-23T21:01:05  <ronny> pkumar: pytest just does that on its own, why would a script be required?
 245 2011-05-23T21:02:07  <ThomasWaldmann> creating clean changesets and avoiding trouble is quite related to focussing
 246 2011-05-23T21:02:23  <pkumar> ronny: Can you please explain about testrunner
 247 2011-05-23T21:02:51  <ronny> pkumar: pytest is a testrunner, you can just use it to run the whole suite, single files, or even single tests
 248 2011-05-23T21:03:02  <ronny> you dont have to teach each test file how to run itself
 249 2011-05-23T21:03:02  <ThomasWaldmann> == define a clear and small enough goal and strictly stay with it. do ALL that is needed for goal, do NOTHING else.
 250 2011-05-23T21:04:26  <pkumar> ThomasWaldmann: ok, I'll take care of it next time onwards. :)
 251 2011-05-23T21:04:31  <ThomasWaldmann> so if goal is porting, do all needed so it works with pytest2, but do nothing else in the code (create todos as needed)
 252 2011-05-23T21:04:46  <pkumar> ThomasWaldmann: ok
 253 2011-05-23T21:05:40  <ronny> hmm, i'll take a look aat building subreport support for pytest, so the yield tests can work again
 254 2011-05-23T21:06:08  <pkumar> ronny: I was just thinking to run it as a standard python file
 255 2011-05-23T21:06:47  <pkumar> like 'python filename'
 256 2011-05-23T21:07:01  <ThomasWaldmann> pkumar: also, do not tell stuff like "modified file xy.py" in commit comments, but rather tell why and use just the module nam
 257 2011-05-23T21:07:04  <ThomasWaldmann> e
 258 2011-05-23T21:07:11  <ronny> pkumar: if it needs pytest anyway, it shouldnt need magic code just to be invokable with a different command in EVERY FILE REPEATING THE EXACT SAME THING
 259 2011-05-23T21:07:45  <pkumar> ThomasWaldmann: okay
 260 2011-05-23T21:08:10  <ronny> hmm, oh damn
 261 2011-05-23T21:08:52  <pkumar> ronny: yeah,
 262 2011-05-23T21:08:53  <ronny> pkumar: you didnt exactly take my branch, you copied some changesets to the default branch
 263 2011-05-23T21:09:25  <sinha> ThomasWaldmann: When i perform a copy action, i am getting this error "sqlalchemy.exc.IntegrityError"
 264 2011-05-23T21:09:50  <sinha> More Specifc: IntegrityError: (IntegrityError) column name is not unique u'UPDATE  item_table SET current=?, name=?, contenttype=?, acl=?, tags=? WHERE  item_table.id = ?' (35, u'Sinha/IIITHyd',  u'text/x.moin.wiki;charset=utf-8', '', u'||', 22)
 265 2011-05-23T21:10:20  <ronny> with worse change messages
 266 2011-05-23T21:10:42  <ronny> now im pissed off
 267 2011-05-23T21:11:18  <pkumar> ronny: I did it in another repo(an old one), then copied them to current repo.
 268 2011-05-23T21:12:59  <pkumar> ronny: they were creating different heads,
 269 2011-05-23T21:13:05  <ThomasWaldmann> sinha: yeah, happens here, too.
 270 2011-05-23T21:13:14  <ronny> pkumar: hg can merge
 271 2011-05-23T21:13:49  <pkumar> ronny:yes, I tried but they they were not merging
 272 2011-05-23T21:14:14  <ronny> did you tell it where to merge from?
 273 2011-05-23T21:15:01  <ronny> cause hg will never merge different named branches without being told so
 274 2011-05-23T21:15:01  <pkumar> ronny: it showed - two heads in the beginning, then after merging it showed msg: 'Nothing to merge'
 275 2011-05-23T21:15:36  <pkumar> oh, is it so?
 276 2011-05-23T21:15:54  <pkumar> ronny: I was unaware of that
 277 2011-05-23T21:16:21  <ronny> it would be helpfull if you asked for guidance with the tools instead of doing random things
 278 2011-05-23T21:17:41  <ronny> i'll be away for a while, my current mood is rather unhelpfull, i shouldnt be in that state so i gotta fix that
 279 2011-05-23T21:21:51  *** pkumar has quit IRC
 280 2011-05-23T21:23:44  <ThomasWaldmann> sinha: file a bug please
 281 2011-05-23T21:24:53  <sinha> ThomasWaldmann: ok.
 282 2011-05-23T21:26:18  <ronny> ok, i fixed my mindsate, but now hes gone :/
 283 2011-05-23T21:45:50  *** pkumar has joined #moin-dev
 284 2011-05-23T21:49:43  <sinha> ThomasWaldmann: what does yield function do ?
 285 2011-05-23T21:51:37  <sinha> ThomasWaldmann: http://hg.moinmo.in/moin/2.0/file/7a77ae08161e/MoinMoin/storage/backends/indexing.py#l417
 286 2011-05-23T22:07:43  <ThomasWaldmann> sinha: google for yield or read some python docs?
 287 2011-05-23T22:16:10  <dreimark> re
 288 2011-05-23T22:22:52  <sinha> dreimark: the history function in storage/backends/indexing.py returns an generator to the global_history function in views.py ? So should i do grouping it views.py and pass the grouped object to template or do the grouping in template itself ?
 289 2011-05-23T22:24:12  *** sinha has quit IRC
 290 2011-05-23T22:24:41  *** sinha has joined #moin-dev
 291 2011-05-23T22:26:08  <dreimark> sinha: i would prefer to have it in python and not a complete shift of pyhton code into the template
 292 2011-05-23T22:27:36  <sinha> dreimark: okay. so the history object i am receiving in views.py file is an object or list ?
 293 2011-05-23T22:34:20  <dreimark> sinha: history = class generator(object)
 294 2011-05-23T22:40:30  <sinha> dreimark: where are the attributes name defined for the history object ? means is the attribute name is same as used in the template file using jinja2, like rev.item.name, rev.revno etc.
 295 2011-05-23T22:42:22  <ThomasWaldmann> sinha: the history is a generator that yields tuples of values
 296 2011-05-23T22:42:50  <ThomasWaldmann> just in that line that you asked about
 297 2011-05-23T22:44:01  <sinha> i want to access each tuple and all other attributes in that tuple, then what attribute names should i use ?
 298 2011-05-23T22:44:18  <sinha> one that is same in the template file /
 299 2011-05-23T22:44:19  <sinha> ?
 300 2011-05-23T22:44:24  <ronny> tuples dont have names for items
 301 2011-05-23T22:46:57  <ronny> pkumar: there?
 302 2011-05-23T22:47:11  <pkumar> ronny: hey
 303 2011-05-23T22:47:55  <ThomasWaldmann> sinha: if you want names, you can use a NamedTuple (but that needs some code changes)
 304 2011-05-23T22:48:28  <ronny> pkumar: got rid of my rotten mood, now we should fiugre how to proceed wrt the tooling ,the history and the needed changes to pytest
 305 2011-05-23T22:49:05  <pkumar> ronny: yeah :)
 306 2011-05-23T22:49:33  <sinha> ThomasWalmann: i am getting a history object, i need to extract values ? how should i do it ?
 307 2011-05-23T22:49:34  <sinha> ThomasWaldmann: currently it is being done in template file, i want to do it on python itself
 308 2011-05-23T22:49:40  <sinha> s/on/in
 309 2011-05-23T22:51:13  <pkumar> ronny: so, for inspect.getclass(obj) from where do I import inspect because it is showing an 'inspect' is not defined
 310 2011-05-23T22:51:26  <pkumar> error
 311 2011-05-23T22:51:26  <ronny> inspect is a module of the stdlib
 312 2011-05-23T22:51:37  <ronny> you can just import it
 313 2011-05-23T22:51:45  <pkumar> okay
 314 2011-05-23T22:51:56  <ThomasWaldmann> sinha: it works in a rather similar way
 315 2011-05-23T22:52:15  <sinha> okay.
 316 2011-05-23T22:52:19  <ronny> pkumar: personally i would prefer if you worked on top of the branch i created
 317 2011-05-23T22:52:19  <sinha> let me try.
 318 2011-05-23T22:53:16  <pkumar> ronny: yup, so can I do something for it?
 319 2011-05-23T22:54:05  <pkumar> may be I can pull from your branch right?
 320 2011-05-23T22:54:20  <pkumar> ronny: ^ that should do I guess
 321 2011-05-23T22:56:31  <dreimark> sinha: http://stackoverflow.com/questions/231767/the-python-yield-keyword-explained
 322 2011-05-23T22:56:33  *** ronny has quit IRC
 323 2011-05-23T22:56:39  <dreimark> explains yield well
 324 2011-05-23T22:57:04  <ThomasWaldmann> sinha: btw, it might be a really good idea to first change to named tuples
 325 2011-05-23T22:59:24  <sinha> ThomasWaldmann: i still have questions, like from that function tuple of values is being returned and in template file those values are accessed as attributes ex. rev.name etc. how it is being done ?
 326 2011-05-23T22:59:38  <sinha> dreimark: yes i have understood about yield
 327 2011-05-23T23:05:42  <sinha> dreimark: can i pass a  python list from backend to template file ?
 328 2011-05-23T23:05:45  *** ronny has joined #moin-dev
 329 2011-05-23T23:05:49  <ronny> e
 330 2011-05-23T23:06:05  <ronny> pkumar: my router crashed, what was the last thing?
 331 2011-05-23T23:06:51  <dreimark> ronny: http://moinmo.in/4ct10n/info/MoinMoinChat/Logs/moin-dev/2011-05-23#CA-de0a16a9da2446fa7e567652671da36cfa2d3bca_320
 332 2011-05-23T23:07:08  <pkumar> ronny: I was saying if I can pull changes from your repo to fix this up?
 333 2011-05-23T23:07:24  <dreimark> sinha: you can pass every type to the template
 334 2011-05-23T23:07:58  <ronny> pkumar: yeah
 335 2011-05-23T23:08:21  <sinha> dreimark: ThomasWaldmann: whenever i try to start moin now i get this error -> sqlalchemy.exc.IntegrityError: (IntegrityError) column name is not unique u'INSERT INTO item_table (uuid, name) VALUES (?, ?)' (u'de134f0e923446cbb1e654cd0263d992', u'Akash')
 336 2011-05-23T23:08:28  <sinha> i am not able to start it
 337 2011-05-23T23:08:32  <ronny> pkumar: do you know how to propperly put your changes on top of that?
 338 2011-05-23T23:08:46  <sinha> what could have gone wrong ?
 339 2011-05-23T23:09:09  <dreimark> sinha: do you have a fresh wiki dir ?
 340 2011-05-23T23:09:25  <pkumar> ronny: I need to look into it. I think for merging I need to give the heads' names
 341 2011-05-23T23:09:53  <sinha> yes i have just installed a fresh rep 3 hour back
 342 2011-05-23T23:09:53  <pkumar> ronny: I'm not sure though
 343 2011-05-23T23:10:06  <sinha> s/rep/repo
 344 2011-05-23T23:10:22  <ronny> pkumar: merging is not the correct way in that case
 345 2011-05-23T23:10:43  <pkumar> ronny: okay, then how do we do it?
 346 2011-05-23T23:11:35  <ronny> i tihnk in this case turning your chain of changes into a mq, killing the patches you copied, then reapplying should do
 347 2011-05-23T23:12:26  <sinha> whats wrong with sqlalchemy ?
 348 2011-05-23T23:12:56  <pkumar> ronny: seems like a long process
 349 2011-05-23T23:13:03  <dreimark> sinha: which version
 350 2011-05-23T23:13:10  <dreimark> and are you logged in into the wiki?
 351 2011-05-23T23:13:19  <ronny> pkumar: should be 4 or 5 commands
 352 2011-05-23T23:13:45  <CIA-69> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 237:ec37a42f6fd2 2.0/MoinMoin/ (apps/frontend/views.py templates/modify_binary.html): item modify ui: remove cancel button (user can just click anywhere else than on SAVE)
 353 2011-05-23T23:13:57  <sinha> dreimark: no it crashed sometimes ago, when i tried to restart, it shows the same error.
 354 2011-05-23T23:15:01  <dreimark> i wonder about the line, is something in the wiki, left over from the copyitem bug you fond?
 355 2011-05-23T23:15:17  <dreimark> kill the wiki
 356 2011-05-23T23:15:28  <dreimark> e.g. rm -r wiki and hg revert wiki
 357 2011-05-23T23:15:34  <sinha> okay
 358 2011-05-23T23:17:09  <sinha> dreimark: it works now, but how to fix this permanently
 359 2011-05-23T23:17:51  <dreimark> sinha: you should file moin-2 bugs to the tracker on bitbucket
 360 2011-05-23T23:18:07  <pkumar> ronny: okay, I'll try to fix it. Need to be clear with the usage of mq first
 361 2011-05-23T23:18:12  <sinha> i did on moinmo.in bug tracker
 362 2011-05-23T23:18:24  <dreimark> https://bitbucket.org/thomaswaldmann/moin-2.0/issues
 363 2011-05-23T23:18:25  <sinha> will do in bitbucket also.
 364 2011-05-23T23:18:34  <dreimark> the one on mm is for 1.9
 365 2011-05-23T23:18:49  <dreimark> we switched for 2.x development to bitbucket
 366 2011-05-23T23:18:50  <sinha> oh i will keep this in mind.
 367 2011-05-23T23:19:35  <sinha> bbl. laptop charge is dying.
 368 2011-05-23T23:19:54  *** sinha has quit IRC
 369 2011-05-23T23:26:46  *** pkumar has quit IRC
 370 2011-05-23T23:32:50  *** m4k3r has quit IRC
 371 2011-05-23T23:36:28  *** sinha has joined #moin-dev
 372 2011-05-23T23:36:34  <sinha> re
 373 2011-05-23T23:38:36  <dreimark> after that and probably some more are fixed we are closer to the release
 374 2011-05-23T23:54:04  * ThomasWaldmann is in flatland
 375 

MoinMoin: MoinMoinChat/Logs/moin-dev/2011-05-23 (last edited 2011-05-22 22:45:03 by IrcLogImporter)