Exemplo n.º 1
0
 def update_loan_status(self):
     """Update the status of this user's loans."""
     loans = borrow.get_loans(self)
     for resource_id in [loan['resource_id'] for loan in loans]:
         borrow.update_loan_status(resource_id)
Exemplo n.º 2
0
 def update_loan_status(self):
     """Update the loan status"""
     # $$$ search in the store and update
     loans = borrow.get_edition_loans(self)
     for loan in loans:
         borrow.update_loan_status(loan['resource_id'])
Exemplo n.º 3
0
 def update_loan_status(self):
     """Update the status of this user's loans."""
     loans = borrow.get_loans(self)
     for resource_id in [loan['resource_id'] for loan in loans]:
         borrow.update_loan_status(resource_id)
Exemplo n.º 4
0
 def update_loan_status(self):
     """Update the loan status based off the status in ACS4"""
     urn_pattern = r'acs:\w+:(.*)'
     for ia_urn in self.get_lending_resources():
         resource_id = re.match(urn_pattern, ia_urn).group(1)
         borrow.update_loan_status(resource_id)
Exemplo n.º 5
0
 def update_loan_status(self):
     """Update the loan status"""
     # $$$ search in the store and update
     loans = borrow.get_edition_loans(self)
     for loan in loans:
         borrow.update_loan_status(loan['resource_id'])