#NEWLINE# @ register . filter #NEWLINE# def is_message( value ) : #NEWLINE# #INDENT# services = ( 'googletalk' , 'identica' , 'plurk' , 'twitter' ) #NEWLINE# if ( value [ 'service' ] [ 'id' ] in services ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( value [ 'service' ] [ 'id' ] == 'jaiku' ) : #NEWLINE# #INDENT# return ( value [ 'service' ] [ 'profileUrl' ] . lower ( ) in value [ 'link' ] . lower ( ) ) #NEWLINE# #UNINDENT# if ( value [ 'service' ] [ 'id' ] == 'facebook' ) : #NEWLINE# #INDENT# return ( value [ 'service' ] . get ( 'entryType' , None ) != 'post' ) #NEWLINE# #UNINDENT# if ( value [ 'service' ] [ 'id' ] == 'feed' ) : #NEWLINE# #INDENT# return ( value [ 'service' ] . get ( 'entryType' , None ) != 'post' ) #NEWLINE# #UNINDENT# return ( value [ 'link' ] == ( 'http://friendfeed.com/e/%s' % value [ 'id' ] ) )