aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces/email
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-05 01:58:41 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-05 01:58:41 -0500
commit129c100046231ed15d2f16eaa90b5c01e41a442c (patch)
tree8f78ec47beb7f9d44fb8f72178d8b5f658d90b39 /interfaces/email
parent281e98e998b4a1ec550c6702aee0eead003905be (diff)
downloadbugseverywhere-129c100046231ed15d2f16eaa90b5c01e41a442c.tar.gz
Moved subscription types from becommands/subscribe.py to libbe/diff.py.
Diffstat (limited to 'interfaces/email')
-rwxr-xr-xinterfaces/email/interactive/be-handle-mail8
1 files changed, 4 insertions, 4 deletions
diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail
index 3b321cf..952c16d 100755
--- a/interfaces/email/interactive/be-handle-mail
+++ b/interfaces/email/interactive/be-handle-mail
@@ -685,21 +685,21 @@ class Message (object):
ordered_subscriptions.extend(subscriptions.items())
for id,types in ordered_subscriptions:
if id == "DIR":
- if subscribe.BUGDIR_TYPE_ALL in types:
+ if libbe.diff.BUGDIR_TYPE_ALL in types:
parts.append(diff_tree.report_or_none())
break # we've attached everything, so stop checking.
- if subscribe.BUGDIR_TYPE_NEW in types:
+ if libbe.diff.BUGDIR_TYPE_NEW in types:
new = diff_tree.child_by_path("/bugs/new")
parts.append(new.report_or_none())
continue # move on to next id
# if we get this far, id refers to a bug.
- assert types == [subscribe.BUG_TYPE_ALL], types
+ assert types == [libbe.diff.BUG_TYPE_ALL], types
if id not in bug_index:
continue # no changes here, move on to next id
type,bug_root = bug_index[id]
if type == "added" \
and "DIR" in subscriptions \
- and subscriptions["DIR"] == subscribe.BUGDIR_TYPE_NEW:
+ and subscriptions["DIR"] == libbe.diff.BUGDIR_TYPE_NEW:
# this info already attached at the DIR level
continue # move on to next id
parts.append(bug_root.report_or_none())