*** fsufitch has joined #schooltool | 00:26 | |
*** replaceafill has quit IRC | 01:53 | |
*** th1a has quit IRC | 04:17 | |
*** balor has joined #schooltool | 11:01 | |
*** fsufitch has quit IRC | 13:15 | |
*** wgrant has quit IRC | 13:25 | |
*** wgrant has joined #schooltool | 13:25 | |
*** mgedmin has joined #schooltool | 14:48 | |
*** ignas has joined #schooltool | 14:59 | |
*** th1a has joined #schooltool | 15:42 | |
*** fsufitch has joined #schooltool | 15:53 | |
*** fsufitch has quit IRC | 15:58 | |
aelkner | ignas: ayt? | 16:30 |
---|---|---|
ignas | aelkner: yep | 16:31 |
aelkner | i have some questions about using the new school years | 16:32 |
aelkner | i created a school year starting 8/1/08-7/31/09 | 16:32 |
aelkner | then i go to add a term | 16:32 |
aelkner | i put in 8/1/08-10/15/08 | 16:33 |
aelkner | it tells me the dates are invalid | 16:33 |
aelkner | doesn't tell me why | 16:33 |
aelkner | um, why would it fail? | 16:34 |
ignas | aelkner: because i have not had the time | 16:36 |
ignas | to fix datetime widgets | 16:36 |
ignas | terms use the old date format | 16:36 |
ignas | which is iso one | 16:36 |
ignas | so for terms - enter 2008-01-08 | 16:36 |
ignas | or something like that | 16:36 |
aelkner | aug/1 2008 would be 2008-01-08? | 16:37 |
ignas | no | 16:37 |
ignas | 2008-08-01 | 16:37 |
aelkner | that worked, thanks | 16:39 |
aelkner | ignas: so what does the evolution script do with existing sections? | 16:42 |
ignas | aelkner: adds a new school year | 16:43 |
ignas | well ok | 16:43 |
ignas | it depends | 16:43 |
ignas | if there are no terms and no timetables | 16:43 |
ignas | adds a school year, adds a term, moves sections into the term | 16:43 |
ignas | if there are terms and timetables | 16:43 |
ignas | moves all terms into a school year | 16:43 |
aelkner | how am i supposed to change the logic of looping though sections? | 16:44 |
ignas | moves sections into terms that sections were scheduled for | 16:44 |
ignas | if a section is in more than 1 term - it get's cloned so you get 2 copies of it in different terms | 16:44 |
aelkner | for section in ISchoolToolApplication(None)['sections']: | 16:44 |
ignas | aelkner: well - why are you looping through sections? | 16:45 |
aelkner | many reasons | 16:45 |
ignas | i mean - i want to know the logic behind it | 16:45 |
aelkner | first example | 16:45 |
ignas | because it affects the solution | 16:45 |
aelkner | to find all the sections that a teacher teaches | 16:45 |
aelkner | in cando's case, for example | 16:45 |
ignas | emm, IInstructor(teacher).sections ? | 16:45 |
ignas | sections() | 16:46 |
aelkner | so you added that logic? | 16:46 |
ignas | it was there since last year | 16:46 |
ignas | the - get all sections someone is teaching | 16:46 |
aelkner | how does it know what term to look for?. | 16:47 |
ignas | well - ok I added it "2008-03-20" | 16:47 |
ignas | teacher has a bidirectional relationship | 16:47 |
ignas | with sections he is teaching | 16:47 |
ignas | so as section knows it's instructors | 16:47 |
ignas | teacher knows the sections | 16:47 |
ignas | so you will get *all* the sections | 16:47 |
ignas | if you only want sections for some school year | 16:48 |
ignas | like - the active school year | 16:48 |
ignas | or some term | 16:48 |
ignas | you will have to filter them after that | 16:48 |
ignas | but that will be enormously more efficient/faster | 16:48 |
ignas | compared to "let's go through all the sections in the system" | 16:48 |
aelkner | how about all the sections for a student? | 16:49 |
aelkner | IStuden(student).sections()? | 16:49 |
aelkner | IStudent | 16:50 |
ignas | ILearner | 16:50 |
ignas | i think | 16:50 |
aelkner | ok, thanks | 16:50 |
aelkner | ignas: i just used the Data.fs from dwelsh's instance to see how it handle the evolution | 16:56 |
ignas | good | 16:56 |
ignas | i did that some time ago too | 16:56 |
aelkner | i created a school year that starts sep27/08 | 16:56 |
aelkner | and ends jan25/09 | 16:56 |
aelkner | and then a term that spans that whole period | 16:57 |
aelkner | is that the behaviour you expect | 16:57 |
ignas | you created? | 16:58 |
ignas | or - "it created" | 16:58 |
aelkner | it ceated | 16:58 |
aelkner | sorry for the mistype | 16:58 |
ignas | yeah, i mean - if you have no terms and no school years | 16:59 |
ignas | i just make some stuff up | 16:59 |
ignas | you should be able to edit the term and the school year to make more sense | 16:59 |
aelkner | i see you can edit the school year, so that's cool | 16:59 |
aelkner | and the term as well | 17:00 |
aelkner | so how do i determine how to filter the sections | 17:00 |
aelkner | how do i test "does this teacher's section" | 17:00 |
aelkner | belone to the "current" term? | 17:00 |
aelkner | belong | 17:00 |
ignas | well - what is the current term? | 17:00 |
aelkner | the cando interface has no concept of terms | 17:01 |
ignas | yeah i know | 17:01 |
ignas | so - if you could define what is the "current" term for you | 17:01 |
ignas | I could probably add the getCurrentTerm function to the school year container | 17:01 |
ignas | at the moment i think it's missing | 17:01 |
aelkner | whatever term falls on today's date? | 17:01 |
ignas | well - and what if | 17:02 |
ignas | there are no terms for todays date? | 17:02 |
aelkner | yeah | 17:02 |
ignas | what if it's the first day past the last term | 17:02 |
ignas | should you get the last term? | 17:02 |
ignas | or should you get None ? | 17:02 |
aelkner | are you asking me? | 17:02 |
ignas | yes | 17:02 |
aelkner | i duuno | 17:03 |
ignas | it will be easier for you to talk to jelkner and dwelsh | 17:03 |
aelkner | i'm not used to think in terms | 17:03 |
ignas | and tom | 17:03 |
ignas | if you don't need terms | 17:03 |
ignas | then just use "all the sections" | 17:03 |
ignas | and that's it | 17:03 |
ignas | that will get "fixed" some time later, by making relationships track | 17:03 |
ignas | which data is current and which data is not | 17:03 |
ignas | but we can take care of it then | 17:04 |
aelkner | ok, so that sounds like a plan for the future | 17:04 |
ignas | i mean - you don't have to think about terms | 17:04 |
ignas | to make it *work* | 17:04 |
aelkner | for now i should just loop though all sections for teacher or student | 17:04 |
ignas | though if you want to make cando support school years and integrate with them | 17:04 |
aelkner | and use all of the,m | 17:04 |
ignas | you will have to think about it a lot | 17:04 |
ignas | aelkner: yeah, that will work | 17:04 |
aelkner | ok | 17:05 |
ignas | aelkner: and it will work just like it used to work before, so people will not really see any difference | 17:05 |
ignas | we have an active school year | 17:05 |
ignas | so it might be nice to move some views | 17:05 |
ignas | and make them school year specific | 17:05 |
ignas | not app specific | 17:05 |
ignas | but even that is optional | 17:05 |
aelkner | so i have quite a bit of work to do to get cando to work with school years | 17:06 |
ignas | well - to work, not so much probably | 17:06 |
ignas | change a bunch of urls and some code that accesses data | 17:06 |
ignas | to support - it's a lot of work | 17:06 |
ignas | because you suddenly must think about what users want and when | 17:06 |
aelkner | yeah, for instance, urls | 17:07 |
aelkner | some of cando tests have things like browser.open('localhost/sections') | 17:08 |
ignas | well - that's easy to fix | 17:08 |
ignas | really | 17:08 |
aelkner | how? | 17:08 |
ignas | you just make sure you have school year setup in your setup code | 17:08 |
ignas | and replace all that with | 17:09 |
ignas | localhost/schoolyears/2005-2008/spring/sections | 17:09 |
ignas | for example | 17:09 |
ignas | search and replace is easy | 17:09 |
ignas | thinking how it should work now is hard | 17:09 |
aelkner | how would my test know what school year to use? | 17:09 |
ignas | emm | 17:09 |
ignas | it's you who will add it | 17:09 |
ignas | look at setUpBasicSchool | 17:10 |
ignas | function in school tool | 17:10 |
ignas | it adds 1 school year named 2005-2006 and 2 terms spring and fall | 17:10 |
ignas | so you just use them in all the functional tests | 17:10 |
aelkner | i see | 17:10 |
aelkner | still seems like a lot to do | 17:11 |
aelkner | this should keep me bust for a while | 17:11 |
aelkner | busy | 17:11 |
ignas | well - learn regular expressions ;) | 17:12 |
aelkner | regexes? | 17:13 |
aelkner | what does that have to do with anything? | 17:13 |
*** balor has quit IRC | 17:14 | |
ignas | makes a task like "replace all the localhost/sections" with "localhost/schoolyears/2005-2006/fall/sections" in all the tests | 17:14 |
ignas | easier ;) | 17:14 |
aelkner | replacing strings is not the issue | 17:15 |
aelkner | that would be easy with or without regexes | 17:15 |
aelkner | it's setting up all the tests to have the school years and terms | 17:15 |
aelkner | and the implications of that on the rest of the tests | 17:15 |
aelkner | that seems like a lot that needs doing | 17:16 |
aelkner | anyway | 17:16 |
aelkner | i'll see as i go | 17:16 |
aelkner | enough said about that for now | 17:16 |
ignas | use "setUpBasicSchool" in all the functional tests, it sohuld make it easier | 17:16 |
aelkner | i will | 17:16 |
aelkner | thanks | 17:16 |
aelkner | got to shower and head to sla now | 17:16 |
ignas | ok | 17:16 |
ignas | and keep in mind that addSection and addCourse | 17:17 |
aelkner | thanks again | 17:17 |
ignas | now take year and term ids | 17:17 |
ignas | or was it titles | 17:17 |
aelkner | ok | 17:17 |
ignas | as parameters | 17:17 |
*** aelkner has quit IRC | 18:06 | |
*** ignas has quit IRC | 18:58 | |
*** ignas has joined #schooltool | 21:08 | |
*** ignas has quit IRC | 21:11 | |
*** mgedmin has quit IRC | 21:31 | |
*** aelkner has joined #schooltool | 22:47 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!