Commit graph

3431 commits

Author SHA1 Message Date
Lance Edgar 3ae42262f0 Add remove_email() etc. for ContactMixin 2019-10-02 18:10:43 -05:00
Lance Edgar 6555d97183 Update changelog 2019-10-02 11:07:59 -05:00
Lance Edgar 90fa901624 Convert command output to unicode...for real
hm, i didn't realize `str()` no longer decoded?
2019-09-30 14:34:32 -05:00
Lance Edgar 03a5f49b9c Convert command output to Unicode, for run-n-mail
but only for python3 i guess, since wasn't necessary until now...
2019-09-30 14:29:08 -05:00
Lance Edgar e098c6a76e Provide default app title when generating mail
when mail is being sent, is no time to throw an error just b/c config is
missing the app title...
2019-09-30 13:56:14 -05:00
Lance Edgar ec470cc769 Add WarnSummaryIfProblems logging filter for Luigi 2019-09-30 13:27:35 -05:00
Lance Edgar 076a9d996b Add --groups arg to rattail make-user command
for auto-assigning user to arbitrary roles
2019-09-30 12:48:03 -05:00
Lance Edgar bff20842b5 Declare 'sys' to be a built-in mysql db name, for rattail backup 2019-09-25 19:25:47 -05:00
Lance Edgar 8febb25537 Update changelog 2019-09-24 14:25:16 -05:00
Lance Edgar fa5a15b70e Add progress support for some Excel writer methods 2019-09-20 17:24:51 -05:00
Lance Edgar 602ebd8fcc Add default_importers_only flag for datasync consumers 2019-09-20 15:08:59 -05:00
Lance Edgar c7b58c5fd3 Add util.simple_error() for basic rendering of error message
just a bit of convenience for myself
2019-09-19 20:18:14 -05:00
Lance Edgar 28582c5b68 Update changelog 2019-09-18 11:10:19 -05:00
Lance Edgar 1385536a01 Add get_product_by_scancode() API function; leverage in batch handler 2019-09-18 11:09:08 -05:00
Lance Edgar 8d0884523c Fix code typo for "new batch" templates 2019-09-17 17:34:46 -05:00
Lance Edgar 5c6a0c15f5 Don't try to locate product if empty "entry" provided, for batch handlers 2019-09-17 17:34:04 -05:00
Lance Edgar d4bb4397dd Strip whitespace from fieldnames by default, for ExcelReader
caller can always disable that, but seems like more of a gotcha the other way
2019-09-17 17:33:20 -05:00
Lance Edgar e870845818 Update changelog 2019-09-17 15:18:44 -05:00
Lance Edgar 4d0e375af2 Add ImportHandler.extra_importer_kwargs and associated logic
sometimes you just need a way to do that kind of thing...
2019-09-17 14:11:27 -05:00
Lance Edgar d79ee28c54 Retain reference to "used" importer instances, when running via handler
sometimes a caller would like to take advantage of the "full" handler logic,
but then subsequently needs to access certain state data from the importer
instance.  this lets them do that, although perhaps it's an anti-pattern?
2019-09-17 13:46:51 -05:00
Lance Edgar e30e0c295c Allow config to define where db dumps go for backup 2019-09-16 13:32:41 -05:00
Lance Edgar 1b5e11d65a Add 'backup' requirements extra
mainly just for borg of course
2019-09-12 21:04:40 -05:00
Lance Edgar 83f7376c8b Provide a basic set of default "excludes" if none configured, for backup
this idea needs expanding upon but a starting point only for now
2019-09-12 14:52:43 -05:00
Lance Edgar 3180e817d2 Return empty list by default, for file backup "excludes" 2019-09-12 14:48:58 -05:00
Lance Edgar 5e90a6f355 Add --no-dump-tables arg, plus config option for rattail backup 2019-09-11 20:55:08 -05:00
Lance Edgar a12a8e352d Let config define "hostname" for use with naming Borg archives 2019-09-11 19:41:05 -05:00
Lance Edgar dae2a3fb51 Fix borg archive name prefix (syntax bugs) 2019-09-11 18:04:42 -05:00
Lance Edgar 423ac4a76f Fix syntax bugs 2019-09-11 18:00:07 -05:00
Lance Edgar c605909159 Use proper hostname for borg prune command 2019-09-11 17:59:08 -05:00
Lance Edgar 573bccf981 Add borg prune command to rattail backup --borg logic 2019-09-11 17:54:01 -05:00
Lance Edgar e9bf8c31c6 Fall back to empty string for remote borg path
since can't pass None for environment variable
2019-09-11 17:28:12 -05:00
Lance Edgar 639a4c502b Add support for Borg backups, in rattail backup
can now create Borg archives on multiple "remotes" per config.  obviously
assumes presence of Borg...
2019-09-11 16:21:20 -05:00
Lance Edgar 79cf304917 Add --dump-tables arg for rattail backup command 2019-09-11 13:44:21 -05:00
Lance Edgar 2c551f0653 Update changelog 2019-09-10 17:59:24 -05:00
Lance Edgar c0b59ec476 Add basis for a trainwreck prune command, to prune old data
i.e. from the 'default' database typically, after it's been exported to the
appropriate 'year' database
2019-09-10 17:56:42 -05:00
Lance Edgar 3098cf9b98 Update changelog 2019-09-09 18:28:08 -05:00
Lance Edgar cb69857135 Suppress output when checking for existence of psql
for `rattail backup` command
2019-09-07 18:41:37 -05:00
Lance Edgar df339e651c Tweak command help for rattail backup
to clarify that you can still "exclude" things from rsync, even if you also
specify what to "include"
2019-09-05 20:08:18 -05:00
Lance Edgar 68da94e184 Check existence of psql command before using it, for backups 2019-09-05 17:54:08 -05:00
Lance Edgar 3e376bbc79 Preserve "zeroes" when converting handheld batch to inventory batch
i.e. don't convert zero values to None, for the new batch
2019-09-04 10:36:53 -05:00
Lance Edgar 32d4f725c7 Tweak output of str(MailingAddress)
for the case where city and state are the only fields set
2019-08-25 16:16:15 -05:00
Lance Edgar 2947746f0a Make the Customer model use ContactMixin 2019-08-25 16:01:48 -05:00
Lance Edgar 118e28cc59 Remove some web templates from project scaffold
overriding those is still okay but no longer "recommended" by default
2019-08-17 19:02:45 -05:00
Lance Edgar b65f2117fd Make sure new projects declare support for Python 3 (only) 2019-08-17 02:08:43 -05:00
Lance Edgar 6ed439c835 Add some inter-doc links 2019-08-14 23:24:49 -05:00
Lance Edgar a33bee0ba4 Update changelog 2019-08-04 19:12:08 -05:00
Lance Edgar b10e991344 Add ContactMixin class to consolidate handling of phone/email/address
probably needs some polishing yet, but a start
2019-08-03 19:57:37 -05:00
Lance Edgar 7b957d5796 Tweak a docstring 2019-07-31 12:30:32 -05:00
Lance Edgar db7a715cc1 Update changelog 2019-07-30 18:59:56 -05:00
Lance Edgar 33f0cfffcf Add basic support for rattail import-csv command
not sure how useful this will be yet, but seems promising for sample data anyway
2019-07-29 15:32:43 -05:00