Lance Edgar
05162cc1f4
Replace load_passwords()
with configure_environment()
within fablib
.
...
Now this adds "settings" as well as passwords to the environment.
2014-11-11 20:57:44 -06:00
Lance Edgar
a6a42b73f2
Add Fabric to dependency list for tox.
2014-11-08 16:13:17 -06:00
Lance Edgar
6b6fc43c93
Add fablib
subpackage.
...
Not a lot here yet, but hopefully on the right track at least.
2014-11-08 16:07:03 -06:00
Lance Edgar
4094eb78c6
Update changelog.
2014-11-04 20:49:56 -06:00
Lance Edgar
7234bc3cf2
Add csvutil.UnicodeDictReader
class.
...
This was stolen from the old `rattail_livnat.csvutil` module.
2014-11-04 11:50:04 -06:00
Lance Edgar
f919969986
Move some function logic to db.util
.
...
Also splits the logic to allow more control at runtime.
2014-11-02 19:49:20 -06:00
Lance Edgar
c3cf8480c7
Add Store.database_key
column.
...
This seems hopefully useful, although the larger question of how to relate
database instances to stores etc. is not well answered yet.
2014-11-02 19:35:02 -06:00
Lance Edgar
b0c50c3227
Allow overriding key used to determine mail template name.
...
This lets one have multiple keys for mail recipients, but share a common
template.
2014-11-02 19:33:19 -06:00
Lance Edgar
bc0409c77c
Update changelog.
2014-10-23 22:17:59 -05:00
Lance Edgar
e1f29a0073
Let mail templates be configured as "resource paths".
...
I.e., let paths be specified as relative to a Python package.
2014-10-23 22:14:00 -05:00
Lance Edgar
0d155bc1ea
Tweak docs.
2014-10-21 10:42:42 -05:00
Lance Edgar
90726f7af7
Add docs for new email system, esp. config syntax.
2014-10-21 00:12:32 -05:00
Lance Edgar
3f513f1bf0
Update changelog.
2014-09-26 15:39:58 -07:00
Lance Edgar
2f4567105a
Improve Unicode handling within some label printing logic.
...
This probably isn't finished yet...
2014-09-26 15:27:45 -07:00
Lance Edgar
66094ca6dd
Grr...more tox hacks.
2014-09-23 23:48:51 -07:00
Lance Edgar
7b63d9526b
Add hack so dependencies are always installed within tox runs.
2014-09-23 23:19:29 -07:00
Lance Edgar
948147bf0f
Add Mako dependency...at least for now.
...
Would perhaps be better to make this optional or some other clever thing.
2014-09-23 23:17:45 -07:00
Lance Edgar
91e6366235
Email notification rewrite.
...
This primarily adds the new `send_email()` function, but also removes the
old `sendmail_with_config()` function (with no deprecation period!).
2014-09-23 23:11:39 -07:00
Lance Edgar
58c4a308cc
Tweak BatchProvider
constructor, to prepare for edbob removal.
2014-09-23 23:10:33 -07:00
Lance Edgar
cb0cb5abcb
Remove some more edbob references.
2014-09-13 19:13:09 -07:00
Lance Edgar
88137e5773
Update changelog.
2014-09-13 12:03:04 -07:00
Lance Edgar
a8b000db49
Fix unicode issue with batch row classes.
2014-09-10 19:42:41 -07:00
Lance Edgar
414912d3ff
Add Product.not_for_sale
flag.
2014-09-10 19:37:30 -07:00
Lance Edgar
77a32950eb
Remove an unnecessary reference to edbob.
2014-08-01 17:42:50 -07:00
Lance Edgar
a7c409e5fd
Update changelog.
2014-07-29 13:09:25 -07:00
Lance Edgar
bacd6b1ebe
Use absolute imports in daemon
module.
...
This needs to import `time`...might have been easier not to give a module
that name...
2014-07-29 12:32:39 -07:00
Lance Edgar
f4a5933acf
Add time
module.
2014-07-26 17:52:01 -07:00
Lance Edgar
f4889b7864
Update changelog.
2014-07-26 13:06:54 -07:00
Lance Edgar
18a7d2d29e
Fix bug in SIL writer (make sure all writes use instance method).
2014-07-26 13:05:34 -07:00
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