Ticket #1366: 1366-no-hasattr.darcs.patch

File 1366-no-hasattr.darcs.patch, 7.4 KB (added by davidsarah, at 2011-10-13T20:07:17Z)

web/filenode.py: since we depend on Twisted >= 10.1, there is no need to check for the existence of 'req.notifyFinish', which was added in Twisted 9.0. closes #1366

Line 
11 patch for repository davidsarah@dev.allmydata.org:/home/darcs/tahoe/trunk:
2
3Thu Oct 13 21:03:44 BST 2011  david-sarah@jacaranda.org
4  * web/filenode.py: since we depend on Twisted >= 10.1, there is no need to check for the existence of 'req.notifyFinish', which was added in Twisted 9.0. closes #1366
5
6New patches:
7
8[web/filenode.py: since we depend on Twisted >= 10.1, there is no need to check for the existence of 'req.notifyFinish', which was added in Twisted 9.0. closes #1366
9david-sarah@jacaranda.org**20111013200344
10 Ignore-this: 72399daa19a5a5076c12453b631cd547
11] hunk ./src/allmydata/web/filenode.py 460
12         finished = []
13         def _request_finished(ign):
14             finished.append(True)
15-        if hasattr(req, "notifyFinish"):
16-            req.notifyFinish().addBoth(_request_finished)
17+        req.notifyFinish().addBoth(_request_finished)
18 
19         d = self.filenode.read(req, first, size)
20 
21
22Context:
23
24[docs: fix several imprecise or inaccurate values in performance.rst
25zooko@zooko.com**20110508124228
26 Ignore-this: f1ecc5cb32eebec9760c8fc437799eb4
27 add cpu values for each operation
28 sort the list of values into the same order in each operation
29 refs #1398
30]
31[oops, missed a test failure
32Brian Warner <warner@lothar.com>**20111013163713
33 Ignore-this: d8cb188d8dd664e335f19b9fa342da4a
34]
35[misc mutable-type fixes:
36warner@lothar.com**20111013163229
37 Ignore-this: ab62dc2f27aa1f793e7bd02e360ee471
38 
39 * fix tahoe.cfg control of default mutable type
40 * tolerate arbitrary case in [client]mutable.format value
41 * small docs improvements
42 * use get_mutable_type() as a format-is-mutable predicate
43 * tighten up error message
44]
45[webapi: use all-caps "SDMF"/"MDMF" acronyms in t=json response
46warner@lothar.com**20111013163143
47 Ignore-this: 945eaa5ce7f108793b0bb6cae0239965
48 
49 docs: upcase examples of t=json output and format= input
50]
51[webapi.rst: fix whitespace (detabify) t=json examples
52warner@lothar.com**20111013163056
53 Ignore-this: c095687413876507c5cc46864459c054
54]
55[webapi: handle format=, remove mutable-type=
56warner@lothar.com**20111013162951
57 Ignore-this: de7d9c5516385d002dbc21f31c23204c
58 
59 * fix CLI commands (put, mkdir) to send format=, not mutable-type=
60 * fix tests
61 * test_cli: fix tests that observe t=json output, don't ignore failures in
62   'tahoe put'
63 * fix handling of version= to make it easier to use the default
64 * interpret ?mutable=true&format=MDMF as MDMF, not SDMF
65]
66[docs/frontends/webapi.rst: document the format argument
67kevan@isnotajoke.com**20111010025529
68 Ignore-this: 2a7b8d711dc369bd9a23e2853824cfb0
69]
70[Tests for ref #1547
71david-sarah@jacaranda.org**20111002035316
72 Ignore-this: 933f2b6ff148523f40475fe2d2578170
73]
74[Change the file upload forms on directory and welcome pages to use a 3-way radio button to select immutable, SDMF, or MDMF. Add '(experimental)' to the label for creating an MDMF directory. Also improve the spacing of form elements. refs #1547
75david-sarah@jacaranda.org**20111002034503
76 Ignore-this: 46a8b966fddc8ccaa7e70bffbd68b52f
77]
78[test_web.py: minor cleanups, mainly to make the first argument to shouldFail tests consistent
79david-sarah@jacaranda.org**20111002040332
80 Ignore-this: 234ba793f78f112717e02755e1fa81b5
81]
82[Tests for ref #1552
83david-sarah@jacaranda.org**20111002040036
84 Ignore-this: abdc5c39d90ea7f314834fff7ecd6784
85]
86[misc/check-interfaces.py: print a warning if a .pyc or .pyo file exists without a corresponding .py file.
87david-sarah@jacaranda.org**20111012233609
88 Ignore-this: 35f04939360c6d3b1e8e0c2e9e712d80
89]
90[test/common.py: in shouldFail and shouldHTTPError, when the raised exception does not include the expected substring (or, for shouldHTTPError, when the status code is wrong), mention which test that happened in.
91david-sarah@jacaranda.org**20111011002227
92 Ignore-this: 836cabe9ef774617122905b214a0b8e8
93]
94[interfaces.py: remove get_extension_params and set_extension_params methods from IMutableFileURI. refs #393, #1526
95david-sarah@jacaranda.org**20111010194842
96 Ignore-this: 6012be6fcc12f560aeeeac0be2d337d1
97]
98[interfaces.py: fix a typo in the name of IMutableSlotWriter.put_encprivkey. refs #393
99david-sarah@jacaranda.org**20111010194642
100 Ignore-this: eb65439e8dd891c169b43b1679c29238
101]
102[util/happinessutil.py: suppress a warning from check-miscaptures. (It is not a bug because the capturing function is only used by a 'map' in the same iteration.) refs #1556
103david-sarah@jacaranda.org**20111009052106
104 Ignore-this: 16a62844bae083800d6b6a7334abc9bc
105]
106[misc/coding_tools/make-canary-files.py: fix a suspicious capture reported by check-miscaptures (although it happens not to be a bug because the callback will be processed synchronously). refs #1556
107david-sarah@jacaranda.org**20111009050531
108 Ignore-this: 2d1a696955a4c1f7d9c649d4ecefd7de
109]
110[Fix some more potential bugs in test code exposed by check-miscaptures.py. refs #1556
111david-sarah@jacaranda.org**20111007033847
112 Ignore-this: aec8a543e9b5c3563b60692c647439a8
113]
114[Fix some potential bugs (in non-test code) exposed by check-miscaptures.py. refs #1556
115david-sarah@jacaranda.org**20111007032444
116 Ignore-this: bac9ed65b21c2136c4db2482b3c093f7
117]
118[Fix some potential bugs in test code exposed by check-miscaptures.py. refs #1556
119david-sarah@jacaranda.org**20111007023443
120 Ignore-this: e48b2c2d200521d6f28c737994ce3a2a
121]
122[misc/simulators/hashbasedsig.py: simplify by removing unnecessary local function that captured a variable declared in a for loop (this was not a bug, but the code was unclear). Also fix a pyflakes warning about an import. refs #1556
123david-sarah@jacaranda.org**20111007023001
124 Ignore-this: 446c94efae02ded5e85eb3335ca5e69
125]
126[immutable/literal.py: add pauseProducing method to LiteralProducer. refs #1537
127david-sarah@jacaranda.org**20111003195239
128 Ignore-this: 385ee3379a2819381937357f1eac457
129]
130[no_network.py: Clean up whitespace around code changed by previous patch.
131david-sarah@jacaranda.org**20111004010407
132 Ignore-this: 647ec8a9346dca1a41212ab250619b72
133]
134[no_network.py: Fix potential bugs in some tests due to capture of slots in for loops.
135david-sarah@jacaranda.org**20111004010231
136 Ignore-this: 9c496877613a3befd54979e5de6e63d2
137]
138[docs: fix the rst formatting of COPYING.TGPPL.rst
139zooko@zooko.com**20111003043333
140 Ignore-this: c5fbc83f4a3db81a0c95b27053c463c5
141 Now it renders correctly both on trac and with rst2html --verbose from docutils v0.8.1.
142]
143[MDMF: remove extension fields from caps, tolerate arbitrary ones. Fixes #1526
144Brian Warner <warner@lothar.com>**20111001233553
145 Ignore-this: 335e1690aef1146a2c0b8d8c18c1cb21
146 
147 The filecaps used to be produced with hints for 'k' and segsize, but they
148 weren't actually used, and doing so had the potential to limit how we change
149 those filecaps in the future. Also the parsing code had some problems dealing
150 with other numbers of extensions. Removing the existing fields and making the
151 parser tolerate (and ignore) extra ones makes MDMF more future-proof.
152]
153[test/test_runner.py: BinTahoe.test_path has rare nondeterministic failures; this patch probably fixes a problem where the actual cause of failure is masked by a string conversion error.
154david-sarah@jacaranda.org**20110927225336
155 Ignore-this: 6f1ad68004194cc9cea55ace3745e4af
156]
157[docs/configuration.rst: add section about the types of node, and clarify when setting web.port enables web-API service. fixes #1444
158zooko@zooko.com**20110926203801
159 Ignore-this: ab94d470c68e720101a7ff3c207a719e
160]
161[TAG allmydata-tahoe-1.9.0a2
162warner@lothar.com**20110925234811
163 Ignore-this: e9649c58f9c9017a7d55008938dba64f
164]
165Patch bundle hash:
166b7b833a83d53252606437d808f848f9167a15877