sitetree/sitetreeapp.py
def get_sitetree():
    """Returns SiteTree (thread-singleton) object, implementing utility methods.

    :rtype: SiteTree
    """
    sitetree = getattr(_THREAD_LOCAL, _THREAD_SITETREE, None)

    if sitetree is None:
        sitetree = SiteTree()
        setattr(_THREAD_LOCAL, _THREAD_SITETREE, sitetree)

    return sitetree
def get_sitetree():
    """Returns SiteTree (thread-singleton) object, implementing utility methods.

    :rtype: SiteTree
    """
    sitetree = getattr(_THREAD_LOCAL, _THREAD_SITETREE, None)

    if sitetree is None:
        sitetree = SiteTree()
        setattr(_THREAD_LOCAL, _THREAD_SITETREE, sitetree)

    return sitetree
def get_sitetree ( ) : sitetree = getattr ( _THREAD_LOCAL , _THREAD_SITETREE , None ) if sitetree is None : sitetree = SiteTree ( ) setattr ( _THREAD_LOCAL , _THREAD_SITETREE , sitetree ) return sitetree
Returns SiteTree (thread-singleton) object, implementing utility methods.

    :rtype: SiteTree
Returns SiteTree ( thread - singleton ) object implementing utility methods .