*** fsufitch has joined #schooltool | 01:10 | |
*** didymo has joined #schooltool | 01:51 | |
*** th1a has joined #schooltool | 04:29 | |
*** didymo has quit IRC | 05:04 | |
*** pcardune has quit IRC | 05:59 | |
*** subir has joined #schooltool | 06:52 | |
*** th1a has quit IRC | 10:21 | |
*** ignas has joined #schooltool | 11:47 | |
*** subir has quit IRC | 13:08 | |
*** pcardune has joined #schooltool | 13:20 | |
*** fsufitch has quit IRC | 13:22 | |
*** alga has joined #SchoolTool | 14:46 | |
*** aelkner has quit IRC | 15:11 | |
*** th1a has joined #schooltool | 15:17 | |
*** alga has quit IRC | 16:11 | |
*** wbrady has joined #schooltool | 16:22 | |
*** aelkner__ has joined #schooltool | 16:26 | |
*** wbrady has quit IRC | 16:54 | |
*** wjohnsto has joined #schooltool | 17:12 | |
aelkner__ | ignas? | 17:45 |
---|---|---|
ignas | aelkner__: yes? | 17:48 |
aelkner__ | could you please explain the part of your note about messages? | 17:48 |
aelkner__ | what do i need to do | 17:48 |
aelkner__ | to have my own messages? | 17:48 |
pcardune | wjohnsto: we should be talking here I think | 17:48 |
wjohnsto | ok | 17:49 |
ignas | aelkner__: look at the definition of schooltool message | 17:49 |
ignas | copy it into your module | 17:49 |
ignas | and change "schooltool" | 17:49 |
ignas | into "schooltool.sla" | 17:49 |
aelkner__ | and that's it? | 17:50 |
ignas | and name it SlaMessage | 17:50 |
ignas | and use it everywhere | 17:50 |
ignas | instead of the schooltool one | 17:50 |
ignas | oh - and in templates, replace domain="schooltool" with domain="schooltool.sla" | 17:50 |
aelkner__ | and i need to use schooltool.sla as my domain name for all the zcml files, right? | 17:50 |
ignas | yes | 17:50 |
aelkner__ | is that it? | 17:51 |
wjohnsto | I am not sure that I am changing the correct files in the necessary places | 17:51 |
aelkner__ | ignas: thanks | 17:51 |
*** mgedmin has joined #schooltool | 17:51 | |
wjohnsto | pcardune: I believe the two files are event.pt and event_add.pt | 17:51 |
pcardune | wjohnsto: those sound right | 17:52 |
pcardune | wjohnsto: are your changes showing up? in the generated html? | 17:52 |
wjohnsto | when I click the link to "edit event" I think the event_add template is used | 17:52 |
wjohnsto | pcardune: well, it still has the link to the schooltool calendar in the form action | 17:54 |
pcardune | wjohnsto: if you aren't sure that you are using the right template, just put some code you know will show up and look for that | 17:55 |
pcardune | if it is not there, then yeah, you are using the wrong template | 17:55 |
wjohnsto | pcardune: ok, I am sure that I am using the correct template | 18:06 |
wjohnsto | however, specifying the next_url does not seem to be working | 18:07 |
wjohnsto | perhaps I am putting it in the wrong places | 18:07 |
wjohnsto | I specified the next_url right before the edit event link, and also in the controls in the event_add.pt | 18:09 |
*** jelkner has joined #schooltool | 18:34 | |
*** jelkner has quit IRC | 18:36 | |
aelkner__ | i have a question about the interface "casting" syntax for adapters | 18:42 |
aelkner__ | saying IMyInterface(some_object) will invoke the adapter that adapts some_object to IMyIntercace | 18:43 |
aelkner__ | but how about IMyInterface(one_object, another_object)? | 18:43 |
ignas | will return the another_object if the adapter is not found | 18:43 |
aelkner__ | i registered an a multi-adapter of two interfaces to a third | 18:43 |
ignas | just like IFoo(something, None) | 18:43 |
ignas | the second parameter is the default=... | 18:44 |
aelkner__ | i noticed that | 18:44 |
ignas | queryMultiAdapter and getMultiAdapter is what you need | 18:44 |
aelkner__ | does that mean one has to use the zope queryAdapter method to get multi-adapters? | 18:44 |
aelkner__ | oh, you just answered that | 18:45 |
aelkner__ | i was afraid of that, but thanks | 18:45 |
*** jelkner has joined #schooltool | 19:02 | |
wjohnsto | pcardune: ayt? | 19:06 |
pcardune | wjohnsto: did you add code to handle the next_url parameter? | 19:09 |
wjohnsto | pcardune: well, i am looking at the view for editing an event | 19:10 |
wjohnsto | and I have found the function that handles next_url | 19:10 |
wjohnsto | "def nexturl()" | 19:11 |
pcardune | so is it doing what you think it's supposed to do? | 19:13 |
pcardune | and is it ever being called? | 19:13 |
wjohnsto | from what it looks like | 19:13 |
wjohnsto | I mean | 19:13 |
wjohnsto | it gets called when you hit update or cancel | 19:13 |
wjohnsto | and it redirects you to "self.request.get(next_url) | 19:14 |
wjohnsto | " | 19:14 |
wjohnsto | or "self.request.get('next_url', none)" | 19:14 |
wjohnsto | perhaps next_url never gets defined | 19:14 |
wjohnsto | pcardune: but I would think that when you initially clicked on the "edit event" link it would still keep the person/[user]/calendar in the url | 19:15 |
wjohnsto | but that changes | 19:15 |
pcardune | right, because it accesses the event from a global space... it wouldn't be bad if that changed using traversers (but the traverser solution is a little more complicated to understand) | 19:16 |
wjohnsto | in other words, it directs you to where you would be if you wanted to edit an event from the schooltool calendar | 19:17 |
pcardune | wjohnsto: try putting in a pdb trace and see what is going on | 19:17 |
wjohnsto | ok | 19:17 |
ignas | is there a <hidden> element that keeps the value of next_url in the form? | 19:18 |
ignas | so it would get posted after you hit "Update" | 19:18 |
*** aelkner__ has quit IRC | 19:18 | |
wjohnsto | yes | 19:21 |
ignas | then try using pdb | 19:24 |
wjohnsto | ok pcardune: | 19:40 |
wjohnsto | it looks like | 19:40 |
wjohnsto | when I call self.request.get('next_url') there is no next_url | 19:41 |
*** jelkner has quit IRC | 19:41 | |
pcardune | try self.request.has_key('next_url') | 19:41 |
wjohnsto | so it skips to return absoluteURL(self.context.__parent__, self.request) | 19:41 |
wjohnsto | False | 19:41 |
pcardune | did you put the hidden element inside the form tag? | 19:41 |
wjohnsto | yea | 19:41 |
*** th1a_ has joined #schooltool | 19:48 | |
*** aelkner__ has joined #schooltool | 19:48 | |
wjohnsto | pcardune: it seems like "<input type="hidden" tal:condition="request/next_url|nothing" tal:attributes="value request/next_url" name="next_url" />" is not actually keeping a value | 19:52 |
wjohnsto | I have it in the form in the page template for editing an event | 19:52 |
wjohnsto | and I have it in the template where the link to edit an event is | 19:53 |
pcardune | what is the url of the page with the form? | 19:53 |
wjohnsto | http://localhost:7080/calendar/MjAwODAyMDgxNTA2MDkuMTEwOTkuNTYwMTEuMTUyMzEwLjYxMjgzMzJAYW50ZWM%3D/edit.html?date=2008-02-08 | 19:54 |
ignas | emm and where is the next_url ? | 19:54 |
wjohnsto | I also assigned a specific next_url | 19:54 |
ignas | so what is the full url? | 19:54 |
wjohnsto | that is it | 19:54 |
wjohnsto | in the link to "edit event" I have "tal:attributes="href string:${context/@@absolute_url}/edit.html?next_url=${request/url}"" | 19:56 |
wjohnsto | pcardune: so I don't know. I guess the link to edit an event is not getting a value for next_url | 19:58 |
pcardune | are you editing the right page template? or the right link? | 19:59 |
pcardune | try putting the next_url into the url manually | 20:00 |
pcardune | and see what you get | 20:00 |
pcardune | like literally type it into firefox | 20:00 |
wjohnsto | it still doesnt work | 20:05 |
wjohnsto | pcardune: ping | 20:05 |
pcardune | wjohnsto: ? | 20:05 |
wjohnsto | this is just frustrating | 20:05 |
wjohnsto | I can see exactly where the link it defined, but if I change it nothing happens | 20:06 |
wjohnsto | but that has to be the link because if I get rid of it | 20:06 |
wjohnsto | there are errors | 20:06 |
wjohnsto | or, maybe it doesnt | 20:10 |
*** alga has joined #SchoolTool | 20:11 | |
pcardune | wjohnsto: unfortunately, I can assure you that the computer is doing exactly what you tell it to do... you are just telling it wrong | 20:12 |
wjohnsto | haha | 20:12 |
wjohnsto | I know | 20:12 |
wjohnsto | it must be the wrong link | 20:13 |
wjohnsto | so i'll see if I can find out exactly where the link is :\ | 20:13 |
wjohnsto | pcardune: thanks for the help | 20:16 |
pcardune | its more like moral support, but your welcome | 20:17 |
*** wjohnsto has left #schooltool | 20:20 | |
*** ignas has quit IRC | 20:23 | |
*** r1v3r has joined #schooltool | 20:43 | |
*** alga has quit IRC | 21:02 | |
*** mgedmin has quit IRC | 21:05 | |
*** mgedmin has joined #schooltool | 21:26 | |
*** r1v3r has left #schooltool | 21:31 | |
*** ignas has joined #schooltool | 22:02 | |
*** aelkner__ has quit IRC | 22:15 | |
*** mgedmin has quit IRC | 23:06 | |
*** pcardune is now known as pcardune_away | 23:25 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!