1 2010-01-12T00:01:46  <ronny> dreimark: ever taken a look at things like transifex?
   2 2010-01-12T00:03:31  <dreimark> ronny: not now - i think i need an update
   3 2010-01-12T00:04:11  <ronny> ok
   4 2010-01-12T00:05:19  *** vinci_ has joined #moin-dev
   5 2010-01-12T00:05:32  *** tpfennig has quit IRC
   6 2010-01-12T00:07:42  <dreimark> it would be good someone would collect some infos on a wiki page before
   7 2010-01-12T00:07:56  <dreimark> one just did a decision how he likes it best
   8 2010-01-12T00:08:13  <dreimark> changed for his purposes
   9 2010-01-12T00:08:29  <dreimark> and later we have to talk about problems
  10 2010-01-12T00:11:35  <xorAxAx> ronny: didnt you want to talk to me about the multiconfig?
  11 2010-01-12T00:13:46  <ronny> xorAxAx: my main point of confusion where the hell the wiki uid's for wikisync was from, unfortunately i didnt take a look since last week, and its not in my brain atm
  12 2010-01-12T00:14:59  <xorAxAx> well, should i read the code to you? :)
  13 2010-01-12T00:17:33  <xorAxAx> there is a packline in it which is a noop if you mean that
  14 2010-01-12T00:17:38  <xorAxAx> but i left it for symmetry
  15 2010-01-12T00:17:56  <xorAxAx> and for layered abstraction
  16 2010-01-12T00:19:33  <ronny> xorAxAx: ah, yes, that packline thing is also confusing, i really dont like it
  17 2010-01-12T00:19:46  <xorAxAx> why?
  18 2010-01-12T00:24:33  <xorAxAx> not very responsive you are, good night
  19 2010-01-12T00:24:39  <ronny> xorAxAx: when i took a look at it first, the first thing that went trough my mind was 'why the heck pack it like that'
  20 2010-01-12T00:24:57  <xorAxAx> why not?
  21 2010-01-12T00:25:35  <ronny> mom, let me open the code
  22 2010-01-12T00:26:24  <ronny> ah, right, all that seemingly weird escaping
  23 2010-01-12T00:27:57  <ronny> xorAxAx: and it seems to be used only in wikisync and packaging and the iwid_full
  24 2010-01-12T00:28:21  <xorAxAx> why is it weird?
  25 2010-01-12T00:28:45  <xorAxAx> the iwid_full is defined as a packed line with 1 or 2 elements
  26 2010-01-12T00:29:12  <ronny> xorAxAx: i dont exactly see why that packing is necessary in the first place
  27 2010-01-12T00:29:24  <xorAxAx> "packaging"?
  28 2010-01-12T00:29:36  <ronny> well packline/unpackline
  29 2010-01-12T00:29:59  <xorAxAx> because thats how it is defined ... it is transmitted as a string
  30 2010-01-12T00:30:18  <ronny> well, who defined it?
  31 2010-01-12T00:31:42  <xorAxAx> guess
  32 2010-01-12T00:32:11  <xorAxAx> it is used by nearly as many engines as wikirpc
  33 2010-01-12T00:32:15  <xorAxAx> half as many in fact
  34 2010-01-12T00:32:47  <xorAxAx> i havent seen any arguments against it, so i consider the case closed for today, good night :)
  35 2010-01-12T00:32:51  <ronny> so its somehow part of wikirpc?
  36 2010-01-12T00:33:02  <ronny> that explains at least something
  37 2010-01-12T00:33:02  <xorAxAx> no, its part of wikisync
  38 2010-01-12T00:33:11  <xorAxAx> and wikisync uses xmlrpc
  39 2010-01-12T00:33:27  <ronny> xorAxAx: but wikisync is a moin specific thing, isnt it?
  40 2010-01-12T00:33:35  <xorAxAx> wikirpc as well in some sense
  41 2010-01-12T00:33:46  <xorAxAx> that was my point to confuse you
  42 2010-01-12T00:34:07  <ronny> so its a moinmoin only thing thats just weird?
  43 2010-01-12T00:35:37  <ronny> well, and its using different separators for different things
  44 2010-01-12T01:28:56  *** vinci_ has quit IRC
  45 2010-01-12T09:18:23  *** vpv has quit IRC
  46 2010-01-12T09:18:23  *** CIA-44 has quit IRC
  47 2010-01-12T09:18:23  *** dennda has quit IRC
  48 2010-01-12T09:20:33  *** dennda has joined #moin-dev
  49 2010-01-12T09:20:33  *** CIA-44 has joined #moin-dev
  50 2010-01-12T09:20:33  *** vpv has joined #moin-dev
  51 2010-01-12T10:13:47  <dreimark> moin
  52 2010-01-12T10:24:27  <dreimark> xorAxAx: do you have an idea why xmlrpc always creates a new session file?
  53 2010-01-12T10:56:23  <xorAxAx> dreimark: no idea
  54 2010-01-12T10:56:37  <xorAxAx> maybe because the cookie isnt passed?
  55 2010-01-12T11:52:03  <ThomasWaldmann> dreimark: how often do you call getAuthToken?
  56 2010-01-12T12:48:25  <dreimark> once per day
  57 2010-01-12T12:52:25  <dreimark> per script
  58 2010-01-12T13:47:12  *** kursor has joined #moin-dev
  59 2010-01-12T15:36:32  <ThomasWaldmann> dreimark: so you have 1 new session file per day?
  60 2010-01-12T18:37:00  <dreimark> well anyone using xmlrpc has 1 new session filer per script run. my scripts run once per day
  61 2010-01-12T18:37:36  <dreimark> some others from colleagues run on every new data input
  62 2010-01-12T18:37:56  <ThomasWaldmann> well, that is expected, you get a new session "per login"
  63 2010-01-12T18:38:30  <ThomasWaldmann> you could remember the auth-token your script gets and reuse it
  64 2010-01-12T18:38:44  <ThomasWaldmann> not sure whether that is worth the pain
  65 2010-01-12T18:39:33  <ThomasWaldmann> we maybe rather need some good session cleanup script and run that now and then
  66 2010-01-12T18:42:21  <dreimark> currently i ran the script i proposed http://moinmo.in/FeatureRequests/OnDemandDestroySession
  67 2010-01-12T18:43:58  <ThomasWaldmann> that's too specific, it just targets one user
  68 2010-01-12T18:43:59  <johill> not all script logins should actually end up with a session file though?
  69 2010-01-12T18:44:16  <johill> I thought I took care that just requests wouldn't store a session if it was pretty much boring
  70 2010-01-12T18:44:30  <ThomasWaldmann> a session cleanup script should rather cleanup ALL "old" sessionfiles
  71 2010-01-12T18:45:55  <ThomasWaldmann> "old" could be defined as "the related cookie would've expired anyway"
  72 2010-01-12T18:46:54  <dreimark> ah that sounds good
  73 2010-01-12T18:47:19  <ThomasWaldmann> not sure that we already store all data needed for that into the session
  74 2010-01-12T18:48:37  <dreimark> bbl
  75 2010-01-12T18:56:16  *** grzywacz has joined #moin-dev
  76 2010-01-12T19:41:14  *** kursor has quit IRC
  77 2010-01-12T19:54:43  *** franklin has joined #moin-dev
  78 2010-01-12T19:55:49  <ThomasWaldmann> dreimark: i currently work on session cleanup code
  79 2010-01-12T19:56:31  <ThomasWaldmann> and I think I found a mission feature in werkzeug
  80 2010-01-12T19:56:39  <ThomasWaldmann> ehrm, missING
  81 2010-01-12T19:59:28  <TheSheep> what is it?
  82 2010-01-12T20:00:05  <ThomasWaldmann> listing all session ids the session store has stored
  83 2010-01-12T20:11:18  *** franklin_ has quit IRC
  84 2010-01-12T20:18:40  <TheSheep> what for?
  85 2010-01-12T20:40:59  * dreimark updated svg-edit
  86 2010-01-12T21:17:50  <ThomasWaldmann> TheSheep: to be able to clean up outdated session files
  87 2010-01-12T21:18:48  <TheSheep> ThomasWaldmann: shouldn't that be rather a function of werkzeug?
  88 2010-01-12T21:30:34  <ThomasWaldmann> yes, i said that :)
  89 2010-01-12T21:36:21  <TheSheep> no, you wanted a list of sessions, I want a lifetime on a the session store
  90 2010-01-12T21:36:51  <TheSheep> with maybe a 'purge' method
  91 2010-01-12T21:43:31  <ThomasWaldmann> has to be seen whether that'ld work in werkzeug
  92 2010-01-12T21:43:43  <ThomasWaldmann> the sessions can be custom classes
  93 2010-01-12T22:27:18  <CIA-44> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 5425:bd55be7c3886 1.9/MoinMoin/ (web/session.py script/maint/cleansessions.py):
  94 2010-01-12T22:27:18  <CIA-44> store expiry into sessions, moin maint cleansessions script, session enumeration support
  95 2010-01-12T22:27:18  <CIA-44> Note:
  96 2010-01-12T22:27:18  <CIA-44> at least the session enumeration support should be done in werkzeug, maybe even
  97 2010-01-12T22:27:19  <CIA-44> the handling of expiry info and purging expired sessions
  98 2010-01-12T22:27:23  <CIA-44> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 5426:63df8c7b82b2 1.9/MoinMoin/macro/__init__.py: merge main
  99 2010-01-12T22:27:33  <ThomasWaldmann> dreimark: ^^
 100 2010-01-12T22:28:52  * ThomasWaldmann tested with cookie_lifetime = (0, 0.01)
 101 2010-01-12T22:28:57  <dreimark> hehe
 102 2010-01-12T22:31:54  <ThomasWaldmann> hmm, one needs to run moin maint cleansessions --all once after installing the new code, otherwise it might miss the expires info
 103 2010-01-12T22:36:49  <ThomasWaldmann> ok, we need to re-login :)
 104 2010-01-12T22:40:22  <dreimark> should become a HINT
 105 2010-01-12T22:41:36  <dreimark> that is also needed for the cookie change because that also invalidates all existing sessions
 106 2010-01-12T22:42:19  <ThomasWaldmann> yeah
 107 2010-01-12T22:42:50  <ThomasWaldmann> (not needed, but those sessions should be purged also, because they're useless then)
 108 2010-01-12T22:43:23  <dreimark> yes
 109 2010-01-12T22:44:41  <dreimark> moin maint migration data could do this so that there is no two calls neccessary
 110 2010-01-12T22:45:53  <ThomasWaldmann> iirc the update docs recommend to clean the cache dir anyway
 111 2010-01-12T22:46:06  <ThomasWaldmann> thus, this is not needed
 112 2010-01-12T22:46:53  <dreimark> the cache dir yes but i think session aren't at least in the past
 113 2010-01-12T22:47:04  <dreimark> not purged
 114 2010-01-12T22:58:00  *** raphael_ has joined #moin-dev
 115 2010-01-12T22:58:40  *** raphael_ has left #moin-dev
 116 2010-01-12T22:59:10  *** RaphaelBossek has joined #moin-dev
 117 2010-01-12T23:00:09  <RaphaelBossek> hi folks; I in progress to update CreatePdfAction plugin for MoinMoin 1.9 and have a question how to initiate a HTTP request from an action plugin and catch the output in a variable
 118 2010-01-12T23:00:58  <ThomasWaldmann> hi raphael
 119 2010-01-12T23:01:02  <RaphaelBossek> the new HTTP request goes to the same page as the action plugin is initiated with (?aciton=print) to get the page as "clean" HTML code of the page
 120 2010-01-12T23:01:07  <RaphaelBossek> hi ThomasWaldmann
 121 2010-01-12T23:01:41  <ThomasWaldmann> you can have that easier
 122 2010-01-12T23:01:44  <RaphaelBossek> and forward the HTML output to htmldoc to create a PDF document
 123 2010-01-12T23:02:00  <RaphaelBossek> where can I find an example or documentation ?
 124 2010-01-12T23:02:25  <ThomasWaldmann> there is some render() (or so) call, that renders a page a catches the output
 125 2010-01-12T23:03:07  <dreimark> RaphaelBossek: can you also look if it is possible to use svg graphics
 126 2010-01-12T23:03:22  <dreimark> and get them converted to pdf
 127 2010-01-12T23:04:12  <dreimark> currently all svg images are missing
 128 2010-01-12T23:04:15  <ThomasWaldmann> wikiutil.renderText is one, but it needs a Parser class
 129 2010-01-12T23:08:29  <ThomasWaldmann> RaphaelBossek: look at Page.parsePageLinks
 130 2010-01-12T23:09:45  <ThomasWaldmann>         # Render page into a buffer
 131 2010-01-12T23:09:45  <ThomasWaldmann>         result = self.request.redirectedOutput(page.send_page, content_only=1)
 132 2010-01-12T23:09:49  <ThomasWaldmann> or just use that
 133 2010-01-12T23:10:18  <RaphaelBossek> dreimark, because www.htmldoc.org is used it's not possible without a workarround
 134 2010-01-12T23:11:06  <dreimark> http://hg.moinmo.in/moin/extensions/file/67b064b600e9/data/plugin/macro/CycleContent.py#l77 also an example
 135 2010-01-12T23:11:21  <RaphaelBossek> dreimark, maybe some day I will find time to redesign this action plugin using http://www.reportlab.com/software/opensource/ library which support vectro graphices in it's profesional version
 136 2010-01-12T23:12:16  <RaphaelBossek> dreimark, or someone know a better library for Python to support PDF generation, I would like to know; write to me http://moinmo.in/RaphaelBossek
 137 2010-01-12T23:12:36  <dreimark> i currently implement the new version of svg-edit http://svg-edit.googlecode.com/svn/branches/2.4/editor/svg-editor.html
 138 2010-01-12T23:13:34  <dreimark> as extension and in a further step as item in moin-2.0
 139 2010-01-12T23:13:45  <ThomasWaldmann> a dom -> pdf converter for moin2 would be cool :)
 140 2010-01-12T23:14:42  <dreimark> RaphaelBossek: it works great besides the svg problem
 141 2010-01-12T23:14:46  <RaphaelBossek> ThomasWaldmann, it's the most important addon for MoinMoin in a profesional/comercial environment; without Moin would be acepted very well
 142 2010-01-12T23:15:23  <RaphaelBossek> dreimark, HTMLDOC is ok but we are not able to offer PDF creation out-of-the-box because HTMLDOC have to be installed in parallel
 143 2010-01-12T23:15:43  <RaphaelBossek> dreimark, it's a headacke for unexpirienced users...
 144 2010-01-12T23:16:48  <dreimark> we decided to use svg for publications because of the propper scaling and because they are vector graphics
 145 2010-01-12T23:17:37  <dreimark> so a workaround would help currently
 146 2010-01-12T23:23:01  <RaphaelBossek> ThomasWaldmann, the Page.parsePageLinks function return the same as ?action=print; I mean without the MoinMoin borders/buttons/menus ?
 147 2010-01-12T23:23:15  <dreimark> gn
 148 2010-01-12T23:24:38  <RaphaelBossek> bye
 149 2010-01-12T23:24:55  <ThomasWaldmann> maybe use the 2 lines i posted above, it is easier
 150 2010-01-12T23:25:42  * ThomasWaldmann reads blog.fefe.de
 151 2010-01-12T23:32:08  <RaphaelBossek> gn
 152 2010-01-12T23:35:11  <ThomasWaldmann> gn RaphaelBossek
 153 2010-01-12T23:36:15  *** RaphaelBossek has quit IRC
 154 2010-01-12T23:44:12  *** grzywacz has quit IRC
 155 

MoinMoin: MoinMoinChat/Logs/moin-dev/2010-01-12 (last edited 2010-01-11 23:15:02 by IrcLogImporter)