"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "linotpd/src/linotp/lib/policy/processing.py" between
LinOTP-release-2.12.tar.gz and LinOTP-release-2.12.1.tar.gz

About: LinOTP is a flexible and versatile OTP-platform for strong user authentication (two-factor authentication with one time passwords).

processing.py  (LinOTP-release-2.12):processing.py  (LinOTP-release-2.12.1)
skipping to change at line 285 skipping to change at line 285
# #
# add the special filter for activ or inactive policies # add the special filter for activ or inactive policies
if only_active: if only_active:
policy_elve.filter_for_active(state=True) policy_elve.filter_for_active(state=True)
# #
# finally we apply the filter # finally we apply the filter
new_pols = policy_elve.evaluate(multiple=True) new_pols = policy_elve.evaluate()
return new_pols return new_pols
def new_getPolicy(param, only_active=True): def new_getPolicy(param, only_active=True):
''' '''
Function to retrieve the list of policies. Function to retrieve the list of policies.
attributes: attributes:
- name: (optional) will only return the policy with the name - name: (optional) will only return the policy with the name
skipping to change at line 432 skipping to change at line 432
policy_eval.filter_for_time() policy_eval.filter_for_time()
if active_only: if active_only:
policy_eval.filter_for_active(state=True) policy_eval.filter_for_active(state=True)
if userObj: if userObj:
policy_eval.filter_for_user(userObj) policy_eval.filter_for_user(userObj)
elif user: elif user:
policy_eval.filter_for_user(user) policy_eval.filter_for_user(user)
policies = policy_eval.evaluate(multiple=False) policies = policy_eval.evaluate()
return policies return policies
def new_has_client_policy(client, scope=None, action=None, realm=None, def new_has_client_policy(client, scope=None, action=None, realm=None,
user=None, find_resolver=True, userObj=None, user=None, find_resolver=True, userObj=None,
active_only=True): active_only=True):
''' '''
This function returns the dictionary of policies for the given client. This function returns the dictionary of policies for the given client.
1. First it searches for all policies matching (scope, action, realm) and 1. First it searches for all policies matching (scope, action, realm) and
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)