coverage
This commit is contained in:
@ -103,9 +103,6 @@ class SynDynOptionDescription(object):
|
||||
def impl_get_display_name(self):
|
||||
return self._opt.impl_get_display_name() + self._suffix
|
||||
|
||||
def impl_getdoc(self):
|
||||
return self._opt.impl_getdoc() + self._suffix
|
||||
|
||||
def reset_cache(self,
|
||||
path,
|
||||
values,
|
||||
|
@ -24,7 +24,6 @@ use it. But if something goes wrong, you will lost your modifications.
|
||||
"""
|
||||
from .value import Values
|
||||
from .setting import Properties, Permissives
|
||||
from .storage import setting, Storage, list_sessions, delete_session
|
||||
from .storage import setting, Storage, list_sessions
|
||||
|
||||
__all__ = ('setting', 'Values', 'Properties', 'Permissives', 'Storage', 'list_sessions',
|
||||
'delete_session')
|
||||
__all__ = ('setting', 'Values', 'Properties', 'Permissives', 'Storage', 'list_sessions')
|
||||
|
@ -15,7 +15,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# ____________________________________________________________
|
||||
from ...i18n import _
|
||||
from ...error import ConfigError, ConflictError
|
||||
from ...error import ConflictError
|
||||
|
||||
|
||||
class Setting(object):
|
||||
@ -32,10 +32,6 @@ def list_sessions(): # pragma: optional cover
|
||||
return _list_sessions
|
||||
|
||||
|
||||
def delete_session(session_id): # pragma: optional cover
|
||||
raise ConfigError(_('dictionary storage cannot delete session'))
|
||||
|
||||
|
||||
class Storage(object):
|
||||
__slots__ = ('session_id', 'persistent')
|
||||
storage = 'dictionary'
|
||||
|
@ -41,9 +41,6 @@ class Values(Cache):
|
||||
def commit(self):
|
||||
pass
|
||||
|
||||
def getsession(self):
|
||||
pass
|
||||
|
||||
def _setvalue_info(self, nb, idx, value, values, index, vidx):
|
||||
lst = list(self._values[nb])
|
||||
if idx is None:
|
||||
@ -299,4 +296,4 @@ class Values(Cache):
|
||||
self._values = export
|
||||
|
||||
def delete_session(session_id):
|
||||
raise ValueError(_('a dictionary cannot be persistent'))
|
||||
raise ValueError(_('cannot delete none persistent session'))
|
||||
|
@ -34,9 +34,6 @@ class Values(Sqlite3DB):
|
||||
"""
|
||||
super(Values, self).__init__(storage)
|
||||
|
||||
def getsession(self):
|
||||
pass
|
||||
|
||||
# sqlite
|
||||
def _sqlite_select(self, path, index):
|
||||
request = "SELECT value FROM value WHERE path = ? AND session_id = ? "
|
||||
|
Reference in New Issue
Block a user