1 2011-06-28T00:58:30  *** m4k3r has joined #moin-dev
   2 2011-06-28T01:09:54  *** caliston has joined #moin-dev
   3 2011-06-28T01:12:04  <caliston> Hello!  I'm hacking up a theme for moinmoin as CMS (based on heat.py with most of the editing stuff taken out).  I want to generate a link to another wiki page.  If I use page.link_to() I can make a link to the current page (+/- some other options).  How do I generate a link to another page (like RecentChanges)?
   4 2011-06-28T01:24:39  *** m4k3r has quit IRC
   5 2011-06-28T02:11:24  *** jek has quit IRC
   6 2011-06-28T02:15:08  *** jek has joined #moin-dev
   7 2011-06-28T03:37:06  *** balu has quit IRC
   8 2011-06-28T04:12:08  *** Marchael has quit IRC
   9 2011-06-28T04:14:07  *** CIA-70 has quit IRC
  10 2011-06-28T04:16:39  *** CIA-45 has joined #moin-dev
  11 2011-06-28T04:24:43  *** Marchael has joined #moin-dev
  12 2011-06-28T04:26:15  <Marchael> moin
  13 2011-06-28T06:12:59  *** m4k3r has joined #moin-dev
  14 2011-06-28T06:26:45  <Marchael> ThomasWaldmann: ping
  15 2011-06-28T07:18:10  <ronny> Marchael: he might still be aslept, may i help you instead?
  16 2011-06-28T07:25:01  *** brunomartin has quit IRC
  17 2011-06-28T07:25:13  *** brunomartin has joined #moin-dev
  18 2011-06-28T07:25:32  <Marchael> ronny: mm, thank you. Thomas told what some wiki admins want to rebuild indexes using alternarive path, then stop moin and move indexes to original location. This can be done by cron, but I'm not quite understand what Thomas wants from me.
  19 2011-06-28T07:26:10  <Marchael> I add building path option to script and tested it
  20 2011-06-28T07:26:40  <ronny> now you need something like a sigusr handler which repens the indexes if asked
  21 2011-06-28T07:27:11  <ronny> (on unix you use sigusr1/2 to tell a service to do stuff like reloading the config)
  22 2011-06-28T07:27:44  <ronny> the basic usecase is rebuild indexes outside of moinmoin, move them in-place, tell moin to use the new ones by signal
  23 2011-06-28T07:28:23  <ronny> does that make your task clear?
  24 2011-06-28T07:29:21  <Marchael> so script should rebuild indexes in another path, stop moin, them move indexes to original location and then start moin?
  25 2011-06-28T07:29:39  <Marchael> s/them/then/
  26 2011-06-28T07:30:44  <dreimark> caliston: you have to use the page object for RecentChanges, e.g.
  27 2011-06-28T07:31:00  <dreimark> Page(request, pagename).link_to(request,pagename)
  28 2011-06-28T07:31:09  <dreimark> u'<a href="/RecentChanges">RecentChanges</a>'
  29 2011-06-28T07:31:35  *** m4k3r has quit IRC
  30 2011-06-28T07:32:43  <dreimark> Marchael: without stopping moin it would be great
  31 2011-06-28T07:33:04  <Marchael> dreimark: but we can abort some transaction then
  32 2011-06-28T07:33:12  <Marchael> *transactions
  33 2011-06-28T07:34:07  <Marchael> or we can lost some documents when will moving indexes to original location
  34 2011-06-28T07:35:02  <dreimark> Marchael: you know that a touch of the wsgi script automates the restart?
  35 2011-06-28T07:36:40  <Marchael> hm, yes, but as far as I know restart happening only when someone make changes to script
  36 2011-06-28T07:36:53  <dreimark> try in your repo moin-2.0/env/bin$ touch moin
  37 2011-06-28T07:36:58  <dreimark> works for me
  38 2011-06-28T07:39:57  <Marchael> oh, cool
  39 2011-06-28T07:43:57  <Marchael> dreimark: but anyway, without stopping moin we may lose some documents
  40 2011-06-28T07:45:41  <Marchael> and update indexes while moin working may damage index files or raises exceptions related with locking.
  41 2011-06-28T07:46:46  *** m4k3r has joined #moin-dev
  42 2011-06-28T07:49:02  <ronny> Marchael: switching over indexes will always be a bit lossy, since there is a time window between indexing, switching files and restarting
  43 2011-06-28T07:56:14  <dreimark> Marchael: how long does the update process take?
  44 2011-06-28T07:56:26  *** pkumar has joined #moin-dev
  45 2011-06-28T07:57:04  <Marchael> dreimark: for my small wiki about 20-30 secs
  46 2011-06-28T07:58:04  <dreimark> hmm, long. I guess a company wiki will then be offline for more than a quarter
  47 2011-06-28T08:01:26  <dreimark> was that the time for switching indexes?
  48 2011-06-28T08:01:28  <dreimark> brb
  49 2011-06-28T08:02:47  <Marchael> stop moin time + start moin time + (1-5 seconds)
  50 2011-06-28T08:07:26  <Marchael>  33011.92ms
  51 2011-06-28T08:23:42  *** pkumar has quit IRC
  52 2011-06-28T08:25:24  <Marchael> dreimark: but I use normal writer now, when Matt will realesed new version with bugfix, I perfomance will increased on 10-15%
  53 2011-06-28T08:26:22  <Marchael> s/I perfomance/perfomance/
  54 2011-06-28T09:08:30  *** hardy89 has joined #moin-dev
  55 2011-06-28T09:38:40  *** hardy89 has quit IRC
  56 2011-06-28T10:28:01  <ThomasWaldmann> moin
  57 2011-06-28T10:31:55  *** m4k3r has quit IRC
  58 2011-06-28T10:33:41  *** m4k3r has joined #moin-dev
  59 2011-06-28T11:09:30  *** greg_f has joined #moin-dev
  60 2011-06-28T11:23:59  <ThomasWaldmann> hmm, 1.9.3 was a year ago, looks like i finally should do a new fix release.
  61 2011-06-28T11:26:27  <ThomasWaldmann> btw, my mobile phone started to work again. very strange.
  62 2011-06-28T11:31:31  *** greg_f has quit IRC
  63 2011-06-28T11:31:39  <dreimark> good idea
  64 2011-06-28T11:32:20  *** greg_f has joined #moin-dev
  65 2011-06-28T11:44:54  <Marchael> ThomasWaldmann: see ep
  66 2011-06-28T11:59:25  *** m4k3r has quit IRC
  67 2011-06-28T11:59:42  *** m4k3r has joined #moin-dev
  68 2011-06-28T12:18:23  *** sinha has joined #moin-dev
  69 2011-06-28T13:10:34  *** sinha has quit IRC
  70 2011-06-28T13:29:38  *** m4k3r has quit IRC
  71 2011-06-28T13:30:22  *** m4k3r has joined #moin-dev
  72 2011-06-28T13:52:05  *** Marchael has quit IRC
  73 2011-06-28T13:58:35  *** Marchael has joined #moin-dev
  74 2011-06-28T14:18:59  *** hardy89 has joined #moin-dev
  75 2011-06-28T14:39:57  *** pkumar has joined #moin-dev
  76 2011-06-28T14:55:23  *** mkerrin has joined #moin-dev
  77 2011-06-28T14:59:43  <mkerrin> Hi, I having a issue that shows up in the MoinMoin/storage/_tests/test_backend_sqla.py For me these tests are failing with NoSuchRevisionError
  78 2011-06-28T14:59:55  <mkerrin> I added a pull request to bitbucket that fixes it.
  79 2011-06-28T15:03:08  <ThomasWaldmann> ah, hi mkerrin
  80 2011-06-28T15:03:21  <mkerrin> hi
  81 2011-06-28T15:03:53  <ThomasWaldmann> do you have any idea why I have test_backends_sqla.py ......................................................................................................................X................
  82 2011-06-28T15:04:38  <ThomasWaldmann> how do you run the tests?
  83 2011-06-28T15:04:56  <mkerrin> py.test MoinMoin/storage/_tests/test_backends_sqla.py
  84 2011-06-28T15:06:07  <mkerrin> when using mysql as a backend the _item_id column is always null for me. I don't know why this is different to you
  85 2011-06-28T15:06:20  <ThomasWaldmann> platform linux2 -- Python 2.7.1 -- pytest-1.3.4
  86 2011-06-28T15:06:33  <ThomasWaldmann> do you use anything different?
  87 2011-06-28T15:06:51  <dreimark> is this in the env?
  88 2011-06-28T15:06:55  <ThomasWaldmann> ah, ok, so you configured it for mysql, not for sqlite?
  89 2011-06-28T15:08:09  <ThomasWaldmann> from mitsuhiko: ANN: Flask 0.7 Released  \o/
  90 2011-06-28T15:08:16  <dreimark> :)
  91 2011-06-28T15:10:20  <mkerrin> I am using the above packages. My server is using mysql but I am assuming that the tests run using sqlite as I just created a fresh checkout with no configuration
  92 2011-06-28T15:11:31  <mkerrin> I am using SQLAlchemy 0.7.1 this is the only thing that I see that might cause the difference
  93 2011-06-28T15:14:10  <ThomasWaldmann> >>> sqlalchemy.__version__
  94 2011-06-28T15:14:11  <ThomasWaldmann> '0.6.7'
  95 2011-06-28T15:14:21  * dreimark installs a new env
  96 2011-06-28T15:15:01  <ThomasWaldmann> >>> sqlalchemy.__version__
  97 2011-06-28T15:15:06  <ThomasWaldmann> oops
  98 2011-06-28T15:15:16  <ThomasWaldmann> pip install --upgrade sqlalchemy
  99 2011-06-28T15:15:22  *** m4k3r_ has joined #moin-dev
 100 2011-06-28T15:15:35  *** m4k3r has quit IRC
 101 2011-06-28T15:16:08  <ThomasWaldmann> mkerrin: i am seeing F now
 102 2011-06-28T15:16:14  <ThomasWaldmann> lots
 103 2011-06-28T15:16:47  <mkerrin> yeah there are lots of other failuers too
 104 2011-06-28T15:17:04  <mkerrin> haven't looked into them
 105 2011-06-28T15:17:35  <dreimark>  13 failed, 121 passed, 1 xpassed in 28.24 seconds
 106 2011-06-28T15:20:05  <ThomasWaldmann> user:        michael@michael-ThinkPad-T500
 107 2011-06-28T15:20:17  <ThomasWaldmann> mkerrin: is this what you really want?
 108 2011-06-28T15:20:33  <ThomasWaldmann> maybe you have to edit ~/.hgrc?
 109 2011-06-28T15:21:03  <dreimark> bbl
 110 2011-06-28T15:21:27  <mkerrin> ah. I think I did that after committing locally, hoped it would just change
 111 2011-06-28T15:23:56  <ThomasWaldmann> mkerrin: do you like to fix it before I pull?
 112 2011-06-28T15:24:23  <ThomasWaldmann> looks like your patch fixes all Fails for latest sqla
 113 2011-06-28T15:25:57  <mkerrin> how do I do that? just started on hg today?
 114 2011-06-28T15:26:52  <ThomasWaldmann> i am not sure whether you can fix your bb repo. but you could rollback the latest commit to your local repo, commit it again.
 115 2011-06-28T15:27:07  <ThomasWaldmann> then do a fresh repo on bb and push it there.
 116 2011-06-28T15:28:46  *** m4k3r_ has quit IRC
 117 2011-06-28T15:29:21  <ThomasWaldmann> ok, test also work with sql0.6.7 after mkerrin's patch. looks good. :)
 118 2011-06-28T15:29:52  *** m4k3r has joined #moin-dev
 119 2011-06-28T15:31:07  <ronny> sup
 120 2011-06-28T15:33:16  <pkumar> ThomasWaldmann : where can I pull  mkerrin's patch from?
 121 2011-06-28T15:33:33  <mkerrin> weird I have two revision now that do the same thing? is that ok
 122 2011-06-28T15:36:02  <ThomasWaldmann> mkerrin: ?
 123 2011-06-28T15:36:27  <ThomasWaldmann> pkumar: just wait until it is in main.
 124 2011-06-28T15:36:41  <pkumar> ThomasWaldmann : ok
 125 2011-06-28T15:37:49  <mkerrin> I will recreate my fork and send an other pull request
 126 2011-06-28T15:41:17  <ThomasWaldmann> mkerrin: great, thanks
 127 2011-06-28T15:41:44  <ThomasWaldmann> will be easier for next changeset :)
 128 2011-06-28T15:43:46  <mkerrin> you should have that now
 129 2011-06-28T15:48:50  <CIA-45> Michael Kerrin <michael.kerrin@gmail.com> default * 264:d805136dc37e 2.0/MoinMoin/storage/backends/sqla.py: Fix moin to work with the latest sqlalchemy version 0.7.1
 130 2011-06-28T15:49:23  <ThomasWaldmann> \o/
 131 2011-06-28T15:49:34  <ThomasWaldmann> mkerrin: thanks!
 132 2011-06-28T16:17:55  <pkumar> bbl
 133 2011-06-28T16:18:03  *** pkumar has quit IRC
 134 2011-06-28T17:02:03  *** sinha has joined #moin-dev
 135 2011-06-28T17:08:46  *** m4k3r has quit IRC
 136 2011-06-28T17:21:37  *** sinha has quit IRC
 137 2011-06-28T17:30:49  *** hardy89 has quit IRC
 138 2011-06-28T17:36:05  *** hardy89 has joined #moin-dev
 139 2011-06-28T17:36:44  <hardy89> hi waldi
 140 2011-06-28T17:36:48  *** sinha has joined #moin-dev
 141 2011-06-28T17:39:17  <hardy89> hi ThomasWaldmann
 142 2011-06-28T17:39:30  <sinha> dreimark: should i push that icon changes now ( as what you seen at my diary page )
 143 2011-06-28T17:39:53  <ThomasWaldmann> hi hardy89
 144 2011-06-28T17:41:04  <hardy89> ThomasWaldmann: Is test_backend_sqla.py already fixed?
 145 2011-06-28T17:41:58  <hardy89> ThomasWaldmann: /whois mkerrin
 146 2011-06-28T17:42:03  <hardy89> err
 147 2011-06-28T17:42:32  <hardy89> ThomasWaldmann: sorry.
 148 2011-06-28T17:44:23  <ThomasWaldmann> hardy89: there is a hg log to look at
 149 2011-06-28T17:45:54  <hardy89> ThomasWaldmann: is he also working on storage module?
 150 2011-06-28T17:47:05  <ThomasWaldmann> hardy89: ask him? :)
 151 2011-06-28T17:48:40  <hardy89> ThomasWaldmann: no cos even i'm supposed to work on storage module :)
 152 2011-06-28T18:04:42  *** pkumar has joined #moin-dev
 153 2011-06-28T18:18:37  <mkerrin> hey, anyone know why after deploying a wiki under http://localhost/wiki/ I keep getting redirections from /wiki/ -> /wiki/Home -> /wiki/+show/-1/Home -> /wiki/+show/-1/-1/Home etc
 154 2011-06-28T18:18:50  <mkerrin> till the browser gives up
 155 2011-06-28T18:24:38  <ThomasWaldmann> http://www.youtube.com/watch?v=0SARbwvhupQ btw, interesting talk. was recycled at EuroPython 2011.
 156 2011-06-28T18:25:05  <ThomasWaldmann> mkerrin: usually it redirects from / to /Home or so
 157 2011-06-28T18:26:02  <ThomasWaldmann> but i usually run it at /
 158 2011-06-28T18:26:19  <mkerrin> yeah I can't do that
 159 2011-06-28T18:27:58  <ThomasWaldmann> mkerrin: is it only happening at /wiki or can you reproduce the issue at /, too?
 160 2011-06-28T18:28:57  <mkerrin> doing the same. Something weird under mod-wsgi
 161 2011-06-28T18:32:17  <ThomasWaldmann> can you show me the wsgiscriptalias line?
 162 2011-06-28T18:32:32  <mkerrin> WSGIScriptAlias /moin /home/michael/deri/elearning/m2/parts/modwsgi/wsgi
 163 2011-06-28T18:33:55  *** m4k3r has joined #moin-dev
 164 2011-06-28T18:35:01  <ThomasWaldmann> and wsgi is a file with contents like moin.wsgi?
 165 2011-06-28T18:52:24  *** pkumar has quit IRC
 166 2011-06-28T19:08:16  <mkerrin> got to run - but it seems that update to last Flask is not a good idea at the moment :-)
 167 2011-06-28T19:09:26  *** mkerrin has quit IRC
 168 2011-06-28T19:17:14  <Marchael> ThomasWaldmann: how can I start moin from build script? Use the same way as in MoinMouin.script ?
 169 2011-06-28T19:17:55  <Marchael> or just calling MoinMoin.script.main() ?
 170 2011-06-28T19:19:33  <ThomasWaldmann> what do you want to do exactly and why?
 171 2011-06-28T19:20:18  <Marchael> I want to implemet --mode {buildnewindex,usenewindex}. like in 1.9
 172 2011-06-28T19:20:47  <ThomasWaldmann> you don't need this for that
 173 2011-06-28T19:20:48  <Marchael> first will build indexes in temp directory under app.cfg.index_dir
 174 2011-06-28T19:21:07  <Marchael> and second will move them to app.cfg.index_dir
 175 2011-06-28T19:21:23  <Marchael> hm, then what I'm need firs?
 176 2011-06-28T19:21:26  <Marchael> *first
 177 2011-06-28T19:22:08  * Marchael thought what it's prioritive task for now
 178 2011-06-28T19:22:39  <ThomasWaldmann> the highlevel script is some shell/cmd script that calls your scripts on the command line
 179 2011-06-28T19:29:32  <Marchael> so it should be new script
 180 2011-06-28T19:33:30  <ThomasWaldmann> btw, you likely do not need a new script per command, but just register your stuff appropriately
 181 2011-06-28T19:35:07  <Marchael> so I should make refactoring in rebuild indexes script, so that can be use for --mode
 182 2011-06-28T19:38:50  <ThomasWaldmann> i already told you that you do not need to use the same commands/options as in moin 1.9
 183 2011-06-28T19:39:05  <ThomasWaldmann> but you may do so, if it makes sense
 184 2011-06-28T19:40:42  <Marchael> but why you think what those options make rebuilding script worse?
 185 2011-06-28T19:41:41  * Marchael confused
 186 2011-06-28T19:43:15  <Marchael> I'm see 2 ways: first - write highlevel script what calling other scripts, second - modify rebuild indexes script so it can be used for that stuff
 187 2011-06-28T19:47:01  <CIA-45> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 265:7a81ff51008a 2.0/setup.py: setup.py: avoid Flask >=0.7 until we have fixed moin2 for it
 188 2011-06-28T19:47:33  <Marchael> I think what first is more convenient, because I don't want to complicate rebuild indexes script
 189 2011-06-28T19:47:49  <ThomasWaldmann> Marchael: you do not know how to start/stop moin, so you can't do that
 190 2011-06-28T19:48:06  <ThomasWaldmann> and it depends on how moin is deployed
 191 2011-06-28T19:49:06  <ThomasWaldmann> thus you just build a toolbox of commandline scripts that offers everything to be called from a admin-written highlevel script, to make admin's life easy
 192 2011-06-28T19:53:38  <ThomasWaldmann> (and that highlevel script is usually bash or cmd or anything else that can easily call commandline scripts)
 193 2011-06-28T19:53:41  *** greg_f has quit IRC
 194 2011-06-28T19:54:50  <Marchael> am, I should write cmd&bash scripts for wiki admins?
 195 2011-06-28T19:55:40  <Marchael> I thought what python more convenient for that
 196 2011-06-28T19:57:47  <Marchael> hm, but wiki admin alreay can write this script
 197 2011-06-28T19:58:20  <Marchael> (I mean using options what update\rebuild scripts offered)
 198 2011-06-28T20:00:36  <Marchael> for examle
 199 2011-06-28T20:00:36  <Marchael> moin rebuild_indexes --path wiki/tmp_indexes -b both
 200 2011-06-28T20:00:36  <Marchael> (stop moin when done)
 201 2011-06-28T20:00:36  <Marchael> rm -rf wiki/indexes/
 202 2011-06-28T20:00:36  <Marchael> mv wiki/tmp_indexes/ wiki/indexes/
 203 2011-06-28T20:00:36  <Marchael> (start moin)
 204 2011-06-28T20:01:57  <Marchael> or
 205 2011-06-28T20:01:57  <Marchael> moin update_indexes
 206 2011-06-28T20:01:57  <Marchael> (start moin)
 207 2011-06-28T20:02:33  <ThomasWaldmann> 2011-06-28 19:57:54,198 INFO werkzeug:116 127.0.0.1 "GET /%2Bshow/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/-1/Home HTTP/1.1" 302 -
 208 2011-06-28T20:02:38  <ThomasWaldmann> flask 0.7 fun :D
 209 2011-06-28T20:05:39  <Marchael> ThomasWaldmann: ^
 210 2011-06-28T20:07:52  <ThomasWaldmann> you at least try to write such a script, just to make sure it works and everything needed is there
 211 2011-06-28T20:07:59  <ThomasWaldmann> and also to put it into the docs
 212 2011-06-28T20:08:48  <Marchael> ah, so I should write example script and put it to docs? ok
 213 2011-06-28T20:11:15  *** hardy89 has quit IRC
 214 2011-06-28T20:15:11  * ThomasWaldmann works on flask 0.7 upgrade
 215 2011-06-28T20:31:28  *** sinha has quit IRC
 216 2011-06-28T20:31:42  *** sinha has joined #moin-dev
 217 2011-06-28T20:32:55  <Marchael> ThomasWaldmann: I built docs, how can I view them?
 218 2011-06-28T20:33:49  <Marchael> I mean run http server or something
 219 2011-06-28T20:35:35  <Marchael> btw
 220 2011-06-28T20:35:36  <Marchael> 2011-06-29 00:32:37,602 INFO MoinMoin.util.clock:40 timer create_app index rebuild(0): 25040.99ms
 221 2011-06-28T20:35:47  <Marchael> how can I avoid this when moin start up?
 222 2011-06-28T20:35:48  <ThomasWaldmann> you can either point your browser at the index file in the filesystem
 223 2011-06-28T20:35:55  <ThomasWaldmann> or use moin to look at it
 224 2011-06-28T20:35:57  <Marchael> ok
 225 2011-06-28T20:36:25  <ThomasWaldmann>     index_rebuild = False
 226 2011-06-28T20:36:25  <ThomasWaldmann>     load_xml = None
 227 2011-06-28T20:37:21  <Marchael> also, what ndexes it rebuilds? whoosh or sqla?
 228 2011-06-28T20:42:34  <dreimark> re
 229 2011-06-28T20:42:46  <Marchael> hi dreimark
 230 2011-06-28T20:43:22  <dreimark> sinha: yes - please
 231 2011-06-28T20:44:20  <sinha> dreimark: as i said there, this mime_to_class conversion is also used in global index template
 232 2011-06-28T20:44:31  <sinha> so this change of icons will also be reflected there
 233 2011-06-28T20:45:03  <sinha> but as my next task is this index itself, so i guess it wont be much of a issue
 234 2011-06-28T20:47:51  <ThomasWaldmann> Marchael: index_rebuild currently refers to sqla
 235 2011-06-28T20:48:45  <dreimark> sinha: it definitly makes sense if the same icons are used for same contenttype on all places
 236 2011-06-28T20:49:01  <sinha> cool
 237 2011-06-28T20:50:32  <dreimark> using title on mouse over for the long text description is also a good idea but may be a legend is better
 238 2011-06-28T20:50:56  <dreimark> it depends a bit how much time that needs for a long page
 239 2011-06-28T20:52:53  <sinha> dreimark: by legend, you mean html legend tag or what ?
 240 2011-06-28T20:55:43  *** m4k3r has quit IRC
 241 2011-06-28T20:56:31  <dreimark> sinha: look at bottom http://moinmo.in/RecentChanges
 242 2011-06-28T20:56:48  <dreimark> there is a legend which describes each symbol used
 243 2011-06-28T20:57:06  <sinha> ah, okay
 244 2011-06-28T20:57:11  <Marchael> ThomasWaldmann: documentation has "Autogenerated API docs" section. How could I add my stuff there?
 245 2011-06-28T20:57:36  <dreimark> Marchael: look into the rst files
 246 2011-06-28T20:57:36  <sinha> so go for that legend ?
 247 2011-06-28T20:58:01  <dreimark> I think that is better than mouseover text
 248 2011-06-28T20:58:26  <Marchael> ok, found it
 249 2011-06-28T20:58:28  <dreimark> I like that too but if I have lots time the same text on mouse over it makes much html
 250 2011-06-28T20:58:42  <sinha> yes, and also mouseover would a bit confusing because when you hovers on item name you wont be expecting contenttype
 251 2011-06-28T20:58:45  <ThomasWaldmann> Marchael: you don't
 252 2011-06-28T20:59:02  <dreimark> sinha: true, so legend is better
 253 2011-06-28T20:59:08  <sinha> okay
 254 2011-06-28T20:59:19  <Marchael> ThomasWaldmann: why?
 255 2011-06-28T20:59:52  <Marchael> but I don't see better place for this docs
 256 2011-06-28T20:59:52  <ThomasWaldmann> because it is autogenerated
 257 2011-06-28T21:00:12  <sinha> dreimark: should i add it in different html template or in that global_history itself ? because that different one could be imported elsewhere ?
 258 2011-06-28T21:00:26  <ThomasWaldmann> writing a index script is admin docs, not developer docs and for sure not api docs
 259 2011-06-28T21:00:28  <Marchael> yes, so I add markup to code and generate docs
 260 2011-06-28T21:00:54  <dreimark> sinha: make life simple use one which you can import on all places
 261 2011-06-28T21:01:14  <sinha> ofcourse
 262 2011-06-28T21:01:18  <Marchael> but I wanted to add stuff from etherpad there
 263 2011-06-28T21:02:05  <dreimark> sinha: check if it makes sense to add it in utils.html
 264 2011-06-28T21:05:19  <ThomasWaldmann> Marchael: you edit the documentation rst files for the admin docs, you edit code for api docs
 265 2011-06-28T21:05:44  <Marchael> ok
 266 2011-06-28T21:11:47  *** m4k3r has joined #moin-dev
 267 2011-06-28T21:49:23  *** xorAxAx has quit IRC
 268 2011-06-28T21:57:19  <Marchael> ThomasWaldmann: please review http://codereview.appspot.com/4662061
 269 2011-06-28T22:15:04  <dreimark> Marchael: have you compiled that? and looked on the output?
 270 2011-06-28T22:15:17  <Marchael> yes'
 271 2011-06-28T22:15:28  * ThomasWaldmann didn't need to compile it
 272 2011-06-28T22:15:38  <ThomasWaldmann> it kind of jumped in my face
 273 2011-06-28T22:19:10  <dreimark> Marchael: For large wikis, rebuild indexes process sometimes may take several hours
 274 2011-06-28T22:19:12  *** m4k3r has quit IRC
 275 2011-06-28T22:19:17  <dreimark> that sentence is strange
 276 2011-06-28T22:19:38  <sinha> dreimark: but adding those icons in legend, wont show the actual types, like for type-moin, type-creole, type-mediawiki, we will only show the icon corresponding to type `text `
 277 2011-06-28T22:19:44  <dreimark> I askes for compile because of bullet list indenting
 278 2011-06-28T22:20:08  *** m4k3r has joined #moin-dev
 279 2011-06-28T22:20:52  <Marchael> ThomasWaldmann: I answered
 280 2011-06-28T22:22:46  <Marchael> so may be I should't use code examples in this docs
 281 2011-06-28T22:23:37  <ThomasWaldmann> of course you need to stop moin before killing the index files
 282 2011-06-28T22:24:19  <Marchael> ThomasWaldmann: btw, may be just copypaste 197-203 from ep to docs?
 283 2011-06-28T22:24:55  <ThomasWaldmann> copy and paste whatever you want, the final outcome counts :)
 284 2011-06-28T22:28:38  *** xorAxAx has joined #moin-dev
 285 2011-06-28T22:29:18  <sinha> ThomasWaldmann: i am trying to get a link to a image ( in a template) stored inside themes directory by doing this  `<img src="{{ theme_static('img/moin-text.png') }}">`, what is wrong in this ?
 286 2011-06-28T22:30:14  <sinha> i am getting a Runtime error saying couldnt find the active theme
 287 2011-06-28T22:30:57  <dreimark> sinha: how many different types do you have, you can show all always
 288 2011-06-28T22:31:56  <sinha> dreimark: so in front of text-type icon, what should we write as contenttype ?
 289 2011-06-28T22:32:15  <sinha> text, or text-mointype , text-creole or something
 290 2011-06-28T22:32:25  <sinha> because it could be any
 291 2011-06-28T22:32:27  <dreimark> ah - ok, have not seen this part
 292 2011-06-28T22:32:49  <dreimark> can we change the icons color for the different sub type?
 293 2011-06-28T22:32:59  <sinha> no
 294 2011-06-28T22:33:27  <sinha> because i am only getting the same name for each kind of texts, whether its moin, creole, mediawiki
 295 2011-06-28T22:33:32  <dreimark> hmm, then we likly should show the minor type too
 296 2011-06-28T22:34:50  <sinha> so in front of text-icon, i will put all the text-type names ?
 297 2011-06-28T22:35:15  <dreimark> I am currently not sure how important that info is. Because the user need to keep the markup used
 298 2011-06-28T22:36:17  <dreimark> I would start with the icon then the minor name and then the itemname
 299 2011-06-28T22:39:02  <sinha> dreimark: so i need to extract the minor name for the types ?
 300 2011-06-28T22:39:26  <sinha> dreimark: in this case i guess mouseover will do the part
 301 2011-06-28T22:39:31  <dreimark> ok
 302 2011-06-28T22:40:41  <sinha> dreimark: to make it little confusing, for title text i will put `item_name(contenttype)`, ok ?
 303 2011-06-28T22:41:07  <Marchael> ThomasWaldmann: please, review http://codereview.appspot.com/4662061/
 304 2011-06-28T22:43:21  <ThomasWaldmann> using relative pathes is no option
 305 2011-06-28T22:44:22  <Marchael> am, use paths as in previous changeset?
 306 2011-06-28T22:44:26  <ThomasWaldmann> and that stuff you posted doesn't work anyway
 307 2011-06-28T22:45:20  <ThomasWaldmann> just implement some script command that replaces the index?
 308 2011-06-28T22:45:28  <ThomasWaldmann> compute temp index dir?
 309 2011-06-28T22:46:48  <Marchael> implement to building script?
 310 2011-06-28T22:49:07  <ThomasWaldmann> Marchael: how about getting some sleep now and doing this tomorrow morning?
 311 2011-06-28T22:49:20  <ThomasWaldmann> ehrm, today morning :)
 312 2011-06-28T22:49:21  <Marchael> :(
 313 2011-06-28T22:51:24  <Marchael> ok, but please, answer on previous question
 314 2011-06-28T22:53:25  <ThomasWaldmann> i already told you to write some toolbox to make admin's life easier. and yes, you do it with flask-script somehow.
 315 2011-06-28T22:53:41  <Marchael> ok
 316 2011-06-28T22:54:07  <ThomasWaldmann> and of course one avoid to have to duplicate the index (or a related temp index) location from the wiki config.
 317 2011-06-28T22:54:45  <ThomasWaldmann> relative pathes don't work because they are ... relative
 318 2011-06-28T22:55:18  <ThomasWaldmann> and if you invoke that script from some other or unknown directory, it'll create stuff at surprisingly wrong places
 319 2011-06-28T22:56:33  *** sinha has quit IRC
 320 2011-06-28T22:56:44  *** sinha has joined #moin-dev
 321 2011-06-28T22:57:50  <Marchael> gn/bbl
 322 2011-06-28T23:02:05  <ThomasWaldmann> gn
 323 2011-06-28T23:02:46  <Marchael> disregard that, I should write a script!
 324 2011-06-28T23:03:15  <CIA-45> Akash Sinha <akash2607@gmail.com> * a716e61ae9c7 r284 default/MoinMoin/ (11 files in 4 dirs): contenttype texts are replaced by icons in global history page, all icons are GPL licensed (picked from tango icons library).
 325 2011-06-28T23:09:20  *** grzywacz has joined #moin-dev
 326 2011-06-28T23:12:46  <dreimark> sinha: ok
 327 2011-06-28T23:12:59  * dreimark is tired sleeps soon
 328 2011-06-28T23:13:02  <dreimark> gn
 329 2011-06-28T23:13:06  <sinha> gn
 330 2011-06-28T23:19:20  *** sinha has left #moin-dev
 331 2011-06-28T23:43:53  *** m4k3r has quit IRC
 332 

MoinMoin: MoinMoinChat/Logs/moin-dev/2011-06-28 (last edited 2011-06-27 23:00:03 by IrcLogImporter)