Module Expr Str Import alias Import alias TryExcept body ImportFrom alias ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Str orelse Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign TupleStore NameStore NameStore NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad If BoolOpOr CompareIs NameLoad NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Continue If BoolOpAnd CompareEq NameLoad Str Call NameLoad NameLoad NameLoad body Continue If CompareEq NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body ImportFrom alias With Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareNotIn Str SubscriptLoad NameLoad Index Num body Assign SubscriptStore NameLoad Index Num BinOpAdd Str SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad Str Str Str Return CompareEq NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body ImportFrom alias Return Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad Assign NameStore Call NameLoad NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad Call NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpAdd BinOpAdd Call NameLoad NameLoad NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list Assign NameStore Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad orelse Pass Return NameLoad decorator_list Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad Num FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad Lambda arguments args defaults NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad Call NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Slice Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt Call NameLoad NameLoad Num body TryExcept body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse Assign SubscriptStore NameLoad Index Num Call NameLoad BinOpAdd NameLoad Num orelse Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body ImportFrom alias Assign NameStore BinOpSub AttributeLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr attr Num Assign NameStore Call NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Str ImportFrom alias Assign NameStore SubscriptLoad SubscriptLoad Call NameLoad Index Str Index Num Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad If CompareNotIn NameLoad NameLoad body Return NameLoad AugAssignAdd NameStore Str While CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Str Str NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad TryFinally body Expr Call NameLoad NameLoad finalbody Expr Call SubscriptLoad NameLoad Index Str Return Num decorator_list Assign NameStore NameLoad Expr Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A 
Inheritance Diagram
-------------------

