Sun Mar 14 15:01:32 CET 2010 freestorm77@gmail.com * set_registry_key_for_win32.txt This patch is only for Win32 environment. It create a Windows Registry key on startup of Tahoe. In this key we put the current basedir of Tahoe. After that we don't need to use -d with Cli commands. This Registry key is set on "start" or "run" startup options. Credits: Frederic Marti New patches: [set_registry_key_for_win32.txt freestorm77@gmail.com**20100314140132 Ignore-this: b74734cc6657c470907e6aee7906263a This patch is only for Win32 environment. It create a WIndows Registry key on startup of Tahoe. In this key we put the current basedir of Tahoe. After that we don't need to use -d with Cli commands. It create this Registry key with "start" or "run" startup options. Credits: Frederic Marti ] { hunk ./src/allmydata/scripts/startstop_node.py 40 if not os.path.isdir(basedir): print >>err, "%s does not look like a directory at all" % basedir return 1 + + # If we are under Win32 OS , we create the registry key: "HKEY_CURRENT_USER\Software\Allmydata\Base Dir Path" + # with current node path. + if sys.platform == "win32": + from allmydata.windows import registry + registry.set_registry_setting("Software\Allmydata","Base Dir Path",basedir,_winreg.REG_SZ,_winreg.HKEY_CURRENT_USER) for fn in os.listdir(basedir): if fn.endswith(".tac"): tac = fn hunk ./src/allmydata/scripts/startstop_node.py 208 else: os.chdir(basedir) + # If we are under Win32 OS , we create the registry key: "HKEY_CURRENT_USER\Software\Allmydata\Base Dir Path" + # with current node path. + if sys.platform == "win32": + from allmydata.windows import registry + registry.set_registry_setting("Software\Allmydata","Base Dir Path",basedir,_winreg.REG_SZ,_winreg.HKEY_CURRENT_USER) + # set up twisted logging. this will become part of the node rsn. logdir = os.path.join(basedir, 'logs') if not os.path.exists(logdir): } Context: [setup: add licensing declaration for setuptools (noticed by the FSF compliance folks) zooko@zooko.com**20100309184415 Ignore-this: 2dfa7d812d65fec7c72ddbf0de609ccb ] [setup: fix error in licensing declaration from Shawn Willden, as noted by the FSF compliance division zooko@zooko.com**20100309163736 Ignore-this: c0623d27e469799d86cabf67921a13f8 ] [CREDITS to Jacob Appelbaum zooko@zooko.com**20100304015616 Ignore-this: 70db493abbc23968fcc8db93f386ea54 ] [desert-island-build-with-proper-versions jacob@appelbaum.net**20100304013858] [docs: a few small edits to try to guide newcomers through the docs zooko@zooko.com**20100303231902 Ignore-this: a6aab44f5bf5ad97ea73e6976bc4042d These edits were suggested by my watching over Jake Appelbaum's shoulder as he completely ignored/skipped/missed install.html and also as he decided that debian.txt wouldn't help him with basic installation. Then I threw in a few docs edits that have been sitting around in my sandbox asking to be committed for months. ] [TAG allmydata-tahoe-1.6.1 david-sarah@jacaranda.org**20100228062314 Ignore-this: eb5f03ada8ea953ee7780e7fe068539 ] [Change install.html to reference 1.6.1 instead of 1.6.0 david-sarah@jacaranda.org**20100228061941 Ignore-this: 4738440e66a12dcf2cadf968fba5337 ] [docs: fix the asymptotic network performance of mutable file download in performance.txt, rename the howto-make-a-release file zooko@zooko.com**20100228061439 Ignore-this: c983b2fa7864f717ec17fb556f8a95d2 ] [Change code that gives a base32 SI or an empty string to be more straightforward. (#948) david-sarah@jacaranda.org**20100227065551 Ignore-this: ba2b0eb430635fcfb09faeca5046ed21 ] [Additional test for DIR2-LIT directories in test_web.py, fixed version (#948) david-sarah@jacaranda.org**20100225041824 Ignore-this: 86d710f438439f27aa372b84411af011 ] [Updates to NEWS for 1.6.1 david-sarah@jacaranda.org**20100224081542 Ignore-this: ae1ca1892d7013bcb5f54f201459632 ] [Additional fixes for DIR2-LIT More Info page and deep-check/manifest operations (#948) david-sarah@jacaranda.org**20100224080220 Ignore-this: 3b431b712f380b5476231ebd99648a7f ] [directories: add DIR2-LIT directories to test_deepcheck.py (#948) david-sarah@jacaranda.org**20100224075433 Ignore-this: ed1dcbe45870f5efae0ebbcdff677a4b ] [dirnode: add tests of literal dirnodes (current and fix for #948) david-sarah@jacaranda.org**20100224043345 Ignore-this: f18cd17d72ed2495a646fa6c3af42aa1 ] [Additional fix for abbrev_si, with test david-sarah@jacaranda.org**20100222033652 Ignore-this: 7dc1c7031cd395fb4ec0a5aa96e69a10 ] [Additions to test_web.py for #948 david-sarah@jacaranda.org**20100222025352 Ignore-this: b99be703923efc75db75894a05e6a527 ] [Change direct accesses to an_uri.storage_index to calls to .get_storage_index() (fixes #948) david-sarah@jacaranda.org**20100222024504 Ignore-this: 91f6fccb5fd9456aa0e02d312f902928 ] [Tweak to 'tahoe ls --help' output (#837) david-sarah@jacaranda.org**20100224030231 Ignore-this: 9c86ff8ee1f2c9b8a4f6e205a58905f ] [Test behaviour of 'tahoe ls' for unknown objects (#837) david-sarah@jacaranda.org**20100224025913 Ignore-this: b999f6239796a90cadb41e8650aa3782 ] [Improve behaviour of 'tahoe ls' for unknown objects, addressing kevan's comments david-sarah@jacaranda.org**20100220061313 Ignore-this: 6205025c477f1c999473a4ae67e1c83 ] [docs: update relnotes.txt for v1.6.1 zooko@zooko.com**20100224065755 Ignore-this: 6d078e94425462ac8d074e3e7c82da28 ] [docs: NEWS and relnotes-short.txt and CREDITS for v1.6.1 zooko@zooko.com**20100224065231 Ignore-this: 41c056ae48c639e5a934d4c1983bc118 ] [misc/coverage.el: improve filename matching Brian Warner **20100224044757 Ignore-this: 8d9fb1d2a71e01370da006a2fef04346 ] [test_util.py: improve coverage of util.time_format Brian Warner **20100224044637 Ignore-this: bd93495132fe73a9c117d35c1a4e2d72 ] [docs/performance.txt: split out CPU from network, expand on mutable costs Brian Warner **20100224043813 Ignore-this: 4779e78ca0eed1dcbd1652e6287219f1 ] [docs/FTP: the Twisted patch (t3462) has landed, will be in the next release Brian Warner **20100223210402 Ignore-this: ddc5c8da8c95d8c19380d8c7ecbaf18 ] [Change OphandleTable to use a deterministic clock, so we can test it Kevan Carstensen **20100220210713 Ignore-this: a7437f4eda359bdfa243bd534f23bf52 To test the changes for #577, we need a deterministic way to simulate the passage of long periods of time. twisted.internet.task.Clock seems, from my Googling, to be the way to go for this functionality. I changed a few things so that OphandleTable would use twisted.internet.task.Clock when testing: * WebishServer.__init___ now takes an optional 'clock' parameter, * which it passes to the root.Root instance it creates. * root.Root.__init__ now takes an optional 'clock' parameter, which it passes to the OphandleTable.__init__ method. * OphandleTable.__init__ now takes an optional 'clock' parameter. If it is provided, and it isn't None, its callLater method will be used to schedule ophandle expirations (as opposed to using reactor.callLater, which is what OphandleTable does normally). * The WebMixin object in test_web.py now sets a self.clock parameter, which is a twisted.internet.task.Clock that it feeds to the WebishServer it creates. Tests using the WebMixin can control the passage of time in OphandleTable by accessing self.clock. ] [Add tests for the ophandle expiration behavior in #577 Kevan Carstensen **20100221010455 Ignore-this: 87a435108999c24920354b58fd78353f ] [Update docs/frontends/webapi.txt to reflect the new expiration times in #577 Kevan Carstensen **20100221010716 Ignore-this: cefee2ba800c285ae4148fe2dff39a3b ] [Increase ophandle expiration times, per #577 Kevan Carstensen **20100221010512 Ignore-this: 247f61fe8855a0c76fef3777a957f495 ] [More cleanups to test_cli using new utilities for reading and writing files. david-sarah@jacaranda.org**20100206013855 Ignore-this: 9fd2294406b346bfe9144fff6a61f789 ] [Fix race conditions and missing callback in allmydata.test.test_cli.Cp.test_copy_using_filecap, add utilities for one-liner reading and writing of files, and fix cases in test_cli where files were not being closed after writing. david-sarah@jacaranda.org**20100206013727 Ignore-this: 49da6c33190d526a4ae84c472f04d5f4 ] [setup: comment-out the dependency on pycrypto, see #953 zooko@zooko.com**20100215050844 Ignore-this: 2751120921ff35b8189d8fcd896da149 ] [Add tests for #939 Kevan Carstensen **20100212062137 Ignore-this: 5459e8c64ba76cca70aa720e68549637 ] [Alter CLI utilities to handle nonexistent aliases better Kevan Carstensen **20100211024318 Ignore-this: e698ea4a57f5fe27c24336581ca0cf65 ] [web/storage.py: display total-seen on the last-complete-cycle line. For #940. Brian Warner **20100208002010 Ignore-this: c0ed860f3e9628d3171d2b055d96c5aa ] [adding pycrypto to the auto dependencies secorp@allmydata.com**20100206054314 Ignore-this: b873fc00a6a5b001d30d479e6053cf2f ] [docs running.html - "tahoe run ." does not work with the current installation, replaced with "tahoe start ." secorp@allmydata.com**20100206165320 Ignore-this: fdb2dcb0e417d303cd43b1951a4f8c03 ] [code coverage: replace figleaf with coverage.py, should work on py2.6 now. Brian Warner **20100203165421 Ignore-this: 46ab590360be6a385cb4fc4e68b6b42c It still lacks the right HTML report (the builtin report is very pretty, but lacks the "lines uncovered" numbers that I want), and the half-finished delta-from-last-run measurements. ] [More comprehensive changes and ticket references for NEWS david-sarah@jacaranda.org**20100202061256 Ignore-this: 696cf0106e8a7fd388afc5b55fba8a1b ] [docs: install.html: link into Python 2.5.5 download page zooko@zooko.com**20100202065852 Ignore-this: 1a9471b8175b7de5741d8445a7ede29d ] [TAG allmydata-tahoe-1.6.0 zooko@zooko.com**20100202061125 Ignore-this: dee6ade7ac1452cf5d1d9c69a8146d84 ] Patch bundle hash: e3d0ecbe5809f3ccc29fb6f6ca3678fdd625d389