Linux biogene 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
Apache
: 46.101.124.208 | : 18.118.140.19
Cant Read [ /etc/named.conf ]
5.6.40-0+deb8u12
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
dist-packages /
sqlalchemy /
orm /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
7.79
KB
-rw-r--r--
__init__.pyc
9.05
KB
-rw-r--r--
attributes.py
54.22
KB
-rw-r--r--
attributes.pyc
52.92
KB
-rw-r--r--
base.py
12.91
KB
-rw-r--r--
base.pyc
13.01
KB
-rw-r--r--
collections.py
52.03
KB
-rw-r--r--
collections.pyc
59.75
KB
-rw-r--r--
dependency.py
44.99
KB
-rw-r--r--
dependency.pyc
27.71
KB
-rw-r--r--
deprecated_interfaces.py
21.43
KB
-rw-r--r--
deprecated_interfaces.pyc
24.62
KB
-rw-r--r--
descriptor_props.py
23.88
KB
-rw-r--r--
descriptor_props.pyc
26.52
KB
-rw-r--r--
dynamic.py
13.03
KB
-rw-r--r--
dynamic.pyc
14.09
KB
-rw-r--r--
evaluator.py
4.91
KB
-rw-r--r--
evaluator.pyc
6.99
KB
-rw-r--r--
events.py
68.96
KB
-rw-r--r--
events.pyc
74.7
KB
-rw-r--r--
exc.py
5.31
KB
-rw-r--r--
exc.pyc
7.46
KB
-rw-r--r--
identity.py
6.92
KB
-rw-r--r--
identity.pyc
10.32
KB
-rw-r--r--
instrumentation.py
16.39
KB
-rw-r--r--
instrumentation.pyc
18.85
KB
-rw-r--r--
interfaces.py
18.54
KB
-rw-r--r--
interfaces.pyc
22.92
KB
-rw-r--r--
loading.py
20.76
KB
-rw-r--r--
loading.pyc
13.17
KB
-rw-r--r--
mapper.py
105.8
KB
-rw-r--r--
mapper.pyc
79.27
KB
-rw-r--r--
path_registry.py
7.49
KB
-rw-r--r--
path_registry.pyc
11.72
KB
-rw-r--r--
persistence.py
39.9
KB
-rw-r--r--
persistence.pyc
30.86
KB
-rw-r--r--
properties.py
9.33
KB
-rw-r--r--
properties.pyc
10.22
KB
-rw-r--r--
query.py
128.55
KB
-rw-r--r--
query.pyc
119.57
KB
-rw-r--r--
relationships.py
108.5
KB
-rw-r--r--
relationships.pyc
93.61
KB
-rw-r--r--
scoping.py
5.96
KB
-rw-r--r--
scoping.pyc
7.22
KB
-rw-r--r--
session.py
93.63
KB
-rw-r--r--
session.pyc
87.9
KB
-rw-r--r--
state.py
20.52
KB
-rw-r--r--
state.pyc
23.98
KB
-rw-r--r--
strategies.py
53.02
KB
-rw-r--r--
strategies.pyc
40.73
KB
-rw-r--r--
strategy_options.py
31.42
KB
-rw-r--r--
strategy_options.pyc
32.5
KB
-rw-r--r--
sync.py
4.63
KB
-rw-r--r--
sync.pyc
3.87
KB
-rw-r--r--
unitofwork.py
22.69
KB
-rw-r--r--
unitofwork.pyc
22.02
KB
-rw-r--r--
util.py
34.86
KB
-rw-r--r--
util.pyc
35.23
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : identity.py
# orm/identity.py # Copyright (C) 2005-2014 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php import weakref from . import attributes from .. import util class IdentityMap(dict): def __init__(self): self._modified = set() self._wr = weakref.ref(self) def replace(self, state): raise NotImplementedError() def add(self, state): raise NotImplementedError() def update(self, dict): raise NotImplementedError("IdentityMap uses add() to insert data") def clear(self): raise NotImplementedError("IdentityMap uses remove() to remove data") def _manage_incoming_state(self, state): state._instance_dict = self._wr if state.modified: self._modified.add(state) def _manage_removed_state(self, state): del state._instance_dict self._modified.discard(state) def _dirty_states(self): return self._modified def check_modified(self): """return True if any InstanceStates present have been marked as 'modified'. """ return bool(self._modified) def has_key(self, key): return key in self def popitem(self): raise NotImplementedError("IdentityMap uses remove() to remove data") def pop(self, key, *args): raise NotImplementedError("IdentityMap uses remove() to remove data") def setdefault(self, key, default=None): raise NotImplementedError("IdentityMap uses add() to insert data") def copy(self): raise NotImplementedError() def __setitem__(self, key, value): raise NotImplementedError("IdentityMap uses add() to insert data") def __delitem__(self, key): raise NotImplementedError("IdentityMap uses remove() to remove data") class WeakInstanceDict(IdentityMap): def __init__(self): IdentityMap.__init__(self) def __getitem__(self, key): state = dict.__getitem__(self, key) o = state.obj() if o is None: raise KeyError(key) return o def __contains__(self, key): try: if dict.__contains__(self, key): state = dict.__getitem__(self, key) o = state.obj() else: return False except KeyError: return False else: return o is not None def contains_state(self, state): return dict.get(self, state.key) is state def replace(self, state): if dict.__contains__(self, state.key): existing = dict.__getitem__(self, state.key) if existing is not state: self._manage_removed_state(existing) else: return dict.__setitem__(self, state.key, state) self._manage_incoming_state(state) def add(self, state): key = state.key # inline of self.__contains__ if dict.__contains__(self, key): try: existing_state = dict.__getitem__(self, key) if existing_state is not state: o = existing_state.obj() if o is not None: raise AssertionError( "A conflicting state is already " "present in the identity map for key %r" % (key, )) else: return except KeyError: pass dict.__setitem__(self, key, state) self._manage_incoming_state(state) def get(self, key, default=None): state = dict.get(self, key, default) if state is default: return default o = state.obj() if o is None: return default return o def _items(self): values = self.all_states() result = [] for state in values: value = state.obj() if value is not None: result.append((state.key, value)) return result def _values(self): values = self.all_states() result = [] for state in values: value = state.obj() if value is not None: result.append(value) return result if util.py2k: items = _items values = _values def iteritems(self): return iter(self.items()) def itervalues(self): return iter(self.values()) else: def items(self): return iter(self._items()) def values(self): return iter(self._values()) def all_states(self): if util.py2k: return dict.values(self) else: return list(dict.values(self)) def discard(self, state): st = dict.get(self, state.key, None) if st is state: dict.pop(self, state.key, None) self._manage_removed_state(state) def prune(self): return 0 class StrongInstanceDict(IdentityMap): def all_states(self): return [attributes.instance_state(o) for o in self.values()] def contains_state(self, state): return ( state.key in self and attributes.instance_state(self[state.key]) is state) def replace(self, state): if dict.__contains__(self, state.key): existing = dict.__getitem__(self, state.key) existing = attributes.instance_state(existing) if existing is not state: self._manage_removed_state(existing) else: return dict.__setitem__(self, state.key, state.obj()) self._manage_incoming_state(state) def add(self, state): if state.key in self: if attributes.instance_state( dict.__getitem__( self, state.key)) is not state: raise AssertionError('A conflicting state is already ' 'present in the identity map for key %r' % (state.key, )) else: dict.__setitem__(self, state.key, state.obj()) self._manage_incoming_state(state) def discard(self, state): obj = dict.get(self, state.key, None) if obj is not None: st = attributes.instance_state(obj) if st is state: dict.pop(self, state.key, None) self._manage_removed_state(state) def prune(self): """prune unreferenced, non-dirty states.""" ref_count = len(self) dirty = [s.obj() for s in self.all_states() if s.modified] # work around http://bugs.python.org/issue6149 keepers = weakref.WeakValueDictionary() keepers.update(self) dict.clear(self) dict.update(self, keepers) self.modified = bool(dirty) return ref_count - len(self)
Close