Lance Edgar
539ff3485c
Update changelog.
2014-07-23 12:17:00 -07:00
Lance Edgar
5aaf50e5b9
Add timeout to locking_copy()
.
...
If a File Monitor is configured to retry an action which uses `locking_copy()`,
it is possible for a file lock to be created during the first attempt, then the
"true" file copy may fail. The second attempt then will hang while waiting for
the file lock to clear (which it never will). This allows a way to at least
cause an exception instead of blocking forever.
It may be that adding a way to override the lock somehow in this situation may
be necessary at some point as well, we'll see.
2014-07-23 12:11:55 -07:00
Lance Edgar
c72a6b6099
Add error handling when attempting user authentication with non-ASCII characters.
...
Apparently bcrypt doesn't like those. Probably need to upgrade/replace that someday...
2014-07-21 22:38:00 -07:00
Lance Edgar
730437b7e4
Add docs for File Monitor and its configuration.
2014-07-21 21:59:44 -07:00
Lance Edgar
264415cff4
Update changelog.
2014-07-19 18:53:17 -07:00
Lance Edgar
57f6ebd8ea
Add User.active
and disallow authentication for inactive users.
2014-07-13 20:38:39 -07:00
Lance Edgar
175f5f8567
Update changelog.
2014-07-12 15:42:47 -07:00
Lance Edgar
d49a466303
Add cache support for report codes.
2014-07-12 15:38:19 -07:00
Lance Edgar
c0e6985388
Fix Product.family
and Product.report_code
relationships.
...
These were meeting the minimum need, i.e. returning a reference. But
providing a relationship on the opposite side lets us delete the reference
without causing foreign key constraint errors. E.g. deleting a Family now
just blanks out the reference for any associated products instead of trying
to delete them.
2014-07-12 15:35:54 -07:00
Lance Edgar
b3b544769d
Add rattail.config
module, move parse_list
function there.
...
This function is already proving useful in other contexts besides just the
file monitor.
2014-07-12 15:34:55 -07:00
Lance Edgar
9d8f291c48
Add ReportCode
and Product.report_code
to schema.
2014-07-06 21:52:41 -07:00
Lance Edgar
f8558c2ec1
update changelog
2014-07-04 13:21:38 -07:00
Lance Edgar
720f9ed380
Fix unicode bug in filemon config parsing on Python 2.6.
2014-07-04 13:20:16 -07:00
Lance Edgar
340125a048
update changelog
2014-07-04 12:59:37 -07:00
Lance Edgar
2c7d6c16e1
File Monitor overhaul!
...
* New configuration syntax (old syntax still supported but deprecated).
* Class-based actions.
* Configure keyword arguments to action callables.
* Configure retry for actions.
* Add (some) tests, docs.
2014-07-04 12:41:28 -07:00
Lance Edgar
99917555c2
update changelog
2014-06-30 18:21:40 -07:00
Lance Edgar
6b258e5cce
Tweak test requirements.
2014-06-05 19:12:24 -07:00
Lance Edgar
d140c3e393
Add intersphinx config; docs for db.changes
module.
2014-06-05 19:11:50 -07:00
Lance Edgar
d135e1fd11
Add support for older SQLAlchemy (0.6.3 specifically).
...
It's possible this still misses some things, but at least tests pass...
2014-06-05 19:08:35 -07:00
Lance Edgar
2b9fc9794d
Add RotatingFileHandler to sample config.
2014-05-31 22:25:46 -07:00
Lance Edgar
551a813160
update changelog
2014-05-31 11:45:05 -07:00
Lance Edgar
93e57fc2a3
Remove deprecated rattail.db.init()
function stub.
2014-05-30 23:15:13 -07:00
Lance Edgar
b9264c17a0
Remove deprecated record_changes
option in rattail.db
config section.
...
This has been superseded by the `changes.record` option.
2014-05-30 23:11:29 -07:00
Lance Edgar
2a1e9b0720
Make get_default_engine()
accept section arg; add tests.
2014-05-30 23:05:51 -07:00
Lance Edgar
bdf1b1284e
Add py-bcrypt to tox dependency list...for now...
2014-05-30 22:27:57 -07:00
Lance Edgar
a04712524d
Refactor tests, sample config to use [rattail.db]
config section.
2014-05-30 22:25:31 -07:00
Lance Edgar
87c70c4375
Accept config section name within db.util.get_engines()
.
...
This is to set the stage for leveraging this function to establish database
connections to other systems, e.g. for `rattail_locsms`.
2014-05-30 22:16:33 -07:00
Lance Edgar
d692803d75
update changelog
2014-05-20 09:28:12 -07:00
Lance Edgar
be6874cd4f
Don't require bcrypt unless 'db' feature is requested.
2014-05-20 09:26:49 -07:00
Lance Edgar
7b8af1fdfe
update changelog
2014-05-20 09:16:21 -07:00
Lance Edgar
0bbee44854
Fix thread naming bug in Windows file monitor.
2014-05-20 09:13:53 -07:00
Lance Edgar
21f6baf865
Add tox support; fix several test oddities.
2014-05-17 19:58:22 -07:00
Lance Edgar
00cfe2afce
Add filemon.util.raise_exception
for simple file monitor testing.
2014-05-02 21:21:53 -07:00
Lance Edgar
bb4bfc71ed
update changelog
2014-04-29 21:20:14 -07:00
Lance Edgar
449537345e
Refactor to remove namespace structure.
2014-04-29 21:15:59 -07:00
Lance Edgar
7869448d72
Use 64-bit registry key when hiding user account on 64-bit Windows.
2014-04-28 21:08:00 -07:00
Lance Edgar
617f7898f1
Require process elevation for make-user
command.
2014-04-28 20:29:38 -07:00
Lance Edgar
9cc1a2c2cf
update changelog
2014-04-25 18:51:19 -07:00
Lance Edgar
2a7259a7fc
Stop using logging.get_logger()
adapter wrapper, until we know how to do it right.
2014-04-25 18:50:16 -07:00
Lance Edgar
402b840879
update changelog
2014-04-21 09:29:09 -07:00
Lance Edgar
ce9c1af66e
Exclude tests from the sdist build, the "proper" way.
2014-04-21 09:26:12 -07:00
Lance Edgar
cabfcc21a7
Revert "Stop using find_packages()
; it was including tests."
...
This reverts commit 7b76df4366
.
2014-04-21 09:16:49 -07:00
Lance Edgar
0cf3d5d12d
update changelog
2014-04-19 22:32:01 -07:00
Lance Edgar
444d0db2d2
Add "lock" support to Windows file monitor.
2014-04-19 22:20:33 -07:00
Lance Edgar
640b7f2ba0
Don't assume os.getuid()
is available in logger adapter.
...
This function is only available on Unix.
2014-04-19 21:24:20 -07:00
Lance Edgar
7b76df4366
Stop using find_packages()
; it was including tests.
2014-04-13 18:43:54 -07:00
Lance Edgar
551d25593b
Add initial POD integration module.
2014-04-13 17:49:39 -07:00
Lance Edgar
1fd1ffb09c
Remove https from home page references.
2014-04-07 22:17:50 -07:00
Lance Edgar
5e4aa751d5
Add some tests.
2014-04-07 22:07:57 -07:00
Lance Edgar
08163db8fa
Add 'uid'
and 'username'
to logger adapter context dict.
2014-04-06 21:06:40 -07:00