1 2012-09-07T00:10:49 *** MattMaker
2 2012-09-07T00:11:09 *** MattMaker
3 2012-09-07T04:19:51 *** Trip_
4 2012-09-07T04:23:31 *** MattMaker
5 2012-09-07T05:05:31 *** xjjk
6 2012-09-07T05:07:39 *** xjjk
7 2012-09-07T05:35:24 *** dwcramer
8 2012-09-07T05:48:52 *** dwcramer
9 2012-09-07T06:42:58 *** dwcramer
10 2012-09-07T09:35:13 *** ebo^
11 2012-09-07T09:41:51 *** eSyr
12 2012-09-07T09:50:06 *** eSyr
13 2012-09-07T09:51:00 <ThomasWaldmann> moin
14 2012-09-07T09:53:57 <dreimark> moin
15 2012-09-07T09:54:21 <dreimark> MaikuMori: http://stackoverflow.com/questions/4292630/insert-javascript-at-top-of-including-file-in-jinja-2/6090560#6090560
16 2012-09-07T09:55:31 <dreimark> I am not sure if the global var has some impact we don't want
17 2012-09-07T10:02:07 <dreimark> But based on that I guess we can add an extension which collects all js lines and displays it on the base.html
18 2012-09-07T10:03:07 * dreimark has later today some time to try out this idea
19 2012-09-07T10:03:58 <ThomasWaldmann> what's the problem we are trying to solve?
20 2012-09-07T10:05:50 <dreimark> to get mathjax js lines into show.html without need of extends theme("show.html") and calling the new template
21 2012-09-07T10:06:16 <dreimark> or to get svg.js and jquery.js only into the base.html if theses plugins are avaliable
22 2012-09-07T10:06:40 <dreimark> or any other plugin which need js in head installed
23 2012-09-07T10:08:00 <dreimark> we don't want to make new versions of base.html if one has a new plugin invented
24 2012-09-07T10:15:49 <ThomasWaldmann> don't we already have a list of such stuff?
25 2012-09-07T10:15:57 <dreimark> also we have to avoid to load a different show.html, because that is a dead end. you can do this only once
26 2012-09-07T10:16:12 <dreimark> ThomasWaldmann: no it is hard coded
27 2012-09-07T10:16:55 <dreimark> http://hg.moinmo.in/moin/2.0/file/99d28fce4d51/MoinMoin/templates/base.html#l49
28 2012-09-07T10:17:11 <dreimark> the entire block needs to become variable
29 2012-09-07T10:18:40 <dreimark> htg, bbl
30 2012-09-07T10:29:23 <ThomasWaldmann> dreimark: see the end of snippets.html, that is "the list"
31 2012-09-07T10:34:45 <ThomasWaldmann> using this file, which can be overridden by the admin by just copying/modifying it, i replaced a lot of separate mechanisms used in 1.9 to modify the html output
32 2012-09-07T10:49:30 <dreimark> ThomasWaldmann: this will need someone to edit a file
33 2012-09-07T10:51:17 <dreimark> and this goes then in e.g. base.html but it is wanted in show.html
34 2012-09-07T10:52:18 <dreimark> If one installs a plugin then the plugin should setup some vars which can be used
35 2012-09-07T10:52:40 <dreimark> and not require someone have to edit some lines somewhere
36 2012-09-07T10:53:55 <dreimark> I did some experiments with all of our xstatic modules. twdraw, jquery uploader etc.
37 2012-09-07T10:54:45 <dreimark> for those it is quite simple to have them plugable, because they have an own template and a method which loads this template
38 2012-09-07T10:55:12 <dreimark> mathjax is different it is just a js script which needs be there where it should do something
39 2012-09-07T10:55:34 <dreimark> the same counts for svgweb and jquery
40 2012-09-07T10:56:13 <dreimark> for mathjax I have a worse solution as it overwirtes show.html by a different template
41 2012-09-07T10:56:43 <dreimark> if there is another plugin available which did that one of both won't work
42 2012-09-07T10:58:30 <dreimark> Daniel: "ich würde das Javascript für die Plugins in eine Liste reinschreiben und im Basetemplate über diese Liste iterieren."
43 2012-09-07T11:03:27 <dreimark> For example if I install my twdraw pypi package I can create drawing items
44 2012-09-07T11:03:40 *** spy
45 2012-09-07T11:04:32 <dreimark> I want the same bahaviour with mathjax, that's why I am looking on how to get the jsline by the package installation in place
46 2012-09-07T11:06:14 <dreimark> I have no idea what we want a plugin or delivered later. But that are pretty good examples for learning
47 2012-09-07T11:11:10 <dreimark> s/delivered/builtin/
48 2012-09-07T11:12:14 *** greg_f
49 2012-09-07T11:31:06 *** spy
50 2012-09-07T13:55:15 <MaikuMori> dreimark: yeah when I did quick research a while back, I found that question and answer. I didn't like it. Seems very hacky.
51 2012-09-07T14:54:39 <dreimark> MaikuMori: yeah i have a better solution
52 2012-09-07T14:56:44 <dreimark> currently fine tuning
53 2012-09-07T15:08:54 *** hughperkins
54 2012-09-07T15:09:39 <hughperkins> Hi. Please can you check this checkin? : http://codereview.appspot.com/6501102/ (By the way, I've left 'have activated' in. I'm English, and I think it sounds reasonable to me :-P If you really want me to change it I can though?)
55 2012-09-07T15:44:59 *** dwcramer
56 2012-09-07T16:01:04 *** hughperkins
57 2012-09-07T17:10:02 *** RogerHaase
58 2012-09-07T17:32:20 <dreimark> currently I think the simplest solution is what Daniel proposed to collect js code and insert it then
59 2012-09-07T17:32:34 <dreimark> http://paste.ubuntu.com/1191042/
60 2012-09-07T17:34:43 <dreimark> for mathjax my builtin js config could saved by overwriting the one which comes with the plugin
61 2012-09-07T17:35:00 <dreimark> *-saved
62 2012-09-07T17:35:30 <dreimark> for mathjax my builtin js config could be overwritten
63 2012-09-07T17:36:02 <dreimark> or just used by installing the plugin
64 2012-09-07T17:37:10 <dreimark> bbl
65 2012-09-07T18:16:14 *** ebo^
66 2012-09-07T18:33:02 *** dwcramer
67 2012-09-07T18:46:59 *** xjjk
68 2012-09-07T18:50:08 *** dwcramer
69 2012-09-07T18:59:48 *** dwcramer
70 2012-09-07T19:15:20 *** dwcramer
71 2012-09-07T19:19:14 * ThomasWaldmann continues to work on weakread capability
72 2012-09-07T19:34:55 *** greg_f
73 2012-09-07T20:02:09 *** CIA-78
74 2012-09-07T20:21:13 <ThomasWaldmann> hmm, currently it lets one weakread if now >= PTIME
75 2012-09-07T20:21:43 <ThomasWaldmann> just thinking about whether it should be PSTARTTIME <= now <= PENDTIME?
76 2012-09-07T20:25:10 <ThomasWaldmann> spy_: what do you think?
77 2012-09-07T20:27:01 <ThomasWaldmann> http://stackoverflow.com/questions/8437686/joomla-publish-and-unpublish-pages-automatically looks like other do it that way
78 2012-09-07T20:28:52 *** CIA-78
79 2012-09-07T20:51:42 *** xjjk
80 2012-09-07T21:34:45 <dreimark> found the mathjax issue with $
81 2012-09-07T21:41:25 *** dwcramer
82 2012-09-07T22:09:32 <ThomasWaldmann> dreimark: spy_: xiaq: ... please review http://codereview.appspot.com/6490094/
83 2012-09-07T22:17:11 *** dwcramer
84 2012-09-07T22:21:25 * dreimark soon
85 2012-09-07T22:39:30 <dreimark> ThomasWaldmann: done
86 2012-09-07T22:40:20 <dreimark> where can I get the alias for 'serve.files' and I can't use url_for
87 2012-09-07T22:41:33 *** dwcramer
88 2012-09-07T22:52:56 <ThomasWaldmann> dreimark: what "alias"?
89 2012-09-07T22:53:10 * ThomasWaldmann replied on CR
90 2012-09-07T23:00:34 * dreimark too
91 2012-09-07T23:01:00 <dreimark> I wonder how I can convert """<script src="{{ url_for('serve.files', name='mathjax', filename='MathJax.js') }}"></script>"""
92 2012-09-07T23:01:21 <dreimark> to """<script src="/%2Bserve/mathjax/MathJax.js"></script>"""
93 2012-09-07T23:04:26 <ThomasWaldmann> by rendering the template
94 2012-09-07T23:08:12 <ThomasWaldmann> replied on CR
95 2012-09-07T23:09:51 <dreimark> ok
96 2012-09-07T23:24:19 <dreimark> gn
97 2012-09-07T23:35:48 <ThomasWaldmann> gn dreimark
98 2012-09-07T23:36:01 <CIA-78> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 1775:33590c9ffcd6 2.0/MoinMoin/storage/middleware/protecting.py: use ACL_RIGHTS_CONTENTS constant, don't hardcode the value
99 2012-09-07T23:36:02 <CIA-78> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 1776:9890a2d41efe 2.0/MoinMoin/storage/middleware/protecting.py: support giving multiple capabilities to require(), one of them must be permitted for it to succeed
100 2012-09-07T23:36:03 <CIA-78> Thomas Waldmann <tw AT waldmann-edv DOT de> default * 1777:1db99f8f5144 2.0/MoinMoin/ (5 files in 4 dirs):
101 2012-09-07T23:36:03 <CIA-78> add 'pubread' capability/permission (needs index rebuild!)
102 2012-09-07T23:36:03 <CIA-78> read means to be able to read revision data, unconditionally
103 2012-09-07T23:36:03 <CIA-78> pubread means to be able to read revision data when published
104 2012-09-07T23:36:04 <CIA-78> moved PTIME from blog-specific to common fields, because of this an index
105 2012-09-07T23:36:04 <CIA-78> rebuild is required.
106 2012-09-07T23:36:14 *** dwcramer
107 2012-09-07T23:45:35 *** RogerHaase
108
MoinMoin: MoinMoinChat/Logs/moin-dev/2012-09-07 (last edited 2012-09-06 22:45:03 by IrcLogImporter)