Changes between Version 6 and Version 7 of TeamRosterPlugin


Ignore:
Timestamp:
Oct 31, 2007, 12:19:20 PM (7 years ago)
Author:
cbalan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TeamRosterPlugin

    v6 v7  
    3838
    3939# Get profile by id(username)
    40 user_profile = UserProfilesSystem(env).get_userProfile( 'cbalan' )
     40user_profile = UserProfilesSystem(env).get_userProfile( "cbalan" )
    4141
    4242# Get active userProfiles
     
    4444
    4545# Search users ( Dummy example: All active developers that have an gmail account )
    46 search_result_list = UserProfilesSystem.search_userProfile( UserProfile( role='developer', email='%gmail.com', enabled=1 ) )
     46search_result_list = UserProfilesSystem.search_userProfile( UserProfile( role="developer", email="%gmail.com", enabled=1 ) )
    4747
    4848# Add user Profile
    49 UserProfilesSystem.add_userProfile(UserProfile(id='jfoo', name='John Foo', email='jfoo@asd.org', role='developer'))
     49UserProfilesSystem.add_userProfile(UserProfile(id="jfoo", name="John Foo", email="jfoo@asd.org", role="developer"))
    5050
    5151# Update
    52 someUserProfile = UserProfilesSystem(env).get_userProfile('jfoo')
    53 someUserProfile.role = 'senior developer'
     52someUserProfile = UserProfilesSystem(env).get_userProfile("jfoo")
     53someUserProfile.role = "senior developer"
    5454someUserProfile.bio = """
    5555Maecenas ut mauris. Morbi congue nunc ut tortor. Pellentesque molestie cursus enim.