server/session.py
branchstable
changeset 7330 584907154ce3
parent 7329 f2d52aa8bcdb
child 7340 9303fd71c2ee
child 7349 43416f63eca9
equal deleted inserted replaced
7329:f2d52aa8bcdb 7330:584907154ce3
    63 @objectify_selector
    63 @objectify_selector
    64 def is_user_session(cls, req, **kwargs):
    64 def is_user_session(cls, req, **kwargs):
    65     """repository side only selector returning 1 if the session is a regular
    65     """repository side only selector returning 1 if the session is a regular
    66     user session and not an internal session
    66     user session and not an internal session
    67     """
    67     """
    68     return req.is_internal_session
    68     return not req.is_internal_session
    69 
    69 
    70 @objectify_selector
    70 @objectify_selector
    71 def is_internal_session(cls, req, **kwargs):
    71 def is_internal_session(cls, req, **kwargs):
    72     """repository side only selector returning 1 if the session is not a regular
    72     """repository side only selector returning 1 if the session is not a regular
    73     user session but an internal session
    73     user session but an internal session