Exemplo n.º 1
0
 def joindate(self):
     """ Converts the user's join date (if it exists) to a datetime.date
         object that can easily be compared with other dates.
     """
     if not self.memberSince:
         return None
     return utils.date_from_ldap_timestamp(self.memberSince)
Exemplo n.º 2
0
 def joindate(self):
     """ Converts the user's join date (if it exists) to a datetime.date
         object that can easily be compared with other dates.
     """
     if not self.memberSince:
         return None
     return utils.date_from_ldap_timestamp(self.memberSince)
Exemplo n.º 3
0
 def birthdate(self):
     """ Converts the user's birthday (if it exists) to a datetime.date
         object that can easily be compared with other dates.
     """
     if not self.birthday:
         return None
     return utils.date_from_ldap_timestamp(self.birthday)
Exemplo n.º 4
0
 def birthdate(self):
     """ Converts the user's birthday (if it exists) to a datetime.date
         object that can easily be compared with other dates.
     """
     if not self.birthday:
         return None
     return utils.date_from_ldap_timestamp(self.birthday)