Changeset 3890
- Timestamp:
- 30 Jan 2009, 16:00:26 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/browser.txt
r3849 r3890 54 54 ========= 55 55 56 We can add faculties, by calling and submitting an add form of an 57 university. The add form can be retrieved by calling the 58 ``addfaculty`` view of an university::56 Faculties are stored in a special container of `IUniversity` 57 instances. The container is called ``faculties`` and provides an 58 add-form to add new faculties:: 59 59 60 >>> browser.open('http://localhost/myuniversity/ addfaculty')60 >>> browser.open('http://localhost/myuniversity/faculties/add') 61 61 >>> print browser.contents 62 < html>...62 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 63 63 ...<span class="required">*</span><span>Name of Faculty</span> 64 64 ... … … 71 71 Finally we click on 'Add Faculty' to add the new thing:: 72 72 73 >>> browser.getControl('Add Faculty').click() 74 >>> #print browser.contents 73 >>> browser.getControl('Add faculty').click() 75 74 76 75 We can view a faculty by browsing a URL like this:: 77 76 78 >>> browser.open('http://localhost/myuniversity/ TestFac')77 >>> browser.open('http://localhost/myuniversity/faculties/testfac') 79 78 80 79 Afterwards, the faculty should be visible: … … 82 81 >>> browser.open('http://localhost/myuniversity/') 83 82 >>> print browser.contents 84 < html...83 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 85 84 ...<h2>Your faculties:</h2> 86 ...<a href="http://localhost/myuniversity/ TestFac">TestFac</a>85 ...<a href="http://localhost/myuniversity/faculties/testfac">TestFac</a> 87 86 ... 88 87
Note: See TracChangeset for help on using the changeset viewer.