Package backend :: Module actions :: Class Action
[hide private]
[frames] | no frames]

Class Action

source code


Object to send data back to fronted

:param multiprocessing.Queue events: collects events for logging
:param multiprocessing.Lock lock: Global lock for backend
:param backend.callback.FrontendCallback frontent_callback:
    object to post data back to frontend

:param destdir: filepath with build results

:param dict action: dict-like object with action task

Expected **action** keys:

    - action_type: main field determining what action to apply
    # TODO: describe actions

Instance Methods [hide private]
 
__init__(self, events, action, lock, frontend_callback, destdir, front_url, results_root_url)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
 
add_event(self, what) source code
 
handle_legal_flag(self) source code
 
handle_createrepo(self, result) source code
 
handle_rename(self, result) source code
 
handle_delete_copr_project(self) source code
 
handle_delete_build(self) source code
 
run(self)
Handle action (other then builds) - like rename or delete of project
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, events, action, lock, frontend_callback, destdir, front_url, results_root_url)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)