*** phufford_ has joined #schooltool | 01:02 | |
phufford_ | replaceafill: Hi | 01:10 |
---|---|---|
*** phufford_ has quit IRC | 02:08 | |
*** alga has quit IRC | 02:18 | |
*** replaceafill has quit IRC | 02:25 | |
*** dlobo has joined #schooltool | 02:32 | |
*** replaceafill has joined #schooltool | 02:39 | |
*** dlobo has quit IRC | 04:24 | |
*** th1a has quit IRC | 04:40 | |
*** dlobo has joined #schooltool | 05:43 | |
*** krushik has quit IRC | 05:56 | |
*** replaceafill has quit IRC | 05:58 | |
*** krushik has joined #schooltool | 06:15 | |
*** dlobo has quit IRC | 07:02 | |
aelkner | yvl: ayt? | 08:15 |
yvl | yes | 08:58 |
yvl | aelkner: pong | 08:58 |
aelkner | hey there | 08:58 |
aelkner | i've been struggling with a problem | 08:58 |
aelkner | you see, my gradebook views depend on the user preferences | 08:58 |
aelkner | so i need to do self.person = IPerson(self.request.principal) | 08:59 |
aelkner | problem is, when the user walks away for long enough, the principal times out | 08:59 |
aelkner | so i need to abort the view and redirect the user to authenticate | 09:00 |
aelkner | so my question is, in addition to doing self.request.response.redirect(LOGIN_VIEW) | 09:00 |
aelkner | what do i need to do to get the view to stop processing the page template | 09:01 |
aelkner | the engine keeps calling into code in my view to process the page template | 09:01 |
aelkner | but the code can't run without the authenticated user | 09:02 |
aelkner | is there a way to get zope to abort a page template and take the rrequested redirect? | 09:02 |
yvl | you should do that as a first thing in __call__ | 09:04 |
yvl | before the template is called | 09:04 |
yvl | after that, there's little you can do | 09:05 |
aelkner | so if i put that logic in __call__, the engine won't process the page template? | 09:05 |
yvl | yes, but you'll have to call the template manually | 09:05 |
aelkner | i see, makes sense | 09:05 |
yvl | something like: return self.template() | 09:06 |
aelkner | of hand, do you know of any schooltool views that call the template manually? | 09:06 |
aelkner | never mind, i an find them | 09:07 |
aelkner | thanks for the tip, that will do the trick | 09:07 |
yvl | you're welcome | 09:09 |
*** ignas has joined #schooltool | 14:21 | |
*** mgedmin has joined #schooltool | 14:49 | |
Lumiere | ignas: check ohloh for cando :) | 14:51 |
Lumiere | mgedmin: thank you for the help yesterday | 14:52 |
* mgedmin wasn't aware he gave out any help :) | 14:52 | |
ignas | Lumiere: nice :) | 14:52 |
mgedmin | maybe I should go into a new line of work: "moral support, cheap" | 14:52 |
Lumiere | mgedmin: lol | 14:53 |
Lumiere | mgedmin: you did more then that | 14:53 |
Lumiere | you helped us work out exactly what needed to be done | 14:53 |
mgedmin | I could also fix grammar mistakes, like s/then/than/ :) | 14:53 |
Lumiere | yes | 14:53 |
Lumiere | but that would imply that I were awake enough to properly use my crappy language | 14:53 |
*** ignas has quit IRC | 15:18 | |
*** ignas has joined #schooltool | 15:21 | |
*** dlobo has joined #schooltool | 15:44 | |
*** alga has joined #SchoolTool | 16:38 | |
*** Aiste has quit IRC | 16:40 | |
*** ignas has quit IRC | 16:48 | |
*** jstraw has joined #schooltool | 17:02 | |
*** dlobo has quit IRC | 17:33 | |
*** dlobo has joined #schooltool | 17:38 | |
*** dlobo has quit IRC | 17:49 | |
*** jelkner has joined #schooltool | 18:24 | |
*** alga has quit IRC | 18:32 | |
*** jelkner has quit IRC | 18:55 | |
*** jstraw has quit IRC | 19:43 | |
*** menesis has joined #schooltool | 19:50 | |
*** dlobo has joined #schooltool | 20:10 | |
*** jstraw has joined #schooltool | 20:21 | |
*** jstraw has left #schooltool | 20:21 | |
*** cpcarey has joined #schooltool | 20:30 | |
*** menesis has quit IRC | 20:52 | |
*** phufford_ has joined #schooltool | 21:09 | |
*** phufford_ has quit IRC | 21:11 | |
*** phufford_ has joined #schooltool | 21:12 | |
*** replaceafill has joined #schooltool | 21:13 | |
*** phufford_ has quit IRC | 21:39 | |
*** moquist has quit IRC | 21:39 | |
*** Panentheos has quit IRC | 21:39 | |
*** spowers has quit IRC | 21:39 | |
*** lfaraone has quit IRC | 21:39 | |
*** Lumiere has quit IRC | 21:39 | |
*** krushik has quit IRC | 21:39 | |
*** lisppaste5 has quit IRC | 21:39 | |
*** mgedmin has quit IRC | 21:39 | |
*** yvl has quit IRC | 21:39 | |
*** replaceafill has quit IRC | 21:39 | |
*** aelkner has quit IRC | 21:39 | |
*** cpcarey has quit IRC | 21:39 | |
*** dlobo has quit IRC | 21:39 | |
*** replaceafill has joined #schooltool | 21:40 | |
*** phufford_ has joined #schooltool | 21:40 | |
*** cpcarey has joined #schooltool | 21:40 | |
*** dlobo has joined #schooltool | 21:40 | |
*** mgedmin has joined #schooltool | 21:40 | |
*** krushik has joined #schooltool | 21:40 | |
*** lisppaste5 has joined #schooltool | 21:40 | |
*** yvl has joined #schooltool | 21:40 | |
*** aelkner has joined #schooltool | 21:40 | |
*** moquist has joined #schooltool | 21:40 | |
*** lfaraone has joined #schooltool | 21:40 | |
*** Panentheos has joined #schooltool | 21:40 | |
*** spowers has joined #schooltool | 21:40 | |
*** Lumiere has joined #schooltool | 21:40 | |
*** mgedmin has quit IRC | 22:16 | |
*** phufford_ has quit IRC | 22:17 | |
*** dlobo has quit IRC | 22:44 | |
*** dlobo has joined #schooltool | 23:16 | |
*** mgedmin has joined #schooltool | 23:16 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!