def get_admin_app_list(parser, token):
 tokens = token.contents.split()
 if (len(tokens) < 3):
  raise template.TemplateSyntaxError, ("'%s' tag requires two arguments" % tokens[0])
 if (tokens[1] != 'as'):
  raise template.TemplateSyntaxError, ("First argument to '%s' tag must be 'as'" % tokens[0])
 return AdminApplistNode(tokens[2])

def get_admin_app_list ( parser , token ) : tokens = token . contents . split ( ) if ( len ( tokens ) < 3 ) : raise template . TemplateSyntaxError , ( "'%s' tag requires two arguments" % tokens [ 0 ] ) if ( tokens [ 1 ] != 'as' ) : raise template . TemplateSyntaxError , ( "First argument to '%s' tag must be 'as'" % tokens [ 0 ] ) return AdminApplistNode ( tokens [ 2 ] )
returns a list of installed applications and models for which the current user has at least one permission .