IRC log of #schooltool for Tuesday, 2008-08-19

*** mgedmin has quit IRC00:37
fsufitchyvl: yt?01:38
fsufitchaelkner: yt?01:39
aelkneryes01:39
fsufitchi have me a page template problem01:39
aelknerhow so01:39
fsufitch<div metal:fill-slot="body" tal:condition="view/hasDict">01:39
fsufitchthat's all well and good, but it replaces any other tags i put in it01:40
fsufitchlike an onload01:40
fsufitchso i can't have <div metal:fill-slot="body" tal:condition="view/hasDict" onload="positionCompDescription()">01:40
aelkneri wouldn't put the tal condition in a fill-slot necessarily01:40
aelknerit could have unexpected effects01:41
aelknerconsidering it's going to run a macro to fill the slot01:41
fsufitchyeah01:41
fsufitchit doesn't matter though01:41
aelknerso when does it do the onload?  who knows01:41
fsufitchbecause the page gets redirected immediately01:42
fsufitchand the onload isn't even in the final html source that gets to the browser01:42
fsufitchonload just gets eaten01:42
aelknerso you change it around01:42
fsufitchthe problem here isn't the tal:condition ;)01:43
fsufitchit's that because it's a fill-slot, all that my firefox gets is a <body>01:43
fsufitchnot a <body onload="...">01:43
fsufitchand i'm just asking if there's a way to circumvent that01:43
aelkneryeah01:43
aelknerhave you body onload=... as the first subtag01:43
aelknerof the fill slot tab01:44
aelknertag01:44
fsufitchbut then i'd have <body> <body onload="...">01:44
fsufitchwon't firefox hate me for that?01:44
aelkneris that what you get?01:44
fsufitchyeah01:45
fsufitchthe div turns into a body because of the metal:fill-slot01:45
aelknerwait a second.  let e check a page template01:45
fsufitchand loses any tags i put on it in the process01:45
fsufitchokay01:45
aelknerwell darn, i was mistaken01:46
aelkneri thought you had to supply the body, but the fill slot takes care of that01:46
aelknernow i don't know about how the fill slot works with parameters01:47
aelknerin the form that you give it with tal:condition and onload01:47
fsufitchwhoa!01:47
fsufitchyour idea to put a body inside the div worked!01:47
fsufitchand i dont even get nested bodys01:47
aelknerah ha01:47
fsufitchi assume this is zope magic01:48
aelknermaybe that's why i remembered it that way01:48
fsufitchand i smile, nod, and move on :)01:48
fsufitchthat's great though01:48
fsufitchthanks!01:48
aelknerno prob01:48
fsufitchyay, my task of putting js in a pt is done!01:56
*** th1a_ has quit IRC02:24
*** th1a__ has quit IRC02:24
*** aelkner has quit IRC04:21
*** aelkner has joined #schooltool05:09
*** th1a has quit IRC05:31
*** fsufitch has quit IRC06:17
*** Aiste has joined #schooltool08:37
*** jfroche has quit IRC10:04
*** jfroche has joined #schooltool10:26
*** ignas has joined #schooltool11:30
*** th1a has joined #schooltool15:33
th1aignas: What is necessary to make the (.deb) SchoolTool-2008 run on port 80?  In addition to changing paste.ini?16:29
ignashmm16:40
ignaseither - nothing16:40
ignasor - ask jinty whether he can make schooltool startup scripts start up as root and then su to schooltool16:40
th1aYes, it appears to be a permission issue.16:41
ignasonly root can get port 8016:41
th1aYes.16:42
ignasso the process must start up as root, but then switch users16:42
th1aYes.16:42
ignasI don't really know how to do that at the moment16:42
th1aOK.16:42
ignaswith python + wsgi + our current startup scripts16:42
th1aSure.16:44
*** replaceafill has joined #schooltool18:21
*** ignas has quit IRC18:57
*** mgallagh has joined #schooltool19:33
*** alga has joined #SchoolTool19:43
*** alga has quit IRC21:04
*** jelkner has joined #schooltool21:54
*** lisppaste5 has quit IRC22:17
*** lisppaste5 has joined #schooltool22:18
*** alga has joined #SchoolTool22:54
*** mgallagh_ has joined #schooltool23:45
*** mgallagh__ has joined #schooltool23:49
*** mattdude has joined #schooltool23:58
mattdude:( one sec23:58
*** mattdude is now known as mattva0123:58

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!