[Bugfix] 修改users模块一些bug

This commit is contained in:
ibuler
2017-12-18 18:38:30 +08:00
parent e1163895e2
commit a308000d2e
32 changed files with 400 additions and 922 deletions

View File

@@ -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

View File

@@ -1,2 +0,0 @@
# ~*~ coding: utf-8 ~*~

View File

@@ -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

View File

@@ -1,8 +0,0 @@
# ~*~ coding: utf-8 ~*~
from .base import ReplayBase
class ReplayStore(ReplayBase):
pass