Changeset 4505 for waeup/branches/ulif-rewrite/src
- Timestamp:
- 31 Jul 2009, 13:48:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/browser.txt
r4480 r4505 255 255 ...<td><a href="http://localhost/myuniversity/faculties/TF/TD">TD</a></td><td>Department of My renamed dept</td> 256 256 ... 257 258 259 Courses 260 ======= 261 262 Once we have a department, we can add courses. 263 264 Adding courses 265 -------------- 266 267 Courses are stored in :class:`ICourseContainer` instances with their 268 code as key. CourseContainers are normally availabe as `course` 269 attribute of :class:`waeup.university.department.Department` 270 instances. 271 272 To ease the life of users we do not require to browse the 273 coursecontainers (which have a rather flat user interface), but 274 provide adding of courses in department views. 275 276 Each department provides a ``Add course`` action button near top. 277 278 Departments 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 287 We fill in a name for our new course: 288 289 >>> ctrl = browser.getControl(name='form.title') 290 >>> ctrl.value = 'My Course 1' 291 292 257 293 258 294
Note: See TracChangeset for help on using the changeset viewer.