1 2012-03-10T02:07:09  *** yufra_ has joined #moin-dev
   2 2012-03-10T03:53:30  *** sudo_dirk has quit IRC
   3 2012-03-10T05:58:56  *** yufra_ has quit IRC
   4 2012-03-10T06:00:49  *** sudo_dirk has joined #moin-dev
   5 2012-03-10T06:38:41  *** sravi has joined #moin-dev
   6 2012-03-10T06:59:08  *** sravi has quit IRC
   7 2012-03-10T07:49:32  *** kanha has joined #moin-dev
   8 2012-03-10T09:24:13  <sudo_dirk> moin
   9 2012-03-10T09:25:22  <dreimark> moin
  10 2012-03-10T09:37:52  <sudo_dirk> bbl
  11 2012-03-10T10:25:45  *** sr has joined #moin-dev
  12 2012-03-10T10:34:36  *** sudo_dirk has quit IRC
  13 2012-03-10T10:54:31  *** sr has quit IRC
  14 2012-03-10T11:37:52  *** sudo_dirk2 has joined #moin-dev
  15 2012-03-10T11:38:27  <sudo_dirk2> dreimark: the navi icons in arnica slide_show are working with safari now :-D
  16 2012-03-10T11:47:00  *** sudo_dirk2 has quit IRC
  17 2012-03-10T12:41:54  *** sudo_dirk has joined #moin-dev
  18 2012-03-10T13:15:24  *** greg_f has quit IRC
  19 2012-03-10T13:56:13  <ThomasWaldmann> moin
  20 2012-03-10T14:12:50  <kanha> moin
  21 2012-03-10T14:14:35  <kanha> In bug description https://bitbucket.org/thomaswaldmann/moin-2.0/issue/157/html-content-type-with-div-is-not-rendered at line t=HTML('<h1>foo</h1><div>foo</div>') then what should be the output?
  22 2012-03-10T14:14:46  <kanha> is it foo ?
  23 2012-03-10T14:14:52  <kanha> or
  24 2012-03-10T14:14:55  <kanha> foo
  25 2012-03-10T14:14:58  <kanha> foo
  26 2012-03-10T14:15:30  <kanha> is foo should be printed twice or once?
  27 2012-03-10T14:21:19  <ThomasWaldmann> the problem is that the input is invalid and it's processing is crippling it even more
  28 2012-03-10T14:21:36  <ThomasWaldmann> the input should be valid and the processing should not cripple it
  29 2012-03-10T14:23:44  <ThomasWaldmann> its*
  30 2012-03-10T14:23:59  <kanha> Do you want to say that input code should always start from <html>tag ?
  31 2012-03-10T14:24:07  <kanha> to make it valid?
  32 2012-03-10T14:25:11  <ThomasWaldmann> no, but there has to be some toplevel tag
  33 2012-03-10T14:26:26  *** greg_f has joined #moin-dev
  34 2012-03-10T14:30:14  <kanha> so i gues instead of checking if html_tree.tag.name != 'html' and html_tree.tag.name != 'div':(at line no around 106 in MoinMoin/converter/html_in.py) it will be better to check as http://paste.pocoo.org/show/563718/  so that even if the top level tag is not given then a div tag gets added.
  35 2012-03-10T14:32:58  <ThomasWaldmann> i already told a while ago that there should be some global code review to find out what toplevel tag is used (and why / for what) - and then such stuff should be documented so it is not just arbitrarily taken differently every time it is needed.
  36 2012-03-10T14:33:23  <ThomasWaldmann> waldi: ^^
  37 2012-03-10T14:34:07  <ThomasWaldmann> and checking if not html is there and then adding another tag around it is also not very sane
  38 2012-03-10T14:36:10  <kanha> html_tree.tag.name is returning the tag name of the tag which is used at the end.
  39 2012-03-10T14:38:45  <ThomasWaldmann> that's just a consequence of defect input, for valid input, it is the toplevel tag
  40 2012-03-10T14:40:04  <kanha> and also the html tags are always converted to P tag.
  41 2012-03-10T14:41:10  <kanha> can you give a example of valid input and invalid to make it clear?
  42 2012-03-10T14:41:52  <ThomasWaldmann> see the issue and read what i told a minute ago
  43 2012-03-10T14:48:04  <kanha> if i give valid input as <html><h1>foo</h1><div>foo</div></html> then the value of html_tree.tag.name is div but html is the top level tag here and the output it shows after saving is foo only not twice.
  44 2012-03-10T15:10:27  <ThomasWaldmann> >>> from emeraldtree.html import HTML
  45 2012-03-10T15:10:27  <ThomasWaldmann> >>> t = HTML('<html><h1>foo</h1><div>foo</div></html>')
  46 2012-03-10T15:10:27  <ThomasWaldmann> >>> t
  47 2012-03-10T15:10:27  <ThomasWaldmann> <Element QName(u'html', u'http://www.w3.org/1999/xhtml') at b7073d2c>
  48 2012-03-10T15:13:06  <kanha> http://www.w3.org/1999/xhtml%27 shows 404 not found error
  49 2012-03-10T15:14:24  <ThomasWaldmann> so?
  50 2012-03-10T15:16:01  <kanha> will there not be any effect on the result of code as its used?
  51 2012-03-10T15:22:58  *** RogerHaase has joined #moin-dev
  52 2012-03-10T15:23:08  <ThomasWaldmann> as you did a mistake and not us or the w3c: no
  53 2012-03-10T15:42:53  <kanha> which mistake?
  54 2012-03-10T15:43:22  <ThomasWaldmann> http://www.w3.org/1999/xhtml%27
  55 2012-03-10T15:47:09  <kanha> i opened that link only which you posted but when i copied its linklocation then it came like that
  56 2012-03-10T15:48:02  <ThomasWaldmann> you just to be more careful when doing copy and paste. http://www.w3.org/1999/xhtml
  57 2012-03-10T15:54:50  <kanha> the code which you a gave works fine but in MoinMoin/converter/html_in.py the html tag is automaticaly converts to P tag always.
  58 2012-03-10T16:04:01  <ThomasWaldmann> >>> from MoinMoin.converter.html_in import Converter
  59 2012-03-10T16:04:10  <ThomasWaldmann> >>> c = Converter()
  60 2012-03-10T16:04:10  <ThomasWaldmann> >>> c(u'<html><h1>foo</h1></html>')
  61 2012-03-10T16:04:10  <ThomasWaldmann> <Element Name(u'page', u'http://moinmo.in/namespaces/page') at b70e1a8c>
  62 2012-03-10T16:17:31  <sudo_dirk> dreimark: icon links are working with safari now :-))
  63 2012-03-10T16:42:54  *** kanha has quit IRC
  64 2012-03-10T17:55:34  *** sudo_dirk has left #moin-dev
  65 2012-03-10T17:56:34  *** sudo_dirk2 has joined #moin-dev
  66 2012-03-10T17:57:44  <sudo_dirk2> dreimark: you got a pull request for moin1-extesions.
  67 2012-03-10T18:00:25  <sudo_dirk2> dreimark: on rotating images, the original file will be changed. we loose exif information. i thought to just remember the information about the rotation and use this similar to exif rotation. what do you think.
  68 2012-03-10T18:37:53  * ThomasWaldmann works on foobar theme
  69 2012-03-10T18:41:15  *** sudo_dirk2 has quit IRC
  70 2012-03-10T18:44:33  *** sudo_dirk2 has joined #moin-dev
  71 2012-03-10T18:58:49  *** sudo_dirk has joined #moin-dev
  72 2012-03-10T19:01:14  *** greg_f has quit IRC
  73 2012-03-10T19:01:47  *** sudo_dirk2 has left #moin-dev
  74 2012-03-10T19:04:10  <dreimark> re
  75 2012-03-10T19:04:43  <sudo_dirk> wb dreimark
  76 2012-03-10T19:04:58  <dreimark> sudo_dirk: look first why it is needed to rotate, if we don't get the exif information correct
  77 2012-03-10T19:05:25  <sudo_dirk> we also have cameras with no orientation information
  78 2012-03-10T19:05:58  <sudo_dirk> i would put it on top
  79 2012-03-10T19:06:30  <sudo_dirk> of exif. use both if the user wants to ratate he should be able to...
  80 2012-03-10T19:06:38  <dreimark> hmm, can you look how complicated it is to get exif info and put it into the new file
  81 2012-03-10T19:07:41  <dreimark> be aware if you change the key information all cache files become invalid
  82 2012-03-10T19:07:53  <sudo_dirk> i had a look. it is easy to get (pil). but i found no way to put it back in. possibly another python library, but i found no common one
  83 2012-03-10T19:08:28  <dreimark> i look at that later too
  84 2012-03-10T19:08:52  <sudo_dirk> if you rotate the pic today, the cache file will be deleted. if there is a additional info, we use it to generate cache files
  85 2012-03-10T19:09:01  <dreimark> this needs more research. or questions on python platforms
  86 2012-03-10T19:09:26  <sudo_dirk> all right. i am going to make a pizza for the family now ;-) bbl
  87 2012-03-10T19:10:41  <sudo_dirk> if we have a file with additional information we can use it to store image names or tags as well. but it is just a idea for now.
  88 2012-03-10T19:10:56  <sudo_dirk> bb
  89 2012-03-10T19:11:06  <dreimark> i don't want an additional file
  90 2012-03-10T19:16:24  <dreimark> sudo_dirk: next time read the commit message twice
  91 2012-03-10T19:17:13  <CIA-41> Dirk Alders <d.alders@arcor.de> default * 581:374033c4eb26 extensions/data/plugin/parser/text_x_arnica.py: support for configuring arnica by wikiconfig enties
  92 2012-03-10T19:23:06  <dreimark> ThomasWaldmann:  TheSheep I tried today the xstatic idea with arnica for moin1 and by that we can have pypi packages using the plugin_dir parameter for the old plugin system too. So currently I am a bit unsure if we really need a completly new plugin system for moin2.
  93 2012-03-10T19:26:02  <ThomasWaldmann> that's unrelated
  94 2012-03-10T19:26:51  <dreimark> if we have each plugin a package it is automaticly separated as in the description of "plugin organization"
  95 2012-03-10T19:30:00  <ThomasWaldmann> you don't need to think of packaging first as long as it is totally unclear how the plugin system should work
  96 2012-03-10T19:30:58  <dreimark> well not deeply but getting them on pypi would make it lots easier
  97 2012-03-10T19:31:02  <dreimark> well not deeply but getting them on pypi would make it lots easier
  98 2012-03-10T19:31:18  <dreimark> so it should be also on focus
  99 2012-03-10T19:31:29  <ThomasWaldmann> of course, but that is a secondary thing
 100 2012-03-10T19:32:05  <dreimark> aööright
 101 2012-03-10T19:32:13  <dreimark> allright
 102 2012-03-10T20:17:20  <CIA-41> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 1293:74b0ae78492b 2.0/MoinMoin/themes/foobar/ (66 files in 6 dirs): (log message trimmed)
 103 2012-03-10T20:17:21  <CIA-41> added foobar theme - a simple 2 sidebars theme
 104 2012-03-10T20:17:21  <CIA-41> TODO:
 105 2012-03-10T20:17:21  <CIA-41> * think about a better name
 106 2012-03-10T20:17:21  <CIA-41> * make it prettier
 107 2012-03-10T20:17:21  <CIA-41> * fix broken stuff
 108 2012-03-10T20:17:21  <CIA-41> If you take css from modernized, please be very selective - especially
 109 2012-03-10T20:17:46  <ThomasWaldmann> ... do not add css when it is unclear whether it is used.
 110 2012-03-10T20:20:10  <ThomasWaldmann> RogerHaase: ^^
 111 2012-03-10T20:21:56  <RogerHaase> ThomasWaldmann: will take a look later:  still struggling with #132 transclusion fix
 112 2012-03-10T21:45:57  <sudo_dirk> dreimark: should i add a description for the last change on HelpOnArnica?
 113 2012-03-10T21:59:43  <sudo_dirk> dreimark: btw, i found in the past pyexiv2 for copying exif information, but pyexiv2 is not a pure python implementation :-(
 114 2012-03-10T22:12:43  *** sudo_dirk2 has joined #moin-dev
 115 2012-03-10T22:13:36  <sudo_dirk2> \join #python.de
 116 2012-03-10T22:13:40  <sudo_dirk2> sry
 117 2012-03-10T23:03:48  <sudo_dirk2> dreimark: what do you think about usage of iptc?
 118 2012-03-10T23:10:10  <sudo_dirk2> dreimark: or pyexiv2, but both have platform dependent libraries (not sure with iptc).
 119 2012-03-10T23:12:54  <sudo_dirk2> good night....
 120 2012-03-10T23:13:00  *** sudo_dirk2 has left #moin-dev
 121 2012-03-10T23:44:24  *** RogerHaase has left #moin-dev
 122 

MoinMoin: MoinMoinChat/Logs/moin-dev/2012-03-10 (last edited 2012-03-10 01:45:03 by IrcLogImporter)