Ticket #534: tahoe ls unicode support.darcspatch

File tahoe ls unicode support.darcspatch, 9.4 KB (added by zooko, at 2009-06-09T19:50:17Z)
Line 
1Mon Apr 27 03:18:50 MDT 2009  francois@ctrlaltdel.ch
2  * cli: tahoe ls unicode support
3
4New patches:
5
6[cli: tahoe ls unicode support
7francois@ctrlaltdel.ch**20090427091850
8 Ignore-this: 38257c3ddea0cbab857c2eb194c349ec
9] {
10hunk ./src/allmydata/scripts/cli.py 86
11         ("json", None, "Show the raw JSON output"),
12         ]
13     def parseArgs(self, where=""):
14-        self.where = where
15+        self.where = argv_to_unicode(where)
16 
17     longdesc = """List the contents of some portion of the virtual drive."""
18 
19hunk ./src/allmydata/scripts/tahoe_ls.py 6
20 import simplejson
21 from allmydata.scripts.common import get_alias, DEFAULT_ALIAS, escape_path
22 from allmydata.scripts.common_http import do_http
23+from allmydata.util.stringutils import unicode_to_stdout
24 
25 def list(options):
26     nodeurl = options['node-url']
27hunk ./src/allmydata/scripts/tahoe_ls.py 125
28             line.append(ctime_s)
29         if not options["classify"]:
30             classify = ""
31-        line.append(name + classify)
32+        line.append(unicode_to_stdout(name) + classify)
33         if options["uri"]:
34             line.append(uri)
35         if options["readonly-uri"]:
36}
37
38Context:
39
40[test_cli.Backup: increase timeout massively, it takes 1200s on zandr's ARM linkstation
41warner@lothar.com**20090609052801] 
42[tests: double the timeouts on some tests which time-out on Francois's box
43zooko@zooko.com**20090609021753
44 Ignore-this: b2727b04402f24a9b9123d2f84068106
45] 
46[tests: bump up timeouts so that the tests can finish before timeout on Francois's little arm box
47zooko@zooko.com**20090608225557
48 Ignore-this: fb83698338b2f12546cd3e1dcb896d34
49] 
50[tests: increase timeouts on some other tests that timed-out on Francois's arm box
51zooko@zooko.com**20090605143437
52 Ignore-this: 2903cc20d914fc074c8d7a6c47740ba6
53] 
54[tests: bump up the timeout on a bunch of tests that took longer than the default timeout (120s) on François Lenny-armv5tel
55zooko@zooko.com**20090605031444
56 Ignore-this: 84d67849b1f8edc88bf7001e31b5f7f3
57] 
58[backup: remove the --no-backupdb command, the handling of "can't import sqlite", and the related tests, and change an error message to more correctly indicate failure to load the database from disk rather than failure to import sqlite module
59zooko@zooko.com**20090604173131
60 Ignore-this: 8200a9fdfc49243c280ecd1d0c44fa19
61 Fixes #728.
62] 
63[more refactoring: move get_all_serverids() and get_nickname_for_serverid() from Client to storage_broker
64warner@lothar.com**20090602030750] 
65[more storage_broker refactoring: downloader gets a broker instead of a client,
66warner@lothar.com**20090602022511
67 use Client.get_storage_broker() accessor instead of direct attribute access.
68] 
69[test_runner.py: remove test_client_no_noise: the issue in question is
70warner@lothar.com**20090601225007
71 ticketed in http://divmod.org/trac/ticket/2830 and doesn't need a Tahoe-side
72 change, plus this test fails on win32 for unrelated reasons (and test_client
73 is the place to think about the win32 issue).
74] 
75[remove plaintext-hashing code from the helper interface, to close #722
76warner@lothar.com**20090601224916
77 and deny the Helper the ability to mount a partial-information-guessing
78 attack. This will probably break compatibility between new clients and very
79 old (pre-1.0) helpers.
80] 
81[start to factor server-connection-management into a distinct 'StorageServerFarmBroker' object, separate from the client and the introducer. This is the starting point for #467: static server selection
82warner@lothar.com**20090601210604] 
83[mutable: catch and display first error, so code bugs which break all servers get displayed better
84warner@lothar.com**20090601210407] 
85[misc/run-with-pythonpath.py: exec() the child (on unix), to remove the intermediate process
86warner@lothar.com**20090601210137] 
87[setup: require pysqlite >= v2.0.5. if we are running on Python < 2.5
88zooko@zooko.com**20090604154548
89 Ignore-this: cf04f46079821df209d01dad2e24b40b
90] 
91[setup: add pysqlite and sqlite to get_package_versions()
92zooko@zooko.com**20090604153728
93 Ignore-this: a1dea7fabeab2b08fb0d8d462facdb4d
94] 
95[docs: small edit to about.html
96zooko@zooko.com**20090528233422
97 Ignore-this: 1cfbb1f8426ed6d63b2d3952e4464ddc
98] 
99[docs: add links to Tahoe-LAFS for Paranoids and Tahoe-LAFS for Corporates in about.html
100zooko@zooko.com**20090528232717
101 Ignore-this: 7b70baa700d6b6f6e9ceec4132efe5
102] 
103[docs: edit about.html and include network-and-reliance-topology.png (loaded from http://allmydata.org )
104zooko@zooko.com**20090527150916
105 Ignore-this: 44adc61cde8ced8be2f0a7dfc7d95dad
106] 
107[docs: a few more edits to network-and-reliance-topology.svg
108zooko@zooko.com**20090527150458
109 Ignore-this: 2eac8c33fe71be25ff809b399c6193c1
110] 
111[docs: update NEWS, relnotes.txt, CREDITS to mention WUI Style
112zooko@zooko.com**20090526233654
113 Ignore-this: 72d16ec833bc4a22af23d29ea1d5ff8b
114] 
115[docs: update network-and-reliance-topology.svg for beauty and clarity
116zooko@zooko.com**20090527031123
117 Ignore-this: 5510914849771900ac29b4312470d84
118] 
119[Modify markup of Tahoe web pages to be more amenable to styling; some minor changes of wording.
120Kevin Reid <kpreid@mac.com>**20090526232545
121 Ignore-this: 8845937f0df6c7ddc07abe3211428a6f
122] 
123[Tweak wording in directory page: not-read-only is "modifiable", mention creating a directory _in this directory_.
124Kevin Reid <kpreid@mac.com>**20090526232414
125 Ignore-this: f006ec52ba2051802e025a60bcface56
126] 
127[Comment on duplication of code/markup found during styling project.
128Kevin Reid <kpreid@mac.com>**20090503203442
129 Ignore-this: a4b7f9f0ab57d2c03be9ba761be8d854
130] 
131[Add CSS styles to spiff up the Tahoe WUI's appearance, particularly the welcome page and directories.
132Kevin Reid <kpreid@mac.com>**20090503203142
133 Ignore-this: 5c50af241c1a958b5180ef2b6a49f626
134] 
135[Link all Tahoe web pages to the /tahoe_css stylesheet which already exists.
136Kevin Reid <kpreid@mac.com>**20090503202533
137 Ignore-this: 2ea8d14d3168b9502cf39d5ea3f2f2a8
138] 
139[Fix broken link from Provisioning to Reliability page.
140Kevin Reid <kpreid@mac.com>**20090501191050
141 Ignore-this: 56dc1a5e659b70cc02dc4df7b5d518cd
142] 
143[docs: network-and-reliance-topology.svg: nicer server icons, mv out of the "specifications" subdir
144zooko@zooko.com**20090526165842
145 Ignore-this: 8f47ab3a0ab782c1f0d46e10bcaebe5b
146] 
147[accounting-overview.txt: more edits
148warner@lothar.com**20090523190359] 
149[accounting-overview.txt: small edits
150warner@lothar.com**20090523184011] 
151[_auto_deps.py: require foolscap-0.4.1, which adds an important fix for py2.4
152warner@lothar.com**20090523011103] 
153[immutable/encode.py: tolerate immediate _remove_shareholder by copying the
154warner@lothar.com**20090522184424
155 landlord list before iterating over it. This can probably only happen in unit
156 tests, but cleaning it up makes certain test failures easier to analyze.
157] 
158[switch to using RemoteException instead of 'wrapped' RemoteReferences. Should fix #653, the rref-EQ problem
159warner@lothar.com**20090522004632] 
160[switch all foolscap imports to use foolscap.api or foolscap.logging
161warner@lothar.com**20090522003823] 
162[_auto_deps.py: bump our foolscap dependency to 0.4.0, since I'm about to start using its new features
163warner@lothar.com**20090522002100] 
164[test_runner.py: fix minor typo
165warner@lothar.com**20090520033620] 
166[docs: update network-and-reliance-topology.svg
167zooko@zooko.com**20090526163105
168 Ignore-this: 2b864b4ed8743d4a15dfbb7eff3fa561
169] 
170[setup: fix bug (wrong import) in error message, as noticed by pyflakes
171zooko@zooko.com**20090519195642
172 Ignore-this: f1b9f8c00b46c1b5f2f20e5fc424f341
173] 
174[setup: fix trivial bug in recent patch to test base64.py at startup
175zooko@zooko.com**20090519195129
176 Ignore-this: f6be038f74b53ca69e7109fe34adfbc
177] 
178[setup: make Tahoe exit at startup with a useful error message if the base64.py module is buggy (fixes part of #710)
179zooko@zooko.com**20090519194555
180 Ignore-this: aa4d398235ddca8d417d61c9688e154
181] 
182[test_introducer.py: add a test for the python2.4.0/2.4.1 bug in base64.b32decode
183warner@lothar.com**20090519034101] 
184[immutable WriteBucketProxy: use pipeline to speed up uploads by overlapping roundtrips, for #392
185warner@lothar.com**20090518234422] 
186[util/pipeline.py: new utility class to manage size-limited work pipelines, for #392
187warner@lothar.com**20090518234326] 
188[docs: add a diagram that I'm about to show to the Boulder Linux Users Group: network-and-reliance-topology.svg
189zooko@zooko.com**20090514232059
190 Ignore-this: 2420c0a7c254c9f0f2349d9130490d33
191] 
192[tests: mark test_runner as coded in utf-8 instead of ascii
193zooko@zooko.com**20090507223151
194 Ignore-this: ccf1ba9e5a9b53602701a36f9fdb545e
195] 
196[tests: raise timeout on test_runner.RunNode.test_introducer from 120s to 240s, since it hit the 120s time-out on François Lenny-armv5tel
197zooko@zooko.com**20090507215012
198 Ignore-this: ba18fe6832ba255d4971e8f623ed7da5
199] 
200[setup: fix comment in setup.py
201zooko@zooko.com**20090507215003
202 Ignore-this: c46ef664630d52733138ef7fbc551c1c
203] 
204[docs: how_to_make_a_tahoe_release.txt: a couple of small edits
205zooko@zooko.com**20090507214932
206 Ignore-this: ae92aa835ad369f4b9e6e49d681957a3
207] 
208[.darcs-boringfile: also ignore .gitignore
209warner@allmydata.com**20090415210550
210 Ignore-this: d29db314a1e506f6240859559436b4c3
211] 
212[.darcs-boringfile: ignore .git, I'm starting to play around with it
213warner@allmydata.com**20090415205929
214 Ignore-this: 89234453516483c9586cd6e1351e88b5
215] 
216[fix quicktest: stop using setuptools, add misc/run-with-pythonpath.py, to make it run faster
217warner@lothar.com**20090414201400] 
218[TAG allmydata-tahoe-1.4.1
219zooko@zooko.com**20090414025636
220 Ignore-this: de78fc32364c83e9f4e26b5abcfdea4a
221] 
222Patch bundle hash:
223550af7c2169a9526a4c1c5ed9b2bed5fa06cef28