sitetree/admin.py
def get_model_url_name(model_nfo, page, with_namespace=False):
    """Returns a URL for a given Tree admin page type."""
    prefix = ''
    if with_namespace:
        prefix = 'admin:'
    return ('%s%s_%s' % (prefix, '%s_%s' % model_nfo, page)).lower()
def get_model_url_name(model_nfo, page, with_namespace=False):
    prefix = ''
    if with_namespace:
        prefix = 'admin:'
    return ('%s%s_%s' % (prefix, '%s_%s' % model_nfo, page)).lower()
def get_model_url_name ( model_nfo , page , with_namespace = False ) : prefix = '' if with_namespace : prefix = 'admin:' return ( '%s%s_%s' % ( prefix , '%s_%s' % model_nfo , page ) ) . lower ( )
Returns a URL for a given Tree admin page type.
Returns a URL for a given Tree admin page type .