Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar 42b0c308ca Remove code to hide Python 2.6 deprecation warning.
Assuming we won't be supporting that any longer...
2016-01-13 02:04:31 -06:00
Lance Edgar a0492f1fac Add User.employee convenience attribute. 2016-01-13 02:04:11 -06:00
Lance Edgar dcf0dd9b8d Update changelog. 2016-01-10 02:25:07 -06:00
Lance Edgar 392838e01e Move "process warnings" logic for importers, to handler for simpler overriding. 2016-01-10 02:21:23 -06:00
Lance Edgar b17a71e1ed Add better unicode(ProductCode) output. 2016-01-10 02:20:59 -06:00
Lance Edgar 354f1c3aa8 Update changelog. 2016-01-09 21:00:29 -06:00
Lance Edgar 539671484c Make datasync errors cause the parent thread to terminate.
Instead of forever retrying and (typically) causing tons of error emails.

We may need to add retry delay/etc. config at some point, but not yet.
2016-01-09 20:57:59 -06:00
Lance Edgar 132e5df946 Add Person.middle_name and Person.modified.
The latter should be auto-set by the ORM on update only, and may not be imported.
2016-01-08 14:39:42 -06:00
Lance Edgar c3ace8d85d Tweak some logging output. 2016-01-07 13:42:58 -06:00
Lance Edgar f3c8d19dc2 Update changelog. 2016-01-04 19:43:24 -06:00
Lance Edgar ae4a431eaa Add support for "preferred" pseudo-field when importing phone/email data. 2016-01-04 15:39:57 -06:00
Lance Edgar 89a1c032b8 Add teardown() method for cleanup after data importing. 2016-01-04 15:39:30 -06:00
Lance Edgar de042cde2e Tweak ORM relationship for CustomerPerson.customer.
I already forget why...
2016-01-04 15:39:13 -06:00
Lance Edgar 153d053d3c Add support for importing CustomerPhoneNumber data. 2015-12-28 15:01:01 -06:00
Lance Edgar ff16448eb6 Tweak cache API to allow caller to specify query, and prevent duplicate keys. 2015-12-28 15:00:21 -06:00
Lance Edgar 671ee33d1d Add MailingAddress to schema and importer, etc. 2015-12-19 11:13:59 -06:00
Lance Edgar 9c228aa427 Add support for PersonEmailAddress.invalid when importing data. 2015-12-19 11:13:24 -06:00
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