Commit graph

2622 commits

Author SHA1 Message Date
Lance Edgar c10b5fb50f Misc. cleanup for Python 3 2018-02-12 14:55:15 -06:00
Lance Edgar 7147030ab2 Refactor unicode() => six.text_type() 2018-02-12 00:09:40 -06:00
Lance Edgar 8d534e0bd3 Refactor sample web view for new batch, per master changes 2018-02-11 21:53:06 -06:00
Lance Edgar 3dd0f85296 Add 'six' to context when rendering email templates 2018-02-10 20:20:20 -06:00
Lance Edgar 3ba6b2e078 Update changelog 2018-02-08 11:25:12 -06:00
Lance Edgar 378cba50e5 Optionally suppress warning from psycopg2 about their packaging changes
still need to look into those, but for now we want things quiet
2018-02-08 11:24:20 -06:00
Lance Edgar c3c7786605 Update changelog 2018-02-07 15:06:46 -06:00
Lance Edgar 08715ed90b Copy "safe MIME text" email encoding workaround from Django
to avoid 'base64' encoding of email body
2018-02-06 14:47:23 -06:00
Lance Edgar 18d7587820 Add support for pool_pre_ping config, for SQLAlchemy engines 2018-02-06 13:10:06 -06:00
Lance Edgar d4c0008849 Add "dry run" to bulk importer logging summary 2018-02-06 11:40:42 -06:00
Lance Edgar a01b5bf8ad Add "(dry run)" to import logging summary, when applicable 2018-02-06 11:26:31 -06:00
Lance Edgar f8dfc35d21 Add EmailHandler logic, with support for recording EmailAttempt 2018-02-06 10:30:47 -06:00
Lance Edgar aaf743e3a1 Add 'force' kwarg to pod.render_document() 2018-02-02 17:05:49 -06:00
Lance Edgar b5d0499db3 Add way to "force versioning" when making new migrations 2018-02-01 16:42:01 -06:00
Lance Edgar 0d022faf60 Update changelog 2018-01-31 18:31:45 -06:00
Lance Edgar 8172e8f7b1 Tweak how rattail import handler makes its session
only leverage "runas" user if present
2018-01-31 17:03:10 -06:00
Lance Edgar 9c15529da4 Fix some logging for "bulk" import handlers
i.e. log warning when relevant
2018-01-30 18:41:10 -06:00
Lance Edgar 1eddc786e7 Update changelog 2018-01-29 17:07:53 -06:00
Lance Edgar ab8f893a9f Add schema migration to fix version table 2018-01-26 14:46:41 -06:00
Lance Edgar b5a3f60b18 Add basic ExcelWriter class, plus xlrd and openpyxl dependencies
maybe not the best idea, but practical for now
2018-01-26 14:06:32 -06:00
Lance Edgar 56f0708d76 Add Brand.confirmed and unique constraint for name
also add `Brand.products` relationship
2018-01-25 16:09:03 -06:00
Lance Edgar d6c506ed6c Don't supply price from batch when printing labels, unless "static prices" 2018-01-25 14:57:11 -06:00
Lance Edgar c94d665ca8 Allow override of most kwargs when sending email
this was to support a scenario where one app needed to reach out to a different
rattail DB, to get settings for a particular email
2018-01-25 12:46:02 -06:00
Lance Edgar 1c19e5178c Update changelog 2018-01-24 18:16:36 -06:00
Lance Edgar b46f0951bb Add cashback field to Trainwreck transaction 2018-01-23 20:08:00 -06:00
Lance Edgar e26101aa4a Add index to Trainwreck item table, for transaction_uuid 2018-01-23 19:49:55 -06:00
Lance Edgar 20b3ba3f4e Accept 'user' kwarg when cloning MySQL database via fabric 2018-01-22 16:28:55 -06:00
Lance Edgar 40614dc2af Update changelog 2018-01-16 13:21:00 -06:00
Lance Edgar 93ac95d589 Revert "Remove a couple steps when cloning Postgres database"
This reverts commit 3cfed219b4.
2018-01-15 16:57:47 -06:00
Lance Edgar 34306a93f8 Allow certbot to be installed from source, even if package is available 2018-01-15 14:48:18 -06:00
Lance Edgar 9b586d93cc Add install logic for certbot on debian 9 2018-01-14 13:37:07 -06:00
Lance Edgar 3cfed219b4 Remove a couple steps when cloning Postgres database 2018-01-14 12:55:05 -06:00
Lance Edgar 6533855bcd Let db config keys be defined as arbitrary list
i.e. use `parse_list()` on it
2018-01-12 17:34:06 -06:00
Lance Edgar 35dda54f25 Add case_cost property for inventory batch rows
i.e. dynamically calculated, at least for now?
2018-01-11 12:58:19 -06:00
Lance Edgar d72ad1d5e1 Don't use DB as fallback when determining data model 2018-01-07 22:44:13 -06:00
Lance Edgar 1a14248237 Add some MIME magic for CSV attachments when sending email 2018-01-07 21:59:38 -06:00
Lance Edgar 5eb0401f7f Update changelog 2018-01-07 16:58:33 -06:00
Lance Edgar 8ac15ea470 Add first attempt for "importer as batch" feature 2018-01-06 19:19:20 -06:00
Lance Edgar 87f5747b96 Add util.get_object_spec() convenience function 2018-01-06 19:18:48 -06:00
Lance Edgar b9f17e5031 Add postgresql.create_schema() fab function 2018-01-06 19:13:14 -06:00
Lance Edgar 934e1c7271 Make ~/.ssh by default, when bootstrapping rattail 2018-01-06 19:13:11 -06:00
Lance Edgar 51c7631518 Assume MariaDB is *not* of concern, by default
i.e. if `mysql --version` doesn't work, assume false
2018-01-06 19:13:03 -06:00
Lance Edgar 398f93f7c3 Make BatchHandler.execute_many() responsible for setting execution details 2018-01-05 20:38:51 -06:00
Lance Edgar 70fafb2a0c Let label batch provide product prices when executing
plus refactor label printer / formatter logic a bit
2018-01-05 19:56:33 -06:00
Lance Edgar 9b880ef5e4 Add model, importer for InventoryAdjustmentReason
meant to be rather generic at this point, can dress up later if useful
2018-01-05 18:35:41 -06:00
Lance Edgar 0779f8047d Update changelog 2018-01-04 15:40:03 -06:00
Lance Edgar 09d5e18b12 Grow cost columns for vendor catalog batches
i.e. allow $10,000.00001
2017-12-21 20:43:16 -06:00
Lance Edgar 99dcb0be06 Revert "Set datasync consumer `now` to current time, when starting transaction"
This reverts commit 0dbbbedaa8.
2017-12-21 12:53:08 -06:00
Lance Edgar 0dbbbedaa8 Set datasync consumer `now` to current time, when starting transaction 2017-12-21 12:05:10 -06:00
Lance Edgar 3cd23de865 Add Product.price_required flag to schema 2017-12-20 19:01:12 -06:00