'''
Created on 04.07.2011

@author: michi
'''
from ems.singletonmixin import Singleton

class SessionGetterNotSetError(Exception):
    pass

class ModelCache(Singleton):
    entries = {}
    sessionGetter = None
    def __init__(self):
        pass
        
    def setEntry(self, name, val):
        self.entries[name] = val
    
    def getEntry(self, name):
        if self.sessionGetter is None:
            raise SessionGetterNotSetError("Please assign a sessiongetter callable")
        return self.entries[name]
4dbd1326759b481a7d2e10b2441f3cbd17042030
<mask token>


class ModelCache(Singleton):
    <mask token>
    <mask token>

    def __init__(self):
        pass

    def setEntry(self, name, val):
        self.entries[name] = val

    def getEntry(self, name):
        if self.sessionGetter is None:
            raise SessionGetterNotSetError(
                'Please assign a sessiongetter callable')
        return self.entries[name]

<mask token>


class ModelCache(Singleton):
    entries = {}
    sessionGetter = None

    def __init__(self):
        pass

    def setEntry(self, name, val):
        self.entries[name] = val

    def getEntry(self, name):
        if self.sessionGetter is None:
            raise SessionGetterNotSetError(
                'Please assign a sessiongetter callable')
        return self.entries[name]

<mask token>


class SessionGetterNotSetError(Exception):
    pass


class ModelCache(Singleton):
    entries = {}
    sessionGetter = None

    def __init__(self):
        pass

    def setEntry(self, name, val):
        self.entries[name] = val

    def getEntry(self, name):
        if self.sessionGetter is None:
            raise SessionGetterNotSetError(
                'Please assign a sessiongetter callable')
        return self.entries[name]

<mask token>
from ems.singletonmixin import Singleton


class SessionGetterNotSetError(Exception):
    pass


class ModelCache(Singleton):
    entries = {}
    sessionGetter = None

    def __init__(self):
        pass

    def setEntry(self, name, val):
        self.entries[name] = val

    def getEntry(self, name):
        if self.sessionGetter is None:
            raise SessionGetterNotSetError(
                'Please assign a sessiongetter callable')
        return self.entries[name]

'''
Created on 04.07.2011

@author: michi
'''
from ems.singletonmixin import Singleton

class SessionGetterNotSetError(Exception):
    pass

class ModelCache(Singleton):
    entries = {}
    sessionGetter = None
    def __init__(self):
        pass
        
    def setEntry(self, name, val):
        self.entries[name] = val
    
    def getEntry(self, name):
        if self.sessionGetter is None:
            raise SessionGetterNotSetError("Please assign a sessiongetter callable")
        return self.entries[name]