Excercise Sheet 4

Reviews
Shared by: coryelJudie
Stats
views:
0
rating:
not rated
reviews:
0
posted:
8/18/2009
language:
English
pages:
0
Excercise Sheet 4.0 1. Add a user in plone.          Duration: 1 hour To Add a user navigate to the following page Preferences-> Zope Management Interface -> acl_user(Group-aware User Folder ) Click Source User Click Add a user Provide user Id and password and click add user Navigate back to acl_user Click portal_role_manager Click on ? infront of member Search for the user id to be assigned role Select the user in available box and transfer that to the active box by clicking on the -> 2. Add a group in plone.  Navigate to acl_users as described in ex-1 above.  Click source_group  Click add a group  Provide the credentials and click add group 3. Assigning Groups to User  Navigate to acl_user as described in ex-1 above.  Click Source_group  Click ?  Search the userSelect the user in available box and transfer that to the active box by clicking on the -> 4. Create a csv file.( For Batch User Creation)  Open Microsoft excel  Create a excel sheet with the following columns i. Username ii. Name iii. Designation  Save that sheet as .csv format Please Refer a user.csv file in ezpphelp site. Alternatively you can type the following fields in a notepad separated by a comma(,) and the records separated by a line break and save that file as user.csv ( or the name you want but extension should be .csv) 5. Create add_user_page  Navigate to ZMI->portal_skin->customs  Add a DTML Document with id as add_user_page and add the following code.
6. Create create_user python script  Navigate to ZMI -> portal_skin ->Customs  Add a python script with id as create_user and add the following code import string file = context.REQUEST.form['file_attachment'] out=[] for line in file.readlines(): #line = string.replace(line,'\"','') item = map(string.strip, line.split(',')) id=item[0] password=id #name=item[1] email="" if(email==""): email="youremailID@indiapost.gov.in" try: pr.addMember(id = id, password = password, roles = ["Member"], properties = {'username' :id,'email':email}) out.append("Added user %s \n"%(id)) except ValueError, msg: out.append("Skipped %s, reason: %s\n"%(id, msg)) return "\n".join(out)  Please note the indentation of python script must be accurate.

Related docs
Abs Excercise
Views: 39  |  Downloads: 0
excercise guidelines
Views: 76  |  Downloads: 1
Tricep Excercise
Views: 22  |  Downloads: 5
Six Sigma - Card Drop Excercise
Views: 0  |  Downloads: 0
CTCAC Income Calculation Excercise
Views: 0  |  Downloads: 0
HOW TO EXCERCISE YOUR VOTING RIGHTS
Views: 12  |  Downloads: 0
Uploaded-Excercise with Solutions
Views: 10  |  Downloads: 0
team building excercise
Views: 211  |  Downloads: 20
excercise
Views: 21  |  Downloads: 0
review excercise on angles with solutions
Views: 41  |  Downloads: 0
premium docs
Other docs by coryelJudie
NOTICE OF DISMISSAL
Views: 348  |  Downloads: 8
99 Flow Chart
Views: 297  |  Downloads: 6
Boys_Night_Out_Permission_Slip1
Views: 154  |  Downloads: 1
National Industrial Recovery Act Info
Views: 291  |  Downloads: 3
Sample Executive Summary Net Calendar
Views: 222  |  Downloads: 0
Laughter in Literature
Views: 394  |  Downloads: 1
Sample Executive Summary Fabrica
Views: 989  |  Downloads: 10
Three Summer Salads
Views: 163  |  Downloads: 0
Transcript of Brown v Board of Education
Views: 267  |  Downloads: 1
Sale of semiconductor manufacturing business
Views: 251  |  Downloads: 4
Java Interface
Views: 1243  |  Downloads: 8
Application_Form_CL3_Short_Program_20070807
Views: 134  |  Downloads: 0
Homestead Act info
Views: 236  |  Downloads: 0
samplepressreleaseAward
Views: 190  |  Downloads: 3