Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Break ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad ExceptHandler type NameLoad body Break Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call Call NameLoad NameLoad BinOpAdd Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults BoolOpAnd Call NameLoad NameLoad Str CompareEq AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad NameLoad keyword NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call NameLoad Str Num Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad orelse Assign NameStore ListLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad decorator_list decorator_list
N/A N/A 
Module: DMS Plugins running logic handler.

Project: Adlibre DMS
Copyright: Adlibre Pty Ltd 2011
License: See LICENSE for license information
Author: Iurii Garmash
 N/A logging N/A djangoplugins django.conf settings core.errors ConfigurationError models DoccodePluginMapping core.errors DmsException workers PluginError PluginWarning BreakPluginChain workers.info.tags TagsPlugin dms_plugins pluginpoints core.models DocumentTypeRule N/A log N/A N/A logging getLogger dms N/A __all__ N/A PluginsOperator PluginsOperator N/A object N/A N/A 
    Handles Plugin() Processing logic.

    Must execute plugins for certain minor tasks. (That are not CRUD)
    e.g. PluginsOperator().rename_file(old_filename, new_filename)
     __init__ N/A N/A self N/A N/A N/A N/A self plugin_errors N/A N/A N/A self plugin_warnings N/A N/A process_pluginpoint N/A N/A self pluginpoint document N/A None N/A N/A 
        PluginsOperator() main gear.

        Iterates over plugins and executes them according to config and workflow specified (PluginPoint)

        @param pluginpoint: a special DMS internal set of plugins to be executed
        @param document: DMS Document() instance
         N/A plugins N/A N/A self get_plugins_for_point pluginpoint document N/A plugin plugins N/A N/A N/A N/A document N/A N/A plugin work document N/A N/A N/A PluginError N/A e N/A N/A N/A N/A N/A self plugin_errors append e N/A N/A settings DEBUG N/A N/A N/A N/A log error N/A process_pluginpoint: %s. e N/A N/A N/A PluginWarning N/A e N/A N/A N/A N/A N/A self plugin_warnings append N/A str e N/A N/A BreakPluginChain N/A N/A N/A document N/A get_plugins_from_mapping N/A N/A self mapping pluginpoint plugin_type N/A N/A N/A Extracts and instantiates Plugin() objects from given plugin mapping.

        @param mapping: DocumentTYpeRulePluginMapping() instance N/A plugin_objects N/A N/A getattr mapping N/A get_ N/A pluginpoint settings_field_name N/A plugins N/A map N/A N/A N/A plugin_obj N/A N/A N/A plugin_obj get_plugin plugin_objects N/A plugin_type N/A N/A plugins N/A filter N/A N/A N/A plugin N/A N/A N/A hasattr plugin plugin_type N/A N/A plugin plugin_type plugin_type plugins N/A plugins N/A get_plugin_list N/A N/A self N/A N/A N/A Gets a list of all installed into DMS plugins. N/A all_plugins N/A N/A N/A N/A N/A N/A N/A djangoplugins models Plugin objects all order_by point__title index N/A all_plugins N/A get_plugins_for_point N/A N/A self pluginpoint document plugin_type N/A None N/A N/A Retrieves Plugins for given Pluginpoint. N/A plugins N/A N/A docrule N/A N/A document get_docrule N/A docrule N/A N/A mapping N/A N/A docrule get_docrule_plugin_mappings N/A mapping N/A N/A plugins N/A N/A self get_plugins_from_mapping mapping pluginpoint plugin_type N/A plugins N/A get_plugin_mapping_by_docrule_id N/A N/A self pk N/A N/A N/A mapping N/A N/A N/A DoccodePluginMapping objects filter doccode__pk N/A int pk doccode__active True N/A N/A N/A N/A mapping exists N/A N/A N/A DmsException Rule not found 404 N/A N/A mapping N/A 0 N/A get_file_list N/A N/A self doccode_plugin_mapping start finish order searchword tags filter_date N/A 0 None None None None None N/A N/A This must be a part of some retrieve workflow
        e.g. DocumentProcessor().read(document, option='get_file_list') N/A N/A tags N/A N/A tags N/A N/A metadata None N/A pluginpoint N/A pluginpoints StoragePluginPoint N/A metadatas N/A N/A self get_plugins_from_mapping doccode_plugin_mapping pluginpoint plugin_type metadata N/A metadatas N/A N/A metadata N/A metadatas N/A 0 N/A pluginpoint N/A pluginpoints StoragePluginPoint N/A storage N/A N/A self get_plugins_from_mapping doccode_plugin_mapping pluginpoint plugin_type storage N/A N/A storage N/A N/A N/A ConfigurationError N/A No storage plugin for %s doccode_plugin_mapping N/A storage N/A storage N/A 0 N/A docrule N/A N/A doccode_plugin_mapping get_docrule N/A doc_models N/A N/A N/A TagsPlugin get_doc_models docrule N/A N/A doccode_plugin_mapping get_docrule tags tags N/A doc_names N/A map N/A N/A N/A x N/A N/A x name doc_models N/A metadata N/A N/A document_directories N/A N/A N/A metadata worker get_directories docrule filter_date filter_date N/A N/A document_directories N/A N/A N/A N/A N/A storage worker get_list docrule document_directories start finish order searchword limit_to doc_names N/A N/A