Changeset 6604 for main/waeup.sirp/trunk
- Timestamp:
- 14 Aug 2011, 06:47:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r6597 r6604 31 31 [u'myuniversity'] 32 32 33 >>> from zope.component.hooks import setSite 34 >>> setSite(root['myuniversity']) 33 35 34 36 Let's get the default view of a university:: … … 85 87 ...<li class="message">Plugins were updated. See log file for details.</li> 86 88 ... 87 88 89 89 90 We can export a university as XML:: … … 127 128 128 129 >>> browser.getControl("edit", index=0).click() 130 >>> print root['myuniversity']['users']['bob'].roles 131 [] 132 >>> root['myuniversity']['users']['bob'].roles = ['waeup.PortalUser'] 133 >>> print root['myuniversity']['users']['bob'].roles 134 ['waeup.PortalUser'] 129 135 >>> browser.getControl("Save", index=0).click() 130 136 >>> browser.getControl("Save and return", index=0).click()
Note: See TracChangeset for help on using the changeset viewer.