| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
From combox contributors -> Dr. Robert C. Green II.
|
| |
|
| |
|
| |
|
|
|
|
| |
This module is the canonical place for getting version information.
|
| |
|
|
|
|
|
|
| |
ChangeLog.
Changes related to bug#10.
|
|
|
|
|
|
|
|
|
| |
Now combox ignores tmp files created by editors.
modified: TODO.org
modified: combox/events.py
modified: tests/events_test.py
modified: tests/utils.py
|
| |
|
|
|
|
|
|
|
|
| |
This method allows us to track old path and new path of the file which
is being renamed/moved.
modified: combox/silo.py
modified: tests/silo_test.py
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The unit test that simulates the behavior of Google Drive for file
modification runs successfully, but I need to test this fix, with the
Google Drive client monitoring a node directory, to confirm if the fix
actually works.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
| |
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
| |
directory is given.
modified: combox/config.py
modified: tests/utils.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
functionality.
- Now the housekeep method re-contructs the files, whose shards
were created when combox was off, in the combox directory only if
all of its shards have made it to the respective node
directories.
- If it finds only some of all the shards of a file missing, it
stores this information in the `file_created' dict inside the
silo.
- tests.events_tests.TestEvents.test_NDM_housekeep_create tests the
're-construct file' functionality of
combox.events.NodeDirMonitor.housekeep method.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Now the housekeep method deletes the file in the combox
directory only if all of its shards are missing in the
respective node directories -- meaning it was deleted on another
computer (running combox).
- If it finds only some of all the shards of a file missing, it
stores this information in the `file_deleted' dict inside
the silo.
- tests.events_tests.TestEvents.test_NDM_housekeep_delete tests
the delete functionality of
combox.events.NodeDirMonitor.housekeep method.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
| |
- Updated tests as usual.
modified: combox/silo.py
modified: tests/silo_test.py
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Now the node monitor waits for all shards of the file, which was
moved/renamed on a remote computer, to get moved/renamed on this
computer, before it finally reconstructs the moved/renamed file
in the combox directory on this computer.
- Updated the tests for on_moved method at
tests.events_test.TestEvents.test_NDM_onmoved method.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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 (*)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
|
|
|
| |
this computer, its info is removed from the 'file_created' dictionary in the silo.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
modified: tests/events_test.py
|
|
|
|
|
|
| |
tests.events_test.TestEvents.test_NDM_oncreated.
modified: tests/events_test.py
|
|
|
|
|
|
| |
tests.event_test.TestEvents.
modified: tests/events_test.py
|
|
|
|
|
|
| |
the silo is purged using the deldb method instead of doing a os.remove.
modfied: tests/events_test.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
`num_nodes' a value that represents the number of node directories.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
modified: combox/cbox.py
modified: combox/events.py
modified: combox/silo.py
modified: tests/events_test.py
modified: tests/silo_test.py
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
wrote tests for it too :~(
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
| |
shards/directories in node directories.
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
|
| |
a function.
modified: tests/events_test.py
modified: tests/file_test.py
modified: tests/utils.py
|
|
|
|
|
|
|
| |
As usual, wrote correponding tests for it; zarking TDD or whatever :~|
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
| |
test method.
|
|
|
|
|
| |
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
|
|
|
| |
It has a third argument (boolean) which tells whether `cb_path' (the
first argument) is a file or not.
Updated the test for node_path function + code wherever node_path was used.
modified: combox/events.py
modified: combox/file.py
modified: tests/file_test.py
|
| |
|
|
|
|
|
|
|
| |
As usual, wrote correponding tests for it :|
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
|
| |
rm_path deletes a file or an empty directory.
updated the test for it too.
modified: tests/file_test.py
|
|
|
|
|
|
|
| |
wrote test for it too.
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
| |
also wrote test for it.
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
| |
modified: combox/events.py
modified: tests/events_test.py
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- `file_content' is set to None by default
- If `file_content' is not None, hash of this is returned.
Updated the test for hash_file function.
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
|
| |
- the arg `fhash' is set to None by default.
- if `fhash' is not None, it is considered as file's current hash.
modified: combox/silo.py
modified: tests/silo_test.py
|
|
|
|
|
| |
Added code to test the new arg `write' in the decrypt_and_glue
function.
|
| |
|