Commit graph

3431 commits

Author SHA1 Message Date
Lance Edgar feecc4dd97 Record change for Person when email/phone is being deleted.
Otherwise the email/phone UUID is not enough to really propagate the
deletion to other systems which don't have the UUID key.
2015-12-17 15:01:58 -06:00
Lance Edgar 7b1665e731 Add Email.invalid flag. 2015-12-17 11:12:38 -06:00
Lance Edgar 7eb44e333c Always ignore certain data classes when recording instance changes. 2015-12-17 11:07:01 -06:00
Lance Edgar eb317d9b3f Make a more generic dependency sorting function, for datasync. 2015-12-17 11:04:20 -06:00
Lance Edgar 34b8ca72f6 Tweak repr(Change) output, to add deleted flag. 2015-12-17 11:03:21 -06:00
Lance Edgar 0903850e38 Add RattailError.__str__() method. 2015-12-15 13:42:43 -06:00
Lance Edgar cef929b871 Update changelog. 2015-12-10 19:34:55 -06:00
Lance Edgar 8fefda5ab2 Add Category.products backref.
Apparently this makes the "blank FK references on delete" magic work.
2015-12-10 19:33:27 -06:00
Lance Edgar 4c33f428f9 Update changelog. 2015-12-09 19:14:31 -06:00
Lance Edgar 0e630e9ff2 Add delete-orphan cascade for Person._customers relation, etc. 2015-12-09 17:19:20 -06:00
Lance Edgar 2c3ff35583 Add uid param to bootstrap_rattail() fablib function. 2015-12-08 18:58:27 -06:00
Lance Edgar b38dbae3f2 Update changelog. 2015-12-07 13:58:49 -06:00
Lance Edgar db07779c06 Return email/phone when adding to person. 2015-12-06 18:02:30 -06:00
Lance Edgar 4c95dbfa5e Log debug instead of warning when duplicate cache key found. 2015-12-06 13:22:44 -06:00
Lance Edgar aa555c93a6 Don't warn when sending HTML-only email messages.
Not sure if that's really an undesirable thing to do...
2015-12-06 12:29:38 -06:00
Lance Edgar e33d5fb08f Update changelog. 2015-12-06 11:37:41 -06:00
Lance Edgar ea57e7c404 Raise custom exception when no templates found for email. 2015-12-06 11:36:16 -06:00
Lance Edgar 397dc56d73 Add warning in db.cache.cache_model() when duplicate keys are found. 2015-12-06 11:30:12 -06:00
Lance Edgar d663f11bfd Update changelog. 2015-12-05 19:20:56 -06:00
Lance Edgar a0a6402942 Add "wait for changes" support to datasync command. 2015-12-05 19:20:01 -06:00
Lance Edgar 4984c74525 Add attachment support to mail.send_email() function. 2015-12-05 19:19:45 -06:00
Lance Edgar 92a1c1dd30 Update changelog. 2015-12-05 14:38:24 -06:00
Lance Edgar e3b017fbf9 Add Email.abstract attribute, and tweak fallback key. 2015-12-05 14:37:28 -06:00
Lance Edgar a0869b1fc3 Replace rsync() function in fablib.
This one requires some setup on the "live" server, but seems to work pretty
well...
2015-12-04 20:34:12 -06:00
Lance Edgar 959a36f342 Update changelog. 2015-12-04 18:41:31 -06:00
Lance Edgar f56292ac02 Overhaul email framework.
At least, mostly..still have a gap here and there.
2015-12-04 17:25:23 -06:00
Lance Edgar d851b1602c Tweak wording of error message when no email recips defined. 2015-12-04 00:28:13 -06:00
Lance Edgar beb8568e56 Tweak some core config init, to avoid leveraging db settings. 2015-12-04 00:27:37 -06:00
Lance Edgar c1a84d040f Tweak pip and virtualenv bootstrapping in fablib.
Per experience with bootstrapping latest Debian...
2015-12-04 00:26:37 -06:00
Lance Edgar abe7c4b9ae Update changelog. 2015-12-01 19:34:20 -06:00
Lance Edgar 2099698fbd Add support for 'primary' pseudo-field when importing product codes.
And fix that importer in general.
2015-12-01 19:33:25 -06:00
Lance Edgar d402271644 Update changelog. 2015-12-01 18:18:55 -06:00
Lance Edgar a8b9c5d803 Fix bug in importer, when there are no source data records. 2015-12-01 17:40:31 -06:00
Lance Edgar 2d9efb44cd Fix possible bug when importing cost preferences.
Somehow found some preference numbers which were not in sequence.  This
should keep (some of) that at bay.
2015-12-01 16:59:35 -06:00
Lance Edgar afc55a83a3 Update changelog. 2015-11-30 14:40:48 -06:00
Lance Edgar 022d436c39 Add files.move_lpt() function.
And get rid of `minimal_move()`.  Hopefully a little closer now...
2015-11-30 14:39:20 -06:00
Lance Edgar 4cf2151078 Update changelog. 2015-11-30 12:51:40 -06:00
Lance Edgar bd3380eccf Add files.minimal_move() function, for "moving" files to LPT ports.
This code has yet to be tested in production, hopefully it does the trick.
2015-11-30 12:46:49 -06:00
Lance Edgar 0701b30cd0 Fix the db 'dump' function to use unicode and utf-8 file encoding. 2015-11-30 12:36:51 -06:00
Lance Edgar 0c5d84f88b Update changelog. 2015-11-25 02:35:00 -06:00
Lance Edgar 7466acaf21 Fix edge case bug when importing $0 product prices. 2015-11-24 17:26:43 -06:00
Lance Edgar 0ecee0fd78 Install ndg-httpsclient also, when installing pip site-wide. 2015-11-23 14:46:56 -06:00
Lance Edgar eec7b4de26 Remove old 'data' folder. 2015-11-22 19:48:18 -06:00
Lance Edgar add25f9c1b Only release docs if explicitly requested.
Not sure if that command will ever work...
2015-11-22 13:44:41 -06:00
Lance Edgar 3bf7055574 Update changelog. 2015-11-22 13:40:17 -06:00
Lance Edgar 1cd26e548b Add some debug logging to email bouncer daemon. 2015-11-22 00:06:54 -06:00
Lance Edgar b3776895e5 Add time zone coercion to logged timestamps, if configuring logging in general. 2015-11-21 21:37:29 -06:00
Lance Edgar 402a1c2787 Add debug log message when datasync watcher consumes its own changes. 2015-11-20 17:29:31 -06:00
Lance Edgar 1d7e140cb7 Add "watcher consumes self" concept to datasync daemon. 2015-11-20 16:06:31 -06:00
Lance Edgar b9a21e8227 Check for existence of MySQL database before dropping it, in fablib.
And add kwarg for override.
2015-11-20 16:06:05 -06:00