1 2012-09-29T00:04:45  <jaiditya> RogerHaase: hi
   2 2012-09-29T00:13:57  <ThomasWaldmann> RogerHaase: well, if we remove it, we can't support svg, not even for recent IE
   3 2012-09-29T00:14:27  <ThomasWaldmann> but we could change the html output converter and emit the needed markup
   4 2012-09-29T00:15:14  <RogerHaase> Will check, but I thought IE9 supported svg
   5 2012-09-29T00:18:32  <RogerHaase> or by recent, you mean IE8?
   6 2012-09-29T00:19:29  <ThomasWaldmann> well, i am not sure what we need to support when moin2 comes out, except that we won't support ie6 for sure.
   7 2012-09-29T00:21:00  <ThomasWaldmann> xp doesn't have any newer IE than 8, right?
   8 2012-09-29T00:21:34  <RogerHaase> right, but there is FF, Chrome, ...
   9 2012-09-29T00:22:35  <RogerHaase> when viewing the svg item page, both ie7 and ie8 display only item name.  When viewing transcluded svg item , ie7 displays name, ie8 displays nothing.
  10 2012-09-29T00:22:40  <ThomasWaldmann> yeah, except if you work in $COMPANYWITHINSANEIEPOLICY
  11 2012-09-29T00:23:29  <ThomasWaldmann> if they need differnt object tags, it is likely due to that, i don't think we generate them
  12 2012-09-29T00:26:53  <RogerHaase> Do we want this workaround in the meantime, or just leave it broken?
  13 2012-09-29T00:28:53  * ThomasWaldmann looks in the converter...
  14 2012-09-29T00:31:45  <RogerHaase> sorry, gtg
  15 2012-09-29T00:31:52  *** RogerHaase has left #moin-dev
  16 2012-09-29T00:32:01  <ThomasWaldmann> visit_moinpage_object < maybe we can just modify that
  17 2012-09-29T00:39:32  *** jaiditya has quit IRC
  18 2012-09-29T02:47:49  *** dwcramer has joined #moin-dev
  19 2012-09-29T03:39:31  *** dwcramer has quit IRC
  20 2012-09-29T03:52:30  *** dwcramer has joined #moin-dev
  21 2012-09-29T06:04:21  *** dwcramer has quit IRC
  22 2012-09-29T06:33:56  *** Trip__ has joined #moin-dev
  23 2012-09-29T06:36:11  *** MattMaker has quit IRC
  24 2012-09-29T07:32:59  <dreimark> moin
  25 2012-09-29T07:49:19  <dreimark> MaikuMori: if you have time please let me know
  26 2012-09-29T07:50:19  <dreimark> I want to discuss the idea behind https://bitbucket.org/ReimarBauer/moin-2.0_experimental_plugins
  27 2012-09-29T08:21:48  <MaikuMori> dreimark: sure, but maybe at some point during the evening. I probably need some sleep before, another sleepless night.
  28 2012-09-29T08:40:11  <dreimark> MaikuMori: ok
  29 2012-09-29T09:21:40  <dreimark> xiaq: ThomasWaldmann http://hg.moinmo.in/moin/2.0/file/3b6e02260d0b/MoinMoin/apps/frontend/views.py#l732
  30 2012-09-29T09:21:50  <dreimark> what makes this for loop ?
  31 2012-09-29T09:26:07  <dreimark> got it
  32 2012-09-29T09:46:56  *** spy has joined #moin-dev
  33 2012-09-29T09:52:19  *** sunu has joined #moin-dev
  34 2012-09-29T10:01:27  *** sunu has quit IRC
  35 2012-09-29T10:06:37  *** sunu has joined #moin-dev
  36 2012-09-29T10:19:31  *** sunu has quit IRC
  37 2012-09-29T10:30:42  *** sunu has joined #moin-dev
  38 2012-09-29T11:32:01  *** sunu has quit IRC
  39 2012-09-29T14:27:10  *** sunu has joined #moin-dev
  40 2012-09-29T14:51:48  *** sunu has quit IRC
  41 2012-09-29T14:51:48  *** Trip__ is now known as MattMaker
  42 2012-09-29T14:56:05  <ThomasWaldmann> moin
  43 2012-09-29T15:03:19  *** sunu has joined #moin-dev
  44 2012-09-29T15:06:16  *** sunu_ has joined #moin-dev
  45 2012-09-29T15:06:19  *** sunu has quit IRC
  46 2012-09-29T15:06:26  *** sunu_ is now known as sunu
  47 2012-09-29T15:12:29  *** sunu has quit IRC
  48 2012-09-29T15:29:41  *** sunu has joined #moin-dev
  49 2012-09-29T15:32:39  <sunu> ThomasWaldmann: http://codereview.appspot.com/6568068
  50 2012-09-29T15:33:17  <ThomasWaldmann> hi sunu
  51 2012-09-29T15:33:42  <sunu> hi :)
  52 2012-09-29T15:37:36  <sunu> having frequent powercuts today :(
  53 2012-09-29T15:43:29  <ThomasWaldmann> btw, isn't it rather sunny in your area? you should have solar panels and batteries. :D
  54 2012-09-29T15:43:47  <xiaq> ThomasWaldmann: http://codereview.appspot.com/6490097/
  55 2012-09-29T15:44:15  <ThomasWaldmann> ah, wb xiaq
  56 2012-09-29T15:44:59  <xiaq> ThomasWaldmann: :) have been kinda busy during first few school weeks
  57 2012-09-29T15:45:57  * ThomasWaldmann looks
  58 2012-09-29T15:48:19  *** sunu_ has joined #moin-dev
  59 2012-09-29T15:51:04  * xiaq added some comments in case you are looking at delta
  60 2012-09-29T15:51:11  *** sunu has quit IRC
  61 2012-09-29T15:51:14  *** sunu_ is now known as sunu
  62 2012-09-29T15:58:20  <sunu> ThomasWaldmann: those were some silly mistakes :P
  63 2012-09-29T15:58:45  <sunu> will be more careful next time onwards
  64 2012-09-29T15:59:56  <sunu> but i still can't figure out how to detect GAE without the or
  65 2012-09-29T16:00:49  <sunu> The developement server and production server have different values for SERVER_SOFTWARE
  66 2012-09-29T16:10:08  <ThomasWaldmann> xiaq: done
  67 2012-09-29T16:10:35  <ThomasWaldmann> sunu: so, gae is using 2 different strings for server software?
  68 2012-09-29T16:10:44  <ThomasWaldmann> ah, ok
  69 2012-09-29T16:10:56  <ThomasWaldmann> ok, then keep it like it is
  70 2012-09-29T16:12:20  <ThomasWaldmann> sunu: did you ever try "make test"?
  71 2012-09-29T16:14:21  <ThomasWaldmann> (we'll have to fix some stuff there for the "support" directory, code in there shall not get tested)
  72 2012-09-29T16:19:30  <sunu> ThomasWaldmann:  no never ran make test
  73 2012-09-29T16:19:37  <sunu> just running now
  74 2012-09-29T16:26:22  *** sunu has quit IRC
  75 2012-09-29T16:29:59  *** sunu has joined #moin-dev
  76 2012-09-29T16:35:07  <ThomasWaldmann> python 3.3 is out! :)
  77 2012-09-29T16:35:31  <ThomasWaldmann> (we can't use it, though)
  78 2012-09-29T16:35:35  <sunu> ThomasWaldmann: need to ignore support in make test.
  79 2012-09-29T16:36:30  <sunu> and besides all the failures in support , I get one in /MoinMoin/storage/stores/gae.py .
  80 2012-09-29T16:36:45  <sunu> am I supposed to fix that ?
  81 2012-09-29T16:37:16  <ThomasWaldmann> sunu: i am currently working on ignoring some stuff like support/ ...
  82 2012-09-29T16:37:31  <ThomasWaldmann> sunu: it is already fixed in the repo
  83 2012-09-29T16:38:18  <sunu> ok.
  84 2012-09-29T16:39:53  <sunu> ThomasWaldmann: btw what's the frequency of the updates to the irc log ? They help me a lot when my connection is reset :)
  85 2012-09-29T16:40:39  <ThomasWaldmann> good question, don't remember
  86 2012-09-29T16:41:10  <ThomasWaldmann> do you have some internet server machine where you could login via ssh? maybe at university?
  87 2012-09-29T16:45:23  <sunu> nope ... my university is full of crap. They just don't want students to access internet.  They even shut down the wifi routers last week :(.
  88 2012-09-29T17:01:43  <xiaq> ThomasWaldmann: http://codereview.appspot.com/6490097/ updated
  89 2012-09-29T17:07:32  *** sunu__ has joined #moin-dev
  90 2012-09-29T17:09:22  *** sunu has quit IRC
  91 2012-09-29T17:09:26  *** sunu__ is now known as sunu
  92 2012-09-29T17:14:48  <sunu> ThomasWaldmann: http://codereview.appspot.com/6568068/ updates
  93 2012-09-29T17:16:40  <ThomasWaldmann> xiaq: Type() stuff didn't work for assembling the ct string?
  94 2012-09-29T17:18:06  <xiaq> ThomasWaldmann: if i keep default_contenttype_params in the Entry the semantics is a bit funny
  95 2012-09-29T17:18:30  <xiaq> or i can create a Type instance just to assemble the ct string...
  96 2012-09-29T17:20:51  <ThomasWaldmann> well, if you look at Type.__unicode__, you see that assembling that thing is non-trivial
  97 2012-09-29T17:22:24  <xiaq> ThomasWaldmann: ah, ok
  98 2012-09-29T17:23:49  <ThomasWaldmann> (of course if one has a well-made string already, it's no big issue)
  99 2012-09-29T17:24:18  <ThomasWaldmann> somehow a case of code reuse though
 100 2012-09-29T17:30:39  <xiaq> ThomasWaldmann: http://codereview.appspot.com/6490097/ updated
 101 2012-09-29T17:42:09  <ThomasWaldmann> xiaq: replied
 102 2012-09-29T17:42:49  *** sunu has quit IRC
 103 2012-09-29T17:44:51  <xiaq> ThomasWaldmann: updated
 104 2012-09-29T17:45:01  <xiaq> oh no, wrong patch
 105 2012-09-29T17:45:05  <xiaq> a moment...
 106 2012-09-29T17:46:02  <xiaq> ThomasWaldmann: updated with correct patch this time :)
 107 2012-09-29T17:46:48  *** sunu has joined #moin-dev
 108 2012-09-29T17:47:21  <ThomasWaldmann> sunu: welcome to the world of console ircing! :)
 109 2012-09-29T17:47:39  <sunu> :D thanks
 110 2012-09-29T17:47:47  <ThomasWaldmann> 15:46    #  sunu (Tarashish Mishra (aka sunu)) !~tmishra@test.moinmo.in has joined #moin-dev
 111 2012-09-29T17:47:59  <ThomasWaldmann> btw, this is how your join msg looks like
 112 2012-09-29T17:48:30  <ThomasWaldmann> btw, is there something wrong with your firefox? it says it is 11.0, that doesn't look like ubuntu 12.04.
 113 2012-09-29T17:49:47  <sunu> cool, I feel like a hacker from those movies:)  ... idk it's a fresh install of 12.04 just set it up today after my sister took my laptop
 114 2012-09-29T17:50:00  <ThomasWaldmann> should be 15.x
 115 2012-09-29T17:50:13  <xiaq> ThomasWaldmann: so i'm going to rebasing the 3 patches: http://codereview.appspot.com/6490097/ http://codereview.appspot.com/6496098/ http://codereview.appspot.com/6488071/ against hg tip and push them
 116 2012-09-29T17:50:34  <ThomasWaldmann> sunu: only try hacking on YOUR machines :)
 117 2012-09-29T17:50:59  <xiaq> ThomasWaldmann: btw, do we have the new ESR's bot after the CIA breakdown?
 118 2012-09-29T17:51:26  * xiaq just learned about the CIA breakdown from ESR's blog yesterday
 119 2012-09-29T17:51:30  <ThomasWaldmann> ESR's bot?
 120 2012-09-29T17:51:42  <sunu> ThomasWaldmann: only if i knew how :p
 121 2012-09-29T17:52:15  <xiaq> ThomasWaldmann: it's named irker http://esr.ibiblio.org/?p=4612
 122 2012-09-29T17:52:55  <ThomasWaldmann> xiaq: ok, for pushing
 123 2012-09-29T17:54:03  <ThomasWaldmann> lol at the "coming soon" :)
 124 2012-09-29T17:54:46  <sunu> ThomasWaldmann: indeed it is 11.0. I will upgrade. btw this needs a review http://codereview.appspot.com/6568068
 125 2012-09-29T17:55:28  <xiaq> ThomasWaldmann: that one already came :)
 126 2012-09-29T17:59:00  <xiaq> we are supporting gae, cool
 127 2012-09-29T17:59:34  <ThomasWaldmann> guido pushed this :)
 128 2012-09-29T18:01:08  <ThomasWaldmann> and, unintentionally, it will give us also standalone no-setup.py deployment
 129 2012-09-29T18:01:31  <xiaq> ThomasWaldmann: pull request sent
 130 2012-09-29T18:03:03  * ThomasWaldmann pulled/pushed
 131 2012-09-29T18:08:50  <ThomasWaldmann> xiaq: the irker code looks a bit ugly
 132 2012-09-29T18:12:22  <xiaq> ThomasWaldmann: guess it would be better than CIA though :
 133 2012-09-29T18:12:23  <xiaq> :)
 134 2012-09-29T18:14:47  <xiaq> quite small though. we hacked up something similiar to CIA, to broadcast changes in our servers' /etc (which we set up git repository with etckeeper)
 135 2012-09-29T18:16:18  <xiaq> ThomasWaldmann: sent another pull request (fixing a trivial bug...)
 136 2012-09-29T18:20:20  <ThomasWaldmann> http://pastebin.com/9RBBniM1
 137 2012-09-29T18:26:05  <ThomasWaldmann> xiaq: did you already find the irker repo?
 138 2012-09-29T18:30:01  <xiaq> ThomasWaldmann: i just grabbed the source from http://www.catb.org/esr/irker/
 139 2012-09-29T18:31:06  <ThomasWaldmann> no revision control(?), no pep8, ...
 140 2012-09-29T18:31:56  <ThomasWaldmann> sounds like i wait whether that $othercompany/project can just reinstall the cia service
 141 2012-09-29T18:32:07  <xiaq> ThomasWaldmann: i guess so. it was rushed due to cia.vc death (as claimed by esr)
 142 2012-09-29T18:32:33  <xiaq> ThomasWaldmann: this is the thing we hacked up http://git.tuna.tsinghua.edu.cn/?p=RepoMonitor.git;a=tree :) it's <100 lines of code
 143 2012-09-29T18:32:48  <xiaq> a supybot plugin it is
 144 2012-09-29T18:33:40  <xiaq> the hook just uses socat to message the server, almost a one-liner :)
 145 2012-09-29T18:37:13  <ThomasWaldmann> hmm, supybot sounds nice (as we use that anyway for channel logging)
 146 2012-09-29T18:38:33  * ThomasWaldmann likes the license :D
 147 2012-09-29T18:47:39  <sunu> ThomasWaldmann: http://codereview.appspot.com/6568068 done. Now some hint on how to call the standalone server ?
 148 2012-09-29T18:56:18  <xiaq> py 3.3 released: http://www.python.org/getit/releases/3.3.0/
 149 2012-09-29T18:57:32  <xiaq> ThomasWaldmann: did you looked at Bottle by which Flask is inspired (IIRC)?
 150 2012-09-29T18:58:18  <xiaq> Security improvements:
 151 2012-09-29T18:58:19  <xiaq> Hash randomization is switched on by default.
 152 2012-09-29T18:58:25  <xiaq> ah, finally... :)
 153 2012-09-29T19:04:02  <ThomasWaldmann> sunu: ok
 154 2012-09-29T19:04:17  <ThomasWaldmann> xiaq: no, didn't look at bottle
 155 2012-09-29T19:04:32  <ThomasWaldmann> (at least not deeply)
 156 2012-09-29T19:05:10  <xiaq> ThomasWaldmann: perhaps the biggest difference to Flask is the one-file approach
 157 2012-09-29T19:05:21  <xiaq> ThomasWaldmann: which is also the limitation that led to the creation of Flask
 158 2012-09-29T19:05:56  <xiaq> Bottle also features py3k support
 159 2012-09-29T19:09:06  <sunu> moin.py is now the entry point to GAE and caller of standalone server
 160 2012-09-29T19:09:23  <sunu> ThomasWaldmann: is that good ?
 161 2012-09-29T19:13:54  *** moinBot has joined #moin-dev
 162 2012-09-29T19:14:13  <xiaq> ThomasWaldmann: are you trying RepoMonitor? :)
 163 2012-09-29T19:14:47  <xiaq> ThomasWaldmann: i have a slightly cleaned up fork http://git.xiaq.z.tuna.tsinghua.edu.cn/?p=RepoMonitor.git;a=summary (i've asked Ray to merge it)
 164 2012-09-29T19:16:39  *** moinBot has joined #moin-dev
 165 2012-09-29T19:17:44  <ThomasWaldmann> xiaq: one file approach -> which is known to not scale
 166 2012-09-29T19:18:30  <ThomasWaldmann> sunu: yes, that is the goal. not quite there, though. did you test the gae part?
 167 2012-09-29T19:19:13  <sunu> ThomasWaldmann: yeah gae running fine
 168 2012-09-29T19:19:28  <sunu> tests also pass :)
 169 2012-09-29T19:20:17  <moinBot> foo bar
 170 2012-09-29T19:20:41  <ThomasWaldmann> sunu: ok, commit, push, pull request :)
 171 2012-09-29T19:21:02  <ThomasWaldmann> and then we'll look at how to integrate the moin script command
 172 2012-09-29T19:21:12  <sunu> ThomasWaldmann: yay :)
 173 2012-09-29T19:21:47  <xiaq> ThomasWaldmann: yeah. but still interesting
 174 2012-09-29T19:22:24  <xiaq> hm, i think i spotted a whoosh bug
 175 2012-09-29T19:22:24  <ThomasWaldmann> flask also began with a single file :P as april joke.
 176 2012-09-29T19:22:54  <ThomasWaldmann> xiaq: that foo bar was from RepoMonitor :)
 177 2012-09-29T19:23:11  <xiaq> ThomasWaldmann: http://bpaste.net/show/0YJUGGGTcFTEPOLbLKG1/ can you confirm this?
 178 2012-09-29T19:23:29  <xiaq> ThomasWaldmann: i'm getting "[]" as output, but obviously i shouldn't...
 179 2012-09-29T19:23:44  <xiaq> p or (not p) is always true...
 180 2012-09-29T19:24:12  <ThomasWaldmann> trying ...
 181 2012-09-29T19:26:53  <ThomasWaldmann> xiaq: interesting, it crashes on 2.4x branch head
 182 2012-09-29T19:29:26  <sunu> ThomasWaldmann: pull request sent :)
 183 2012-09-29T19:32:44  <ThomasWaldmann> xiaq: http://rn0.ru/show/lITB8y8VlZTlSIucqJgC/ also happens on 2.4.1 tag from repo
 184 2012-09-29T19:33:49  <xiaq> ThomasWaldmann: so something is definitely wrong
 185 2012-09-29T19:34:23  <xiaq> ThomasWaldmann: reported https://bitbucket.org/mchaput/whoosh/issue/292/
 186 2012-09-29T19:34:24  <ThomasWaldmann> i had a quick look, but didn't find an obvious reason for the crash
 187 2012-09-29T19:38:17  <ThomasWaldmann> $ python test1.py
 188 2012-09-29T19:38:18  <ThomasWaldmann> [<Hit {'itemtype': u'a', 'title': u'a1'}>, <Hit {'itemtype': u'a', 'title': u'a2'}>, <Hit {'itemtype': u'b', 'title': u'b1'}>]
 189 2012-09-29T19:38:38  <ThomasWaldmann> (that is when running it on default branch, 2.5 dev)
 190 2012-09-29T19:40:55  <xiaq> ThomasWaldmann: that's good, what should we do then? maybe use 2.5dev in moin2?
 191 2012-09-29T19:41:56  <ThomasWaldmann> i didn't see such issues yet in moin
 192 2012-09-29T19:42:14  <ThomasWaldmann> and you didn't get the crash I got, right?
 193 2012-09-29T19:42:20  <xiaq> ThomasWaldmann: you will :) http://codereview.appspot.com/6497100/
 194 2012-09-29T19:42:24  <xiaq> ThomasWaldmann: yeah i got []
 195 2012-09-29T19:42:45  <xiaq> ThomasWaldmann: the bug is causing the whooshized index to show nothing by default :(
 196 2012-09-29T19:43:55  <ThomasWaldmann> that CR shows just you removing some stuff?
 197 2012-09-29T19:44:31  <ThomasWaldmann> problem is that whoosh repo default branch is a bit unstable
 198 2012-09-29T19:44:44  <xiaq> ThomasWaldmann: patch set 2 is automatic rebasing
 199 2012-09-29T19:44:56  <ThomasWaldmann> and sometimes stuff gets fixed very quickly, but it can also take a month...
 200 2012-09-29T19:45:22  <xiaq> ThomasWaldmann: and you reviewed patch set 1, it's "whooshizing" index filtering code
 201 2012-09-29T19:47:00  <ThomasWaldmann> hmm, maybe we first fix whoosh? :)
 202 2012-09-29T19:50:43  <ThomasWaldmann> sunu: pulled/merged/pushed
 203 2012-09-29T19:51:10  <xiaq> ThomasWaldmann: sounds reasonable
 204 2012-09-29T19:51:23  <xiaq> anyway i'm going to bed... gn :)
 205 2012-09-29T19:52:31  <ThomasWaldmann> gn xiaq
 206 2012-09-29T19:53:06  <sunu> xiaq must be from the east too :) .
 207 2012-09-29T19:53:36  <sunu> btw ThomasWaldmann now some hint on how to do the standalone server ?
 208 2012-09-29T19:55:39  <dreimark> re
 209 2012-09-29T20:00:22  <ThomasWaldmann> sunu: china
 210 2012-09-29T20:00:29  <ThomasWaldmann> wb dreimark
 211 2012-09-29T20:00:46  <ThomasWaldmann> sunu: ok, i have a look at how to interface... wait a minute
 212 2012-09-29T20:02:51  <ThomasWaldmann> sunu: have a look at MoinMoin.script (__init__.py)
 213 2012-09-29T20:03:37  <sunu> ok
 214 2012-09-29T20:04:19  <ThomasWaldmann> maybe if you just import main from there and call it, it could work :)
 215 2012-09-29T20:05:02  <dreimark> sunu: http://moinmo.in/TarashishMishra
 216 2012-09-29T20:05:10  <dreimark> please add some more details
 217 2012-09-29T20:05:25  <dreimark> e.g. that you contribute to moin
 218 2012-09-29T20:06:31  <sunu> ThomasWaldmann: will try.
 219 2012-09-29T20:06:51  <sunu> dreimark: ok .. sure :)
 220 2012-09-29T20:07:08  <dreimark> ThomasWaldmann: saving takes ages on MM
 221 2012-09-29T20:07:26  <dreimark> sunu: I added you to the trusted users, so no more textcha questions
 222 2012-09-29T20:10:19  <sunu> dreimark: thanks :)
 223 2012-09-29T20:13:23  <sunu> dreimark: is it ok to add my blog address there ?
 224 2012-09-29T20:16:56  <dreimark> sunu: yes
 225 2012-09-29T20:17:14  <dreimark> I just mentioned it because sometimes someone cleans up
 226 2012-09-29T20:17:35  <dreimark> and he may not know anything about the person just doing a testpage or not
 227 2012-09-29T20:21:49  <dreimark> ThomasWaldmann: http://codereview.appspot.com/6490097/ is that pushed ?
 228 2012-09-29T20:21:53  <dreimark> I have some remarks
 229 2012-09-29T20:34:28  <ThomasWaldmann> yes
 230 2012-09-29T20:36:43  <sunu> ThomasWaldmann: do we need to create index in moin.py or the user will create manually ?
 231 2012-09-29T20:38:18  <sunu>  http://codereview.appspot.com/6593045 this works
 232 2012-09-29T20:39:01  <dreimark> ThomasWaldmann: then it needs further work. me adds comments
 233 2012-09-29T20:39:18  <dreimark> I think we should not make it more difficult to get plugins in
 234 2012-09-29T20:40:08  *** RogerHaase has joined #moin-dev
 235 2012-09-29T20:40:25  <dreimark> xiaq: ^
 236 2012-09-29T20:40:46  <dreimark> see my comments on the cr 6490097 too
 237 2012-09-29T20:42:37  <ThomasWaldmann> sunu: commented
 238 2012-09-29T20:43:19  <ThomasWaldmann> dreimark: there are no comments from you
 239 2012-09-29T20:43:33  <ThomasWaldmann> maybe because this is closed
 240 2012-09-29T20:44:13  <dreimark> soon
 241 2012-09-29T20:45:48  <ThomasWaldmann> sunu: about index creation: it is currently documented that the user has to create it once before using moin
 242 2012-09-29T20:46:16  <ThomasWaldmann> but if we had a similar way as on gae to check if there is an index, we could maybe handle it in a similar way
 243 2012-09-29T20:46:46  <sunu> ThomasWaldmann: http://codereview.appspot.com/6593045 updated
 244 2012-09-29T20:47:48  <ThomasWaldmann> sunu: maybe check if you can create an index using moin.py
 245 2012-09-29T20:47:54  <dreimark> ThomasWaldmann: now
 246 2012-09-29T20:48:07  <ThomasWaldmann> like python moin.py index-create -s -i
 247 2012-09-29T20:48:24  <dreimark> http://codereview.appspot.com/6490097/
 248 2012-09-29T20:48:55  <sunu> ThomasWaldmann: ok.
 249 2012-09-29T20:50:35  <sunu> ThomasWaldmann: how to delete the created index ?
 250 2012-09-29T20:51:07  <dreimark> to have no misunderstanding everything is fine besides the from MoinMoin.constants.contenttypes import Group* definitions
 251 2012-09-29T20:52:17  <ThomasWaldmann> sunu: we also have a configuration issue, wikiconfig.py needs to be different on gae vs. local
 252 2012-09-29T20:53:47  <sunu> cant we ship both and then just use whichever we want ?
 253 2012-09-29T20:54:17  <ThomasWaldmann> yes, that's one possibility
 254 2012-09-29T20:56:10  <sunu> my previous question, how do i delete the index i crated ?
 255 2012-09-29T20:56:24  <sunu> created *
 256 2012-09-29T20:58:08  <ThomasWaldmann> when it is in the default fs location, it is in wiki/index/...
 257 2012-09-29T20:59:56  <ThomasWaldmann> ah, forget about the config issue, i already solved that by using 2 configs and selecting via env variable on gae
 258 2012-09-29T21:00:52  <sunu> ok.
 259 2012-09-29T21:01:24  <ThomasWaldmann> see index_storage in wikiconfig*.py
 260 2012-09-29T21:06:28  <ThomasWaldmann> dreimark: i don't quite get your point there
 261 2012-09-29T21:07:56  <ThomasWaldmann> the whole point of this changeset was to decentralize the stuff from one datastructure to the itemtype class definitions
 262 2012-09-29T21:10:01  <ThomasWaldmann> with next changeset, we'll do a first test of the cia replacement
 263 2012-09-29T21:20:23  <ThomasWaldmann> sunu: do script commands work?
 264 2012-09-29T21:23:47  <dreimark> ThomasWaldmann: i don't want 10 new Group vars thats all
 265 2012-09-29T21:24:48  <dreimark> i wanted only 1 which one could extend later without changing any other imports of it
 266 2012-09-29T21:26:05  <sunu> ThomasWaldmann: index should be completely empty or latest_revs and all_revs should be there?
 267 2012-09-29T21:27:00  <sunu> I am able to call the script but they complain about latest_rev missing which i deleted
 268 2012-09-29T21:28:03  <dreimark> sometimes I think we have too much lowlevel constants and we should not continue with that
 269 2012-09-29T21:28:19  <dreimark> we should group them to a higher type
 270 2012-09-29T21:32:02  <ThomasWaldmann> sunu: a fresh index has a few rather small files in it
 271 2012-09-29T21:32:37  <ThomasWaldmann> dreimark: the module is a container
 272 2012-09-29T21:33:33  <ThomasWaldmann> sunu:
 273 2012-09-29T21:33:34  <ThomasWaldmann> +    python moin.py index-create -s -i  # create an index and a storage
 274 2012-09-29T21:33:34  <ThomasWaldmann> +    python moin.py                     # run the standalone server
 275 2012-09-29T21:33:40  <ThomasWaldmann> does that work?
 276 2012-09-29T21:35:15  <sunu> ThomasWaldmann: No.
 277 2012-09-29T21:35:59  <sunu> I am not being able to pass on -s and -i options
 278 2012-09-29T21:36:51  <sunu> I have to red up about flask-script I guess
 279 2012-09-29T21:36:57  <ThomasWaldmann> what happens?
 280 2012-09-29T21:37:47  <sunu> This OSError: [Errno 2] No such file or directory: '/home/sunu/moin-2.0/wiki/index'
 281 2012-09-29T21:38:35  <ThomasWaldmann> well, create the directory, empty
 282 2012-09-29T21:39:31  <sunu> yeah tried already.
 283 2012-09-29T21:39:34  <sunu> whoosh.index.EmptyIndexError: Index 'latest_revs' does not exist in FileStorage('/home/sunu/moin-2.0/wiki/index')
 284 2012-09-29T21:39:50  <sunu> it complains about latest_revs
 285 2012-09-29T21:40:07  <ThomasWaldmann> python moin.py index-create -s -i     <-- does this happen with this?
 286 2012-09-29T21:42:16  <dreimark> https://bitbucket.org/thomaswaldmann/moin-2.0/src/5b81e544b03c/MoinMoin/items/content.py#cl-64
 287 2012-09-29T21:42:48  <dreimark> has lots of imports of something which i think should be only one
 288 2012-09-29T21:42:56  <sunu> my bad. It works just fine :)
 289 2012-09-29T21:43:35  <ThomasWaldmann> sunu: that directory creation issue is a little detail that might need fixing, but it is unrelated to your current work
 290 2012-09-29T21:43:56  <ThomasWaldmann> ok, if it works, commit :)
 291 2012-09-29T21:45:49  <ThomasWaldmann> sunu: ah, one last thing
 292 2012-09-29T21:45:59  <ThomasWaldmann> #!/usr/bin/env python
 293 2012-09-29T21:46:05  <ThomasWaldmann> as first line of moin.py
 294 2012-09-29T21:46:12  <ThomasWaldmann> and chmod +x moin.py
 295 2012-09-29T21:47:49  <ThomasWaldmann> dreimark: you can also import keys and contenttypes and then use keys.XXX and contenttypes.YYY
 296 2012-09-29T21:49:42  <moinBot> http://hg.moinmo.in/moin/2.0/rev/279128a8b7aa 2012-09-29 Thomas Waldmann <tw AT waldmann-edv DOT de> : docs: move the support archive creation docs to the developer docs
 297 2012-09-29T21:49:43  <moinBot> http://hg.moinmo.in/moin/2.0/rev/f6155eb29948 2012-09-29 Thomas Waldmann <tw AT waldmann-edv DOT de> : add standalone installation docs
 298 2012-09-29T21:49:52  <ThomasWaldmann> \o/
 299 2012-09-29T21:50:46  <ThomasWaldmann> hmm, branch is missing
 300 2012-09-29T21:50:59  <dreimark> ThomasWaldmann: yes this is the change i like, i just don't like that I have to change the import of those if I have a new group
 301 2012-09-29T21:55:45  <dreimark> so a list in that case - and no ordered dict is it
 302 2012-09-29T21:56:30  <sunu> ThomasWaldmann: sent a pull request
 303 2012-09-29T21:57:13  <moinBot> http://hg.moinmo.in/moin/2.0/rev/30f469989e7b 2012-09-29 Thomas Waldmann <tw AT waldmann-edv DOT de>  docs: add GAE / support archive hint to requirements docs
 304 2012-09-29T21:57:57  <moinBot> http://hg.moinmo.in/moin/2.0/rev/251ff42a7679 2012-09-30 Tarashish Mishra  Now moin.py runs standalone server
 305 2012-09-29T21:57:58  <moinBot> http://hg.moinmo.in/moin/2.0/rev/bd1c9ba6a9ee 2012-09-29 Thomas Waldmann <tw AT waldmann-edv DOT de>  merged
 306 2012-09-29T21:59:09  <sunu> :D awesome. it shows here :)
 307 2012-09-29T21:59:55  <ThomasWaldmann> cia is dead, long live supybot :D
 308 2012-09-29T22:00:37  <sunu> ThomasWaldmann: I only know one CIA and that's the US agency :D
 309 2012-09-29T22:01:52  <ThomasWaldmann> cia.vc
 310 2012-09-29T22:02:12  <ThomasWaldmann> sunu: https://bitbucket.org/thomaswaldmann/moin-2.0/issue/263/create-a-setup-less-moin-using-stuff-from do you want to close that?
 311 2012-09-29T22:02:51  <ThomasWaldmann> just put some final comment, point to your changesets on http://hg.moinmo.in/moin/2.0/... and close it
 312 2012-09-29T22:03:12  <sunu> ok.
 313 2012-09-29T22:10:29  <sunu> Done.
 314 2012-09-29T22:12:21  <sunu> Bed time now. Good night :)
 315 2012-09-29T22:12:29  <dreimark> gn sunu
 316 2012-09-29T22:12:34  <sunu> See you tomorrow.
 317 2012-09-29T22:12:43  <sunu> gn dreimark
 318 2012-09-29T22:12:56  <ThomasWaldmann> gn sunu
 319 2012-09-29T22:25:03  <moinBot> http://hg.moinmo.in/moin/2.0/rev/5c1a0f5c35e3 2012-09-29 Thomas Waldmann <tw AT waldmann-edv DOT de>  only do the MoinMoin.log.configured = True hack when running on GAE
 320 2012-09-29T22:50:36  * ThomasWaldmann thinks about having some app.on_gae boolean that can be checked at misc places to see whether we run on gae
 321 2012-09-29T22:54:57  <dreimark> gn
 322 2012-09-29T23:02:56  <ThomasWaldmann> gn dreimark
 323 2012-09-29T23:33:49  <moinBot> http://hg.moinmo.in/moin/2.0/rev/52dd2c449e07 2012-09-29 Thomas Waldmann <tw AT waldmann-edv DOT de>  add app.on_gae boolean, so code can check whether it runs on Google App Engine
 324 2012-09-29T23:54:47  <moinBot> http://hg.moinmo.in/moin/2.0/rev/43d726533fad 2012-09-29 Thomas Waldmann <tw AT waldmann-edv DOT de>  merged changesets from default branch into gae branch

MoinMoin: MoinMoinChat/Logs/moin-dev/2012-09-29 (last edited 2012-09-28 22:45:04 by IrcLogImporter)