<s> """<STR_LIT>""" <EOL> from coffin import template <EOL> from treeio . core . rendering import render_to_string <EOL> from jinja2 import contextfunction , Markup <EOL> from django . template import RequestContext <EOL> from treeio . identities . models import ContactField <EOL> register = template . Library ( ) <EOL> @ contextfunction <EOL> def identities_contact_list ( context , contacts , skip_group = '<STR_LIT>' ) : <EOL> "<STR_LIT>" <EOL> request = context [ '<STR_LIT>' ] <EOL> response_format = '<STR_LIT:html>' <EOL> if '<STR_LIT>' in context : <EOL> response_format = context [ '<STR_LIT>' ] <EOL> contact_fields = ContactField . objects . all ( ) . filter ( trash = False ) <EOL> return Markup ( render_to_string ( '<STR_LIT>' , <EOL> { '<STR_LIT>' : contacts , '<STR_LIT>' : skip_group , <EOL> '<STR_LIT>' : contact_fields } , <EOL> context_instance = RequestContext ( request ) , <EOL> response_format = response_format ) ) <EOL> register . object ( identities_contact_list ) <EOL> @ contextfunction <EOL> def identities_user_list ( context , users , skip_group = False ) : <EOL> "<STR_LIT>" <EOL> request = context [ '<STR_LIT>' ] <EOL> response_format = '<STR_LIT:html>' <EOL> if '<STR_LIT>' in context : <EOL> response_format = context [ '<STR_LIT>' ] <EOL> return Markup ( render_to_string ( '<STR_LIT>' , <EOL> { '<STR_LIT>' : users , '<STR_LIT>' : skip_group } , <EOL> context_instance = RequestContext ( request ) , <EOL> response_format = response_format ) ) <EOL> register . object ( identities_user_list ) <EOL> @ contextfunction <EOL> def identities_group_list ( context , groups , skip_group = False ) : <EOL> "<STR_LIT>" <EOL> request = context [ '<STR_LIT>' ] <EOL> response_format = '<STR_LIT:html>' <EOL> if '<STR_LIT>' in context : <EOL> response_format = context [ '<STR_LIT>' ] <EOL> return Markup ( render_to_string ( '<STR_LIT>' , <EOL> { '<STR_LIT>' : groups , <EOL> '<STR_LIT>' : skip_group } , <EOL> context_instance = RequestContext ( request ) , <EOL> response_format = response_format ) ) <EOL> register . object ( identities_group_list ) </s>
