#NEWLINE# def get_jellyroll_recent_traffic( parser , token ) : #NEWLINE# #INDENT# oftypes = [ ] #NEWLINE# bits = token . split_contents ( ) #NEWLINE# if ( ( len ( bits ) < 4 ) or ( len ( bits ) > 5 ) ) : #NEWLINE# #INDENT# raise template . TemplateSyntaxError ( ( '%r tag takes three arguments' % bits [ 0 ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( bits [ 2 ] != 'as' ) : #NEWLINE# #INDENT# raise template . TemplateSyntaxError ( ( "second argument to %r tag should be 'as'" % bits [ 0 ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( bits ) > 4 ) : #NEWLINE# #INDENT# oftypes = bits [ 4 ] #NEWLINE# #UNINDENT# return JellyrollRecentTrafficNode ( bits [ 1 ] , bits [ 3 ] , oftypes )