summaryrefslogtreecommitdiff
path: root/src/mailman/model/pending.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-12-16 10:38:04 -0500
committerBarry Warsaw2015-12-16 14:52:56 -0500
commitff84c2bb24555d4ae6276b1dca7071b440172bdb (patch)
tree116baf4b4c5663efea47346bd7e67c6e3e18d997 /src/mailman/model/pending.py
parentb414461832e4da232096904f2630b07a8caf6b15 (diff)
downloadmailman-ff84c2bb24555d4ae6276b1dca7071b440172bdb.tar.gz
mailman-ff84c2bb24555d4ae6276b1dca7071b440172bdb.tar.zst
mailman-ff84c2bb24555d4ae6276b1dca7071b440172bdb.zip
Diffstat (limited to 'src/mailman/model/pending.py')
-rw-r--r--src/mailman/model/pending.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mailman/model/pending.py b/src/mailman/model/pending.py
index 95c88c015..1973820d0 100644
--- a/src/mailman/model/pending.py
+++ b/src/mailman/model/pending.py
@@ -35,7 +35,7 @@ from mailman.database.transaction import dbconnection
from mailman.interfaces.pending import (
IPendable, IPended, IPendedKeyValue, IPendings)
from mailman.utilities.datetime import now
-from sqlalchemy import and_, Column, DateTime, ForeignKey, Integer, Unicode
+from sqlalchemy import Column, DateTime, ForeignKey, Integer, Unicode, and_
from sqlalchemy.orm import aliased, relationship
from zope.interface import implementer
from zope.interface.verify import verifyObject
@@ -139,9 +139,11 @@ class Pendings:
'Unexpected token count: {0}'.format(pendings.count()))
pending = pendings[0]
pendable = UnpendedPendable()
- # Iter on PendedKeyValue entries that are associated with the pending
- # object's ID. Watch out for type conversions.
+ # Iterate on PendedKeyValue entries that are associated with the
+ # pending object's ID. Watch out for type conversions.
for keyvalue in pending.key_values:
+ # The `type` key is special and served. It is not JSONified. See
+ # the IPendable interface for details.
if keyvalue.key == 'type':
value = keyvalue.value
else: