Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Dict If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Return NameLoad If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad CompareIsNot NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareGt Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr orelse Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad ListLoad body Expr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListComp Call NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list decorator_list
N/A __future__ unicode_literals django.template.context RequestContext django.template.loader render_to_string django.utils six django.utils.six.moves.urllib.parse urlencode reviewboard.site.urlresolvers local_site_reverse BaseSidebarItem N/A object N/A N/A Base class for an item on the sidebar of a datagrid.

    Items can optionally have labels and counts associated with them.
    Depending on the subclass, it may also be able to nest items.

    They may also have custom templates, for more advanced rendering.

    See SidebarItem and BaseSidebarSection for the common types of sidebar
    items.
     N/A template_name None N/A label None N/A icon_name None N/A view_id None N/A view_args None N/A css_classes None __init__ N/A N/A self sidebar datagrid N/A N/A N/A Initialize the sidebar item. N/A N/A self sidebar sidebar N/A N/A self datagrid datagrid N/A get_url N/A N/A self N/A N/A N/A Return the URL used when clicking the item.

        By default, this builds a URL to the parent datagrid using
        the ``view_id`` and ``view_args`` attributes. If they are not
        set, then the item won't be clickable.
         N/A N/A N/A N/A self view_id N/A N/A self view_args N/A N/A None N/A N/A self view_args N/A N/A url_args N/A N/A N/A self view_args copy N/A N/A url_args N/A N/A N/A self view_id N/A N/A N/A url_args N/A view N/A self view_id N/A N/A %s?%s N/A N/A N/A N/A self datagrid request path N/A urlencode url_args N/A get_count N/A N/A self N/A N/A N/A Return the count shown for this item.

        By default, this shows nothing. Subclasses can override to display
        a count.
         N/A None N/A is_visible N/A N/A self N/A N/A N/A Return whether the item is visible.

        By default, an item is visible. Subclasses can override this to
        control visibility.
         N/A True N/A is_active N/A N/A self N/A N/A N/A Return whether the item is currently active.

        The item will be active if the current page matches the URL
        associated with the item.
         N/A N/A N/A self view_id None N/A N/A False N/A request N/A N/A self datagrid request N/A view_id N/A N/A N/A request GET get view N/A N/A self sidebar default_view_id N/A N/A view_id N/A self view_id N/A N/A False N/A N/A self view_args N/A N/A N/A key value N/A N/A six iteritems N/A self view_args N/A N/A N/A N/A N/A N/A request GET get key value N/A N/A False N/A True N/A render N/A N/A self N/A N/A N/A Render the item. N/A count N/A N/A self get_count N/A context N/A datagrid label icon_name view_id view_args count has_count url active css_classes N/A self datagrid N/A self label N/A N/A self icon_name N/A self view_id N/A self view_args count N/A count None N/A N/A self get_url N/A N/A self is_active N/A N/A self css_classes N/A N/A N/A N/A context update N/A N/A self get_extra_context N/A N/A render_to_string N/A self template_name N/A RequestContext N/A N/A self datagrid request context N/A get_extra_context N/A N/A self N/A N/A N/A Return extra context for the render. N/A N/A N/A N/A BaseSidebarSection N/A BaseSidebarItem N/A N/A Base class for a section of items on the sidebar.

    Subclasses can override this to define a section and provide items
    listed in the section.

    Sections can optionally be clickable and display a count.
     N/A template_name datagrids/sidebar_section.html __init__ N/A N/A self N/A args kwargs N/A N/A Initialize the section. N/A N/A N/A N/A super BaseSidebarSection self __init__ args kwargs N/A N/A self items N/A list N/A N/A self get_items N/A get_items N/A N/A self N/A N/A N/A Return the items displayed in this section.

        Subclasses must override this and return or yield the items
        to be displayed.
         N/A NotImplementedError N/A is_visible N/A N/A self N/A N/A N/A Return whether the section is visible.

        By default, a section is visible if it has any item classes
        registered.
         N/A N/A N/A len N/A self items 0 N/A get_extra_context N/A N/A self N/A N/A N/A Return extra context for the section. N/A N/A items N/A self items N/A N/A SidebarNavItem N/A BaseSidebarItem N/A N/A A typical navigation link item on the sidebar.

    This is the standard type of item added to sections on a sidebar.
    It will automatically generate a link to the dashboard view matching
    ``view_id`` and ``view_args``, and display the provided count.
     N/A template_name datagrids/sidebar_nav_item.html __init__ N/A N/A self section label icon_name view_id view_args count url url_name css_classes N/A None None None None None None None N/A N/A Initialize the item. N/A N/A N/A N/A super SidebarNavItem self __init__ N/A section sidebar N/A section datagrid N/A N/A self label label N/A N/A self icon_name icon_name N/A N/A self view_id view_id N/A N/A self view_args view_args N/A N/A self count count N/A N/A self css_classes css_classes N/A N/A self url url N/A N/A self url_name url_name N/A get_url N/A N/A self N/A N/A N/A Return the URL for the item. N/A N/A self url N/A N/A N/A self url N/A N/A N/A self url_name N/A N/A N/A local_site_reverse N/A self url_name request N/A N/A self datagrid request N/A N/A N/A N/A N/A super SidebarNavItem self get_url N/A get_count N/A N/A self N/A N/A N/A Return the count provided in the constructor. N/A N/A self count N/A N/A Sidebar N/A object N/A N/A Provides a sidebar for a datagrid.

    A sidebar can have several item classes added to it of various types.
    These will be instantiated and rendered when rendering the datagrid.
     __init__ N/A N/A self item_classes default_view_id css_classes N/A None N/A N/A N/A Initialize the sidebar. N/A N/A self _item_classes N/A N/A N/A self css_classes css_classes N/A N/A self default_view_id default_view_id N/A item_cls item_classes N/A N/A N/A N/A self add_item item_cls N/A add_item N/A N/A self item_cls N/A N/A N/A Add an item class to the sidebar. N/A N/A N/A N/A self _item_classes append item_cls N/A remove_item N/A N/A self item_cls N/A N/A N/A Remove an item class from the sidebar. N/A N/A N/A N/A self _item_classes remove item_cls N/A get_items N/A N/A self datagrid N/A N/A N/A Instantiate and returns all items on the sidebar. N/A N/A N/A item_cls self datagrid N/A item_cls N/A self _item_classes N/A N/A DataGridSidebarMixin N/A object N/A N/A A mixin for datagrids using a sidebar.

    This is meant to be used along with Sidebar. It will initialize the
    sidebar, providing instances of all the items for the template.
     load_extra_state N/A N/A self N/A args kwargs N/A N/A Compute any extra state for the sidebar. N/A result N/A N/A N/A super DataGridSidebarMixin self load_extra_state args kwargs N/A N/A self sidebar_items N/A N/A N/A self sidebar get_items self N/A result N/A N/A