.. inheritance-diagram:: kotti.util
 N/A cgi N/A re N/A N/A urllib unquote urlparse urlparse urlparse urlunparse N/A N/A N/A ImportError N/A urllib.parse unquote urllib.parse urlparse urllib.parse urlunparse docopt docopt pyramid.i18n get_localizer pyramid.i18n get_locale_name pyramid.i18n make_localizer pyramid.i18n TranslationStringFactory pyramid.interfaces ITranslationDirectories pyramid.location inside pyramid.paster bootstrap pyramid.paster setup_logging pyramid.renderers render pyramid.threadlocal get_current_registry pyramid.threadlocal get_current_request pyramid.url resource_url pyramid.view render_view_to_response repoze.lru LRUCache zope.deprecation deprecated kotti DBSession N/A _ N/A TranslationStringFactory Kotti get_localizer_for_locale_name N/A N/A locale_name N/A N/A N/A registry N/A get_current_registry N/A tdirs N/A N/A registry queryUtility ITranslationDirectories default N/A N/A N/A make_localizer locale_name tdirs N/A translate N/A N/A N/A args kwargs N/A N/A request N/A get_current_request N/A N/A request None N/A N/A localizer N/A get_localizer_for_locale_name en N/A N/A localizer N/A get_localizer request N/A N/A N/A localizer translate args kwargs N/A get_paste_items N/A N/A context request N/A N/A kotti.resources Node N/A items N/A N/A info N/A N/A N/A request session get kotti.paste N/A info N/A N/A N/A ids action info N/A id ids N/A N/A item N/A N/A N/A N/A DBSession query Node get id N/A N/A N/A item None N/A N/A N/A N/A item type_info addable context request N/A N/A N/A N/A N/A action cut N/A inside context item N/A N/A N/A N/A context item N/A N/A N/A N/A N/A items append item N/A items N/A render_view N/A N/A context request name secure N/A True N/A kotti.security authz_context N/A N/A authz_context context request N/A N/A response N/A render_view_to_response context request name secure N/A N/A response None N/A N/A N/A response ubody N/A TemplateStructure N/A object N/A __init__ N/A N/A self html N/A N/A N/A N/A self html html N/A __html__ N/A N/A self N/A N/A N/A N/A self html N/A N/A __unicode__ __html__ __getattr__ N/A N/A self key N/A N/A N/A N/A getattr N/A self html key N/A N/A LinkBase N/A object N/A __call__ N/A N/A self context request N/A N/A N/A N/A TemplateStructure N/A render N/A self template N/A dict link self context context request request request N/A selected N/A N/A self context request N/A N/A N/A  Returns True if the Link's url, based on its name,
        matches the request url

        If the link name is '', it will be selected for all urls ending in '/'
         N/A parsed N/A urlparse N/A unquote N/A request url N/A path N/A N/A N/A parsed path split / N/A N/A @@ N/A path N/A -1 N/A N/A N/A path N/A -1 N/A @@ N/A path N/A -1 N/A path N/A N/A / join path N/A url N/A urlunparse N/A N/A parsed N/A 0 N/A parsed N/A 1 path N/A N/A url N/A N/A self url context request N/A permitted N/A N/A self context request N/A N/A kotti.security view_permitted N/A N/A view_permitted context request N/A self name N/A visible N/A N/A self context request N/A N/A N/A permitted N/A N/A self permitted context request N/A permitted N/A N/A N/A N/A self predicate None N/A N/A N/A N/A self predicate context request N/A N/A True N/A False N/A path N/A N/A self N/A N/A N/A N/A self name N/A property N/A path N/A deprecated path The 'path' attribute has been deprecated as of Kotti 1.0.0.  Please use 'name' instead. N/A LinkRenderer N/A LinkBase N/A N/A A menu link that renders a view to render the link.
     __init__ N/A N/A self name predicate N/A None N/A N/A N/A self name name N/A N/A self predicate predicate N/A __call__ N/A N/A self context request N/A N/A N/A N/A TemplateStructure N/A render_view context request name N/A self name N/A selected N/A N/A context request N/A N/A N/A False N/A staticmethod N/A LinkParent N/A LinkBase N/A N/A A menu link that renders sublinks in a dropdown.
     N/A template kotti:templates/edit/el-parent.pt __init__ N/A N/A self title children N/A N/A N/A N/A self title title N/A N/A self children children N/A visible N/A N/A self context request N/A N/A N/A N/A any N/A N/A N/A ch visible context request N/A ch N/A self children N/A selected N/A N/A self context request N/A N/A N/A N/A any N/A N/A N/A ch selected context request N/A ch N/A self children N/A get_visible_children N/A N/A self context request N/A N/A N/A N/A ch N/A ch N/A self children N/A N/A ch visible context request N/A N/A Link N/A LinkBase N/A N/A template kotti:templates/edit/el-link.pt __init__ N/A N/A self name title predicate target N/A None None None N/A N/A N/A self name name N/A N/A title None N/A N/A title N/A N/A N/A N/A N/A N/A name replace - replace _ title N/A N/A self title title N/A N/A self predicate predicate N/A N/A self target target N/A url N/A N/A self context request N/A N/A N/A N/A N/A N/A resource_url context request @@ N/A self name N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A isinstance other Link N/A N/A repr self N/A repr other N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A Link({0}, {1}) format N/A self name N/A self title N/A N/A ActionButton N/A Link N/A __init__ N/A N/A self path title no_children css_class N/A None False btn btn-default N/A N/A N/A N/A N/A super ActionButton self __init__ path title N/A N/A self no_children no_children N/A N/A self css_class css_class N/A N/A DontCache N/A Exception N/A N/A N/A N/A _CACHE_ATTR kotti_cache request_container N/A N/A N/A N/A N/A request N/A get_current_request N/A N/A request None N/A N/A None N/A cache N/A getattr request _CACHE_ATTR None N/A N/A cache None N/A N/A cache N/A N/A N/A setattr request _CACHE_ATTR cache N/A cache N/A cache N/A N/A compute_key container_factory N/A N/A N/A marker N/A object decorator N/A N/A func N/A N/A replacement N/A N/A N/A args kwargs N/A N/A cache N/A container_factory N/A N/A cache None N/A N/A N/A func args kwargs N/A N/A N/A key N/A compute_key args kwargs N/A N/A N/A DontCache N/A N/A N/A func args kwargs N/A key N/A N/A {0}.{1}:{2} format N/A func __module__ N/A func __name__ key N/A cached_value N/A N/A cache get key marker N/A N/A cached_value marker N/A N/A cached_value N/A cache N/A key N/A func args kwargs N/A N/A N/A cached_value N/A N/A N/A replacement __doc__ N/A func __doc__ N/A replacement N/A N/A decorator N/A request_cache N/A N/A compute_key N/A N/A N/A N/A cache compute_key request_container N/A LRUCacheSetItem N/A LRUCache N/A N/A __setitem__ N/A LRUCache put N/A N/A _lru_cache N/A LRUCacheSetItem 1000 lru_cache N/A N/A compute_key N/A N/A N/A N/A cache compute_key N/A N/A N/A N/A _lru_cache N/A clear_cache N/A N/A N/A N/A N/A request N/A get_current_request N/A N/A request None N/A N/A N/A setattr request _CACHE_ATTR None N/A N/A N/A _lru_cache clear N/A extract_from_settings N/A N/A prefix settings N/A None N/A N/A 
      >>> settings = {
      ...     'kotti_twitter.foo_bar': '1', 'kotti.spam_eggs': '2'}
      >>> print(extract_from_settings('kotti_twitter.', settings))
      {'foo_bar': '1'}
     kotti get_settings N/A settings N/A N/A settings None settings N/A get_settings N/A extracted N/A N/A N/A key value N/A N/A settings items N/A N/A N/A N/A key startswith prefix N/A N/A N/A extracted N/A N/A key N/A N/A len prefix value N/A extracted N/A disambiguate_name N/A N/A name N/A N/A N/A parts N/A N/A name split - N/A N/A N/A len parts 1 N/A N/A N/A N/A index N/A int N/A parts N/A -1 N/A N/A N/A ValueError N/A N/A N/A N/A parts append 1 N/A N/A N/A parts N/A -1 N/A unicode N/A index 1 N/A N/A N/A N/A parts append 1 N/A N/A N/A - join parts N/A title_to_name N/A N/A title blacklist max_length N/A N/A None N/A N/A  If max_length is None, fallback to the ``name`` column
        size (:class:`kotti.resources.Node`)
     N/A N/A max_length None N/A kotti.resources Node N/A max_length N/A N/A N/A N/A N/A N/A N/A Node name property columns N/A 0 type length 10 N/A request N/A get_current_request N/A N/A request None N/A N/A locale_name N/A get_locale_name request N/A N/A locale_name en kotti get_settings N/A urlnormalizer N/A N/A N/A get_settings N/A kotti.url_normalizer N/A 0 N/A name N/A unicode N/A urlnormalizer title locale_name max_length max_length N/A N/A name blacklist N/A N/A name N/A name -1 N/A N/A name blacklist N/A N/A name N/A disambiguate_name name N/A name N/A camel_case_to_name N/A N/A text N/A N/A N/A 
      >>> camel_case_to_name('FooBar')
      'foo_bar'
      >>> camel_case_to_name('TXTFile')
      'txt_file'
      >>> camel_case_to_name ('MyTXTFile')
      'my_txt_file'
      >>> camel_case_to_name('froBOZ')
      'fro_boz'
      >>> camel_case_to_name('f')
      'f'
     N/A N/A N/A N/A N/A re sub ((?<=[a-z])[A-Z]|(?<!\A)[A-Z](?=[a-z])) _\1 text lower N/A command N/A N/A func doc N/A N/A N/A args N/A docopt doc N/A config_uri N/A args N/A <config_uri> N/A pyramid_env N/A bootstrap config_uri N/A N/A setup_logging config_uri N/A N/A N/A N/A func args N/A N/A N/A N/A pyramid_env N/A closer N/A 0 N/A N/A ViewLink Link N/A N/A deprecated ViewLink kotti.util.ViewLink has been renamed to Link as of Kotti 1.0.0. _to_fieldstorage N/A N/A fp filename mimetype size N/A _kwds N/A N/A  Build a :class:`cgi.FieldStorage` instance.

    Deform's :class:`FileUploadWidget` returns a dict, but
    :class:`depot.fields.sqlalchemy.UploadedFileField` likes
    :class:`cgi.FieldStorage` objects
     N/A f N/A N/A cgi FieldStorage N/A N/A f file fp N/A N/A f filename filename N/A N/A f type mimetype N/A N/A f length size N/A f N/A