fsufitch | aelkner: ping, how do i manage radio fields? | 00:07 |
---|---|---|
fsufitch | the yes/no elective option | 00:07 |
aelkner | checking... | 00:08 |
aelkner | in an example where the following test is true: | 00:10 |
aelkner | >>> manager.printQuery("id('content-body')//td/input") | 00:10 |
aelkner | <input type="radio" name="LINK_SECTION" value="section_3" /> | 00:10 |
aelkner | <input type="radio" name="LINK_SECTION" value="section_4" /> | 00:10 |
aelkner | this is the code to choose the radio button: | 00:10 |
aelkner | >>> manager.getControl(name="LINK_SECTION").value = ["section_4"] | 00:10 |
fsufitch | why a list? | 00:11 |
aelkner | that's the way zope's Browser class wotks with list controls like checkboxes and radio buttons | 00:11 |
aelkner | i know why you ask, since only one radio button can be clicked at a time | 00:11 |
aelkner | but that's just the way the Browser class wants it | 00:12 |
fsufitch | alright | 00:12 |
aelkner | btw, it can be handy to use xpath tests to see what list controls are rather than using serve() and firebug | 00:13 |
aelkner | like the test above does | 00:14 |
fsufitch | ok | 00:21 |
fsufitch | hmm, i dont think CourseInfoValueList is working as it should | 00:22 |
fsufitch | TypeError: Field ``requirements`` of type ``CourseInfoValueList`` must provide ``IFromUnicode``. | 00:22 |
fsufitch | email you the diff, or commit? | 00:22 |
aelkner | go ahead and commit/push | 00:23 |
fsufitch | pushed | 00:24 |
*** alga has quit IRC | 00:32 | |
fsufitch | aelkner: ping? | 00:33 |
aelkner | looking... | 00:34 |
aelkner | fsufitch, i sent you a diff to apply | 00:54 |
fsufitch | ok | 00:54 |
fsufitch | what was wrong? | 00:54 |
aelkner | ping me after you apply it so we can discuss the diff | 00:54 |
fsufitch | ok | 00:54 |
aelkner | first off, i had to create a custom dataconverter like demographics.py did with enum fields | 00:55 |
aelkner | mine is much simpler because it doesn't have FormatterDataERrors | 00:55 |
aelkner | i mean, FormatterValidationError | 00:55 |
aelkner | note that i added the file headers to the py files | 00:56 |
aelkner | we need that aith all our py files | 00:56 |
aelkner | also, please make sure that all source files end with a new line character | 00:56 |
aelkner | see the final line of froms.py, i had to add the newline, also to README.txt | 00:57 |
aelkner | also, when clicking add buttons, when you expect to return to the other view | 00:58 |
aelkner | if you entered invalid data, the form will have errors | 00:58 |
aelkner | so you can put an xpath test for the errors div right after the 'Add' click | 00:59 |
aelkner | that can be part of your permanent tests | 00:59 |
aelkner | call up the add form, fill in nothing, click 'Add' | 00:59 |
aelkner | xpath test the errors div to demonstrate which fields are required | 01:00 |
aelkner | then fill then in with invalid data, click 'Add' again, test that those errors come out | 01:00 |
aelkner | that will keep you busy, and it will make for a good final test | 01:00 |
aelkner | also, when you can't figure out why the container view hasn't come up, you'll know right away | 01:01 |
fsufitch | ok, will do | 01:04 |
fsufitch | aelkner: super tired, feel like im going to spontaneously fall asleep | 01:59 |
fsufitch | im setting off now | 01:59 |
fsufitch | i'll finish up and commit/push tonight after taking a nap | 01:59 |
fsufitch | thanks for all the help! | 01:59 |
*** fsufitch has quit IRC | 02:07 | |
*** aks has joined #schooltool | 06:11 | |
*** aks has quit IRC | 09:55 | |
*** alga has joined #schooltool | 10:05 | |
*** aks has joined #schooltool | 10:18 | |
*** aks has joined #schooltool | 10:18 | |
*** alga has quit IRC | 11:00 | |
*** Frankadema1 has joined #schooltool | 11:36 | |
*** Frankadema1 has left #schooltool | 12:22 | |
*** ignas has joined #schooltool | 13:21 | |
*** aks has quit IRC | 14:22 | |
*** alga has joined #schooltool | 19:06 | |
alga | th1a: AYT? | 19:06 |
alga | Have you heard about the latest developments at Ignas's startup? | 19:12 |
alga | Their latest bet is that a private Facebook clone is what universities need | 19:13 |
alga | http://www.slideshare.net/jaro/ututicom-international | 19:13 |
alga | thought you might be interested | 19:14 |
th1a | Hi alga. | 19:14 |
th1a | Well... I wouldn't want to try to run that sort of thing as a business. | 19:16 |
alga | true :) | 19:18 |
th1a | It is a messy kind of market. | 19:18 |
alga | I guess the SIS market is messier :) | 19:23 |
alga | a not too conservative uni might just pay for a modern LMS/communication tool mashup | 19:25 |
th1a | It's just a narrow band between a school LMS and "just use facebook." | 19:38 |
ignas | just as narrow as a band between a CRM and facebook :) which is wide enough for yammer to fit into | 19:40 |
ignas | if we are cloning anything, it's probably yammer not facebook really | 19:44 |
alga | ignas: did you know that the last mention of ututi in #schooltool logs was in 2009? :) | 19:48 |
ignas | :) | 19:49 |
*** alga has quit IRC | 20:07 | |
*** ignas has quit IRC | 20:30 | |
*** alga has joined #schooltool | 22:32 | |
*** mattva01 has joined #schooltool | 23:51 | |
mattva01 | hey guys, I'm having a weird issue | 23:51 |
mattva01 | I set up schooltool-cando from the lucid ppa, but it won't start | 23:52 |
mattva01 | the paste log shows | 23:52 |
mattva01 | Reading configuration from /etc/schooltool/schooltool-cando/main.conf chooltool: 'rest-access-log-file' is not a known key name chooltool: 'rest-access-log-file' is not a known key name (line 47 in file:///etc/schooltool/schooltool-cando/main.conf) Reading configuration from /etc/schooltool/schooltool-cando/main.conf schooltool: 'rest-access-log-file' is not a known key name (line 47 in file:///etc/schooltool/schooltool-cando/main.conf) Readin | 23:52 |
mattva01 | any idea what's going on? | 23:53 |
mattva01 | removing that line from the config makes it work fine | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!