1 2010-08-09T00:01:37 *** RogerHaase
2 2010-08-09T00:03:03 <ThomasWaldmann> DmitryAndreev: from rst_out: This is preprealpha version, do not use it, it doesn't work.
3 2010-08-09T00:04:13 <ThomasWaldmann> same rst_in
4 2010-08-09T00:04:33 <ThomasWaldmann> same moinwiki_out
5 2010-08-09T00:05:01 <DmitryAndreev> forget to remove this.)
6 2010-08-09T00:05:14 <ThomasWaldmann> grep for it :)
7 2010-08-09T00:05:36 <ThomasWaldmann> also, please make sure that you follow pep8
8 2010-08-09T00:05:45 <ThomasWaldmann> e.g. 1 empty line between methods
9 2010-08-09T00:07:42 <ThomasWaldmann> hmm, there is no real mimetype for rst?
10 2010-08-09T00:09:34 <ThomasWaldmann> While there is no registered MIME type for reStructuredText, the "official unofficial" standard MIME type is "text/x-rst". This was invented for the build system for PEPs (Python Enhancement Proposals), and it's used by the python.org web site build system.
11 2010-08-09T00:09:54 <ThomasWaldmann> DmitryAndreev: you have to add that to your converters ^^
12 2010-08-09T00:10:07 <DmitryAndreev> ok
13 2010-08-09T00:11:08 <ThomasWaldmann> (similar for the other converters, if some "real" mimetype is missing)
14 2010-08-09T00:12:04 <ThomasWaldmann> also, please document minimum docutils requirement and with which version your stuff was developed/tested
15 2010-08-09T00:13:50 <ThomasWaldmann> (in rst_in docstring for example)
16 2010-08-09T00:15:37 <DmitryAndreev> tomorrow i'll try to run tests on our university server, i have a problem with installing py.test for another version of python(<2.6) on my gentoo laptop.
17 2010-08-09T00:15:39 <CIA-50> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9535:0ffd3819b380 2.0-dev/ (16 files in 4 dirs): merged moin/2.0-dev-wiki-rest-dandreev
18 2010-08-09T00:15:45 <ThomasWaldmann> DmitryAndreev: ^^ :)
19 2010-08-09T00:16:11 <ThomasWaldmann> moin requires 2.6
20 2010-08-09T00:17:15 * ThomasWaldmann add menu entries for text/x-rst
21 2010-08-09T00:27:57 <CIA-50> Dmitry Andreev <klieg.polar@gmail.com> default * 9526:1e38447d5242 2.0-dev-wiki-rest-dandreev/MoinMoin/converter2/ (moinwiki_out.py rst_in.py rst_out.py): remove string about prealpha status of moinwiki_in and rst converters
22 2010-08-09T00:27:59 <CIA-50> Dmitry Andreev <klieg.polar@gmail.com> default * 9527:fdf013be0a91 2.0-dev-wiki-rest-dandreev/MoinMoin/converter2/ (rst_in.py rst_out.py): change ReStructuredText MIME type to "text/x-rst"
23 2010-08-09T00:29:59 <ThomasWaldmann> *
24 2010-08-09T00:29:59 <ThomasWaldmann> File "/usr/share/pyshared/docutils/io.py", line 144, in determine_encoding_from_data
25 2010-08-09T00:30:03 <ThomasWaldmann> [Display the sourcecode for this frame] [Open an interactive python shell in this frame] if data.startswith(start_bytes):
26 2010-08-09T00:30:06 <ThomasWaldmann> AttributeError: 'list' object has no attribute 'startswith'
27 2010-08-09T00:30:18 <ThomasWaldmann> is your converter assuming it gets a str or unicode?
28 2010-08-09T00:30:33 <ThomasWaldmann> currently it gets a list of unicode lines
29 2010-08-09T00:31:04 <ThomasWaldmann> if you need else, '\n'.join(that)
30 2010-08-09T00:32:44 <ThomasWaldmann> DmitryAndreev: is it possible to create a link to another wiki item in reST?
31 2010-08-09T00:33:11 <ThomasWaldmann> in case there is no markup for that, is a link target of wiki:///itemname possible?
32 2010-08-09T00:40:27 <DmitryAndreev> why don't to use links like in moinwiki , just TargetName? or somthing like this. wiki:///itemname maybe not works as just inline text link, but it can be added as standat rst link markup (_link: any_text_link)
33 2010-08-09T00:41:37 <ThomasWaldmann> hmm, i can't find a mimetype for mediawiki markup
34 2010-08-09T00:42:00 <ThomasWaldmann> DmitryAndreev: the question is just if it is possible to create such a link in the dom, no matter how
35 2010-08-09T00:42:27 <ThomasWaldmann> if yes, i need to subclass the Item from MarkupItem, so it writes the itemlinks into metadata when saving
36 2010-08-09T00:45:35 <DmitryAndreev> <page:a xlink:href="wiki.local:SomePage"> that what we now have in DOM
37 2010-08-09T00:46:10 <ThomasWaldmann> that's a relative link, yes
38 2010-08-09T00:46:32 <ThomasWaldmann> wiki:///itemname is local wiki and itemname is absolute
39 2010-08-09T00:46:44 <ThomasWaldmann> wiki://otherwiki/itemname is interwiki
40 2010-08-09T00:47:32 <ThomasWaldmann> so using normal rst link syntax, one can create such links in the dom?
41 2010-08-09T00:49:09 <DmitryAndreev> you can add any text as link using rst
42 2010-08-09T00:50:00 <ThomasWaldmann> ok
43 2010-08-09T00:50:11 <ThomasWaldmann> use text/x-mediawiki for now
44 2010-08-09T00:57:44 <ThomasWaldmann> btw, i did not tell to remove the other registrations, just add the new mimetypes.
45 2010-08-09T00:58:03 <ThomasWaldmann> Type('x-moin/format;name=rst'))
46 2010-08-09T00:58:08 <ThomasWaldmann> keep that for now
47 2010-08-09T01:01:18 <CIA-50> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9536:ec5727502283 2.0-dev/MoinMoin/items/__init__.py: items: offer creation of MediaWiki and ReST markup type items
48 2010-08-09T01:01:58 <ThomasWaldmann> DmitryAndreev: now you have a UI :)
49 2010-08-09T01:03:52 <CIA-50> Dmitry Andreev <klieg.polar@gmail.com> default * 9528:b2a77655a2fa 2.0-dev-wiki-rest-dandreev/MoinMoin/converter2/ (_tests/test_rst_in.py rst_in.py): input of rst_in converter is a list of unicode lines
50 2010-08-09T01:04:01 <CIA-50> Dmitry Andreev <klieg.polar@gmail.com> default * 9529:fe9ba2fb8cf6 2.0-dev-wiki-rest-dandreev/MoinMoin/converter2/mediawiki_in.py: Mediawiki->DOM: add "text/x-mediawiki" MIME type
51 2010-08-09T01:04:08 <CIA-50> Dmitry Andreev <klieg.polar@gmail.com> default * 9530:e6eb85674d40 2.0-dev-wiki-rest-dandreev/MoinMoin/converter2/ (rst_in.py rst_out.py): ReStructuredText: add back 'x-moin/format;name=rst' MIME type
52 2010-08-09T01:04:48 <ThomasWaldmann> now merge main :)
53 2010-08-09T01:05:30 <CIA-50> Dmitry Andreev <klieg.polar@gmail.com> default * 9542:912b9c8f3ff7 2.0-dev-wiki-rest-dandreev/ (23 files in 8 dirs): merge 2.0-dev
54 2010-08-09T01:05:32 <ThomasWaldmann> how did you test your stuff? only automated tests?
55 2010-08-09T01:05:40 <DmitryAndreev> yes
56 2010-08-09T01:07:22 <ThomasWaldmann> my 2nd test was to c&p some article from wp :)
57 2010-08-09T01:10:18 <ThomasWaldmann> docutils.utils.SystemMessage
58 2010-08-09T01:10:18 <ThomasWaldmann> SystemMessage: <string>:328: (SEVERE/4) Title level inconsistent: Document Title / Subtitle `````````````````````````
59 2010-08-09T01:10:23 <ThomasWaldmann> traceback :)
60 2010-08-09T01:10:48 <ThomasWaldmann> #
61 2010-08-09T01:10:48 <ThomasWaldmann> File "/usr/share/pyshared/docutils/utils.py", line 187, in system_message
62 2010-08-09T01:10:48 <ThomasWaldmann> [Display the sourcecode for this frame] [Open an interactive python shell in this frame] raise SystemMessage(msg, level)
63 2010-08-09T01:11:24 <DmitryAndreev> 03:10 good night, ThomasWaldmann. which converter do you test? rst_in?
64 2010-08-09T01:11:56 <ThomasWaldmann> yes
65 2010-08-09T01:11:59 <ThomasWaldmann> *
66 2010-08-09T01:11:59 <ThomasWaldmann> File "/home/tw/w/mm20rest/MoinMoin/converter2/html_out.py", line 266, in visit_moinpage_list
67 2010-08-09T01:12:02 <ThomasWaldmann> [Display the sourcecode for this frame] [Open an interactive python shell in this frame] raise ElementException('page:item-label-generate does not support "%s"' % generate)
68 2010-08-09T01:12:06 <ThomasWaldmann> ElementException: page:item-label-generate does not support "definition"
69 2010-08-09T01:12:07 <ThomasWaldmann> traceback :)
70 2010-08-09T01:12:24 <ThomasWaldmann> ok, it's late, gn DmitryAndreev
71 2010-08-09T01:12:38 * ThomasWaldmann tested with rst primer src
72 2010-08-09T01:16:31 <DmitryAndreev> item-label-generate does not support "definition", ok, this is my fault, but exeption about unknown value of attribute? is this not too strict?
73 2010-08-09T01:19:26 <ThomasWaldmann> just try c&p the rst primer tomorrow, you'll get lots of tracebacks :)
74 2010-08-09T02:28:18 <diofeher> wtf oO MoinMoin.wikiutil.PluginMissingError
75 2010-08-09T02:28:18 <diofeher> PluginMissingError
76 2010-08-09T02:31:15 <diofeher> when tried to runserver
77 2010-08-09T02:32:04 <diofeher> btw ThomasWaldmann, when you (moin-devs) start to build plugin system can i help?
78 2010-08-09T02:32:37 <diofeher> i really want to see how you are gonna do
79 2010-08-09T02:58:05 <diofeher> anyone can run?
80 2010-08-09T05:14:25 *** kursor
81 2010-08-09T07:26:33 *** kursor
82 2010-08-09T08:33:00 *** DmitryAndreev
83 2010-08-09T08:52:29 <dreimark> moin
84 2010-08-09T08:52:33 <dreimark> diofeher: yes
85 2010-08-09T08:54:40 <dreimark> ThomasWaldmann: clicking on the logo gives currently a traceback
86 2010-08-09T08:54:53 <dreimark> MoinMoin.wikiutil.PluginMissingError
87 2010-08-09T08:55:13 <dreimark> diofeher: creating of items or actions of editbar work
88 2010-08-09T09:03:23 <dreimark> bbl
89 2010-08-09T09:28:51 *** eSyr
90 2010-08-09T09:49:15 *** AshishG
91 2010-08-09T10:01:25 <valeuf> moin
92 2010-08-09T10:04:45 *** DmitryAndreev
93 2010-08-09T10:38:59 <dreimark> re
94 2010-08-09T10:39:10 <ThomasWaldmann> moin
95 2010-08-09T10:39:46 <ThomasWaldmann> diofeher: the default front page is calling a macro called "Action", which is missing because I deleted it.
96 2010-08-09T10:40:23 <ThomasWaldmann> just use other content as front page
97 2010-08-09T10:41:09 <dreimark> ThomasWaldmann: do we have a version info for e.g. media wiki markup
98 2010-08-09T10:41:41 <dreimark> that could help for migration of "older" styles
99 2010-08-09T10:42:03 <dreimark> in the future
100 2010-08-09T10:42:06 <ThomasWaldmann> DmitryAndreev: please add markup version info to the mediawiki_in docstring
101 2010-08-09T10:42:56 <dreimark> same for reST or docbook
102 2010-08-09T10:45:16 <DmitryAndreev> ThomasWaldmann, dreimark, ok
103 2010-08-09T10:46:28 <dreimark> btw. do we store in meta by which *_in convertor we got the content?
104 2010-08-09T10:48:06 <ThomasWaldmann> we store the mimetype
105 2010-08-09T10:48:42 <ThomasWaldmann> and currently *_in is not used (afaik) to preprocess data we store
106 2010-08-09T10:52:21 <dreimark> we will have a path of "conversions" e.g. wiki markup -> changed by gui editor -> changed by text editor
107 2010-08-09T10:53:20 <dreimark> i think that changes always the mimetype
108 2010-08-09T10:54:00 <dreimark> so we can figure the conversion from the mimetype
109 2010-08-09T10:54:11 <ThomasWaldmann> no
110 2010-08-09T10:54:33 <dreimark> hmm?
111 2010-08-09T10:55:09 <ThomasWaldmann> we store the mimetype of the revision into metadata
112 2010-08-09T10:55:27 <ThomasWaldmann> editing a revision usually doesn't change its mimetype
113 2010-08-09T10:56:13 <dreimark> in the past we were able to edit a wiki markup revision by the gui editor
114 2010-08-09T10:56:38 <ThomasWaldmann> that didn't change its mimetype either
115 2010-08-09T10:56:56 <dreimark> why not ?
116 2010-08-09T10:57:06 <dreimark> the gui editor creates a new revision
117 2010-08-09T10:57:43 <ThomasWaldmann> it was wiki markup -> html -> gui edit -> html -> wiki markup -> save
118 2010-08-09T10:57:56 <dreimark> yes
119 2010-08-09T10:58:32 <dreimark> i am not sure if it must be the same now
120 2010-08-09T10:58:51 <dreimark> because you can also convert html to wiki
121 2010-08-09T10:58:57 <ThomasWaldmann> currently you get gui editor for html items only
122 2010-08-09T11:00:37 <ThomasWaldmann> wether we do same transformation as in the past has to be seen, but still, it won't change the revision mimetype
123 2010-08-09T11:02:21 <dreimark> how do we convert a mimetype then?
124 2010-08-09T11:02:29 <dreimark> of a revision
125 2010-08-09T11:03:24 <ThomasWaldmann> once stored, a revision does not change
126 2010-08-09T11:03:27 <dreimark> me thought we could start wit reST and edit it as moin markup
127 2010-08-09T11:04:23 <ThomasWaldmann> and theoretically we could do all sorts of transformations, but not everything would be lossless
128 2010-08-09T11:11:59 <dreimark> thats another reason for something similiar to section edit
129 2010-08-09T11:12:20 <dreimark> one could skip parts which can't be transformed
130 2010-08-09T11:26:52 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9464:ac28ca2095df 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_out.py: Refactor DocBook_OUT converter
131 2010-08-09T11:26:53 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9465:8a2f8faebf08 2.0-dev-docbook-html-vjaniaut/MoinMoin/items/__init__.py: Add DocBook to MarkupItem
132 2010-08-09T11:26:55 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9466:d62a9b4970aa 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Add check for <table-of-content> for DocBook_IN tests
133 2010-08-09T11:26:57 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9467:4132c05fe6ea 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Render the ToC of only if there is section in the DocBook document, for the DocBook_OUT converter
134 2010-08-09T13:34:54 <ThomasWaldmann> valeuf: reading?
135 2010-08-09T13:35:29 <ThomasWaldmann> can you past some simple docbook document that shows the most important supported elements?
136 2010-08-09T13:35:36 <ThomasWaldmann> paste*
137 2010-08-09T13:35:47 <valeuf> ThomasWaldmann: now?
138 2010-08-09T13:35:58 <valeuf> ThomasWaldmann: I was thinking to do this tonight
139 2010-08-09T13:36:06 <valeuf> (Since there is few small feature missing)
140 2010-08-09T13:36:14 <ThomasWaldmann> i am currently preparing a new syspages.xml
141 2010-08-09T13:36:27 <valeuf> syspage.xml?
142 2010-08-09T13:36:30 <valeuf> what's that
143 2010-08-09T13:36:42 <ThomasWaldmann> the stuff that gets preloaded into the wiki
144 2010-08-09T13:36:56 <valeuf> ok
145 2010-08-09T13:37:12 <ThomasWaldmann> next version will just have a few pages for markup demo, not as many as until now
146 2010-08-09T13:37:29 <ThomasWaldmann> front page, moin, creole, rst right now
147 2010-08-09T13:37:50 <valeuf> ThomasWaldmann: ok I am starting to do it
148 2010-08-09T13:37:55 <ThomasWaldmann> ok, thanks
149 2010-08-09T13:38:09 <valeuf> ThomasWaldmann: just one page, or can I write different page, each one illustrating one feature?
150 2010-08-09T13:41:34 <ThomasWaldmann> one page for now
151 2010-08-09T13:41:54 <ThomasWaldmann> and you don't need to put all of docbook on it, only the most important things
152 2010-08-09T13:43:24 <valeuf> ThomasWaldmann: ok I will try to reduce, but DocBook is a really large spec, so I need quite a lot of stuff ^ ^
153 2010-08-09T14:00:06 <valeuf> Error 500 ...
154 2010-08-09T14:00:53 <valeuf> ThomasWaldmann: http://paste.pocoo.org/show/247945/ work on my local wiki
155 2010-08-09T14:26:23 <ThomasWaldmann> crashes in my local one also
156 2010-08-09T14:26:44 <ThomasWaldmann> File "/home/tw/w/mm20dev/MoinMoin/converter2/html_out.py", line 420, in visit_moinpage_table
157 2010-08-09T14:26:47 <ThomasWaldmann> if item.tag.uri == moin_page:
158 2010-08-09T14:26:49 <ThomasWaldmann> AttributeError: 'unicode' object has no attribute 'tag'
159 2010-08-09T14:27:25 <valeuf> curious
160 2010-08-09T14:29:14 <valeuf> I am finishing a refactoring/cleaning of my code
161 2010-08-09T14:29:26 <valeuf> maybe you could merge, it is probably an issue I fixed recently
162 2010-08-09T14:30:55 <ThomasWaldmann> yeah, soon, just have to get rid of the stuff in my workdir :)
163 2010-08-09T14:31:16 <valeuf> :D
164 2010-08-09T14:43:58 <CIA-50> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9543:7d0be90cf8f9 2.0-dev/MoinMoin/config/multiconfig.py: change page_front_page to 'Home'
165 2010-08-09T14:44:01 <CIA-50> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9544:9e066c5aa5bd 2.0-dev/ (wikiconfig.py wiki/preloaded_items.xml wiki/syspages.xml): rename syspages.xml to preloaded_items.xml
166 2010-08-09T14:44:03 <CIA-50> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9545:2a2319fc8d7d 2.0-dev/MoinMoin/storage/serialization.py: serialization: add support for list type
167 2010-08-09T14:44:08 <CIA-50> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9546:270f36601545 2.0-dev/ (3 files in 3 dirs):
168 2010-08-09T14:44:08 <CIA-50> new configuration items: load_xml / save_xml
169 2010-08-09T14:44:08 <CIA-50> preloaded_xml renamed to load_xml
170 2010-08-09T14:44:08 <CIA-50> save_xml is the opposite - you can use it to export to xml on first request
171 2010-08-09T14:44:09 <CIA-50> For both, the internal default is None. If you set them to a filename, the
172 2010-08-09T14:44:09 <CIA-50> functionality is activated.
173 2010-08-09T14:44:09 <CIA-50> load_xml is set in the current ./wikiconfig.py, so it loads some demo items.
174 2010-08-09T14:44:09 <CIA-50> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9547:1bc436574911 2.0-dev/wiki/preloaded_items.xml: new preloaded_items.xml (minimal, just some demo items)
175 2010-08-09T14:44:55 <ThomasWaldmann> waldi: ^^ should now work much faster, if you still want to disable, s/preloaded_xml/load_xml/
176 2010-08-09T14:46:28 <CIA-50> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 9590:683ae7e085b0 2.0-dev/MoinMoin/ (7 files in 3 dirs): merged moin/2.0-dev-docbook-html-vjaniaut
177 2010-08-09T14:46:50 <ThomasWaldmann> valeuf: i just killed the tables btw, we can readd them if it doesn't crash any more
178 2010-08-09T14:46:59 <valeuf> ok
179 2010-08-09T14:47:12 <valeuf> I just finished my refactoring and cleaning
180 2010-08-09T14:48:07 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9468:a8d929a8ac9f 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Refactor DocBook_IN converter code
181 2010-08-09T14:48:09 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9469:a986dfed806d 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Cosmetic change, and docstring edition for DocBook_IN converter
182 2010-08-09T14:48:57 <valeuf> ThomasWaldmann: I did not check if my example was valid docbook document :p
183 2010-08-09T14:49:06 <ThomasWaldmann> DmitryAndreev: see the rst example content, we need a better one :)
184 2010-08-09T14:49:18 <ThomasWaldmann> and also one for mediawiki
185 2010-08-09T14:49:35 <ThomasWaldmann> valeuf: the crash was in html_out iirc
186 2010-08-09T14:49:52 <ThomasWaldmann> gtg/brb
187 2010-08-09T14:50:09 <valeuf> ThomasWaldmann: yes, but I still need to check that my docbook example are DocBook valid, otherwise is not really great
188 2010-08-09T15:35:20 <diofeher> moin
189 2010-08-09T15:35:27 <valeuf> diofeher: o/
190 2010-08-09T15:37:32 <ThomasWaldmann> diofeher: which css issues will you address first?
191 2010-08-09T15:40:09 *** kursor
192 2010-08-09T15:48:37 <valeuf> ThomasWaldmann: http://test.moinmo.in:8080/DocBookPDF --> resulting PDF of the conversion of the DocBook sample
193 2010-08-09T15:48:58 <valeuf> ThomasWaldmann: there was two minor mistake in my DocBook document to be DocBook5 valid, I fixed it
194 2010-08-09T15:50:12 * diofeher was reading backlog
195 2010-08-09T15:50:20 <diofeher> valeuf, :)
196 2010-08-09T15:50:32 <diofeher> ThomasWaldmann, thinking... suggestions?
197 2010-08-09T15:51:59 <ThomasWaldmann> maybe having a look at what you have there?
198 2010-08-09T15:52:08 <ThomasWaldmann> and at your todo?
199 2010-08-09T15:53:14 <diofeher> i think i will start alternate stylesheets
200 2010-08-09T15:53:52 <diofeher> in the old version how stylesheets become alternate? user added? or admin added?
201 2010-08-09T15:55:33 <ThomasWaldmann> iirc, one could specify it in the config
202 2010-08-09T15:55:51 <ThomasWaldmann> but you don't need to look at the old stuff (you removed the functionality quite a while ago)
203 2010-08-09T15:56:16 <ThomasWaldmann> just look at what they are and how they work (google) and then make some and make them work
204 2010-08-09T15:56:26 <diofeher> okay
205 2010-08-09T15:56:39 <diofeher> i've looked at that link that you posted
206 2010-08-09T15:56:53 <diofeher> about them.. but gonna search more about now
207 2010-08-09T16:03:28 <ThomasWaldmann> i guess the usual application for these would be to override colours / font sizes of main theme.
208 2010-08-09T16:04:16 <ThomasWaldmann> firefox offers them in a menu if it detects alternate css
209 2010-08-09T16:07:50 *** DmitryAndreev
210 2010-08-09T16:07:56 <diofeher> hm, i'm gonna put them to be added in config
211 2010-08-09T16:13:29 <CIA-50> Diogenes Augusto Fernandes Herminio <diofeher@gmail.com> default * 9540:4bd6fd810fd9 2.0-dev-jinja2-plugins-dfeher/ (74 files in 25 dirs): [templating] merge with main repo
212 2010-08-09T16:13:43 <CIA-50> Diogenes Augusto Fernandes Herminio <diofeher@gmail.com> default * 9596:36b7fac68173 2.0-dev-jinja2-plugins-dfeher/ (18 files in 8 dirs): [templating] merge with main repo
213 2010-08-09T16:26:15 <diofeher> hm, moin looking nice with georgia
214 2010-08-09T16:28:24 <valeuf> diofeher: georgia?
215 2010-08-09T16:31:31 <diofeher> valeuf, don't like?
216 2010-08-09T16:31:41 <diofeher> i just testing alternate stylesheets ^^
217 2010-08-09T16:37:42 <valeuf> diofeher: I just do not know what is georgia
218 2010-08-09T16:37:53 <CIA-50> Diogenes Augusto Fernandes Herminio <diofeher@gmail.com> default * 9597:92959f99f2c0 2.0-dev-jinja2-plugins-dfeher/MoinMoin/ (config/multiconfig.py templates/base.html): [templating] adding support to alternate stylesheets in multiconfig and base.html.
219 2010-08-09T16:38:35 <diofeher> valeuf, ah, is a font
220 2010-08-09T16:40:47 <diofeher> valeuf, http://images.muslimweddingcards.com/mwc/font-style/images/big/Georgia1.jpg
221 2010-08-09T16:43:17 <diofeher> ThomasWaldmann, where i gonna put the tutorials about how to do this?
222 2010-08-09T17:10:20 <TheSheep> diofeher: shame that we cannot distribute georgia with moin, and not everyone has it installed
223 2010-08-09T17:11:37 <diofeher> TheSheep, yea :/ it's one of the best fonts for me
224 2010-08-09T17:42:15 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9470:12589e717c05 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Add tests for <sbr> element for DocBook_IN converter
225 2010-08-09T17:42:15 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9471:f8cacd166747 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Add support for <sbr> conversion for DocBook_IN converter
226 2010-08-09T17:42:15 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9472:2673989ec8d3 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Remove adding XML namespace, since it is automatically used for any XML document
227 2010-08-09T17:42:15 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9473:c06a98a799fd 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Get rid of DocBook namespace for attribute for DocBook_IN tests
228 2010-08-09T17:42:20 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9474:11198b5664ad 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Get rid of DocBook namespace for docbook attributes for DocBook_IN converter
229 2010-08-09T18:11:47 <valeuf> xorAxAx: do you think you will have time to review my code today?
230 2010-08-09T18:11:59 <xorAxAx> valeuf: yes
231 2010-08-09T18:12:33 <ThomasWaldmann> diofeher: put it on the wiki :)
232 2010-08-09T18:16:12 <diofeher> ThomasWaldmann, ok, i'm gonna post in my blog too ^^
233 2010-08-09T18:49:16 *** kursor
234 2010-08-09T19:13:38 *** grzywacz
235 2010-08-09T19:18:14 <ThomasWaldmann> diofeher: you need to escape the user name other joe <script...> doe might get someone into trouble
236 2010-08-09T19:18:32 <ThomasWaldmann> otherwise*
237 2010-08-09T19:18:46 <ThomasWaldmann> maybe only himself, though :)
238 2010-08-09T19:26:06 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9475:d134324f084a 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Add test for <book> element for DocBook_IN converter
239 2010-08-09T19:26:08 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9476:f59ba039d2e3 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Add test for error handling with unsupported root element for a DocBook document
240 2010-08-09T19:26:09 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9477:f89f3934ded4 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Allow DocBook document with any block element for the root element
241 2010-08-09T19:26:11 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9478:fb6044d1c842 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Edit test to add a div for the whole document, with the class of the DocBook document used for DocBook_IN converter
242 2010-08-09T19:26:13 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9479:496886e94584 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Process also the root element of the document for DocBook_IN converter
243 2010-08-09T19:27:10 *** franklin
244 2010-08-09T19:42:58 <valeuf> T-T still 25 white element on http://moinmo.in/DOM%20DocBook%20and%20HTML%202010/DocBook-DOM%20Equivalences
245 2010-08-09T19:48:49 <valeuf> ThomasWaldmann: MailTo macro seems to be still not working
246 2010-08-09T19:48:55 <valeuf> ThomasWaldmann: is it normal?
247 2010-08-09T20:04:26 <ThomasWaldmann> most macros there didn't get the call signature / arg parsing update
248 2010-08-09T20:07:26 <valeuf> ok, do you have a working example somewhere, I can maybe update the MailTo macro
249 2010-08-09T20:19:10 <ThomasWaldmann> http://hg.moinmo.in/moin/2.0-dev/rev/b07571ac82b3#l1.24 needs to look like that
250 2010-08-09T20:20:04 <valeuf> ThomasWaldmann: ok I keep that in mind
251 2010-08-09T20:20:29 * ThomasWaldmann thinks about whether to unify macros and converters now
252 2010-08-09T21:21:34 <ThomasWaldmann> http://paste.pocoo.org/show/248106/
253 2010-08-09T21:21:39 <ThomasWaldmann> valeuf: waldi ^^
254 2010-08-09T21:30:24 <waldi> ThomasWaldmann: no, converters can only act on block level
255 2010-08-09T21:32:01 <ThomasWaldmann> well, my image converter just returns an image
256 2010-08-09T21:37:08 <ThomasWaldmann> waldi: so, why should converters be just blocklevel (rather than telling what they are)?
257 2010-08-09T21:47:40 <waldi> puh
258 2010-08-09T21:48:21 <ThomasWaldmann> e.g. for image transclusion, rather inline is wanted
259 2010-08-09T21:50:41 <valeuf> ThomasWaldmann: do we really need fromtype and intype?
260 2010-08-09T21:50:52 <valeuf> ThomasWaldmann: I mean usually converter are type specific anyway,
261 2010-08-09T21:51:45 <valeuf> they would not expect any other type than the one they are supposed to process
262 2010-08-09T21:52:40 <ThomasWaldmann> valeuf: which lineno of pastebin are you referring to?
263 2010-08-09T21:53:10 <valeuf> l.29 : fromtype, totype
264 2010-08-09T21:54:45 <ThomasWaldmann> where's intype?
265 2010-08-09T21:55:13 <valeuf> ah, just type, I wanted to say totype :p
266 2010-08-09T21:55:17 <valeuf> *typo
267 2010-08-09T21:56:02 <ThomasWaldmann> well, that's just current converter interface, they get fromtype and totype and args
268 2010-08-09T21:56:32 <ThomasWaldmann> for input converters, usually totype is always dom
269 2010-08-09T21:56:49 <ThomasWaldmann> but for output converters, totype is different (and fromtype is usually dom)
270 2010-08-09T21:57:02 <valeuf> well, not really, I mean the factory get the fromtype and totype, but not directly the converter
271 2010-08-09T21:58:13 <ThomasWaldmann> yes
272 2010-08-09T21:58:42 <ThomasWaldmann> but sometimes the factory stores something of that into instance (gives it to init)
273 2010-08-09T22:00:03 <valeuf> ThomasWaldmann: ok
274 2010-08-09T22:02:03 <valeuf> ThomasWaldmann: well, otherwise, I am pretty ok with everything
275 2010-08-09T22:04:40 <waldi> macros don't need *type and args, they are referenced by name
276 2010-08-09T22:05:10 <waldi> aka, they don't have a factory
277 2010-08-09T22:05:37 <valeuf> waldi: hum no, I think we can imagine mimetype specific macro
278 2010-08-09T22:06:01 <valeuf> waldi: I agree we do not need factory
279 2010-08-09T22:06:20 <valeuf> but for instance, we could have a macro to handle LaTex formula conversion into mathml
280 2010-08-09T22:06:41 <waldi> no, this is no macro
281 2010-08-09T22:06:54 <valeuf> it is kind text/latex --> application/xml+mathml conversion, but it would be more like a macro
282 2010-08-09T22:07:07 <valeuf> or it means that user should create an item for each formula?
283 2010-08-09T22:07:09 <waldi> no, this is a converter
284 2010-08-09T22:07:25 <waldi> macros are referenced by name, not type
285 2010-08-09T22:07:43 <waldi> and right now don't even have content, only arguments
286 2010-08-09T22:08:30 <valeuf> well, I have quite hard time to see clearly the difference, so I would trust your design, it seems that you know more than me
287 2010-08-09T22:09:02 *** DmitryAndreev
288 2010-08-09T22:11:02 <DmitryAndreev> just from the meeting with eSyr. He has a plan... to rewrite everything.) but not this time
289 2010-08-09T22:11:16 <valeuf> rewrite whatL
290 2010-08-09T22:11:18 <valeuf> x?
291 2010-08-09T22:11:39 <ThomasWaldmann> waldi: x-moin/macro;name=... that's the type of macros, right?
292 2010-08-09T22:14:22 <DmitryAndreev> valeuf, some X->DOM converters, in one unified style based on BNF parsers
293 2010-08-09T22:14:23 <waldi> ThomasWaldmann: yes, this is the internal type
294 2010-08-09T22:14:36 <valeuf> ?
295 2010-08-09T22:14:52 <valeuf> DmitryAndreev: BNF rules does not exist for any type
296 2010-08-09T22:15:33 <waldi> DmitryAndreev: are all of them type 2 languages?
297 2010-08-09T22:17:07 <waldi> i'm not even sure that the moinmoin wiki language is
298 2010-08-09T22:17:08 <DmitryAndreev> valeuf, maybe, i don't remember.)
299 2010-08-09T22:18:02 <valeuf> DmitryAndreev: I do not know really what idea is behind this, but it does not look so good
300 2010-08-09T22:18:05 <DmitryAndreev> waldi, mediawiki has bnf. so. maybe moinwiki also can.
301 2010-08-09T22:18:23 <valeuf> write a BNF grammary is a really complicate task
302 2010-08-09T22:18:34 <waldi> DmitryAndreev: where?
303 2010-08-09T22:19:25 <valeuf> and anyway, after you need to write the different equivalence for each element based on the grammar, which is always the longest part anyway
304 2010-08-09T22:20:44 <DmitryAndreev> waldi, its not full, but maybe it can be possible to write some parser with elementsbased on BNF. http://www.mediawiki.org/wiki/Markup_spec/BNF
305 2010-08-09T22:22:27 <waldi> inherent incomplete
306 2010-08-09T22:23:57 <DmitryAndreev> parser based on regexp have a problem with limit of max number of groups in one regexp, does it's true?
307 2010-08-09T22:24:13 *** ebo^
308 2010-08-09T22:25:15 *** valeuf
309 2010-08-09T22:25:46 *** valeuf
310 2010-08-09T22:26:39 <waldi> you know what regexp are?
311 2010-08-09T22:29:04 <ThomasWaldmann> waldi: that type is determined by moinwiki_in converter and put into domtree
312 2010-08-09T22:29:58 <waldi> ThomasWaldmann: yes, and the real macro is referenced by the name included in the type
313 2010-08-09T22:30:20 <ThomasWaldmann> so if we had a general mechanism of putting all stuff needed into domtree, it would solve all
314 2010-08-09T22:31:09 <ThomasWaldmann> for macros and converters, this is maybe rather easy. have to look up part-part parser-like stuff.
315 2010-08-09T22:31:19 <ThomasWaldmann> page-part*
316 2010-08-09T22:31:48 <DmitryAndreev> waldi, formal language for string pattents?) i don't have another words in english.
317 2010-08-09T22:32:51 <waldi> DmitryAndreev: its a type 3 gramatic, and with extensions i think a type 2 one
318 2010-08-09T22:34:00 <waldi> so bnf and python-regexp are equivalent
319 2010-08-09T22:34:46 <DmitryAndreev> waldi, ok. but is this true, that in python you have a limit of maximum number of groups in one python regexp? i'm just not sure,
320 2010-08-09T22:35:06 <waldi> no
321 2010-08-09T22:39:45 <ThomasWaldmann> iirc, there was a limit
322 2010-08-09T22:39:55 <ThomasWaldmann> not sure whether there still is
323 2010-08-09T22:41:38 <ThomasWaldmann> ok, part and body elements is user for parsers
324 2010-08-09T22:41:43 <ThomasWaldmann> used*
325 2010-08-09T22:42:21 <valeuf> ThomasWaldmann: that's a point we need to make clear, I do not know well when I should use <body> and <part> for the DOM tree
326 2010-08-09T22:42:30 <valeuf> I never use <part> in my converters actually
327 2010-08-09T22:44:01 <waldi> AssertionError: sorry, but this version only supports 100 named groups
328 2010-08-09T22:44:46 <waldi> however not overall groups
329 2010-08-09T22:46:32 <valeuf> hmmm... I again timeout when I try to push my commit!
330 2010-08-09T22:46:58 <DmitryAndreev> waldi, so if you use something like in moinwiki_in, when you re.compile('|'.join(<all regexps for inline syntax>)) you can reach this limit?
331 2010-08-09T22:47:29 <waldi> oh, and an off by one
332 2010-08-09T22:47:36 <waldi> no
333 2010-08-09T22:48:25 <DmitryAndreev> waldi, what i've missed?
334 2010-08-09T22:51:12 <waldi> please show the test failure or the missing testcase
335 2010-08-09T22:56:45 <DmitryAndreev> waldi, moinwiki_in doesn't reach this limit yet. but if you add some new inline syntax? new regexps in "inline" with their named groups.
336 2010-08-09T22:59:03 <waldi> it can also reach the stack limit of the interpreter
337 2010-08-09T23:01:49 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9480:085c96e36765 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Edit the list of block elements without equivalence in the DOM tree for DocBook_IN converter
338 2010-08-09T23:01:49 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9481:793e8aafc941 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Fix typo in comments of the DocBook_IN converter tests
339 2010-08-09T23:02:11 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9605:fdec4ba53a4c 2.0-dev-docbook-html-vjaniaut/ (59 files in 23 dirs): Merge against moin/2.0-dev
340 2010-08-09T23:02:13 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9606:2d84098b4c70 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Add index elements to the list of the ignored tags for DocBook_IN converter
341 2010-08-09T23:02:15 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9607:9d67826efe79 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Add set elements to the list of thi block_tags for the DocBook_IN converter
342 2010-08-09T23:02:16 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9608:2896f18c2d85 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Add test for simple db.cals.table for DocBook_IN
343 2010-08-09T23:02:21 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9609:b3bfb61bf0ec 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/_tests/test_docbook_in.py: Add tests for db.cals.table with entrytbl for DocBook_IN converter
344 2010-08-09T23:02:21 <CIA-50> Valentin Janiaut <valentin.janiaut@utbm.fr> default * 9610:a1d050f3f767 2.0-dev-docbook-html-vjaniaut/MoinMoin/converter2/docbook_in.py: Add support for conversion of db.cals.table and <entrytbl> for DocBook_IN converter
345 2010-08-09T23:02:33 <valeuf> \o/
346 2010-08-09T23:02:36 <valeuf> it works finally ^ ^
347 2010-08-09T23:04:18 <ThomasWaldmann> DmitryAndreev:
348 2010-08-09T23:04:20 <ThomasWaldmann> alt = node.get('alt', None)
349 2010-08-09T23:04:20 <ThomasWaldmann> if alt:
350 2010-08-09T23:04:20 <ThomasWaldmann> new_node.set(moin_page.alt, node['uri'])
351 2010-08-09T23:05:53 <ThomasWaldmann> also please check your TODOs
352 2010-08-09T23:05:59 <DmitryAndreev> ThomasWaldmann, if not* alt
353 2010-08-09T23:07:05 <valeuf> DmitryAndreev: where did you see there is an alt node in the DOM tree?
354 2010-08-09T23:08:51 <DmitryAndreev> valeuf, it's 'alt' attribute
355 2010-08-09T23:09:32 <ThomasWaldmann> DmitryAndreev: did you do some real-life tests meanwhile for rst_in mw_in?
356 2010-08-09T23:09:58 <valeuf> DmitryAndreev: same question
357 2010-08-09T23:12:39 <DmitryAndreev> ThomasWaldmann, i've started with rst_in, and tring to fix some of bugs. but i still don't reach docutils.utils.SystemMessage error that you have last night
358 2010-08-09T23:15:34 <ThomasWaldmann> just input rst primer source
359 2010-08-09T23:18:27 <valeuf> DmitryAndreev: by the way, if you use element, or attribute which are not listed on http://moinmo.in/BastianBlank/TreeOutputFormatter/Spec
360 2010-08-09T23:18:39 <valeuf> add them to http://moinmo.in/ValentinJaniaut/GSoC/TreeOutputModification
361 2010-08-09T23:19:01 <valeuf> othewrwise I am really afraid we are going to have slightly different version of the DOM tree depending of the Converter
362 2010-08-09T23:20:09 <valeuf> well, good night everybody :)
363 2010-08-09T23:21:51 <DmitryAndreev> valeuf, <object alt="MoinMoin" xlink:href="http://moinmo.in/" /> from test_moinwiki_in. gn
364 2010-08-09T23:41:46 <valeuf> DmitryAndreev: it was what I thought
365 2010-08-09T23:42:16 <valeuf> DmitryAndreev: it is <object xlink:href="http://moinmo.in/"> MoinMoin</object>
366 2010-08-09T23:42:32 <valeuf> and it is what I use for smiley and in HTML_OUT
367 2010-08-09T23:43:10 <valeuf> DmitryAndreev: can you check always in different converter, and on http://moinmo.in/ValentinJaniaut/GSoC/TreeOutputModification and try to keep up-to-date the DOM Tree
368 2010-08-09T23:43:36 <valeuf> (if you think that alt is better, add it it to the page, and then change the implementation in smiley and HTML_OUT)
369 2010-08-09T23:52:11 *** grzywacz
370