mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-13 05:49:07 +00:00
[Bugfix] 修改users模块一些bug
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
from importlib import import_module
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from .command.serializers import SessionCommandSerializer
|
||||
|
||||
|
||||
@@ -10,8 +8,3 @@ def get_command_store():
|
||||
command_store = command_engine.CommandStore()
|
||||
return command_store
|
||||
|
||||
|
||||
def get_replay_store():
|
||||
replay_engine = import_module(settings.REPLAY_STORE_BACKEND)
|
||||
replay_store = replay_engine.ReplayStore()
|
||||
return replay_store
|
||||
|
@@ -1,2 +0,0 @@
|
||||
# ~*~ coding: utf-8 ~*~
|
||||
|
@@ -1,14 +0,0 @@
|
||||
# coding: utf-8
|
||||
import abc
|
||||
|
||||
|
||||
class ReplayBase(object):
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
@abc.abstractmethod
|
||||
def save(self, proxy_log_id, output, timestamp):
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def filter(self, date_from_ts=None, proxy_log_id=None):
|
||||
pass
|
@@ -1,8 +0,0 @@
|
||||
# ~*~ coding: utf-8 ~*~
|
||||
|
||||
from .base import ReplayBase
|
||||
|
||||
|
||||
class ReplayStore(ReplayBase):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user