grr/server/grr_response_server/db.py
def ReadUserNotifications(self, username, state=None, timerange=None):
    """Reads notifications scheduled for a user within a given timerange.

    Args:
      username: Username identifying the user.
      state: If set, only return the notifications with a given state attribute.
      timerange: Should be either a tuple of (from, to) or None. "from" and to"
        should be rdfvalue.RDFDatetime or None values (from==None means "all
        record up to 'to'", to==None means all records from 'from'). If both
        "to" and "from" are None or the timerange itself is None, all
        notifications are fetched. Note: "from" and "to" are inclusive: i.e. a
          from <= time <= to condition is applied.

    Returns:
      List of objects.UserNotification objects.
    """
Reads notifications scheduled for a user within a given timerange.

    Args:
      username: Username identifying the user.
      state: If set, only return the notifications with a given state attribute.
      timerange: Should be either a tuple of (from, to) or None. "from" and to"
        should be rdfvalue.RDFDatetime or None values (from==None means "all
        record up to 'to'", to==None means all records from 'from'). If both
        "to" and "from" are None or the timerange itself is None, all
        notifications are fetched. Note: "from" and "to" are inclusive: i.e. a
          from <= time <= to condition is applied.

    Returns:
      List of objects.UserNotification objects.
    
Reads notifications scheduled for a user within a given timerange.
Reads notifications scheduled for a user within a given timerange .
def ReadUserNotifications(self, username, state=None, timerange=None):
def ReadUserNotifications ( self , username , state = None , timerange = None ) :
Reads notifications scheduled for a user within a given timerange.
Reads notifications scheduled for a user within a given timerange .
"""Reads notifications scheduled for a user within a given timerange.

    Args:
      username: Username identifying the user.
      state: If set, only return the notifications with a given state attribute.
      timerange: Should be either a tuple of (from, to) or None. "from" and to"
        should be rdfvalue.RDFDatetime or None values (from==None means "all
        record up to 'to'", to==None means all records from 'from'). If both
        "to" and "from" are None or the timerange itself is None, all
        notifications are fetched. Note: "from" and "to" are inclusive: i.e. a
          from <= time <= to condition is applied.

    Returns:
      List of objects.UserNotification objects.
    """
List of objects.UserNotification objects.
List of objects . UserNotification objects .
self
username
Username identifying the user.
Username identifying the user .
state
If set, only return the notifications with a given state attribute.
If set only return the notifications with a given state attribute .
timerange
Should be either a tuple of (from, to) or None. "from" and to"
should be rdfvalue.RDFDatetime or None values (from==None means "all
record up to 'to'", to==None means all records from 'from'). If both
"to" and "from" are None or the timerange itself is None, all
notifications are fetched. Note: "from" and "to" are inclusive: i.e. a
from <= time <= to condition is applied.
Should be either a tuple of ( from to ) or None . " from " and to " should be rdfvalue . RDFDatetime or None values ( from == None means " all record up to ' to ' " to == None means all records from ' from ' ) . If both " to " and " from " are None or the timerange itself is None all notifications are fetched . Note : " from " and " to " are inclusive : i . e . a from < = time < = to condition is applied .