@register.tag('get_flags')
def do_get_flags(parser, token):
 tags = parse_ttag(token, ['for', 'by', 'type', 'as'])
 if (len(tags) != 5):
  raise template.TemplateSyntaxError, ('%r tag has invalid arguments' % tags['tag_name'])
 return GetFlags(object_name=tags['for'], user=tags['by'], slug=tags['type'], varname=tags['as'])

@ register . tag ( 'get_flags' ) def do_get_flags ( parser , token ) : tags = parse_ttag ( token , [ 'for' , 'by' , 'type' , 'as' ] ) if ( len ( tags ) != 5 ) : raise template . TemplateSyntaxError , ( '%r tag has invalid arguments' % tags [ 'tag_name' ] ) return GetFlags ( object_name = tags [ 'for' ] , user = tags [ 'by' ] , slug = tags [ 'type' ] , varname = tags [ 'as' ] )
get flags for an object .