# HG changeset patch # User Dmitriy Morozov # Date 1239134208 25200 # Node ID b93ab358f2fc13b09983cb66c6b70a5c9371183c # Parent 0b3edabb7da2e74c0baf359ae4df0ad4836112ce Fixed small iadd bug + added documentation issue (#d913) diff -r 0b3edabb7da2 -r b93ab358f2fc .issues/d9133b0e69e403c0/new/1239134046.M751897P28808Q1.cole --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.issues/d9133b0e69e403c0/new/1239134046.M751897P28808Q1.cole Tue Apr 07 12:56:48 2009 -0700 @@ -0,0 +1,7 @@ +From: Dmitriy Morozov +Date: Tue, 07 Apr 2009 12:53:56 +State: new +Subject: Documentation +Message-Id: + +Write documentation. diff -r 0b3edabb7da2 -r b93ab358f2fc artemis.py --- a/artemis.py Tue Apr 07 12:44:49 2009 -0700 +++ b/artemis.py Tue Apr 07 12:56:48 2009 -0700 @@ -138,7 +138,6 @@ if not id: outer.add_header('Message-Id', "<%s-0-artemis@%s>" % (issue_id, socket.gethostname())) - root = 0 else: root = keys[0] outer.add_header('Message-Id', "<%s-%s-artemis@%s>" % (issue_id, _random_id(), socket.gethostname())) @@ -147,14 +146,15 @@ repo.add([issue_fn[(len(repo.root)+1):] + '/new/' + mbox.add(outer)]) # +1 for the trailing / # Fix properties in the root message - msg = mbox[root] if properties: + root = _find_root_key(mbox) + msg = mbox[root] for property, value in properties: if property in msg: msg.replace_header(property, value) else: msg.add_header(property, value) - mbox[root] = msg + mbox[root] = msg mbox.close()