#NEWLINE# @ property #NEWLINE# def data( self ) : #NEWLINE# #INDENT# def render( f ) : #NEWLINE# #INDENT# title = { #NEWLINE# #INDENT# 'public' : _ ( 'Public Facility' ) , #NEWLINE# 'private' : _ ( 'Private Facility' ) , #NEWLINE# 'transport' : _ ( 'Transport' ) , #NEWLINE# #UNINDENT# } [ f . fields_without_attributes [ 'type' ] ] #NEWLINE# return format_html ( ( '%s: %s<br /># %s' % ( title , f . fields_without_attributes . get ( 'name' , '' ) , f . fields_without_attributes . get ( 'number' , '' ) ) ) ) #NEWLINE# #UNINDENT# fixtures = FixtureDataItem . by_group ( self . group ) #NEWLINE# _data = [ ] #NEWLINE# self . _headers = [ ] #NEWLINE# for f in fixtures : #NEWLINE# #INDENT# _data . append ( render ( f ) ) #NEWLINE# self . _headers . append ( ' ' ) #NEWLINE# #UNINDENT# if ( not _data ) : #NEWLINE# #INDENT# _data = [ ( 'No referrals for %s' % self . group . name ) ] #NEWLINE# self . _headers = [ ' ' ] #NEWLINE# #UNINDENT# return _data