.. link: .. description: .. tags: .. date: 2013/08/18 00:00:00 .. title: NINJA-IDE .. slug: linux .. class:: alert alert-info pull-top .. contents:: *Module:* `linux.py `_ API =========================================================================================================== No description. *Imports:* ------------ - `os `_ - `pyinotify.ExcludeFilter `_ - `pyinotify.IN_CREATE `_ - `pyinotify.IN_DELETE `_ - `pyinotify.IN_DELETE_SELF `_ - `pyinotify.IN_MODIFY `_ - `ninja_ide.tools.logger.NinjaLogger `_ - `pyinotify.Notifier `_ - `pyinotify.ProcessEvent `_ - `PyQt4.QtCore.QThread `_ - `pyinotify.WatchManager `_ - `__future__.absolute_import `_ - `ninja_ide.core.file_handling.filesystem_notifications.base_watcher `_ *Global Attributes:* ---------------------- - `ADDED [at ln:31] `_ - `DEBUG [at ln:28] `_ - `DELETED [at ln:32] `_ - `MODIFIED [at ln:35] `_ - `REMOVE [at ln:33] `_ - `RENAME [at ln:34] `_ - `logger [at ln:27] `_ - `mask [at ln:40] `_ ---- *Class:* `QNotifier(QThread) `_ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- .. code:: python class QNotifier(QThread): No description. *Attributes* ~~~~~~~~~~~~~~ - `_processor [at ln:74] `_ - `event_queue [at ln:73] `_ - `keep_running [at ln:78] `_ - `notifier [at ln:75] `_ *Function:* `__init__(wm, processor) [at ln:72] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(wm, processor): No description. ---- *Function:* `run() [at ln:81] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def run(): No description. ---- *Class:* `NinjaProcessEvent(ProcessEvent) `_ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- .. code:: python class NinjaProcessEvent(ProcessEvent): No description. *Attributes* ~~~~~~~~~~~~~~ - `_process_callback [at ln:46] `_ *Function:* `__init__(process_callback) [at ln:45] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(process_callback): No description. ---- *Function:* `process_IN_CREATE(event) [at ln:49] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def process_IN_CREATE(event): No description. ---- *Function:* `process_IN_DELETE(event) [at ln:52] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def process_IN_DELETE(event): No description. ---- *Function:* `process_IN_DELETE_SELF(event) [at ln:55] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def process_IN_DELETE_SELF(event): No description. ---- *Function:* `process_IN_MODIFY(event) [at ln:58] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def process_IN_MODIFY(event): No description. ---- *Function:* `process_IN_MOVED_FROM(event) [at ln:64] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def process_IN_MOVED_FROM(event): No description. ---- *Function:* `process_IN_MOVED_TO(event) [at ln:61] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def process_IN_MOVED_TO(event): No description. ---- *Function:* `process_IN_MOVE_SELF(event) [at ln:67] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def process_IN_MOVE_SELF(event): No description. ---- *Class:* `NinjaFileSystemWatcher(base_watcher.BaseWatcher) `_ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- .. code:: python class NinjaFileSystemWatcher(base_watcher.BaseWatcher): No description. *Attributes* ~~~~~~~~~~~~~~ - `_ignore_hidden [at ln:111] `_ - `watching_paths [at ln:109] `_ *Function:* `__init__() [at ln:108] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(): No description. ---- *Function:* `add_watch(path) [at ln:113] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def add_watch(path): No description. ---- *Function:* `remove_watch(path) [at ln:128] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def remove_watch(path): No description. ---- *Function:* `shutdown_notification() [at ln:134] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def shutdown_notification(): No description.