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
Lance Edgar
2fcfae6948
Make CSV export logic more generic, so can share
...
i.e. now we use it for a CORE -> CSV export
2019-07-29 12:08:05 -05:00
Lance Edgar
cd036dcb0b
Change progress message when caching local data for importer
2019-07-29 11:39:20 -05:00
Lance Edgar
3085a87049
Add support for rattail export-csv
command
...
this may need some tweaks yet, but may be complete already?
2019-07-28 22:04:54 -05:00
Lance Edgar
e603b174bc
Add "from same to same" importer base class
...
for use when a SQLAlchemy database with same schema is used for both host and
local sides of the importer
2019-07-28 14:49:19 -05:00
Lance Edgar
43eb721122
Fix host and local titles for Trainwreck import/export
2019-07-26 00:30:00 -05:00
Lance Edgar
fd00953c9a
Add basic support for Trainwreck <-> Trainwreck import/export
...
although custom project must still define some things w/ glue code
2019-07-25 23:11:24 -05:00
Lance Edgar
a587b7bc05
Update changelog
2019-07-13 19:24:53 -05:00
Lance Edgar
3c38088bc7
Add Employee.only_person()
convenience method
2019-07-10 22:20:20 -05:00
Lance Edgar
d123391042
Update changelog
2019-07-09 15:16:33 -05:00