Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | TODO.org: rewrote combox.events.NodeDirMonitor.on_deleted method | Siddharth Ravikumar | 2015-04-15 | 1 | -2/+4 | |
| | ||||||
* | rewrote combox.events.NodeDirMonitor.on_deleted method. | Siddharth Ravikumar | 2015-04-15 | 2 | -6/+75 | |
| | | | | | | | | | | | | | | | | | | | | | - Now the the node monitor waits for all shards of the file, which was deleted on a remote computer, to get deleted on this computer, before it finally deletes the respective file in the combox directory. - Tests for it is at tests.events_test.TestEvents.test_NDM_ondeleted method. modified: combox/events.py modified: tests/events_test.py Did some of this while listening to Cat Stevens' (Yusuf): - Just Another Night - Wild World - Father and son (*) - Peace train - Moonshadow (*) | |||||
* | combox/silo.py: added comment in ComboxSilo.node_set() | Siddharth Ravikumar | 2015-04-15 | 1 | -1/+4 | |
| | ||||||
* | TODO.org: added deadline for TODO rewrite ↵ | Siddharth Ravikumar | 2015-04-15 | 1 | -0/+1 | |
| | | | | combox.events.NodeDirMonitor.on_deleted method | |||||
* | TODO.org: bug #1 is done. | Siddharth Ravikumar | 2015-04-09 | 1 | -1/+4 | |
| | ||||||
* | fixed bug #1 (platform-specific) | Siddharth Ravikumar | 2015-04-09 | 2 | -5/+8 | |
| | | | | | | | we're using os.path.expanduser instead of os.getenv('HOME'). modified: combox/cbox.py modified: combox/config.py | |||||
* | updated TODO.org: added tags to bugs section. | Siddharth Ravikumar | 2015-04-09 | 1 | -3/+3 | |
| | ||||||
* | TODO.org: added 'bugs' section. | Siddharth Ravikumar | 2015-04-09 | 1 | -76/+86 | |
| | | | | | Registered the first combox bug found by someone other than the one writing combox -- Dr. Green. | |||||
* | README.md: added new section `canonical repo'. | Siddharth Ravikumar | 2015-04-09 | 1 | -0/+4 | |
| | ||||||
* | updated README.md | Siddharth Ravikumar | 2015-04-09 | 1 | -1/+1 | |
| | ||||||
* | updated README.md -- criticism is good. | Siddharth Ravikumar | 2015-04-08 | 1 | -0/+2 | |
| | ||||||
* | TODO.org: rewrote combox.events.NodeDirMonitor.on_modified method | Siddharth Ravikumar | 2015-04-08 | 1 | -2/+6 | |
| | ||||||
* | rewrote combox.events.NodeDirMonitor.on_modified method. | Siddharth Ravikumar | 2015-04-08 | 2 | -3/+66 | |
| | | | | | | | | | | | | | | | | - Now the the node monitor waits for all shards of the file, which was modified on a remote computer, to arrive on this computer, before it re-constructs the file into the respective location in the combox directory. - Tests for it is at tests.events_test.TestEvents.test_NDM_onmodified method. modified: combox/events.py modified: tests/events_test.py Part of this was done while listening to Avril's "Complicated" ; I think this is the only modern Pop song which I like. | |||||
* | After a file which was created a in a remote computer is reconstructed in ↵ | Siddharth Ravikumar | 2015-04-08 | 2 | -1/+8 | |
| | | | | | | | this computer, its info is removed from the 'file_created' dictionary in the silo. modified: combox/events.py modified: tests/events_test.py | |||||
* | new method combox.silo.ComboxSilo.node_rem | Siddharth Ravikumar | 2015-04-08 | 2 | -0/+33 | |
| | | | | | | | | | | | The method removes information about a file in the category `type_' where `type_' can be 'file_created', 'file_modified', 'file_removed', 'file_moved'. Also wrote tests for it :~( modified: combox/silo.py modified: tests/silo_test.py | |||||
* | added test file to purge list in tests.events_test.TestEvents.test_NDM_oncreated | Siddharth Ravikumar | 2015-04-08 | 1 | -0/+3 | |
| | | | | modified: tests/events_test.py | |||||
* | Added test for directory creation in ↵ | Siddharth Ravikumar | 2015-04-08 | 1 | -15/+15 | |
| | | | | | | tests.events_test.TestEvents.test_NDM_oncreated. modified: tests/events_test.py | |||||
* | renamed method test_NDM_oncreate -> test_NDM_oncreated in ↵ | Siddharth Ravikumar | 2015-04-08 | 1 | -2/+2 | |
| | | | | | | tests.event_test.TestEvents. modified: tests/events_test.py | |||||
* | TODO.org: set deadline for the week. | Siddharth Ravikumar | 2015-04-06 | 1 | -0/+1 | |
| | ||||||
* | modded teardown method in tests.events_test.TestEvents. | Siddharth Ravikumar | 2015-04-03 | 1 | -6/+2 | |
| | | | | | | the silo is purged using the deldb method instead of doing a os.remove. modfied: tests/events_test.py | |||||
* | updated TODO.org | Siddharth Ravikumar | 2015-04-03 | 1 | -0/+2 | |
| | ||||||
* | updated TODO.org: Done rewriting combox.events.NodeDirMonitor.on_created method | Siddharth Ravikumar | 2015-04-01 | 1 | -1/+4 | |
| | ||||||
* | [golden commit]: rewrote combox.events.NodeDirMonitor.on_created method. | Siddharth Ravikumar | 2015-04-01 | 2 | -13/+76 | |
| | | | | | | | | | | | | | | | | | | | | | - Now the the node monitor waits for all shards of the file, which was created on a remote computer, to arrive on this computer, before it re-constructs the file into the respective location in the combox directory. - Tests for it is at tests.events_test.TestEvents.test_NDM_oncreate method. - The main test method, tests.events_test.TestEvents.test_NDM, was disabled by renaming it to tests.events_test.TestEvents.test_NDM. - Now the NodeDirMonitor requires passing the 'node monitor lock' when creating an instance of it. :~( modified: combox/events.py modified: tests/events_test.py | |||||
* | updated TODO.org | Siddharth Ravikumar | 2015-04-01 | 1 | -0/+4 | |
| | ||||||
* | updated combox.file.relative_path. | Siddharth Ravikumar | 2015-04-01 | 2 | -3/+18 | |
| | | | | | | | | | This method now returns relative paths w. r. t all node directories. Before it used to return relative paths only w. r. t the first node directory. Also updated the tests for it :~( modified: combox/file.py modified: tests/file_test.py | |||||
* | new variable at NodeDirMonitor -- `num_nodes' | Siddharth Ravikumar | 2015-04-01 | 2 | -0/+11 | |
| | | | | | | | `num_nodes' a value that represents the number of node directories. modified: combox/events.py modified: tests/events_test.py | |||||
* | renamed dict names in combox.silo.ComboxSilo from shard_* -> file_* | Siddharth Ravikumar | 2015-04-01 | 2 | -55/+55 | |
| | | | | | | | | The main zarking reason for the name is that we might also want to track directories apart from shards in the node directories. modified: combox/silo.py modified: tests/silo_test.py | |||||
* | updated TODO.org | Siddharth Ravikumar | 2015-04-01 | 1 | -1/+4 | |
| | ||||||
* | Now combox.silo.ComboxSilo reloads db from disk before reading/writing. | Siddharth Ravikumar | 2015-04-01 | 2 | -30/+13 | |
| | | | | | modified: combox/events.py modified: combox/silo.py | |||||
* | updated TODO.org | Siddharth Ravikumar | 2015-04-01 | 1 | -0/+1 | |
| | ||||||
* | updated TODO.org | Siddharth Ravikumar | 2015-04-01 | 1 | -2/+4 | |
| | ||||||
* | refactored the way locks work in combox.siloComboxSilo. | Siddharth Ravikumar | 2015-04-01 | 5 | -51/+64 | |
| | | | | | | | | modified: combox/cbox.py modified: combox/events.py modified: combox/silo.py modified: tests/events_test.py modified: tests/silo_test.py | |||||
* | updated TODO.org -- changed the TODO for this week. | Siddharth Ravikumar | 2015-03-31 | 1 | -1/+1 | |
| | ||||||
* | new methods in combox.silo.ComboxSilo -- node_get, node_set. noddicts. | Siddharth Ravikumar | 2015-03-31 | 2 | -0/+149 | |
| | | | | | | | | These methods will be used to manage the dictionaries in the db related to the zarking shards. modified: combox/silo.py modified: tests/silo_test.py | |||||
* | ComboxSilo is now going to have dictionaries that track information about ↵ | Siddharth Ravikumar | 2015-03-31 | 2 | -2/+18 | |
| | | | | | | | the shards. modified: combox/events.py modified: combox/silo.py | |||||
* | updated TODO.org | Siddharth Ravikumar | 2015-03-31 | 1 | -0/+2 | |
| | ||||||
* | updated TODO.org | Siddharth Ravikumar | 2015-03-26 | 1 | -2/+8 | |
| | ||||||
* | combox.events.NodDirMonitor: corrected typo in docstring. | Siddharth Ravikumar | 2015-03-26 | 1 | -1/+1 | |
| | ||||||
* | fleshed out combox.events.NodDirMonitor.housekeep method. | Siddharth Ravikumar | 2015-03-26 | 2 | -3/+120 | |
| | | | | | | | wrote tests for it too :~( modified: combox/events.py modified: tests/events_test.py | |||||
* | updated TODO.org | Siddharth Ravikumar | 2015-03-26 | 1 | -1/+1 | |
| | ||||||
* | new function combox.file.node_paths: returns the abs. path of ↵ | Siddharth Ravikumar | 2015-03-19 | 2 | -0/+57 | |
| | | | | | | | shards/directories in node directories. modified: combox/file.py modified: tests/file_test.py | |||||
* | combox/file.py: edited docstring of the node_path method. | Siddharth Ravikumar | 2015-03-19 | 1 | -2/+3 | |
| | ||||||
* | In tests, the code that purges the files/directories in `purge_list' is now ↵ | Siddharth Ravikumar | 2015-03-19 | 3 | -15/+18 | |
| | | | | | | | | a function. modified: tests/events_test.py modified: tests/file_test.py modified: tests/utils.py | |||||
* | updated TODO.org | Siddharth Ravikumar | 2015-03-19 | 1 | -0/+2 | |
| | ||||||
* | combox/silo.py: All access to DB are now inside a critcal section. | Siddharth Ravikumar | 2015-03-19 | 1 | -11/+17 | |
| | | | | | | | This just means, only one damn Thread is allowed to access the DB at a time. We are using thread.Lock to achieve this. | |||||
* | updated TODO.org: wrote on_moved method (NodeDirMonitor) | Siddharth Ravikumar | 2015-03-18 | 1 | -2/+4 | |
| | ||||||
* | fleshed out the on_move method in combox.events.NodeDirMonitor | Siddharth Ravikumar | 2015-03-18 | 2 | -2/+76 | |
| | | | | | | | As usual, wrote correponding tests for it; zarking TDD or whatever :~| modified: combox/events.py modified: tests/events_test.py | |||||
* | tests/events_test.py: paths in `purge_list' is purged after executing each ↵ | Siddharth Ravikumar | 2015-03-18 | 1 | -7/+8 | |
| | | | | test method. | |||||
* | combox/silo.py: modded remove method in ComboxSilo | Siddharth Ravikumar | 2015-03-18 | 1 | -1/+5 | |
| | | | | | The statement that removes the key from db is now put in a try-catch f#*king block. | |||||
* | updated TODO.org | Siddharth Ravikumar | 2015-03-18 | 1 | -2/+2 | |
| |