summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSylvain Viollon <sviollon@minddistrict.com>2018-10-18 10:17:16 +0200
committerSylvain Viollon <sviollon@minddistrict.com>2018-10-18 10:17:16 +0200
commit22a4f856b31bf95eadda80aacc7c0a4e4b735144 (patch)
treed02f65e0925c88790e21d5ef124c3ad71135b7ca /docs
parentae338be03256136e684b4d5fee2b3b9dccaa6f2b (diff)
downloadzope-i18nmessageid-22a4f856b31bf95eadda80aacc7c0a4e4b735144.tar.gz
Reimplement message id changes including on the C extension.
Diffstat (limited to 'docs')
-rw-r--r--docs/narr.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/narr.rst b/docs/narr.rst
index e48c53a..5982880 100644
--- a/docs/narr.rst
+++ b/docs/narr.rst
@@ -54,7 +54,7 @@ exports an already-created factory for that domain:
>>> foo = _z_('foo')
>>> foo.domain
'zope'
-
+
Example Usage
-------------
@@ -135,14 +135,17 @@ Last but not least, messages are reduceable for pickling:
>>> args == (u'robot-message',
... 'futurama',
... u'${name} is a robot.',
- ... {u'name': u'Bender'})
+ ... {u'name': u'Bender'},
+ ... None,
+ ... None,
+ ... None)
True
>>> fembot = Message(u'fembot')
>>> callable, args = fembot.__reduce__()
>>> callable is Message
True
- >>> args == (u'fembot', None, None, None)
+ >>> args == (u'fembot', None, None, None, None, None, None)
True
Pickling and unpickling works, which means we can store message IDs in