~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-enrol

  • Committer: William Grant
  • Date: 2009-03-25 11:25:11 UTC
  • Revision ID: grantw@unimelb.edu.au-20090325112511-vmrk9h2kmy9dupqo
Replace all uses of .textContent with .nodeValue.

.nodeValue is more correct (we don't actually want to accidentally be
silently clobbering all children), and .textContent is DOM Level 3,
which is like so only 5 years ago, which means IE8 doesn't support it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import os
26
26
import sys
27
27
 
28
 
from ivle.config import Config
29
28
from ivle.database import get_store, Subject, Semester, Offering, User
30
29
 
31
30
def die(error):
40
39
                         % os.path.basename(sys.argv[0])
41
40
    sys.exit()
42
41
 
43
 
store = get_store(Config())
 
42
store = get_store()
44
43
 
45
44
user = User.get_by_login(store, sys.argv[1])
46
45
if user is None: