Changes between Version 4 and Version 5 of UserManagerPlugin


Ignore:
Timestamp:
Jan 29, 2008, 1:54:47 PM (7 years ago)
Author:
cbalan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserManagerPlugin

    v4 v5  
    7676# Get active users
    7777team = UserManager(env).get_active_users()
     78for user in team:
     79    print user.username
     80    print user['email']
     81    print user['bio']
    7882
    7983# Search users ( Dummy example: All active developers that have an gmail account )
    8084search_result_list = UserManager(env).search_users(User( role="developer", email="%gmail.com"))
     85for user in search_result_list:
     86    print user.username
     87    print user['role']
    8188
    8289# Create new user
     
    103110
    104111}}}
     112=== Macro ===
     113{{{
     114[[UserProfilesList]]                                  # Without arguments returns current active user profiles
     115[[UserProfilesList(role=developer)]]                  # Returns all userProfiles with role='developer'
     116[[UserProfilesList(NOT_role=developer)]]              # Returns all userProfiles with NOT role=developer
     117[[UserProfilesList(name=%someName%)]]                 # Returns all userProfiles with name like 'someName'
     118[[UserProfilesList({id=cbalan},{role=%arh%})]]        # Returns cbalan's profile and user profiles with role='%arh%'
     119[[UserProfilesList(|class=someCSS_Class, style=border:1px solid green;padding:12px)]] # Adds style and class attributes to box layout     
     120}}}
     121
    105122== Recent Changes ==
    106123