tahoe-lafs/src/allmydata
Zooko O'Whielacronx 7eb260a9cf versioning: include an "appname" in the application version string in the versioning protocol, and make that appname be controlled by setup.py
It is currently hardcoded in setup.py to be 'allmydata-tahoe'.  Ticket #556 is to make it configurable by a runtime command-line argument to setup.py: "--appname=foo", but I suddenly wondered if we really wanted that and at the same time realized that we don't need that for tahoe-1.3.0 release, so this patch just hardcodes it in setup.py.
setup.py inspects a file named 'src/allmydata/_appname.py' and assert that it contains the string "__appname__ = 'allmydata-tahoe'", and creates it if it isn't already present.  src/allmydata/__init__.py import _appname and reads __appname__ from it.  The rest of the Python code imports allmydata and inspects "allmydata.__appname__", although actually every use it uses "allmydata.__full_version__" instead, where "allmydata.__full_version__" is created in src/allmydata/__init__.py to be:

__full_version__ = __appname + '-' + str(__version__).

All the code that emits an "application version string" when describing what version of a protocol it supports (introducer server, storage server, upload helper), or when describing itself in general (introducer client), usese allmydata.__full_version__.

This fixes ticket #556 at least well enough for tahoe-1.3.0 release.
2009-02-11 17:18:16 -07:00
..
frontends SFTP/FTP: merge user/account code, merge docs 2008-11-05 19:25:58 -07:00
gui confwiz.py - removing hardcoded version number 2008-12-02 20:38:31 -07:00
immutable versioning: include an "appname" in the application version string in the versioning protocol, and make that appname be controlled by setup.py 2009-02-11 17:18:16 -07:00
introducer versioning: include an "appname" in the application version string in the versioning protocol, and make that appname be controlled by setup.py 2009-02-11 17:18:16 -07:00
mutable filenode: add get_repair_cap(), which uses the read-write filecap for immutable files, and the verifycap for immutable files 2009-01-22 21:38:36 -07:00
scripts versioning: include an "appname" in the application version string in the versioning protocol, and make that appname be controlled by setup.py 2009-02-11 17:18:16 -07:00
test versioning: include an "appname" in the application version string in the versioning protocol, and make that appname be controlled by setup.py 2009-02-11 17:18:16 -07:00
util trivial: whitespace 2009-01-18 10:54:58 -07:00
web webapi: add verifycap (spelled 'verify_url') to the t=json output on files and directories. Closes #559. 2009-02-03 19:22:48 -07:00
windows move registry module into allmydata.windows package 2008-01-10 19:03:23 -07:00
__init__.py versioning: include an "appname" in the application version string in the versioning protocol, and make that appname be controlled by setup.py 2009-02-11 17:18:16 -07:00
check_results.py naming: finish renaming "CheckerResults" to "CheckResults" 2009-01-09 18:00:52 -07:00
client.py versioning: include an "appname" in the application version string in the versioning protocol, and make that appname be controlled by setup.py 2009-02-11 17:18:16 -07:00
codec.py download: refactor handling of URI Extension Block and crypttext hash tree, simplify things 2008-12-05 08:17:54 -07:00
control.py control.py: use get_buckets() instead of get_version() to measure ping time, because the latter changed recently 2008-11-22 23:13:23 -07:00
debugshell.py finish storage server and write new download 2007-03-30 10:52:19 -07:00
dirnode.py dirnode: add get_repair_cap() 2009-01-22 21:44:49 -07:00
hashtree.py immutable, checker, and tests: improve docstrings, assertions, tests 2008-12-21 15:07:52 -07:00
history.py mutable: move recent operation history management code (MutableWatcher) into history.py, have History provide stats 2009-01-14 17:36:20 -07:00
interfaces.py #620: storage: allow mutable shares to be deleted, with a writev where new_length=0 2009-02-10 23:37:56 -07:00
key_generator.py various: use util.log.err instead of twisted.log.err, so we get both Incidents and trial-test-flunking 2008-09-20 10:35:45 -07:00
manhole.py trailing-whitespace eradication, no functional changes 2007-11-01 15:22:41 -07:00
monitor.py monitor: update interface definition: get_status() can return a Failure 2008-11-06 21:54:52 -07:00
node.py node.py: use NODEDIR/tmp for the 'tempfile' module's temporary directory, so webapi upload tempfiles are put there instead of /tmp . You can set it to something else by setting [node]tempdir in tahoe.cfg 2009-01-14 20:00:15 -07:00
provisioning.py fix pyflakes warning 2008-03-10 16:14:03 -07:00
stats.py #330: convert stats-gatherer into a .tac file service, add 'tahoe create-stats-gatherer' 2008-11-18 01:46:20 -07:00
storage.py versioning: include an "appname" in the application version string in the versioning protocol, and make that appname be controlled by setup.py 2009-02-11 17:18:16 -07:00
uri.py uri: add abbrev_si() method, which returns the abbreviated storage index 2009-01-30 19:31:10 -07:00
webish.py rollback the feature of making "ambient upload authority" configurable 2009-01-20 20:47:35 -07:00