def do_get_messages(parser, token):
 tags = parse_ttag(token, ['for', 'as'])
 if (len(tags) != 3):
  raise template.TemplateSyntaxError, ('%r tag has invalid arguments' % tags['tag_name'])
 return GetMessages(object_name=tags['for'], varname=tags['as'])

def do_get_messages ( parser , token ) : tags = parse_ttag ( token , [ 'for' , 'as' ] ) if ( len ( tags ) != 3 ) : raise template . TemplateSyntaxError , ( '%r tag has invalid arguments' % tags [ 'tag_name' ] ) return GetMessages ( object_name = tags [ 'for' ] , varname = tags [ 'as' ] )
get messages for an object .