selectors.py
changeset 5244 5467674ad101
parent 5223 6abd6e3599f4
child 5302 dfd147de06b2
equal deleted inserted replaced
5243:1ab7acb9abe9 5244:5467674ad101
  1042     """Return 1 if the web session has no connection set. This occurs when
  1042     """Return 1 if the web session has no connection set. This occurs when
  1043     anonymous access is not allowed and user isn't authenticated.
  1043     anonymous access is not allowed and user isn't authenticated.
  1044 
  1044 
  1045     May only be used on the web side, not on the data repository side.
  1045     May only be used on the web side, not on the data repository side.
  1046     """
  1046     """
  1047     if req.cnx is None:
  1047     if not req.cnx:
  1048         return 1
  1048         return 1
  1049     return 0
  1049     return 0
  1050 
  1050 
  1051 @objectify_selector
  1051 @objectify_selector
  1052 @lltrace
  1052 @lltrace