- Timestamp:
- 20 Sep 2012, 08:49:37 (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-zc-async/src/waeup/kofa/userscontainer.txt
r8343 r9209 48 48 '{SSHA}...' 49 49 50 We can export user accounts: 51 52 >>> from waeup.kofa.userscontainer import UsersExporter 53 >>> import os 54 >>> import tempfile 55 >>> 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 result 62 True 63 >>> '{SSHA}' in result 64 True 65 50 66 We can delete users: 51 67
Note: See TracChangeset for help on using the changeset viewer.