*** mgedmin has quit IRC | 00:37 | |
fsufitch | yvl: yt? | 01:38 |
---|---|---|
fsufitch | aelkner: yt? | 01:39 |
aelkner | yes | 01:39 |
fsufitch | i have me a page template problem | 01:39 |
aelkner | how so | 01:39 |
fsufitch | <div metal:fill-slot="body" tal:condition="view/hasDict"> | 01:39 |
fsufitch | that's all well and good, but it replaces any other tags i put in it | 01:40 |
fsufitch | like an onload | 01:40 |
fsufitch | so i can't have <div metal:fill-slot="body" tal:condition="view/hasDict" onload="positionCompDescription()"> | 01:40 |
aelkner | i wouldn't put the tal condition in a fill-slot necessarily | 01:40 |
aelkner | it could have unexpected effects | 01:41 |
aelkner | considering it's going to run a macro to fill the slot | 01:41 |
fsufitch | yeah | 01:41 |
fsufitch | it doesn't matter though | 01:41 |
aelkner | so when does it do the onload? who knows | 01:41 |
fsufitch | because the page gets redirected immediately | 01:42 |
fsufitch | and the onload isn't even in the final html source that gets to the browser | 01:42 |
fsufitch | onload just gets eaten | 01:42 |
aelkner | so you change it around | 01:42 |
fsufitch | the problem here isn't the tal:condition ;) | 01:43 |
fsufitch | it's that because it's a fill-slot, all that my firefox gets is a <body> | 01:43 |
fsufitch | not a <body onload="..."> | 01:43 |
fsufitch | and i'm just asking if there's a way to circumvent that | 01:43 |
aelkner | yeah | 01:43 |
aelkner | have you body onload=... as the first subtag | 01:43 |
aelkner | of the fill slot tab | 01:44 |
aelkner | tag | 01:44 |
fsufitch | but then i'd have <body> <body onload="..."> | 01:44 |
fsufitch | won't firefox hate me for that? | 01:44 |
aelkner | is that what you get? | 01:44 |
fsufitch | yeah | 01:45 |
fsufitch | the div turns into a body because of the metal:fill-slot | 01:45 |
aelkner | wait a second. let e check a page template | 01:45 |
fsufitch | and loses any tags i put on it in the process | 01:45 |
fsufitch | okay | 01:45 |
aelkner | well darn, i was mistaken | 01:46 |
aelkner | i thought you had to supply the body, but the fill slot takes care of that | 01:46 |
aelkner | now i don't know about how the fill slot works with parameters | 01:47 |
aelkner | in the form that you give it with tal:condition and onload | 01:47 |
fsufitch | whoa! | 01:47 |
fsufitch | your idea to put a body inside the div worked! | 01:47 |
fsufitch | and i dont even get nested bodys | 01:47 |
aelkner | ah ha | 01:47 |
fsufitch | i assume this is zope magic | 01:48 |
aelkner | maybe that's why i remembered it that way | 01:48 |
fsufitch | and i smile, nod, and move on :) | 01:48 |
fsufitch | that's great though | 01:48 |
fsufitch | thanks! | 01:48 |
aelkner | no prob | 01:48 |
fsufitch | yay, my task of putting js in a pt is done! | 01:56 |
*** th1a_ has quit IRC | 02:24 | |
*** th1a__ has quit IRC | 02:24 | |
*** aelkner has quit IRC | 04:21 | |
*** aelkner has joined #schooltool | 05:09 | |
*** th1a has quit IRC | 05:31 | |
*** fsufitch has quit IRC | 06:17 | |
*** Aiste has joined #schooltool | 08:37 | |
*** jfroche has quit IRC | 10:04 | |
*** jfroche has joined #schooltool | 10:26 | |
*** ignas has joined #schooltool | 11:30 | |
*** th1a has joined #schooltool | 15:33 | |
th1a | ignas: What is necessary to make the (.deb) SchoolTool-2008 run on port 80? In addition to changing paste.ini? | 16:29 |
ignas | hmm | 16:40 |
ignas | either - nothing | 16:40 |
ignas | or - ask jinty whether he can make schooltool startup scripts start up as root and then su to schooltool | 16:40 |
th1a | Yes, it appears to be a permission issue. | 16:41 |
ignas | only root can get port 80 | 16:41 |
th1a | Yes. | 16:42 |
ignas | so the process must start up as root, but then switch users | 16:42 |
th1a | Yes. | 16:42 |
ignas | I don't really know how to do that at the moment | 16:42 |
th1a | OK. | 16:42 |
ignas | with python + wsgi + our current startup scripts | 16:42 |
th1a | Sure. | 16:44 |
*** replaceafill has joined #schooltool | 18:21 | |
*** ignas has quit IRC | 18:57 | |
*** mgallagh has joined #schooltool | 19:33 | |
*** alga has joined #SchoolTool | 19:43 | |
*** alga has quit IRC | 21:04 | |
*** jelkner has joined #schooltool | 21:54 | |
*** lisppaste5 has quit IRC | 22:17 | |
*** lisppaste5 has joined #schooltool | 22:18 | |
*** alga has joined #SchoolTool | 22:54 | |
*** mgallagh_ has joined #schooltool | 23:45 | |
*** mgallagh__ has joined #schooltool | 23:49 | |
*** mattdude has joined #schooltool | 23:58 | |
mattdude | :( one sec | 23:58 |
*** mattdude is now known as mattva01 | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!