~nkarageuzian/mailman/bug-1312884

« back to all changes in this revision

Viewing changes to src/mailman/model/docs/pending.rst

  • Committer: Barry Warsaw
  • Date: 2014-04-28 15:23:35 UTC
  • Revision ID: barry@list.org-20140428152335-uomli7adnqf3h6dm
Use print functions consistently through, and update all __future__ imports to
reflect this.

Also, mock out sys.stderr on some tests so that their nose2 output is quieter.

A few other minor coding style consistencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
is returned.
40
40
 
41
41
    >>> pendable = pendingdb.confirm(bytes('missing'))
42
 
    >>> print pendable
 
42
    >>> print(pendable)
43
43
    None
44
44
    >>> pendable = pendingdb.confirm(token)
45
45
    >>> dump_msgdata(pendable)
51
51
 
52
52
After confirmation, the token is no longer in the database.
53
53
 
54
 
    >>> print pendingdb.confirm(token)
 
54
    >>> print(pendingdb.confirm(token))
55
55
    None
56
56
 
57
57
There are a few other things you can do with the pending database.  When you
70
70
    >>> pendable = pendingdb.confirm(token_1, expunge=True)
71
71
    >>> dump_msgdata(pendable)
72
72
    type: one
73
 
    >>> print pendingdb.confirm(token_1)
 
73
    >>> print(pendingdb.confirm(token_1))
74
74
    None
75
75
 
76
76
An event can be given a lifetime when it is pended, otherwise it just uses a
84
84
Every once in a while the pending database is cleared of old records.
85
85
 
86
86
    >>> pendingdb.evict()
87
 
    >>> print pendingdb.confirm(token_4)
 
87
    >>> print(pendingdb.confirm(token_4))
88
88
    None
89
89
    >>> pendable = pendingdb.confirm(token_2)
90
90
    >>> dump_msgdata(pendable)