Commit graph

3860 commits

Author SHA1 Message Date
Lance Edgar d66b10a202 Update changelog. 2016-01-17 12:59:34 -06:00
Lance Edgar 3ecfd810c2 Remove progress kwarg from importing setup() method.
Dang, missed this one earlier..
2016-01-17 12:57:52 -06:00
Lance Edgar 2ea0680e3e Update changelog. 2016-01-13 16:41:54 -06:00
Lance Edgar cb34af518f Add Importer.normalizer_class attribute.
So subclasses don't have to define.
2016-01-13 15:14:53 -06:00
Lance Edgar 0ed5cc4b2f Update changelog. 2016-01-13 13:18:04 -06:00
Lance Edgar 5375b96821 Add initial rattail->rattail data importer.
This has a long way to go yet...
2016-01-13 02:34:15 -06:00
Lance Edgar 0312941b04 Add initial 'messages' support in schema/import. 2016-01-13 02:34:15 -06:00
Lance Edgar 63b9f25aaf Add 'normalizer' concept to data importer. 2016-01-13 02:34:10 -06:00
Lance Edgar ace54ef4ee Change how 'ignored' models are handled for rattail datasync consumers. 2016-01-13 02:29:35 -06:00
Lance Edgar 07c91a6732 Remove progress kwarg from db importing setup() methods. 2016-01-13 02:29:30 -06:00
Lance Edgar b6854ea684 Don't use db when fetching timezone from config. 2016-01-13 02:06:00 -06:00
Lance Edgar 7216586225 Remove Python 2.6 from supported versions in trove classifiers. 2016-01-13 02:05:19 -06:00
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