*** replaceafill has joined #schooltool | 00:29 | |
th1a | Ah... latest server possibility... http://cubiestore.com/products/cubieboard-1gb | 01:35 |
---|---|---|
*** replaceafill has quit IRC | 06:16 | |
*** yvl has joined #schooltool | 07:42 | |
*** khildin has joined #schooltool | 08:34 | |
*** menesis has quit IRC | 11:02 | |
*** menesis1 has joined #schooltool | 11:02 | |
*** menesis has joined #schooltool | 11:02 | |
*** povbot has joined #schooltool | 13:45 | |
-moorcock.freenode.net- [freenode-info] channel flooding and no channel staff around to help? Please check with freenode support: http://freenode.net/faq.shtml#gettinghelp | 13:45 | |
*** replaceafill has joined #schooltool | 15:32 | |
replaceafill | yvl, you around? | 15:32 |
th1a | hi replaceafill. | 16:35 |
replaceafill | good morning th1a | 16:35 |
replaceafill | th1a, i'm trying to solve an issue with virginia i found last night | 16:36 |
th1a | OK. | 16:36 |
th1a | What is it? | 16:36 |
replaceafill | http://dev.schooltool.org/virginia/schoolyears/2012-2013/SY/va_skills_attainment_report.html | 16:36 |
replaceafill | it's about sorting | 16:36 |
replaceafill | choose as a Course | 16:36 |
replaceafill | television production 1 | 16:37 |
replaceafill | just a few sections | 16:37 |
replaceafill | now sort twice by the same column | 16:37 |
replaceafill | the second time you sort, the totals row gets move to the top of the result | 16:38 |
th1a | Fucking totals... | 16:38 |
replaceafill | :( | 16:38 |
replaceafill | what i discovered is that every time a sort happens the form is submitted and a hidden input tracks the sorting tokens | 16:39 |
th1a | It is just annoying because if we'd known it was going to be a headache we could have just stuck it somewhere else. | 16:39 |
replaceafill | i was thinking the same :( | 16:39 |
replaceafill | "we should move this damn row..." | 16:40 |
th1a | It is ok with me. | 16:40 |
replaceafill | i think we could put it in the same exact place, out of the table | 16:40 |
replaceafill | and it'd make the table logic simpler | 16:41 |
th1a | Please do. | 16:42 |
replaceafill | ok, that's a relief :) | 16:42 |
th1a | Well, I never understood why it was really necessary at all. | 16:44 |
replaceafill | imho it doesn't provide a lot of "information" | 16:45 |
th1a | Right. Sometimes you say "OK, whatever" to the customer and it turns into a giant sinkhole. | 16:45 |
replaceafill | th1a, just sent you a pdf with the current report card | 16:49 |
replaceafill | according to my notes: | 16:49 |
replaceafill | - add attendance/tardy information | 16:49 |
replaceafill | is next | 16:49 |
replaceafill | yvl recommended to use a table for the comments too | 16:50 |
replaceafill | instead of paragraphs | 16:50 |
yvl | oh, didn't notice xchat notification | 16:50 |
replaceafill | camila's picture is supposed to be the school logo btw | 16:50 |
replaceafill | hey yvl! | 16:50 |
yvl | hi guys :) | 16:51 |
replaceafill | we're probably going to solve it another way, but i'm still curious | 16:51 |
replaceafill | could you check: http://dev.schooltool.org/virginia/schoolyears/2012-2013/SY/va_skills_attainment_report.html | 16:51 |
replaceafill | select Television Production I as the course | 16:51 |
yvl | username:password? | 16:52 |
* replaceafill inherited the use of that course from dwelsh :P | 16:52 | |
replaceafill | default | 16:52 |
th1a | Looks good... nice picture. ;-) | 16:52 |
replaceafill | :D | 16:52 |
replaceafill | yvl, then sort twice by the same column | 16:52 |
replaceafill | yvl, it seems like the sortOn method doesn't apply on the second sort | 16:53 |
replaceafill | i mean, the table uses the hidden XXXX.sort_on field, right? | 16:54 |
replaceafill | which at the beginning is "section course instructors totals" | 16:54 |
replaceafill | once the "double" sorting happens, the hidden gets "section course totals instructors instructors" | 16:55 |
yvl | I see | 16:56 |
yvl | looking | 16:56 |
yvl | right.... | 16:57 |
yvl | there is a fixed_sort_on thing in our table formatters | 16:57 |
yvl | ok, so there is a HeaderFormatterMixin | 16:59 |
replaceafill | looking at it... | 16:59 |
yvl | but it is only used for tables that group by something I think | 17:00 |
yvl | i.e. tables with subtables | 17:00 |
replaceafill | correct | 17:00 |
yvl | I guess you'll have to look at that mixin, and write a custom formatter | 17:01 |
yvl | that does basically updateSortParameters | 17:02 |
yvl | or... I guess I could extract some of params out, and fixed pre-sort and post-sort to all table formatters | 17:02 |
replaceafill | well, i suggested moving the totals column out of the table | 17:03 |
replaceafill | sorry | 17:03 |
replaceafill | i meant the totals row :) | 17:03 |
yvl | you could do that :) | 17:04 |
replaceafill | i was thinking of inserting it as a viewlet before the Done button, and just use css to make it look the same | 17:04 |
replaceafill | using th1a's words: "it's a toss-up" (is that the right phrase?) :D | 17:05 |
replaceafill | at least imho | 17:05 |
th1a | Yes. | 17:05 |
yvl | you can also override renderRows of the formatter and add static totals rows at the end | 17:05 |
replaceafill | yvl, in both cases (using table formatters), i'd need to got with a custom one, right? | 17:05 |
replaceafill | go* | 17:05 |
yvl | yes | 17:05 |
replaceafill | got it | 17:06 |
yvl | we already go with custom ones :) | 17:06 |
replaceafill | true | 17:06 |
replaceafill | i'll see which solution i can do faster | 17:07 |
yvl | probably renderRows is the quickest | 17:08 |
replaceafill | yes, and i know how to do that already (we were doing it before you implemented group_by_column i think) | 17:08 |
replaceafill | i'm not familiar with updateSortParameters | 17:09 |
yvl | that one copies some stuff from zc.table | 17:11 |
yvl | it's there to solve the same problem we're having with totals :) | 17:11 |
replaceafill | :| | 17:12 |
replaceafill | i always thought that the sortOn method on the table was the definitive source of sorting for a table | 17:13 |
yvl | well it is | 17:13 |
replaceafill | and that order was going to be respected no matter what | 17:14 |
yvl | but then, there's user sort coming from request | 17:14 |
yvl | so if you say sort on: title V | 17:14 |
yvl | the user clicks on title | 17:14 |
replaceafill | sortOn seems more "initial" state now (to me) | 17:14 |
yvl | you get sor on: title V, title A | 17:14 |
yvl | it is | 17:15 |
yvl | udateSortParams calls getFixedSortOn | 17:15 |
yvl | that makes sure initial sorts are never touched | 17:15 |
yvl | so if you specify to sort by title | 17:16 |
yvl | and user clicks date | 17:16 |
yvl | instead of having sorted by date (and entries with matching dates by title) | 17:16 |
yvl | you could have always sorted by title first | 17:17 |
replaceafill | so, sorting is basically "updated" from the request | 17:18 |
yvl | yep | 17:18 |
replaceafill | wow, tables | 17:18 |
yvl | sorting params are appended | 17:18 |
replaceafill | make you keep learning :P | 17:18 |
yvl | yes :D | 17:18 |
replaceafill | ah, it's zc.table who inserts the tokens hidden! | 17:33 |
replaceafill | i was looking for it like crazy in schooltool | 17:33 |
th1a | Ah... | 17:40 |
replaceafill | th1a, btw, the unescaped entities in the pdf are also solved | 17:40 |
th1a | Good... I was wondering if that was another suprisingly difficult issue... | 17:41 |
*** replaceafill has quit IRC | 18:03 | |
*** khildin has quit IRC | 19:10 | |
menesis | th1a: I have resolved all issues with packages in https://launchpad.net/~schooltool-owners/+archive/trunk/ | 19:58 |
menesis | can now be tested | 19:59 |
th1a | Cool. Thanks. | 19:59 |
*** yvl has quit IRC | 20:58 | |
*** yvl has joined #schooltool | 21:00 | |
th1a | yvl: ayt? | 21:09 |
*** replaceafill has joined #schooltool | 21:59 | |
*** menesis has quit IRC | 22:48 | |
*** th1a has quit IRC | 23:03 | |
*** yvl has quit IRC | 23:33 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!