Beispiel #1
0
    def __getitem__(self, key):
        if not isinstance(key, str):
            key = key['is logged']
            if key is None:
                return

        try:
            return self.__core__[str(util.uuid(key))]
        except KeyError:
            pass
Beispiel #2
0
 def __setitem__(self, key, item):
     self.__core__[str(util.uuid(key.lower()))] = item
     self.save
Beispiel #3
0
 def __delitem__(self, key):
     del self.__core__[str(util.uuid(key.lower()))]
     self.save
Beispiel #4
0
 def __getitem__(self, key):
     try:
         return self.__core__[str(util.uuid(key.lower()))]
     except KeyError:
         pass