- Timestamp:
- 21 Sep 2012, 08:19:35 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-zc-async
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-zc-async
- Property svn:mergeinfo changed
/main/waeup.kofa/branches/uli-async-update removed /main/waeup.kofa/branches/uli-autoinclude-less removed /main/waeup.kofa/trunk removed
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/userscontainer.txt
r9209 r9211 48 48 '{SSHA}...' 49 49 50 We can export user accounts:51 52 >>> from waeup.kofa.userscontainer import UsersExporter53 >>> import os54 >>> import tempfile55 >>> workdir = tempfile.mkdtemp()56 >>> outfile = os.path.join(workdir, 'myoutput.csv')57 >>> exporter = UsersExporter()58 >>> site = {'users':myusers}59 >>> exporter.export_all(site, outfile)60 >>> result = open(outfile, 'rb').read()61 >>> 'name,title,public_name,description,email,phone,roles,local_roles,password' in result62 True63 >>> '{SSHA}' in result64 True65 66 50 We can delete users: 67 51
Note: See TracChangeset for help on using the changeset viewer.