summaryrefslogtreecommitdiffstats
path: root/combox/silo.py
Commit message (Collapse)AuthorAgeFilesLines
* Copyright changed.Siddharth Ravikumar2016-03-011-1/+1
| | | | From combox contributors -> Dr. Robert C. Green II.
* combox/silo.py: rewrote docstrings.Siddharth Ravikumar2015-12-251-43/+103
| | | | Docstrings in combox.silo module are sphinx friendly now.
* authors -> contributors.Siddharth Ravikumar2015-12-221-1/+1
|
* .py files coding set to utf-8.Siddharth Ravikumar2015-12-221-0/+2
|
* Introduced `node_store_moved_info' method in combox.silo.ComboxSilo class.Siddharth Ravikumar2015-09-121-1/+14
| | | | | | | | 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
* combox.silo.ComboxSilo.node_set: added an optional parameter called `num'.Siddharth Ravikumar2015-04-291-1/+5
| | | | | | | - Updated tests as usual. modified: combox/silo.py modified: tests/silo_test.py
* combox/silo.py: added comment in ComboxSilo.node_set()Siddharth Ravikumar2015-04-151-1/+4
|
* new method combox.silo.ComboxSilo.node_remSiddharth Ravikumar2015-04-081-0/+18
| | | | | | | | | | | 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
* renamed dict names in combox.silo.ComboxSilo from shard_* -> file_*Siddharth Ravikumar2015-04-011-4/+4
| | | | | | | | 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
* Now combox.silo.ComboxSilo reloads db from disk before reading/writing.Siddharth Ravikumar2015-04-011-6/+13
| | | | | modified: combox/events.py modified: combox/silo.py
* refactored the way locks work in combox.siloComboxSilo.Siddharth Ravikumar2015-04-011-4/+10
| | | | | | | | modified: combox/cbox.py modified: combox/events.py modified: combox/silo.py modified: tests/events_test.py modified: tests/silo_test.py
* new methods in combox.silo.ComboxSilo -- node_get, node_set. noddicts.Siddharth Ravikumar2015-03-311-0/+39
| | | | | | | | 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 Ravikumar2015-03-311-0/+9
| | | | | | | the shards. modified: combox/events.py modified: combox/silo.py
* combox/silo.py: All access to DB are now inside a critcal section.Siddharth Ravikumar2015-03-191-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.
* combox/silo.py: modded remove method in ComboxSiloSiddharth Ravikumar2015-03-181-1/+5
| | | | | The statement that removes the key from db is now put in a try-catch f#*king block.
* updated combox.silo.ComboxSilo.stale method - added new arg fhashSiddharth Ravikumar2015-02-261-3/+5
| | | | | | | | - 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
* combox/silo.py: new method `keys()' in ComboxSilo class.Siddharth Ravikumar2015-01-271-1/+7
|
* new module: combox/silo.pySiddharth Ravikumar2015-01-211-0/+99
- Contains the ComboxSilo class which provides an interface to access the db that stores information about files in the combox directory. Tests for this module is at tests/silo_test.py