|
Lines 53-59
from univention.lib.i18n import Translation
Link Here
|
| 53 |
_ = Translation('univention.management.console').translate |
53 |
_ = Translation('univention.management.console').translate |
| 54 |
|
54 |
|
| 55 |
# internal packages |
55 |
# internal packages |
| 56 |
from .message import Message, Response, IncompleteMessageError, ParseError, UnknownCommandError, InvalidArgumentsError, InvalidOptionsError |
56 |
from .message import Message, Response, IncompleteMessageError, ParseError, UnknownCommandError, InvalidArgumentsError, InvalidOptionsError, MIMETYPE_JSON |
| 57 |
from .session import State, Processor |
57 |
from .session import State, Processor |
| 58 |
from .definitions import ( |
58 |
from .definitions import ( |
| 59 |
BAD_REQUEST_FORBIDDEN, BAD_REQUEST_INVALID_ARGS, |
59 |
BAD_REQUEST_FORBIDDEN, BAD_REQUEST_INVALID_ARGS, |
|
Lines 357-363
class MagicBucket(object):
Link Here
|
| 357 |
return |
357 |
return |
| 358 |
|
358 |
|
| 359 |
# module process wants to exit |
359 |
# module process wants to exit |
| 360 |
if msg.status == SUCCESS_SHUTDOWN: |
360 |
if msg.mimetype == MIMETYPE_JSON and msg.status == SUCCESS_SHUTDOWN: |
| 361 |
module_name = state.processor.get_module_name(msg.arguments[0]) |
361 |
module_name = state.processor.get_module_name(msg.arguments[0]) |
| 362 |
if module_name: |
362 |
if module_name: |
| 363 |
state.processor._purge_child(module_name) |
363 |
state.processor._purge_child(module_name) |