🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • class UserTraining

    A model class representing a user's training status for a specific controlled document, managing training assignments, completion tracking, and expiration dates.

    File: /tf/active/vicechatdev/CDocs/models/training.py | Lines: 281-454

    training-management compliance document-control neo4j graph-database
  • class DocumentTraining

    A model class that manages training requirements and assignments for controlled documents, including enabling/disabling training, assigning training to users, and tracking training status.

    File: /tf/active/vicechatdev/CDocs/models/training.py | Lines: 19-279

    document-management training user-assignment neo4j graph-database
  • class SSOCallbackHandler

    A Tornado RequestHandler that processes OAuth 2.0 callbacks from Azure AD, exchanges authorization codes for access tokens, validates user identity, and sets authentication cookies for SSO integration.

    File: /tf/active/vicechatdev/CDocs/sso_plugin.py | Lines: 16-161

    oauth azure-ad sso authentication tornado
  • function guard_execution

    A decorator factory that prevents rapid repeated execution of a function by enforcing a cooldown period between calls.

    File: /tf/active/vicechatdev/CDocs/__init__.py | Lines: 103-124

    decorator rate-limiting throttling cooldown debounce
  • class ExecutionGuard

    A guard mechanism that prevents recursive or repeated function calls by tracking active executions and enforcing cooldown periods between calls.

    File: /tf/active/vicechatdev/CDocs/__init__.py | Lines: 57-97

    concurrency guard debounce rate-limiting recursion-prevention
  • function process_auth_code

    Processes OAuth authorization codes from POST requests, exchanges them for access tokens via Azure SSO, and authenticates users into the application.

    File: /tf/active/vicechatdev/CDocs/main.py | Lines: 2993-3061

    authentication oauth azure-sso authorization-code token-exchange
  • class AuthCodeHandler

    A callable handler class that processes OAuth authentication codes from form POST requests, exchanges them for access tokens, and authenticates users via Azure SSO.

    File: /tf/active/vicechatdev/CDocs/main.py | Lines: 2837-2910

    authentication oauth azure-sso callback-handler webhook
  • class ControlledDocumentApp

    Main application class for the Controlled Document Management System. This class initializes all components and provides the main Panel interface for the application. It is designed to be served via `panel serve` command and integrates with the existing datacapture application.

    File: /tf/active/vicechatdev/CDocs/main.py | Lines: 213-2832

    class controlleddocumentapp
  • function format_session_args

    Converts session arguments dictionary with byte keys/values to a formatted JSON string for readable logging.

    File: /tf/active/vicechatdev/CDocs/main.py | Lines: 169-209

    logging formatting session-management bytes-to-string panel
  • function init

    Wrapper function that initializes the CDocs system by calling initialize_system() when the module is imported.

    File: /tf/active/vicechatdev/CDocs/initialize_system.py | Lines: 119-124

    initialization setup bootstrap system-startup module-import
  • function initialize_system

    Initializes the CDocs document management system by setting up database connections, FileCloud integration, document sharing validation, and API routes.

    File: /tf/active/vicechatdev/CDocs/initialize_system.py | Lines: 23-116

    initialization system-startup database filecloud api-routes
  • function search_filecloud_for_documents

    Searches FileCloud for documents that have the 'is_cdoc' metadata flag set to true, retrieving their file paths and associated metadata attributes.

    File: /tf/active/vicechatdev/CDocs/FC_sync.py | Lines: 404-481

    filecloud document-management metadata-search controlled-documents file-search
  • function import_document_from_filecloud

    Imports a document from FileCloud into the system by extracting metadata, creating a controlled document record, downloading the file content, creating a document version, and uploading it back to FileCloud with proper folder structure.

    File: /tf/active/vicechatdev/CDocs/FC_sync.py | Lines: 276-402

    document-management filecloud import file-upload metadata
  • function create_controlled_document

    Creates a new controlled document node in a graph database with metadata, establishes relationships with the CDocs root node, and returns a ControlledDocument instance.

    File: /tf/active/vicechatdev/CDocs/FC_sync.py | Lines: 194-274

    document-management controlled-documents graph-database neo4j document-creation
  • function extract_metadata_from_filecloud

    Extracts and normalizes metadata from FileCloud for document creation, providing default values and generating document numbers when needed.

    File: /tf/active/vicechatdev/CDocs/FC_sync.py | Lines: 140-192

    metadata normalization document-management filecloud data-extraction
  • function check_document_exists_by_doc_number

    Queries a Neo4j database to check if a ControlledDocument exists with a specific document number and returns the document object if found.

    File: /tf/active/vicechatdev/CDocs/FC_sync.py | Lines: 110-138

    database neo4j document-management lookup validation
  • function check_document_exists_by_uid

    Queries a Neo4j database to check if a ControlledDocument with a specific UID exists and returns the document object if found.

    File: /tf/active/vicechatdev/CDocs/FC_sync.py | Lines: 81-108

    database neo4j document-management lookup validation
  • function get_admin_user

    Retrieves an admin user from a Neo4j database by querying for a specific email address and returns a DocUser object for document creation operations.

    File: /tf/active/vicechatdev/CDocs/FC_sync.py | Lines: 51-79

    database neo4j user-management admin document-management
  • function create_app

    Factory function that creates and configures a Flask application instance for a controlled document management system.

    File: /tf/active/vicechatdev/CDocs/main_flask.py | Lines: 3884-3886

    flask application-factory web-application initialization configuration
  • class ControlledDocumentFlaskApp

    Main Flask application class for Controlled Document Management System.

    File: /tf/active/vicechatdev/CDocs/main_flask.py | Lines: 146-3881

    class controlleddocumentflaskapp