Author: brosner
Date: Sat Sep 13 02:33:11 2008
New Revision: 98

Modified:
    trunk/notification/engine.py
    trunk/notification/models.py

Log:
Gave NoticeQueue a better name of NoticeQueueBatch.

Modified: trunk/notification/engine.py
==============================================================================
--- trunk/notification/engine.py        (original)
+++ trunk/notification/engine.py        Sat Sep 13 02:33:11 2008
@@ -12,7 +12,7 @@

  from lockfile import FileLock, AlreadyLocked, LockTimeout

-from notification.models import NoticeQueue
+from notification.models import NoticeQueueBatch
  from notification import models as notification

  # lock timeout value. how long to wait for the lock to become available.
@@ -37,7 +37,7 @@
      start_time = time.time()

      try:
-        for queued_batch in NoticeQueue.objects.all():
+        for queued_batch in NoticeQueueBatch.objects.all():
              notices = pickle.loads(str(queued_batch.pickled_data))
              for user, label, extra_context, on_site in notices:
                  user = User.objects.get(pk=user)

Modified: trunk/notification/models.py
==============================================================================
--- trunk/notification/models.py        (original)
+++ trunk/notification/models.py        Sat Sep 13 02:33:11 2008
@@ -158,7 +158,7 @@
      def get_absolute_url(self):
          return ("notification_notice", [str(self.pk)])

-class NoticeQueue(models.Model):
+class NoticeQueueBatch(models.Model):
      """
      A queued notice.
      Denormalized data for a notice.
@@ -288,7 +288,7 @@
      notices = []
      for user in users:
          notices.append((user, label, extra_context, on_site))
-    NoticeQueue(pickled_data=pickle.dumps(notices)).save()
+    NoticeQueueBatch(pickled_data=pickle.dumps(notices)).save()

  class ObservedItemManager(models.Manager):


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to