Back to index

plone3  3.1.7
Classes | Functions | Variables
plone.app.workflow.browser.sharing Namespace Reference

Classes

class  SharingView

Functions

def merge_search_results

Variables

string AUTH_GROUP = 'AuthenticatedUsers'
tuple STICKY = (AUTH_GROUP,)

Function Documentation

Merge member search results.

Based on PlonePAS.browser.search.PASSearchView.merge.

Definition at line 24 of file sharing.py.

00024 
00025 def merge_search_results(results, key):
00026     """Merge member search results.
00027 
00028     Based on PlonePAS.browser.search.PASSearchView.merge.
00029     """
00030     output={}
00031     for entry in results:
00032         id=entry[key]
00033         if id not in output:
00034             output[id]=entry.copy()
00035         else:
00036             buf=entry.copy()
00037             buf.update(output[id])
00038             output[id]=buf
00039 
00040     return output.values()

Here is the caller graph for this function:


Variable Documentation

string plone.app.workflow.browser.sharing.AUTH_GROUP = 'AuthenticatedUsers'

Definition at line 21 of file sharing.py.

Definition at line 22 of file sharing.py.