summaryrefslogtreecommitdiffstats
path: root/combox/config.py
Commit message (Collapse)AuthorAgeFilesLines
* Copyright changed.Siddharth Ravikumar2016-03-011-1/+1
| | | | From combox contributors -> Dr. Robert C. Green II.
* combox/config.py: modified config_cb function.Siddharth Ravikumar2016-01-111-4/+9
| | | | | | The combox configuration directory creation is now done after reading all the configuration values; the function also creates the combox directory if it does not already exist.
* Whitespace fix in combox.config.Siddharth Ravikumar2016-01-071-0/+1
|
* Rewrote docstrings combox.config module.Siddharth Ravikumar2016-01-071-8/+50
| | | | They're sphinx friendly now.
* authors -> contributors.Siddharth Ravikumar2015-12-221-1/+1
|
* .py files coding set to utf-8.Siddharth Ravikumar2015-12-221-1/+2
|
* combox.config: now we're always returning config_info no matter what.Siddharth Ravikumar2015-09-061-0/+1
|
* combox.config module update.Siddharth Ravikumar2015-09-061-1/+1
| | | | | For obvious reasons, We are using os.makedirs to create node paths if it is not already created.
* combox.config: silo directory is expanded to its abs. path when no silo ↵Siddharth Ravikumar2015-08-241-1/+1
| | | | | | | directory is given. modified: combox/config.py modified: tests/utils.py
* fixed bug #1 (platform-specific)Siddharth Ravikumar2015-04-091-4/+6
| | | | | | | we're using os.path.expanduser instead of os.getenv('HOME'). modified: combox/cbox.py modified: combox/config.py
* combox/config.py: added a new arg `write' (boolean) to cb_config function.Siddharth Ravikumar2015-02-091-5/+8
| | | | | | `write' is set to 'True' by default. If `write' is 'True' the generated config is written to the disk; otherwise it is returned.
* [bugfix]: combox/config.py - when empty string is given for 'silo_dir'; it ↵Siddharth Ravikumar2015-02-081-2/+4
| | | | | | | | | | | | | | | | sets the dir to PWD, this was not intended. This was fixed. When empty string is given for 'silo_dir', the intended default directory was the combox's config directory. The input to 'silo_dir' was directly given to path.abspath() The path.abspath() function, when an empty string is given returns the PWD. That's where the bug was! So, now the 'silo_dir' input is read to a local variable `silo_dir'. If the local variable `silo_dir' is empty, the combox config directory is assigned; else, the given directory is assigned.
* combox config now contains a `combox_name` field which contains the name of ↵Siddharth Ravikumar2015-01-211-0/+1
| | | | | | | | the combox. modified: combox/config.py modified: tests/config_test.py modified: tests/test-config/config.yaml
* now the config file also makes note of the 'silo' directory.Siddharth Ravikumar2015-01-211-0/+7
| | | | | | | | | silo directory is the location where the silo (silo.db) containing information about files in the combox directory is stored. modified: combox/config.py modified: tests/config_test.py modified: tests/test-config/config.yaml
* updated copright year.Siddharth Ravikumar2015-01-201-1/+1
| | | | | | | | | | | | modified: combox/cbox.py modified: combox/config.py modified: combox/crypto.py modified: combox/events.py modified: combox/file.py modified: tests/config_test.py modified: tests/crypto_test.py modified: tests/events_test.py modified: tests/file_test.py
* combox/config.py: node directories are created if they're not already created.Siddharth Ravikumar2015-01-151-0/+4
|
* combox/config.py: all directories that are written to YAML now have absolute ↵Siddharth Ravikumar2015-01-141-5/+5
| | | | path.
* combox/config.py: added get_nodedirs function.Siddharth Ravikumar2015-01-131-0/+16
|
* combox/config.py: the config functions does its job irrespective of whether ↵Siddharth Ravikumar2015-01-131-21/+19
| | | | combox was configure before or not.
* modified: combox/config.py - input is read through a function instead of ↵Siddharth Ravikumar2015-01-121-9/+22
| | | | using raw_input directly
* added back combox/config.py and combox/crypto.pySiddharth Ravikumar2015-01-121-0/+82
|
* consolidated everything into combox/combox.py.Siddharth Ravikumar2015-01-121-82/+0
| | | | | | | | | | | | tests were removed. will write tests using `nose` later. renamed: combox/file.py -> combox/combox.py deleted: combox/config.py deleted: combox/crypto.py renamed: tests/test_config.py -> tests/combox_tests.py deleted: tests/files/the-red-star.jpg deleted: tests/test_crypto.py deleted: tests/test_file.py
* combox/config.py: added commentSiddharth Ravikumar2015-01-121-1/+2
|
* modified: config.py -- configuration thingy is now a function + the ↵Siddharth Ravikumar2014-11-211-24/+29
| | | | passhrase is sha224 summed.
* combox/config.py: initial version of combox configuration done.Siddharth Ravikumar2014-11-131-0/+76