Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return BinOpFloorDiv Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad body For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body For NameStore Call NameLoad NameLoad body Expr Yield NameLoad Expr Yield NameLoad decorator_list Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body If CompareIs NameLoad NameLoad body Raise Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num CompareNotIn NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr If NameLoad body AugAssignAdd NameStore BinOpAdd Str Call NameLoad NameLoad Return Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num Num NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore Num If CompareLt NameLoad Num body Assign NameStore Num TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore NameLoad If CompareLt NameLoad Num body Assign NameStore NameLoad Assign NameStore CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str If NameLoad body Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Str orelse Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad Assign NameStore Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareGt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub Call AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad NameLoad Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword Num If CompareGtE NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword BinOpSub NameLoad Num If CompareGt NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword BinOpAdd NameLoad Num If BoolOpAnd NameLoad CompareLt NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad If BoolOpOr NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword UnaryOpNot NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpSub NameLoad Num 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 Call NameLoad BoolOpOr NameLoad 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 NameParam NameParam defaults Num Num body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Break Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore ListComp SubscriptLoad SubscriptLoad NameLoad Index Str Index Str comprehension NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareEq NameLoad NameLoad body Return NameLoad If CompareIs NameLoad NameLoad body Delete AttributeDel NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body If CompareIs NameLoad NameLoad body Raise Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad Str attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore BinOpAdd NameLoad ListLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults TupleLoad NameLoad body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body If Call NameLoad NameLoad body If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Continue If NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad Str For NameStore NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpOr CompareIs NameLoad NameLoad CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str For NameStore NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIsNot NameLoad NameLoad body Return Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return Call NameLoad NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults TupleLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryFinally body TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad finalbody Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BoolOpOr NameLoad TupleLoad Str Str Str If NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Num finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A calendar N/A itertools N/A json N/A math N/A os N/A pstats N/A tempfile N/A types ZODB.interfaces IBroken N/A N/A N/A cProfile _profile N/A N/A N/A ImportError N/A N/A profile _profile zope.interface providedBy zope.interface.declarations Declaration pyramid.location lineage pyramid.threadlocal get_current_registry pyramid.i18n TranslationStringFactory pyramid.encode urlencode interfaces IFolder interfaces IService _compat parse_qsl urlsplit urlunsplit STRING_TYPES INT_TYPES N/A _ N/A TranslationStringFactory substanced N/A _marker N/A object JsonDict N/A dict N/A __str__ N/A N/A self N/A N/A N/A N/A N/A json dumps self N/A N/A coarse_datetime_repr N/A N/A date N/A N/A N/A Convert a datetime to an integer with 100 second granularity.

    The granularity reduces the number of index entries in a fieldindex when
    it's used in an indexview to convert a datetime value to an integer.
     N/A timetime N/A N/A calendar timegm N/A N/A date timetuple N/A N/A N/A int timetime 100 N/A postorder N/A N/A startnode N/A N/A N/A  Walks over nodes in a folder recursively. Yields deepest nodes first. visit N/A N/A node N/A N/A N/A N/A is_folder node N/A N/A N/A name child N/A sorted N/A N/A node items N/A N/A result N/A visit child N/A N/A N/A result N/A N/A node N/A N/A N/A visit startnode N/A get_oid N/A N/A resource default N/A _marker N/A N/A  Return the object identifer of ``resource``.  If ``resource`` has no
    object identifier, raise an AttributeError exception unless ``default`` was
    passed a value; if ``default`` was passed a value, return the default in
    that case. N/A N/A N/A N/A resource __oid__ N/A N/A N/A AttributeError N/A N/A N/A default _marker N/A N/A N/A default N/A N/A oid_of get_oid set_oid N/A N/A resource oid N/A N/A N/A  Set the object id of the resource to oid. N/A N/A resource __oid__ oid N/A merge_url_qs N/A N/A url N/A kw N/A N/A  Merge the query string elements of a URL with the ones in ``kw``.
    If any query string element exists in ``url`` that also exists in
    ``kw``, replace it. N/A segments N/A urlsplit url N/A extra_qs N/A N/A k v N/A N/A k v N/A parse_qsl N/A segments query keep_blank_values 1 N/A k kw N/A qs N/A urlencode N/A sorted N/A N/A kw items N/A extra_qs N/A N/A qs N/A & N/A urlencode extra_qs N/A N/A urlunsplit N/A N/A segments scheme N/A segments netloc N/A segments path qs N/A segments fragment N/A Batch N/A object N/A N/A 
    Given a sequence named ``seq``, and a Pyramid request, return an
    object with the following attributes:

    ``items``

      A list representing a slice of ``seq``.  It will contain the number of
      elements in ``request.params['batch_size']`` or the ``default_size``
      number if such a key does not exist in request.params or the key is
      invalid.  The slice will begin at ``request.params['batch_num']`` or
      zero if such a key does not exist in ``request.params`` or the
      ``batch_num`` key could not successfully be converted to a positive
      integer.

      This value can be iterated over via the ``__iter__`` of the batch
      object.

    ``size``

      The value obtained from ``request.params['batch_size']`` or
      ``default_size`` if no ``batch_size`` parameter exists in
      ``request.params`` or the ``batch_size`` parameter could not
      successfully be converted to a positive interger.

    ``num``

      The value obtained from ``request.params['batch_num']`` or ``0`` if no
      ``batch_num`` parameter exists in ``request.params`` or if the
      ``batch_num`` parameter could not successfully be converted to a
      positive integer.  Batch numbers are indexed from zero, so batch ``0``
      is the first batch, batch ``1`` the second, and so forth.

    ``length``

      This is length of the current batch.  It is usually equal to ``size``
      but may be different in the very last batch.  For example, if the
      ``seq`` is ``[1,2,3,4]`` and the batch size is ``3``, the first batch's
      ``length`` will be ``3`` because the batch content will be ``[1,2,3]``;
      but the second and final batch's ``length`` will be ``1`` because the
      batch content will be ``[4]``.

    ``last``

      The batch number computed from the sequence length of the last batch
      (indexed from zero).

    ``first_url``

      The URL of the first batch.  This will be a URL with ``batch_num`` and
      ``batch_size`` in its query string.  The base URL will be taken from
      the ``url`` value passed to this function.  If a ``url`` value is not
      passed to this function, the URL will be taken from ``request.url``.
      This value will be ``None`` if the current ``batch_num`` is 0.
    
    ``prev_url``

      The URL of the previous batch.  This will be a URL with ``batch_num``
      and ``batch_size`` in its query string.  The base URL will be taken
      from the ``url`` value passed to this function.  If a ``url`` value is
      not passed to this function, the URL will be taken from
      ``request.url``.  This value will be ``None`` if there is no previous
      batch.

    ``next_url``

      The URL of the next batch.  This will be a URL with ``batch_num`` and
      ``batch_size`` in its query string.  The base URL will be taken from
      the ``url`` value passed to this function.  If a ``url`` value is not
      passed to this function, the URL will be taken from ``request.url``.
      This value will be ``None`` if there is no next batch.
        
    ``last_url``

      The URL of the next batch.  This will be a URL with ``batch_num`` and
      ``batch_size`` in its query string.  The base URL will be taken from
      the ``url`` value passed to this function.  If a ``url`` value is not
      passed to this function, the URL will be taken from ``request.url``.
      This value will be ``None`` if there is no next batch.

    ``required``
    
      ``True`` if either ``next_url`` or ``prev_url`` are ``True`` (meaning
      batching is required).

    ``multicolumn``

      ``True`` if the current view should be rendered in multiple columns.

    ``toggle_url``

      The URL to be used for the multicolumn/single column toggle button. The
      ``batch_size``, ``batch_num``, and ``multicolumn`` parameters are
      converted to their multicolumn or single column equivalents. If a user
      is viewing items 40-80 in multiple columns, the toggle will switch to
      items 40-50 in a single column. If a user is viewing items 50-60 in a
      single column, the toggle will switch to items 40-80 in multiple columns.

    ``toggle_text``

      The text to display on the multi-column/single column toggle.

    ``make_columns``

      A method to split ``items`` into a nested list representing columns.
    
    ``seqlen``

      This is total length of the sequence (across all batches).
      
    ``startitem``

      The item number that starts this batch (indexed from zero).

    ``enditem``

      The item number that ends this batch (indexed from zero).
      
     __init__ N/A N/A self seq request url default_size toggle_size seqlen N/A None 10 40 None N/A N/A N/A url None N/A N/A url N/A request url N/A N/A N/A num N/A int N/A N/A N/A request params get batch_num 0 N/A N/A N/A N/A TypeError ValueError N/A N/A num 0 N/A N/A num 0 N/A N/A num 0 N/A N/A N/A size N/A int N/A N/A N/A request params get batch_size default_size N/A N/A N/A N/A TypeError ValueError N/A N/A size default_size N/A N/A size 1 N/A N/A size default_size N/A multicolumn N/A N/A N/A N/A request params get multicolumn True N/A multicolumn N/A N/A toggle_num N/A N/A size num default_size N/A toggle_size default_size N/A toggle_text Single column N/A N/A toggle_num N/A N/A size num toggle_size N/A toggle_text Multi-column N/A N/A seqlen None N/A N/A seqlen N/A len seq N/A start N/A num size N/A end N/A start size N/A N/A end seqlen N/A N/A end seqlen N/A items N/A list N/A N/A itertools islice seq start end N/A length N/A len items N/A last N/A int N/A N/A N/A math ceil N/A seqlen N/A float size 1 N/A first_url None N/A prev_url None N/A next_url None N/A last_url None N/A toggle_url None N/A num N/A N/A first_url N/A merge_url_qs url batch_size size batch_num 0 N/A N/A start size N/A N/A prev_url N/A merge_url_qs url batch_size size batch_num N/A num 1 N/A N/A seqlen end N/A N/A next_url N/A merge_url_qs url batch_size size batch_num N/A num 1 N/A N/A size N/A num last N/A N/A last_url N/A merge_url_qs url batch_size size batch_num last N/A N/A prev_url next_url N/A N/A toggle_url N/A merge_url_qs url batch_size toggle_size batch_num toggle_num multicolumn N/A multicolumn N/A N/A self startitem start N/A N/A self enditem N/A end 1 N/A N/A self last last N/A N/A self seqlen seqlen N/A N/A self items items N/A N/A self num num N/A N/A self size size N/A N/A self length length N/A N/A self required N/A bool N/A prev_url next_url N/A N/A self multicolumn multicolumn N/A N/A self toggle_url toggle_url N/A N/A self toggle_text toggle_text N/A N/A self first_url first_url N/A N/A self prev_url prev_url N/A N/A self next_url next_url N/A N/A self last_url last_url N/A make_columns N/A N/A self column_size num_columns N/A 10 4 N/A N/A  Break ``self.items`` into a nested list representing columns. N/A columns N/A N/A i N/A range num_columns N/A N/A start N/A i column_size N/A end N/A start column_size N/A part N/A N/A self items N/A start end N/A N/A N/A columns append part N/A columns N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A self items N/A __len__ N/A N/A self N/A N/A N/A N/A self length N/A __nonzero__ N/A N/A self N/A N/A N/A True N/A N/A __bool__ __nonzero__ N/A chunks N/A N/A stream chunk_size N/A 10000 N/A N/A  Return a generator that will iterate over a stream (a filelike
    object) ``chunk_size`` bytes at a time. N/A True N/A N/A chunk N/A N/A stream read chunk_size N/A N/A chunk N/A N/A N/A N/A chunk N/A acquire N/A N/A resource name default N/A _marker N/A N/A node N/A lineage resource N/A N/A result N/A getattr node name _marker N/A N/A result _marker N/A N/A result N/A N/A default _marker N/A N/A N/A AttributeError name N/A default N/A get_all_permissions N/A N/A registry N/A N/A N/A permissions N/A getattr registry _all_pyramid_permissions None N/A N/A permissions None N/A N/A intrs N/A N/A N/A registry introspector get_category permissions N/A N/A intrs None N/A N/A intrs N/A N/A permissions N/A N/A N/A intr N/A introspectable N/A value N/A intr intrs N/A N/A registry _all_pyramid_permissions permissions N/A permissions N/A renamer N/A N/A N/A N/A N/A  Returns a property.  The getter of the property returns the
    ``__name__`` attribute of the instance on which it's defined.  The setter
    of the property calls ``rename()`` on the ``__parent__`` of the instance on
    which it's defined if the new value doesn't match the existing ``__name__``
    of the instance (this will cause ``__name__`` to be reset if the parent is
    a normal Substance D folder ).  Sample usage::

      class SomeContentType(Persistent):
          name = renamer()
     _get N/A N/A self N/A N/A N/A N/A getattr self __name__ None N/A _set N/A N/A self newname N/A N/A N/A oldname N/A _get self N/A N/A newname oldname N/A N/A parent N/A getattr self __parent__ None N/A N/A parent None N/A N/A N/A N/A parent rename oldname newname N/A N/A N/A property _get _set N/A set_acl N/A N/A resource new_acl registry N/A None N/A N/A Change the ACL on resource to ``new_acl``, which may be a valid ACL or
    ``None``.  If ``new_acl`` is ``None``, any existing non-``None``
    ``__acl__`` attribute of the resource will be removed (via ``del
    resource.__acl__``).  Otherwise, if the resource's ``__acl__`` and the
    ``new_acl`` differ, set the resource's ``__acl__`` to ``new_acl`` via
    setattr.

    If the new ACL and the object's original ACL differ, send a
    :class:`substanced.event.ACLModified` event with the
    new ACL and the original ACL (the ``__acl__`` attribute of the resource, or
    ``None`` if it doesn't have one) as arguments to the event.

    This function will return ``True`` if a mutation to the resource's __acl__
    was performed, and ``False`` otherwise.

    If ``registry`` is passed, it should be a Pyramid registry; if it is not
    passed, this function will use the current threadlocal registry to send the
    event.
     event ACLModified N/A old_acl N/A getattr resource __acl__ None N/A N/A new_acl old_acl N/A N/A False N/A N/A new_acl None N/A N/A N/A resource __acl__ N/A N/A N/A resource __acl__ new_acl N/A event N/A ACLModified resource old_acl new_acl N/A N/A registry None N/A N/A registry N/A get_current_registry N/A N/A N/A registry subscribers N/A event resource None N/A True N/A N/A change_acl set_acl get_acl N/A N/A resource default N/A _marker N/A N/A  Return the ACL of the object or the default if the object has no ACL.
    If no default is passed, an :exc:`AttributeError` will be raised if the
    object doesn't have an ACL. N/A N/A N/A N/A resource __acl__ N/A N/A N/A AttributeError N/A N/A N/A default _marker N/A N/A N/A default N/A get_dotted_name N/A N/A g N/A N/A N/A  Return the dotted name of a global object.  N/A name N/A g __name__ N/A N/A isinstance g N/A types ModuleType N/A N/A name N/A module N/A g __module__ N/A N/A N/A . join N/A module name N/A get_interfaces N/A N/A obj classes N/A True N/A N/A  Return the set of interfaces provided by ``obj``.  Include its
    __class__ if classes is True. N/A provided_by N/A list N/A providedBy obj N/A spec N/A Declaration provided_by N/A ifaces N/A list N/A N/A spec flattened N/A classes N/A N/A ifaces N/A ifaces N/A N/A obj __class__ N/A N/A set ifaces N/A get_content_type N/A N/A resource registry N/A None N/A N/A  Return the content type of a resource or ``None`` if the object has
    no content type.  If ``registry`` is not supplied, the current Pyramid
    registry will be looked up as a thread local in order to find the
    Substance D content registry. N/A N/A registry None N/A N/A registry N/A get_current_registry N/A N/A N/A N/A registry content typeof resource N/A find_content N/A N/A resource content_type registry N/A None N/A N/A  Return the first object in the :term:`lineage` of the resource that
    supplies the ``content_type``.  If ``registry`` is not supplied, the
    current Pyramid registry will be looked up as a thread local in order to
    find the Substance D content registry. N/A N/A registry None N/A N/A registry N/A get_current_registry N/A N/A N/A N/A registry content find resource content_type N/A _traverse_to N/A N/A obj names N/A N/A N/A name names N/A N/A N/A N/A is_folder obj N/A N/A None N/A obj N/A N/A obj get name None N/A N/A obj None N/A N/A None N/A obj N/A _find_services N/A N/A resource name subnames one N/A N/A False N/A N/A L N/A N/A obj N/A lineage resource N/A N/A N/A is_folder obj N/A N/A subobj N/A N/A obj get name None N/A N/A subobj None N/A N/A N/A is_service subobj N/A N/A subnames N/A N/A subobj N/A _traverse_to subobj subnames N/A N/A subobj None N/A N/A N/A one N/A N/A subobj N/A N/A N/A L append subobj N/A one N/A N/A None N/A L N/A find_service N/A N/A resource name N/A subnames N/A N/A  Find the first service named ``name`` in the lineage of ``resource``
    or return ``None`` if no such-named service could be found.

    If ``subnames`` is supplied, when a service named ``name`` is found in the
    lineage, it will attempt to traverse the service as a folder, finding a
    content object inside the service, and it will return it instead of the
    service object itself.  For example, ``find_service(resource, 'principals',
    'users')`` would find and return the ``users`` subobject in the
    ``principals`` service.  ``find_service(resource, 'principals', 'users',
    'fred')`` would find and return the fred subobject of the users subobject
    of the principals service, and so forth.  If ``subnames`` are supplied, and
    the named object cannot be found, the lineage search continues.
     N/A N/A _find_services resource name subnames one True N/A find_services N/A N/A resource name N/A subnames N/A N/A Finds all services named ``name`` in the lineage of ``resource`` and
    returns a sequence containing those service objects. The sequence will
    begin with the most deepest nested service and will end with the least
    deeply nested service.  Returns an empty sequence if no such-named
    service could be found.

    If ``subnames`` is supplied, when a service named ``name`` is found in the
    lineage, it will attempt to traverse the service as a folder, finding a
    content object inside the service, and this API will append this object
    rather than the service itself to the list of things returned.  For
    example, ``find_services(resource, 'principals', 'users')`` would find the
    ``users`` subobject in the ``principals`` service.
    ``find_services(resource, 'principals', 'users', 'fred')`` would find the
    fred subobject of the users subobject of the principals service, and so
    forth.  If ``subnames`` are supplied, whether or not the named object can
    be found, the lineage search continues.
     N/A N/A _find_services resource name subnames N/A get_factory_type N/A N/A resource N/A N/A N/A  If the resource has a __factory_type__ attribute, return it.
    Otherwise return the full Python dotted name of the resource's class. N/A factory_type N/A getattr resource __factory_type__ None N/A N/A factory_type None N/A N/A factory_type N/A get_dotted_name N/A resource __class__ N/A factory_type N/A is_folder N/A N/A resource N/A N/A N/A  Return ``True`` if the object is a folder, ``False`` if not.  N/A N/A N/A IFolder providedBy resource N/A is_service N/A N/A resource N/A N/A N/A  Returns ``True`` if the resource is a service, ``False`` if not.  N/A N/A N/A IService providedBy resource N/A find_catalogs N/A N/A resource name N/A None N/A N/A  Return all catalogs in the lineage.  If ``name`` is supplied, return
    only catalogs that have this name in the lineage, otherwise return all
    catalogs in the lineage. N/A catalogs N/A N/A catalog_containers N/A find_services resource catalogs N/A catalog_container catalog_containers N/A N/A N/A cname catalog N/A N/A catalog_container items N/A N/A N/A N/A name None N/A name cname N/A N/A N/A N/A catalogs append catalog N/A catalogs N/A find_catalog N/A N/A resource name N/A N/A N/A  Return the first catalog named ``name`` in the lineage of the resource
     N/A catalog_containers N/A find_services resource catalogs N/A catalog_container catalog_containers N/A N/A N/A cname catalog N/A N/A catalog_container items N/A N/A N/A name cname N/A N/A catalog N/A find_index N/A N/A resource catalog_name index_name N/A N/A N/A  Find the first catalog named ``catalog_name`` in the lineage of the
    resource, and ask it for its ``index_name`` index; return the resulting
    index.  If either a catalog of the provided name or an index of the
    provided name does not exist, this function will return ``None``. N/A catalog N/A find_catalog resource catalog_name N/A N/A catalog None N/A N/A None N/A index N/A N/A catalog get index_name N/A index N/A get_principal_repr N/A N/A principal_or_id N/A N/A N/A 
    Given as ``principal_or_id`` a resource object that has a
    ``__principal_repr__`` method, return the result of calling that method
    (without arguments); it must be a string that uniquely identifies the
    principal amongst all principals in the system.
    
    Given as ``principal_or_id`` a resource object that does **not**
    have a ``__principal_repr__`` method, return the result of the
    stringification of the ``__oid__`` attribute of the resource object.

    Given an integer as ``principal_or_id``, return a stringification
    of the integer.

    Given any other string value, return it.
     N/A base_types N/A STRING_TYPES INT_TYPES N/A N/A isinstance principal_or_id base_types N/A N/A N/A str principal_or_id N/A prepr N/A getattr principal_or_id __principal_repr__ None N/A N/A prepr None N/A N/A N/A prepr N/A oid N/A get_oid principal_or_id None N/A N/A oid None N/A N/A N/A str oid N/A N/A ValueError principal_or_id N/A find_objectmap N/A N/A context N/A N/A N/A  Returns the object map for the root object in the lineage of the
    ``context`` or ``None`` if no objectmap can be found. N/A N/A acquire context __objectmap__ None N/A get_icon_name N/A N/A resource request N/A N/A N/A  Returns the content registry icon name of the resource or ``None`` if
    the resource type has no icon in the content registry. N/A icon N/A N/A N/A N/A request registry content metadata resource icon N/A N/A callable icon N/A N/A icon N/A icon resource request N/A icon N/A get_auditlog N/A N/A context N/A N/A N/A  Returns the current :class:`substanced.audit.AuditLog` object or ``None``
    if no audit database is configured  N/A conn N/A context _p_jar N/A N/A conn None N/A N/A None N/A N/A N/A auditlogconn N/A N/A conn get_connection audit N/A N/A N/A KeyError N/A N/A None N/A root N/A N/A auditlogconn root N/A auditlog N/A N/A root get auditlog N/A N/A auditlog None N/A N/A auditlog N/A is_broken N/A N/A resource N/A N/A N/A N/A N/A IBroken providedBy resource N/A BrokenWrapper N/A object N/A __init__ N/A N/A self broken_object N/A N/A N/A N/A self _broken_object broken_object N/A __getattr__ N/A N/A self name N/A N/A N/A result N/A N/A N/A N/A self _broken_object __Broken_state__ get name _marker N/A N/A result _marker N/A N/A N/A AttributeError name N/A result N/A N/A wrap_if_broken N/A N/A resource N/A N/A N/A N/A is_broken resource N/A N/A resource N/A BrokenWrapper resource N/A resource N/A profile N/A N/A cmd globals locals sort_order callers N/A N/A False N/A N/A Allow for profiling of the entire process (e.g. during a bulk load) N/A N/A fd fn N/A N/A tempfile mkstemp N/A N/A N/A N/A N/A N/A N/A _profile runctx cmd globals locals fn N/A N/A stats N/A N/A pstats Stats fn N/A N/A N/A stats strip_dirs N/A N/A N/A stats sort_stats N/A sort_order N/A cumulative calls time N/A callers N/A N/A N/A N/A stats print_callers 0.3 N/A N/A N/A N/A stats print_stats 0.3 N/A N/A N/A N/A os remove fn N/A