1 2010-05-13T01:51:08  <CIA-55> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 8212:1c8d2d693ccd 2.0-dev/ (8 files in 2 dirs): cleanup backend initialization - see config samples for changed params
   2 2010-05-13T06:40:22  *** kursor has joined #moin-dev
   3 2010-05-13T07:08:23  *** ei-grad has joined #moin-dev
   4 2010-05-13T09:40:18  *** ei-grad has quit IRC
   5 2010-05-13T10:16:11  <valeuf> ThomasWaldmann: yes, I am morking with moin2 for my dev, there is no any way to input image ?
   6 2010-05-13T10:16:14  * valeuf is checking
   7 2010-05-13T10:18:32  <valeuf> ThomasWaldmann: do you mean that we are not able to add image in a text ?
   8 2010-05-13T10:18:43  <valeuf> ThomasWaldmann: I can upload image without any trouble with moin2
   9 2010-05-13T11:28:48  <ThomasWaldmann> valeuf: try {{image.png}}
  10 2010-05-13T12:25:05  *** kursor has quit IRC
  11 2010-05-13T12:51:26  <ThomasWaldmann> TheSheep: http://paste.pocoo.org/show/213535/ current implementation idea
  12 2010-05-13T12:52:40  <ThomasWaldmann> it looks like I won't get away without changing the backends to accept a parameter with the class of items that a backend shall create / with the class of revisions an item shall create
  13 2010-05-13T13:18:41  <ThomasWaldmann> TheSheep: http://paste.pocoo.org/show/213543/ updated, more realistic :)
  14 2010-05-13T13:20:03  <TheSheep> ThomasWaldmann: I'm sorry, I'm at work now, can't look
  15 2010-05-13T13:21:12  <ThomasWaldmann> oh, no free day in poland?
  16 2010-05-13T13:21:53  <TheSheep> no, we have that holiday on Sunday
  17 2010-05-13T13:22:05  <ThomasWaldmann> hah
  18 2010-05-13T13:30:23  <valeuf> ThomasWaldmann: btw, I have the bug with fs.py, you asked me to try something, but I forget what
  19 2010-05-13T13:30:28  <valeuf> ThomasWaldmann: I can have a look now
  20 2010-05-13T13:31:36  <ThomasWaldmann> use fs2
  21 2010-05-13T13:31:48  <ThomasWaldmann> except if you want to debug it
  22 2010-05-13T13:32:04  <ThomasWaldmann> i had the same problem yesterday when trying it
  23 2010-05-13T13:32:44  <valeuf> ThomasWaldmann: how can I switch ?
  24 2010-05-13T13:33:14  <ThomasWaldmann> best is to use a wikiconfig_local.py
  25 2010-05-13T13:34:42  <ThomasWaldmann> see docs/config_examples/snippets
  26 2010-05-13T13:35:19  <ThomasWaldmann> fs_backend_wikiconfig_snippet
  27 2010-05-13T13:35:31  <ThomasWaldmann> and then just change fs: to fs2:
  28 2010-05-13T13:35:56  <ThomasWaldmann> also edit that path so it makes sense for your setup
  29 2010-05-13T13:36:25  <valeuf> ThomasWaldmann: hum I did, but I am probably confusing something
  30 2010-05-13T13:37:33  <ThomasWaldmann> show me your wikiconfig_local.py
  31 2010-05-13T13:42:12  <valeuf> I am done :)
  32 2010-05-13T13:42:19  <valeuf> my configuration files was just pretty messy
  33 2010-05-13T13:42:34  <valeuf> I got the attachement with {{MyImage}}
  34 2010-05-13T13:42:45  <valeuf> however it is weird, the picture are in a small frame on the page
  35 2010-05-13T13:43:50  <CIA-55> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 8213:78f1e2546e1d 2.0-dev/docs/config_examples/ (2 files in 2 dirs): move new snippet to correct directory
  36 2010-05-13T13:44:26  <ThomasWaldmann> valeuf: it's broken :)
  37 2010-05-13T13:44:53  <ThomasWaldmann> also try smileys
  38 2010-05-13T13:45:39  <valeuf> hum with fs2 I got other weird bug :p
  39 2010-05-13T13:46:22  <valeuf> ThomasWaldmann: http://pastie.org/958493 when I try to add content on the wiki fs2
  40 2010-05-13T13:47:40  <valeuf> however it woks with fs :)
  41 2010-05-13T13:48:43  <ThomasWaldmann> if your repo uptodate?
  42 2010-05-13T13:48:58  <valeuf> I update 30 minutes ago
  43 2010-05-13T13:49:07  <valeuf> I will update again
  44 2010-05-13T13:49:14  <ThomasWaldmann> did you update your workdir also?
  45 2010-05-13T13:49:36  <ThomasWaldmann> (hg pull -u)
  46 2010-05-13T13:50:27  <valeuf> yep,
  47 2010-05-13T13:50:36  <valeuf> I know how to use hg ^ ^
  48 2010-05-13T13:51:01  <valeuf> my tip for my working dir indicate your last commit at 13:44
  49 2010-05-13T13:51:17  <valeuf> (13:43:44 to be exac)
  50 2010-05-13T13:51:39  <ThomasWaldmann> show me your wikiconfig_local.py
  51 2010-05-13T13:51:51  <ThomasWaldmann> (i tried creating new item, works for me)
  52 2010-05-13T13:54:58  <valeuf> ThomasWaldmann: http://pastie.org/958502
  53 2010-05-13T13:55:06  <valeuf> just a copy of the sample config
  54 2010-05-13T13:55:16  <valeuf> with minor change to use fs2
  55 2010-05-13T14:02:52  <ThomasWaldmann> that is not a wikiconfig_local.py, right?
  56 2010-05-13T14:03:21  <valeuf> I am using directly wikiconfig
  57 2010-05-13T14:03:25  <valeuf> this make a problem ?
  58 2010-05-13T14:03:39  <ThomasWaldmann> well, you will likely commit it some day :D
  59 2010-05-13T14:03:49  <valeuf> ah ... yes ...
  60 2010-05-13T14:03:52  <valeuf> you are right :s
  61 2010-05-13T14:03:55  <ThomasWaldmann> that's why we have that local thing
  62 2010-05-13T14:05:01  <valeuf> but I could not find how to use wikiconfig_local clearly (which was the explain why my config was not working before)
  63 2010-05-13T14:05:11  <valeuf> should I import it from wikiconfig ?
  64 2010-05-13T14:06:04  <ThomasWaldmann> http://paste.pocoo.org/show/213568/
  65 2010-05-13T14:06:44  <ThomasWaldmann> use that as wikiconfig_local.py (a bit is explained in wikiconfig.py)
  66 2010-05-13T14:08:43  <valeuf> ah I got it, I should uncomment some lines in wikiserverconfig
  67 2010-05-13T14:09:12  <valeuf> ah no
  68 2010-05-13T14:12:11  <valeuf> ThomasWaldmann: it works with your config file :)
  69 2010-05-13T14:12:47  <valeuf> for the smiley, I'd like to see if I can quickly tackle the task
  70 2010-05-13T14:13:00  <valeuf> what would be the best solution ?
  71 2010-05-13T14:13:20  <valeuf> Direcctly relpace the simely by image node in the Tree, or make special node for smiley in the tree ?
  72 2010-05-13T14:14:03  <ThomasWaldmann> well, it should be well-thought-over :)
  73 2010-05-13T14:14:28  <ThomasWaldmann> i only have some vague ideas, waldi might be the better developer to talk to
  74 2010-05-13T14:14:37  <valeuf> ok
  75 2010-05-13T14:14:47  <valeuf> I will keep working on my equivalence by the way
  76 2010-05-13T14:14:47  <ThomasWaldmann> smileys are images
  77 2010-05-13T14:15:07  <valeuf> ThomasWaldmann: they are also information sometimes
  78 2010-05-13T14:15:15  <valeuf> ThomasWaldmann: and the image may change with the theme ...
  79 2010-05-13T14:15:17  <ThomasWaldmann> images are mimetype items
  80 2010-05-13T14:15:30  <TheSheep> valeuf: you want separate smiley node, especially when themes and the like may want to replace them, and you will need different css classes on them
  81 2010-05-13T14:15:40  <valeuf> TheSheep: yep
  82 2010-05-13T14:15:48  <ThomasWaldmann> if you show an image on a page, it means to transclude the item
  83 2010-05-13T14:16:52  <valeuf> Some
  84 2010-05-13T14:17:15  <valeuf> some smileys node would be a not so bad solution I think, because the converter can handle them as they want
  85 2010-05-13T14:17:24  <ThomasWaldmann> there is already an include converter
  86 2010-05-13T14:17:35  <ThomasWaldmann> include = transclude
  87 2010-05-13T14:17:40  <valeuf> ThomasWaldmann: yep, with the {{ }}
  88 2010-05-13T14:18:10  <valeuf> it is pretty great to include different tree, or mimetypes items in one tree
  89 2010-05-13T14:19:01  <ThomasWaldmann> i think it currently uses html <object> (wrongly) at some places
  90 2010-05-13T14:20:07  <ThomasWaldmann> but after doing some practical experiments some time ago, I think images should be specialcased with <img>, because browser do not support object well enough (or do strange things sometimes)
  91 2010-05-13T14:21:47  <valeuf> ThomasWaldmann: ah yes, I saw this recently, I was surprised by the use of object, img is better than object normally
  92 2010-05-13T14:22:07  <valeuf> and this explain the frame arround the image currently
  93 2010-05-13T14:22:14  <ThomasWaldmann> well, if browsers would suck less, img would be pretty superfluous
  94 2010-05-13T14:22:28  <ThomasWaldmann> because object is much more generic
  95 2010-05-13T14:22:28  <valeuf> ThomasWaldmann: :)
  96 2010-05-13T14:23:53  <ThomasWaldmann> and if you read w3c standards, they read like img is just a historical special case of object and object does all you need
  97 2010-05-13T14:24:21  <ThomasWaldmann> but in practice, we are not really there (yet?)
  98 2010-05-13T14:29:24  <ThomasWaldmann> btw, maybe it is easier to first fix images and afterwards think about smileys
  99 2010-05-13T15:02:29  <valeuf> ThomasWaldmann: ok I will do it this week-end
 100 2010-05-13T15:08:33  <ThomasWaldmann> maybe dmitry will rejoin us soon also
 101 2010-05-13T15:08:54  * ThomasWaldmann still works on metadata indexing infrastructure
 102 2010-05-13T15:18:32  <ThomasWaldmann> http://paste.pocoo.org/show/213543/ does anyone see fundamental issues with this, before i do bigger changes in backends to try this out?
 103 2010-05-13T15:18:55  <ThomasWaldmann> dennda: ronny: xorAxAx: waldi: ^^
 104 2010-05-13T15:38:54  *** cybervegan has joined #moin-dev
 105 2010-05-13T15:41:53  <cybervegan> hi guys, I've been hacking our local wiki code to add some functionality we need, and I've got a working prototype for the ability to put functions into templates (extending the idea of template variables). Are you interested, or should I keep this to myself?
 106 2010-05-13T15:47:45  <ThomasWaldmann> hi cybervegan
 107 2010-05-13T15:47:59  <cybervegan> Hi ThomasWaldmann
 108 2010-05-13T15:48:24  <ThomasWaldmann> can you show it? we have a theming/templating project in SOC this year.
 109 2010-05-13T15:49:33  <cybervegan> ThomasWaldmann: Probably, but not in our intranet wiki (private stuff) but most likely if we can find an external server to host it on.
 110 2010-05-13T15:50:22  <cybervegan> ThomasWaldmann: the thing I have right now is a counter function - so you can have a number of named counters which increment when you save a templated page
 111 2010-05-13T15:50:44  <ThomasWaldmann> ah, that templates
 112 2010-05-13T15:51:27  <cybervegan> ThomasWaldmann: ok, don't forget i'm not hardcore moin-dev like you...
 113 2010-05-13T15:51:48  <ThomasWaldmann> so that's mostly unrelated to what I told.
 114 2010-05-13T15:52:05  <ThomasWaldmann> yes, sounds interesting
 115 2010-05-13T15:52:34  <cybervegan> ThomasWaldmann: fair enough. i've developed this for 1.8, so i'm not sure if it will work in 1.9
 116 2010-05-13T15:52:48  <cybervegan> ThomasWaldmann: 1.8 is what we run right now
 117 2010-05-13T15:53:08  <ThomasWaldmann> maybe we could even use jinja2 for that kind of stuff also :D
 118 2010-05-13T15:53:46  <cybervegan> ThomasWaldmann: I remember hearing (or seeing) jinja2 somewhere, but can't place it
 119 2010-05-13T15:54:09  <ThomasWaldmann> it's a python templating engine
 120 2010-05-13T15:54:23  <ThomasWaldmann> we'll use it in moin2
 121 2010-05-13T16:24:05  <cybervegan> ThomasWaldmann: ah, right - for building the actual html template or for the wiki template or both?
 122 2010-05-13T16:33:45  <ThomasWaldmann> for the theme and user interface
 123 2010-05-13T16:38:43  <ThomasWaldmann> but if could do it somehow safe enough for other stuff with jinja2 that maybe could be nice (j2 is not limited to html templates, it could work for other text, too)
 124 2010-05-13T18:35:19  *** cybervegan has left #moin-dev
 125 2010-05-13T18:44:53  <ThomasWaldmann> hmm, using simple inheritance doesn't work either
 126 2010-05-13T18:45:30  <ThomasWaldmann> backend creates items, items create revisions
 127 2010-05-13T18:46:13  <ThomasWaldmann> specific to the backend implementation, there could be different item/revision classes
 128 2010-05-13T18:47:14  <ThomasWaldmann> so I can't just tell it "create IndexingItem" or "create IndexingRevision"
 129 2010-05-13T18:47:57  <ThomasWaldmann> so, do we need the indexing stuff to be a Mixin class?
 130 2010-05-13T18:48:29  <ThomasWaldmann> and dynamically create
 131 2010-05-13T18:49:20  <ThomasWaldmann> class MyItem(IndexingMixin, MyItemBase): pass
 132 2010-05-13T19:09:27  *** kursor has joined #moin-dev
 133 2010-05-13T20:30:01  *** kursor has quit IRC
 134 2010-05-13T23:42:41  <dreimark> moin
 135 2010-05-13T23:46:10  <ThomasWaldmann> hi dreimark
 136 2010-05-13T23:46:39  <dreimark> valeuf: ThomasWaldmann can you think on smileys as svg graphics too
 137 2010-05-13T23:48:52  <dreimark> TheSheep: ^^
 138 2010-05-13T23:49:51  <ThomasWaldmann> that'll require IE9 or svgweb (which i didn't try recently)
 139 2010-05-13T23:50:12  <dreimark> I9 will be in place when moin 2.0 is ready
 140 2010-05-13T23:50:38  <dreimark> and i6++ can use it by chromeframe plugin
 141 2010-05-13T23:58:20  <ThomasWaldmann> did you try with a bunch of smileys?
 142 2010-05-13T23:58:44  <dreimark> all icons in svg-edit are made in svg only
 143 2010-05-13T23:58:57  <dreimark> they are stacked in one svg file
 144 2010-05-13T23:59:50  <dreimark> I tried ie8 with that plugin and it works good

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