Ignore:
Timestamp:
31 Jul 2009, 13:48:00 (15 years ago)
Author:
uli
Message:

Update tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/browser.txt

    r4480 r4505  
    255255  ...<td><a href="http://localhost/myuniversity/faculties/TF/TD">TD</a></td><td>Department of My renamed dept</td>
    256256  ...
     257
     258
     259Courses
     260=======
     261
     262Once we have a department, we can add courses.
     263
     264Adding courses
     265--------------
     266
     267Courses are stored in :class:`ICourseContainer` instances with their
     268code as key. CourseContainers are normally availabe as `course`
     269attribute of :class:`waeup.university.department.Department`
     270instances.
     271
     272To ease the life of users we do not require to browse the
     273coursecontainers (which have a rather flat user interface), but
     274provide adding of courses in department views.
     275
     276Each department provides a ``Add course`` action button near top.
     277
     278Departments provide an add-form to add new courses:
     279
     280  >>> dept_url = 'http://localhost/myuniversity/faculties/TF/TD'
     281  >>> browser.open(dept_url + '/addcourse')
     282  >>> print browser.contents
     283  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     284  ...<span class="required">*</span><span>Title of course</span>
     285  ...
     286
     287We fill in a name for our new course:
     288
     289  >>> ctrl = browser.getControl(name='form.title')
     290  >>> ctrl.value = 'My Course 1'
     291
     292
    257293
    258294
Note: See TracChangeset for help on using the changeset viewer.