1 2010-01-22T00:47:16  *** fucheeno_ has joined #moin-dev
   2 2010-01-22T00:53:27  *** fucheeno has quit IRC
   3 2010-01-22T01:07:04  *** fucheeno_ has quit IRC
   4 2010-01-22T03:00:59  *** grzywacz has joined #moin-dev
   5 2010-01-22T05:29:15  *** grzywacz has quit IRC
   6 2010-01-22T08:51:30  <ThomasWaldmann> moin
   7 2010-01-22T12:55:36  *** moin5 has joined #moin-dev
   8 2010-01-22T12:57:14  <moin5> hi moin devs! can someone give me a pointer? I want to know which function produces the text-based editor. I've been grepping for it for half an hour and getting no-where!
   9 2010-01-22T12:59:55  <ThomasWaldmann> hi moin5
  10 2010-01-22T13:00:05  <ThomasWaldmann> it's in MoinMoin/PageEditor.py
  11 2010-01-22T13:01:09  <moin5> hi ThomasWaldmann ! Thanks for that. Should have guessed... I'm about to graduate from simple macros to hacking the main code for our work wiki.
  12 2010-01-22T13:01:30  <moin5> Have to say, it's a very impressive program, moinmoin!
  13 2010-01-22T13:02:27  <ThomasWaldmann> hopefully the impression doesn't get too negative :D
  14 2010-01-22T13:02:49  <ThomasWaldmann> what do you plan to hack there?
  15 2010-01-22T13:04:56  <moin5> i'm looking at putting in a facility to create a page directly from a form submission
  16 2010-01-22T13:06:40  <ThomasWaldmann> you could do that using an action and use PageEditor class just for writing the page
  17 2010-01-22T13:08:19  <moin5> i noticed that way of doing it, but thought (niaively) that it might be easier this way!
  18 2010-01-22T13:10:52  <ThomasWaldmann> you maybe don't want to hack that into PageEditor, that code is rather complicated anyway
  19 2010-01-22T13:12:57  <moin5> i have seen the FormSubmit macro, but couldn't see how to make that dump directly into a (sub)page
  20 2010-01-22T13:14:29  <moin5> i don't want to use submitcsv though
  21 2010-01-22T13:15:35  <ThomasWaldmann> use action or macro to render form, post to action url, use own action to create a page
  22 2010-01-22T13:16:42  <moin5> what i was thinking i might learn from PageEditor is how to do the "create a page" bit...
  23 2010-01-22T13:27:24  <ThomasWaldmann> search for write_file or so
  24 2010-01-22T13:27:39  <moin5> thanks for the tip!
  25 2010-01-22T13:29:44  <ThomasWaldmann> http://moinmo.in/MoinAPI/Beispiele#PageEditor
  26 2010-01-22T13:31:07  <moin5> ahh... is there an english version?
  27 2010-01-22T13:32:38  <ThomasWaldmann> iirc no, but you can read the src fragments
  28 2010-01-22T13:33:49  <moin5> i'll see what i can make of it ;-)
  29 2010-01-22T13:46:17  <moin5> Looks like i need PageEditor.saveText () is used to store text on a page.  (google translate link at top of page is quite readable).
  30 2010-01-22T14:02:41  <dreimark> moin
  31 2010-01-22T14:09:14  <ThomasWaldmann> hi dreimark
  32 2010-01-22T14:26:53  <moin5> ThomasWaldmann: I'm going to have to give up on this for now, but thanx for the help!
  33 2010-01-22T14:28:12  *** moin5 has quit IRC
  34 2010-01-22T15:06:24  <TheSheep> ThomasWaldmann: I've just set up pootle for translations, it seems to work pretty well
  35 2010-01-22T15:07:19  <TheSheep> ThomasWaldmann: I can set up another one for moin
  36 2010-01-22T15:07:23  <TheSheep> ThomasWaldmann: http://translation.hatta-wiki.org/
  37 2010-01-22T15:29:46  <ronny> TheSheep: no openid?
  38 2010-01-22T15:31:55  <TheSheep> ronny: you can implement it for pootle if you like
  39 2010-01-22T15:32:05  <TheSheep> ronny: should be easy, it's django-based
  40 2010-01-22T15:32:39  <ronny> TheSheep: im kind of a transifex fan tho
  41 2010-01-22T15:33:35  <TheSheep> ronny: do they cure that?
  42 2010-01-22T15:42:52  <TheSheep> ronny: hmm... interesting, I will give it a try too
  43 2010-01-22T15:43:57  <ronny> hmm
  44 2010-01-22T15:44:07  <ronny> meh, transifex removed openid support
  45 2010-01-22T15:44:23  <TheSheep> I suppose it's easy to add as pylons middleware?
  46 2010-01-22T15:44:50  <TheSheep> ah, sorry, it's not pylons
  47 2010-01-22T15:44:55  <TheSheep> I looked into wrong sources :)
  48 2010-01-22T15:45:17  <TheSheep> it's django too...
  49 2010-01-22T15:55:48  <ThomasWaldmann> I guess we'll have a duel about translation systems tomorrow at noon :P
  50 2010-01-22T15:56:22  <ThomasWaldmann> ronny vs. TheSheep first, renato vs. me second, etc. :D
  51 2010-01-22T15:57:56  <ronny> TheSheep: lets empty a case of staropramen, then throw the bottles at renato
  52 2010-01-22T15:58:45  <TheSheep> it's just a loose offer
  53 2010-01-22T15:58:50  * TheSheep shrugs
  54 2010-01-22T15:59:15  <ronny> TheSheep: thats why we'll drink and attack the launchpad fan :P
  55 2010-01-22T15:59:53  <ThomasWaldmann> using launchpad somehow has the charm of maybe other translators contributing automatically
  56 2010-01-22T16:00:13  <ThomasWaldmann> but i guess I'll just wait for someone doing the necessary automation
  57 2010-01-22T16:29:13  *** fucheeno has joined #moin-dev
  58 2010-01-22T16:44:29  *** fucheeno has quit IRC
  59 2010-01-22T17:15:44  <dreimark> hi
  60 2010-01-22T17:19:21  <dreimark> someone tried to explain me today the databse entries (done by a java program) need to be old ascii conform. german umlauts or blanks would make trouble. is this also a problem for our database storage in 2.0 ?
  61 2010-01-22T17:20:01  <dreimark> it seems to me strange that databases don't use unicode keys
  62 2010-01-22T17:20:42  <dreimark> bbl
  63 2010-01-22T17:21:27  <TheSheep> dreimark: the names of the tables usually have to be ascii
  64 2010-01-22T17:21:44  <TheSheep> dreimark: the values themselves are usually handled ok by modern engines
  65 2010-01-22T17:22:16  <TheSheep> but then again, if the user ever gets to see the database or table name, you are doing it wrong
  66 2010-01-22T18:20:17  <dreimark> seems  that app does not make this mapping for the user
  67 2010-01-22T18:21:19  <dreimark> it looks lie it lets the user create table names and they need to tell the user what names are valid
  68 2010-01-22T18:22:10  <TheSheep> that is... intersting way of doing it
  69 2010-01-22T18:24:26  <ronny> dreimark: always remember the table 'HAHAHA; drop table users ;--'
  70 2010-01-22T18:36:37  <dreimark> hehe
  71 2010-01-22T18:36:57  <dreimark> that course continues on monday
  72 2010-01-22T18:37:28  <dreimark> i think i get some ideas what can be made better what we also can use in moin2
  73 2010-01-22T18:38:08  <dreimark> one of the things i am currently thinking on is a new item bases on the container itemm
  74 2010-01-22T18:41:09  <dreimark> if we have at the moment a page where we add an image on it we can only have each item alone under revision control.
  75 2010-01-22T18:42:13  <dreimark> with the containeritem we also can have the itemdata of the page and the itemdata of the image in one container
  76 2010-01-22T18:43:37  <dreimark> this is for example for deprecated interesting. you don't want to  set each item deprecated which is used on the page
  77 2010-01-22T18:45:58  <dreimark> so everything becomes added to the deprecation container.
  78 2010-01-22T19:48:57  <ThomasWaldmann> hm? you can't store items into our containerfile, it just contains a bunch of files.
  79 2010-01-22T19:52:10  <dreimark> any snapshot of item data could be added to it
  80 2010-01-22T20:23:15  <ThomasWaldmann> what's the point of making stuff that complicated?
  81 2010-01-22T20:23:42  <ThomasWaldmann> (and kind of "locked away" due to that)
  82 2010-01-22T20:29:30  <dreimark> isn't deprecated doing this?
  83 2010-01-22T20:30:11  <ThomasWaldmann> i mean what's the point of packing stuff into a tarfile if you don't need to?
  84 2010-01-22T20:31:12  <ThomasWaldmann> the reason that containeritem exists is because our backend can't revision multiple related FILES
  85 2010-01-22T20:31:33  <ThomasWaldmann> because of that, we make one file out of them and revision that
  86 2010-01-22T20:31:48  <dreimark> i know, i just thought we can use it not only because of this
  87 2010-01-22T20:32:15  <ThomasWaldmann> (and these files are strongly related, "one save")
  88 2010-01-22T20:32:20  <dreimark> ok
  89 2010-01-22T20:32:31  <dreimark> i have a different question
  90 2010-01-22T20:32:56  <dreimark> contexts.HTTPContext.write seems to be able to send None
  91 2010-01-22T20:33:12  <dreimark> and writes then None on the page
  92 2010-01-22T20:33:25  <dreimark> as word
  93 2010-01-22T20:39:31  *** grzywacz has joined #moin-dev
  94 2010-01-22T20:40:07  <dreimark> ThomasWaldmann: i mean i need to check if it is not None e.g.
  95 2010-01-22T20:40:11  <dreimark> http://paste.pocoo.org/show/168507/
  96 2010-01-22T21:05:26  <ThomasWaldmann> haha
  97 2010-01-22T21:15:34  <dreimark> in the past it was not needed
  98 2010-01-22T21:48:00  <ThomasWaldmann> well, there shouldn't be None in the output stream in the first place
  99 2010-01-22T21:52:06  * ThomasWaldmann continues with moin2 storage
 100 2010-01-22T21:59:17  <dreimark> yeah it wasn't also in 1.8
 101 2010-01-22T21:59:50  * dreimark looks at it tom. today too tired
 102 2010-01-22T23:34:56  <xorAxAx> dreimark: did you fix your XSS holes already?

MoinMoin: MoinMoinChat/Logs/moin-dev/2010-01-22 (last edited 2010-01-22 00:00:03 by IrcLogImporter)