Esempio n. 1
0
 def GET(self):
     user = accounts.get_current_user()
     user.update_loan_status()
     loans = borrow.get_loans(user)
     return render['account/borrow'](user, loans)
Esempio n. 2
0
 def get_loan_count(self):
     return len(borrow.get_loans(self))
Esempio n. 3
0
 def get_loans(self):
     return borrow.get_loans(self.user)
Esempio n. 4
0
 def GET(self):
     user = web.ctx.site.get_user()
     user.update_loan_status()
     loans = borrow.get_loans(user)
     return render['account/borrow'](user, loans)
Esempio n. 5
0
 def GET(self):
     user = accounts.get_current_user()
     user.update_loan_status()
     loans = borrow.get_loans(user)
     return render['account/borrow'](user, loans)
Esempio n. 6
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)
Esempio n. 7
0
 def get_loan_count(self):
     return len(borrow.get_loans(self))
Esempio n. 8
0
 def get_loans(self):
     return borrow.get_loans(self.user)
Esempio n. 9
0
 def GET(self):
     user = web.ctx.site.get_user()
     user.update_loan_status()
     loans = borrow.get_loans(user)
     return render['account/borrow'](user, loans)
Esempio n. 10
0
 def get_loans(self):
     self.update_loan_status()
     return borrow.get_loans(self)
Esempio n. 11
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)
Esempio n. 12
0
 def get_loans(self):
     self.update_loan_status()
     return borrow.get_loans(self)