/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/ftests/column_linking.txt is in python-schooltool.gradebook 2.6.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 | Column Linking
--------------
To add a spreadsheet feature we created LindedColumnActivity objects to allow
the user to pull in columns from other worksheets. These columns will not only
display the contents of the source column, but the values will be factored
into the average for the worksheet where the linked column activity lives.
There are two types of linked activities, a link to an other worksheet's
activity, or a link to the average column of the worksheet. Activity links
will use the score system of the source activity whereas worksheet average
links will use an assumed 100 point system.
Import helper to print the gradebook:
>>> from schooltool.gradebook.browser.ftests import printGradebook
Log in as manager:
>>> manager = Browser('manager', 'schooltool')
Now, set up a school year (2005-2006) with two terms (Fall and
Spring):
>>> from schooltool.app.browser.ftests import setup
>>> setup.setUpBasicSchool()
Set up two courses:
>>> setup.addCourse('Physics I', '2005-2006')
>>> setup.addCourse('Math I', '2005-2006')
Set up persons:
>>> from schooltool.basicperson.browser.ftests.setup import addPerson
>>> addPerson('Paul', 'Carduner', 'paul', 'pwd', browser=manager)
>>> addPerson('Tom', 'Hoffman', 'tom', 'pwd', browser=manager)
>>> addPerson('Claudia', 'Richter', 'claudia', 'pwd', browser=manager)
>>> addPerson('Stephan', 'Richter', 'stephan', 'pwd', browser=manager)
Set up one section with instructor and students for each term:
>>> setup.addSection('Math I', '2005-2006', 'Fall',
... instructors=['Stephan'],
... members=['Tom', 'Claudia', 'Paul'])
>>> setup.addSection('Physics I', '2005-2006', 'Spring',
... instructors=['Stephan'],
... members=['Tom', 'Claudia', 'Paul'])
Set up the default category for activities:
>>> manager.getLink('Manage').click()
>>> manager.getLink('Activity Categories').click()
>>> manager.getControl('Default Category').displayValue = ['Journal']
>>> manager.getControl('Change').click()
Log in as teacher:
>>> stephan = Browser('stephan', 'pwd')
Add a couple of activities to the default worksheet:
>>> stephan.getLink('Gradebook').click()
>>> stephan.printQuery('//select[@name="currentTerm"]/option[@selected="selected"]/text()')
2005-2006 / Fall
>>> stephan.printQuery('//select[@name="currentSection"]/option[@selected="selected"]/text()')
Math I - Math I (1)
>>> stephan.getLink('New Activity').click()
>>> stephan.getControl('Title').value = 'HW 1'
>>> stephan.getControl('Description').value = 'Homework 1'
>>> stephan.getControl('Category').displayValue = ['Assignment']
>>> stephan.getControl('Maximum').value = '50'
>>> stephan.getControl('Add').click()
>>> stephan.getLink('New Activity').click()
>>> stephan.getControl('Title').value = 'Quiz'
>>> stephan.getControl('Description').value = 'Week 1 Pop Quiz'
>>> stephan.getControl('Category').displayValue = ['Exam']
>>> stephan.getControl('Add').click()
Add some grades:
>>> stephan.getControl(name='Activity_paul').value = '40'
>>> stephan.getControl(name='Activity_tom').value = '48'
>>> stephan.getControl(name='Activity_claudia').value = '45'
>>> stephan.getControl(name='Activity-2_paul').value = '90'
>>> stephan.getControl(name='Activity-2_tom').value = '88'
>>> stephan.getControl(name='Activity-2_claudia').value = '29'
>>> stephan.getControl('Save').click()
Check the totals and averages:
>>> printGradebook(stephan.contents)
+----------+
| *Sheet1* |
+----------+
+-----------------+-------+-------+---------+---------+
| Name | Total | Ave. | HW1 | Quiz |
+-----------------+-------+-------+---------+---------+
| Paul Carduner | 130.0 | 86.7% | [40___] | [90___] |
| Tom Hoffman | 136.0 | 90.7% | [48___] | [88___] |
| Claudia Richter | 74.0 | 49.3% | [45___] | [29___] |
+-----------------+-------+-------+---------+---------+
We'll add another worksheet:
>>> stephan.getLink('Worksheets').click()
>>> stephan.getLink('New Worksheet').click()
>>> stephan.getControl('Title').value = 'Second Sheet'
>>> stephan.getControl('Add').click()
Let's add some activities, weighting and grades to the new worksheet:
>>> stephan.getLink('Return to Gradebook').click()
>>> stephan.getLink('Second Sheet').click()
>>> stephan.printQuery('//select[@name="currentTerm"]/option[@selected="selected"]/text()')
2005-2006 / Fall
>>> stephan.printQuery('//select[@name="currentSection"]/option[@selected="selected"]/text()')
Math I - Math I (1)
>>> printGradebook(stephan.contents)
+--------+----------------+
| Sheet1 | *Second Sheet* |
+--------+----------------+
+-----------------+-------+------+
| Name | Total | Ave. |
+-----------------+-------+------+
| Paul Carduner | 0.0 | N/A |
| Tom Hoffman | 0.0 | N/A |
| Claudia Richter | 0.0 | N/A |
+-----------------+-------+------+
>>> stephan.getLink('New Activity').click()
>>> stephan.getControl('Title').value = 'First Homework'
>>> stephan.getControl('Label').value = '1st HW'
>>> stephan.getControl('Category').displayValue = ['Homework']
>>> stephan.getControl('Add').click()
>>> stephan.getLink('New Activity').click()
>>> stephan.getControl('Title').value = 'First Presentation'
>>> stephan.getControl('Label').value = '1st Presentation'
>>> stephan.getControl('Category').displayValue = ['Presentation']
>>> stephan.getControl('Add').click()
>>> stephan.getLink('New Activity').click()
>>> stephan.getControl('Title').value = 'Second Presentation'
>>> stephan.getControl('Label').value = '2nd Presentation'
>>> stephan.getControl('Category').displayValue = ['Presentation']
>>> stephan.getControl('Add').click()
>>> stephan.getLink('Weight Categories').click()
>>> stephan.getControl('Homework').value = '25'
>>> stephan.getControl('Presentation').value = '75'
>>> stephan.getControl('Update').click()
>>> stephan.getLink('1stHW').click()
>>> stephan.getControl('Paul Carduner').value = u'70'
>>> stephan.getControl('Tom Hoffman').value = u'75'
>>> stephan.getControl('Claudia Richter').value = u'85'
>>> stephan.getControl('Save').click()
>>> stephan.getLink('1stPr').click()
>>> stephan.getControl('Paul Carduner').value = u'84'
>>> stephan.getControl('Tom Hoffman').value = u'73'
>>> stephan.getControl('Claudia Richter').value = u'67'
>>> stephan.getControl('Save').click()
>>> stephan.getLink('2ndPr').click()
>>> stephan.getControl('Paul Carduner').value = u'72'
>>> stephan.getControl('Tom Hoffman').value = u'81'
>>> stephan.getControl('Claudia Richter').value = u'89'
>>> stephan.getControl('Save').click()
Check the total and averages for this worksheet:
>>> printGradebook(stephan.contents)
+--------+----------------+
| Sheet1 | *Second Sheet* |
+--------+----------------+
+-----------------+-------+-------+---------+---------+---------+
| Name | Total | Ave. | 1stHW | 1stPr | 2ndPr |
+-----------------+-------+-------+---------+---------+---------+
| Paul Carduner | 226.0 | 76.0% | [70___] | [84___] | [72___] |
| Tom Hoffman | 229.0 | 76.5% | [75___] | [73___] | [81___] |
| Claudia Richter | 241.0 | 79.8% | [85___] | [67___] | [89___] |
+-----------------+-------+-------+---------+---------+---------+
We'll switch to the Spring term and add some activities and scores to
the Physics I section:
>>> stephan.getControl(name='currentTerm').displayValue = ['2005-2006 / Spring']
>>> stephan.getForm().submit()
>>> stephan.getLink('New Activity').click()
>>> stephan.getControl('Title').value = 'Lab 1'
>>> stephan.getControl('Description').value = 'Laboratory 1'
>>> stephan.getControl('Category').displayValue = ['Assignment']
>>> stephan.getControl('Maximum').value = '99'
>>> stephan.getControl('Add').click()
>>> stephan.getLink('New Activity').click()
>>> stephan.getControl('Title').value = 'Final'
>>> stephan.getControl('Description').value = 'Final Exam'
>>> stephan.getControl('Category').displayValue = ['Exam']
>>> stephan.getControl('Add').click()
>>> stephan.getLink('Lab1').click()
>>> stephan.getControl('Paul Carduner').value = u'89'
>>> stephan.getControl('Tom Hoffman').value = u'72'
>>> stephan.getControl('Claudia Richter').value = u'91'
>>> stephan.getControl('Save').click()
>>> stephan.getLink('Final').click()
>>> stephan.getControl('Paul Carduner').value = u'99'
>>> stephan.getControl('Tom Hoffman').value = u'88'
>>> stephan.getControl('Claudia Richter').value = u'89'
>>> stephan.getControl('Save').click()
We'll test the totals and averages so that we can check the linked
values later:
>>> printGradebook(stephan.contents)
+----------+
| *Sheet1* |
+----------+
+-----------------+-------+-------+---------+---------+
| Name | Total | Ave. | Lab1 | Final |
+-----------------+-------+-------+---------+---------+
| Paul Carduner | 188.0 | 94.5% | [89___] | [99___] |
| Tom Hoffman | 160.0 | 80.4% | [72___] | [88___] |
| Claudia Richter | 180.0 | 90.5% | [91___] | [89___] |
+-----------------+-------+-------+---------+---------+
Now we'll return to the Fall Math I section and add our first linked
column to the Sheet1 worksheet. We'll also test the Cancel button in
the New Linked Column form:
>>> stephan.getControl(name='currentTerm').displayValue = ['2005-2006 / Fall']
>>> stephan.getForm().submit()
>>> stephan.getLink('Sheet1').click()
>>> printGradebook(stephan.contents)
+----------+--------------+
| *Sheet1* | Second Sheet |
+----------+--------------+
+-----------------+-------+-------+---------+---------+
| Name | Total | Ave. | HW1 | Quiz |
+-----------------+-------+-------+---------+---------+
| Paul Carduner | 130.0 | 86.7% | [40___] | [90___] |
| Tom Hoffman | 136.0 | 90.7% | [48___] | [88___] |
| Claudia Richter | 74.0 | 49.3% | [45___] | [29___] |
+-----------------+-------+-------+---------+---------+
>>> stephan.getLink('New Linked Column').click()
>>> stephan.printQuery('//h1/text()')
Add Linked Column
>>> stephan.getControl('Cancel').click()
First we'll test the contents of the form and the table of available
activities and worksheet averages that can be chosen as the link:
>>> stephan.getLink('New Linked Column').click()
>>> stephan.printQuery('//h1/text()')
Add Linked Column
>>> stephan.printQuery('//input[@name="title"]')
<input type="text" name="title" id="title" value="" />
>>> stephan.printQuery('//input[@name="label"]')
<input type="text" name="label" id="label" value="" />
>>> stephan.printQuery('id("category")/option/text()')
Assignment
Essay
Exam
Homework
Journal
Lab
Presentation
Project
>>> stephan.printQuery('id("category")/option[@selected="selected"]/text()')
Journal
>>> stephan.printQuery('//table[@class="schooltool_gradebook"]/tr/*[1]/text()')
Term
Fall
Spring
>>> stephan.printQuery('//table[@class="schooltool_gradebook"]/tr/*[2]/text()')
Section
Math I (1)
Physics I (1)
>>> stephan.printQuery('//table[@class="schooltool_gradebook"]/tr/*[3]/text()')
Worksheet
Second Sheet
Sheet1
>>> stephan.printQuery('//table[@class="schooltool_gradebook"]/tr/th[4]/text()')
Activity
>>> stephan.printQuery('//table[@class="schooltool_gradebook"]/tr/td[4]/input/@value')
First Homework
First Presentation
Second Presentation
Average
Lab 1
Final
Average
We'll add a link to the Second Presentation from the Second Sheet and
then we'll test that the category for our new linked column has been
saved correctly:
>>> stephan.getControl('Category').displayValue = ['Essay']
>>> stephan.getControl('Second Presentation').click()
>>> stephan.getLink('Manage Worksheet').click()
>>> stephan.getLink('Second Presentation').click()
>>> stephan.printQuery('id("category")/option[@selected="selected"]/text()')
Essay
>>> stephan.getControl('Cancel').click()
then the average of the worksheet from the Spring Physics I section,
Sheet1:
>>> stephan.getLink('New Linked Column').click()
>>> stephan.getControl('Category').displayValue = ['Assignment']
>>> stephan.getControl('Label').value = 'PHSICS'
>>> stephan.getControl('Average', index=1).click()
We made a mistake in the label of the linked column, let's go change
it from the Manage Worksheet view:
>>> stephan.getLink('Manage Worksheet').click()
>>> stephan.getLink('Sheet1').click()
>>> stephan.printQuery('id("category")/option[@selected="selected"]/text()')
Assignment
>>> stephan.getControl('Label').value = 'PHYSICS'
>>> stephan.getControl('Average', index=1).click()
The worksheet now has two new columns whose values are pulled in from
the sources of the links.
>>> printGradebook(stephan.contents)
+----------+--------------+
| *Sheet1* | Second Sheet |
+----------+--------------+
+-----------------+-------+-------+---------+---------+-------+-------+
| Name | Total | Ave. | HW1 | Quiz | 2ndPr | PHYSI |
+-----------------+-------+-------+---------+---------+-------+-------+
| Paul Carduner | 296.5 | 84.7% | [40___] | [90___] | 72 | 94.5 |
| Tom Hoffman | 297.4 | 85.0% | [48___] | [88___] | 81 | 80.4 |
| Claudia Richter | 253.5 | 72.4% | [45___] | [29___] | 89 | 90.5 |
+-----------------+-------+-------+---------+---------+-------+-------+
What happens if the value of the source of a linked column
change. Let's change the grade for Paul's Second Presentation of the
Second Sheet:
>>> stephan.getLink('Second Sheet').click()
>>> stephan.getLink('2ndPr').click()
>>> stephan.getControl('Paul Carduner').value = '99'
>>> stephan.getControl('Save').click()
And let's change a grade for Tom in the Spring Physics I section so
his average also changes:
>>> stephan.getControl(name='currentTerm').displayValue = ['2005-2006 / Spring']
>>> stephan.getForm().submit()
>>> stephan.getLink('Final').click()
>>> stephan.getControl('Tom Hoffman').value = u'60'
>>> stephan.getControl('Save').click()
>>> printGradebook(stephan.contents)
+----------+
| *Sheet1* |
+----------+
+-----------------+-------+-------+---------+---------+
| Name | Total | Ave. | Lab1 | Final |
+-----------------+-------+-------+---------+---------+
| Paul Carduner | 188.0 | 94.5% | [89___] | [99___] |
| Tom Hoffman | 132.0 | 66.3% | [72___] | [60___] |
| Claudia Richter | 180.0 | 90.5% | [91___] | [89___] |
+-----------------+-------+-------+---------+---------+
The linked columns should also change:
>>> stephan.getControl(name='currentTerm').displayValue = ['2005-2006 / Fall']
>>> stephan.getForm().submit()
>>> stephan.getLink('Sheet1').click()
>>> printGradebook(stephan.contents)
+----------+--------------+
| *Sheet1* | Second Sheet |
+----------+--------------+
+-----------------+-------+-------+---------+---------+-------+-------+
| Name | Total | Ave. | HW1 | Quiz | 2ndPr | PHYSI |
+-----------------+-------+-------+---------+---------+-------+-------+
| Paul Carduner | 323.5 | 92.4% | [40___] | [90___] | 99 | 94.5 |
| Tom Hoffman | 283.3 | 81.0% | [48___] | [88___] | 81 | 66.3 |
| Claudia Richter | 253.5 | 72.4% | [45___] | [29___] | 89 | 90.5 |
+-----------------+-------+-------+---------+---------+-------+-------+
We can grade student by student, we'll see no linked columns there.
>>> stephan.getLink('>', index=0).click()
>>> stephan.printQuery('//h3/text()')
Enter grades for Paul Carduner
>>> stephan.printQuery('//label/span/text()')
HW 1 (50)
Quiz (100)
>>> stephan.printQuery('//div[@class="widget"]/*')
<input id="form-widgets-Activity"... value="40" type="text" />
<input id="form-widgets-Activity-2"... value="90" type="text" />
Now, let's go back to the Physics I section of the Spring and delete
all grades for Paul, so he will have no average for that worksheet:
>>> stephan.getControl('Cancel').click()
>>> stephan.getControl(name='currentTerm').displayValue = ['2005-2006 / Spring']
>>> stephan.getForm().submit()
>>> stephan.getLink('>', index=0).click()
>>> stephan.getControl('Lab 1').value = ''
>>> stephan.getControl('Final').value = ''
>>> stephan.getControl('Apply').click()
Let's go back to the Math I section of the Fall and check the grades for Paul:
>>> stephan.getControl(name='currentTerm').displayValue = ['2005-2006 / Fall']
>>> stephan.getForm().submit()
>>> stephan.getLink('>', index=0).click()
>>> stephan.printQuery('//h3/text()')
Enter grades for Paul Carduner
>>> stephan.printQuery('//label/span/text()')
HW 1 (50)
Quiz (100)
>>> stephan.printQuery('//div[@class="widget"]/*')
<input id="form-widgets-Activity"... value="40" type="text" />
<input id="form-widgets-Activity-2"... value="90" type="text" />
Now, we're going to delete the source of a linked column. Let's delete
the 2nd Presentation activity of the Second Sheet worksheet, leaving
the 2nd Presentation linked column of Sheet1 with no source:
>>> stephan.getControl('Cancel').click()
>>> stephan.getLink('Second Sheet').click()
>>> stephan.getLink('Manage Worksheet').click()
>>> stephan.getControl(name='delete:list').value = ['Activity-3']
>>> stephan.getControl('Delete').click()
>>> stephan.getLink('Return to Gradebook').click()
>>> printGradebook(stephan.contents)
+--------+----------------+
| Sheet1 | *Second Sheet* |
+--------+----------------+
+-----------------+-------+-------+---------+---------+
| Name | Total | Ave. | 1stHW | 1stPr |
+-----------------+-------+-------+---------+---------+
| Paul Carduner | 154.0 | 80.5% | [70___] | [84___] |
| Tom Hoffman | 148.0 | 73.5% | [75___] | [73___] |
| Claudia Richter | 152.0 | 71.5% | [85___] | [67___] |
+-----------------+-------+-------+---------+---------+
Now, when we get back to Sheet1, the linked column should have
disappeared:
>>> stephan.getLink('Sheet1').click()
>>> printGradebook(stephan.contents)
+----------+--------------+
| *Sheet1* | Second Sheet |
+----------+--------------+
+-----------------+-------+-------+---------+---------+-------+
| Name | Total | Ave. | HW1 | Quiz | PHYSI |
+-----------------+-------+-------+---------+---------+-------+
| Paul Carduner | 130.0 | 86.7% | [40___] | [90___] | |
| Tom Hoffman | 202.3 | 80.9% | [48___] | [88___] | 66.3 |
| Claudia Richter | 164.5 | 65.8% | [45___] | [29___] | 90.5 |
+-----------------+-------+-------+---------+---------+-------+
Same if we grade a student:
>>> stephan.getLink('>', index=0).click()
>>> stephan.printQuery('//h3/text()')
Enter grades for Paul Carduner
>>> stephan.printQuery('//label/span/text()')
HW 1 (50)
Quiz (100)
>>> stephan.printQuery('//div[@class="widget"]/*')
<input id="form-widgets-Activity"... value="40" type="text" />
<input id="form-widgets-Activity-2"... value="90" type="text" />
Deletion should also work with columns linked to the average of a
worksheet. It's not possible to delete worksheets, but we can hide
them. Let's hide the Sheet1 worksheet of the Physics Spring section:
>>> stephan.getControl('Cancel').click()
>>> stephan.getControl(name='currentTerm').displayValue = ['2005-2006 / Spring']
>>> stephan.getForm().submit()
>>> stephan.getLink('Worksheets').click()
>>> stephan.getControl(name='hide:list').value = ['Worksheet']
>>> stephan.getControl('Hide').click()
>>> # XXX: Hack to get back to the other term,
>>> # hiding all the worksheets in a gradebook
>>> # makes this impossible, because the Term and Section
>>> # dropdowns are not shown
>>> stephan.getLink('Home').click()
>>> stephan.getLink('Math I -- Math I (1)').click()
>>> stephan.getLink('Gradebook', index=1).click()
We're back to the Sheet1 worksheet of the Math Fall section:
>>> stephan.printQuery('//select[@name="currentTerm"]/option[@selected="selected"]/text()')
2005-2006 / Fall
>>> stephan.printQuery('//select[@name="currentSection"]/option[@selected="selected"]/text()')
Math I - Math I (1)
>>> printGradebook(stephan.contents)
+----------+--------------+
| *Sheet1* | Second Sheet |
+----------+--------------+
+-----------------+-------+-------+---------+---------+
| Name | Total | Ave. | HW1 | Quiz |
+-----------------+-------+-------+---------+---------+
| Paul Carduner | 130.0 | 86.7% | [40___] | [90___] |
| Tom Hoffman | 136.0 | 90.7% | [48___] | [88___] |
| Claudia Richter | 74.0 | 49.3% | [45___] | [29___] |
+-----------------+-------+-------+---------+---------+
If we unhide the worksheet:
>>> # XXX: Hack to unhide the only worksheet in the gradebook
>>> # the Unhide button is not shown when all the worksheets
>>> # have been hidden in a gradebook
>>> stephan.getControl(name='currentTerm').displayValue = ['2005-2006 / Spring']
>>> stephan.getForm().submit()
>>> stephan.getLink('Worksheets').click()
>>> stephan.getLink('Unhide Worksheets').click()
>>> url = stephan.url
>>> stephan.open(url + '?UNHIDE=True&unhide:list=Worksheet')
>>> stephan.getLink('Return to Gradebook').click()
the linked column is shown again:
>>> stephan.getControl(name='currentTerm').displayValue = ['2005-2006 / Fall']
>>> stephan.getForm().submit()
>>> printGradebook(stephan.contents)
+----------+--------------+
| *Sheet1* | Second Sheet |
+----------+--------------+
+-----------------+-------+-------+---------+---------+-------+
| Name | Total | Ave. | HW1 | Quiz | PHYSI |
+-----------------+-------+-------+---------+---------+-------+
| Paul Carduner | 130.0 | 86.7% | [40___] | [90___] | |
| Tom Hoffman | 202.3 | 80.9% | [48___] | [88___] | 66.3 |
| Claudia Richter | 164.5 | 65.8% | [45___] | [29___] | 90.5 |
+-----------------+-------+-------+---------+---------+-------+
|