[Mpuls-commits] r2961 - base/trunk/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jun 10 11:47:07 CEST 2010


Author: roland
Date: 2010-06-10 11:47:06 +0200 (Thu, 10 Jun 2010)
New Revision: 2961

Modified:
   base/trunk/mpulsweb/model/appointment.py
Log:
typos

Modified: base/trunk/mpulsweb/model/appointment.py
===================================================================
--- base/trunk/mpulsweb/model/appointment.py	2010-06-10 09:25:00 UTC (rev 2960)
+++ base/trunk/mpulsweb/model/appointment.py	2010-06-10 09:47:06 UTC (rev 2961)
@@ -465,22 +465,21 @@
         # 0. Load ids and some additional info on cases which either are active
         # but seems to be orphaned or are finished and not edited for
         # longer than maxage.
-        # orphaned means that all last appointmentment, aids or the
+        # orphaned means that all last appointments, aids or the
         # modification date is older than maxage
         oldAndActive = self.getOldAndActiveCases(maxage, user)
         oldAndFinished = self.getOldAndFinishedCases(maxage, user)
 
-        # 1. Load cases of the user so we can so checks regarding the maximum
-        # savetime on them
+        # 1. Load the user's cases so we can check the maximum savetime on them
         default_search_options = ['own:%s' % user.id, 'standin:%s' % user.id,
                                   'state:1', 'state:2', 'state:3']
         # Get phasepart ids for the selected phasepairs. Only if pairs are
         # defined.
-        for p in default_phases(): 
+        for p in default_phases():
             default_search_options.append('phase:%s' % p)
         cases.search(";".join(default_search_options))
 
-        # 2. filter cases which seems to be orphaned and create reminders
+        # 2. filter cases which seem to be orphaned and create reminders
         oldAndActiveSet = set(oldAndActive)
         old_cases = [case for case in cases.getDatasets()
                      if case.id in oldAndActiveSet]



More information about the Mpuls-commits mailing list