Commit graph

3860 commits

Author SHA1 Message Date
Lance Edgar d6a30f754c Add docs for new batch system.
And probably some other small tweak(s).
2015-02-13 01:10:26 -06:00
Lance Edgar dc486451fd Add relative_path() and filesize() functions to file batch mixin. 2015-02-12 23:15:55 -06:00
Lance Edgar c05d50b354 Wrap up initial vendor catalog batch support.
This adds some more contrib catalog parsers, and (hopefully) improves some
of the core cognizing logic.  Also refactored some progress factory args.
2015-02-12 21:21:06 -06:00
Lance Edgar 20c286435f Update changelog. 2015-02-12 11:36:03 -06:00
Lance Edgar 47b81d0b87 Add encoding_errors kwarg to UnicodeWriter class constructor.
This is passed to the underlying encoder.
2015-02-12 11:33:59 -06:00
Lance Edgar f08506765d Add Product.case_pack column. 2015-02-11 20:25:18 -06:00
Lance Edgar 80f1605f02 Increase size of ProductCost.code column. 2015-02-11 20:24:46 -06:00
Lance Edgar b29307550f Try again to make database stuff an optional dependency...
This really does need to happen, hopefully we can get it right soon.
2015-02-11 17:05:33 -06:00
Lance Edgar cd2704bfd4 Make Employee.person column unique.
It may make more sense to collapse that with the primary key, but this
should do for now at least.
2015-02-11 02:50:05 -06:00
Lance Edgar 5a4f045408 Update changelog. 2015-02-11 00:51:23 -06:00
Lance Edgar 362c503fff Add Product.deleted column. 2015-02-11 00:50:03 -06:00
Lance Edgar e7e910e1ef Fix Alembic env.py script to accommodate Continuum. 2015-02-11 00:49:41 -06:00
Lance Edgar 1f037fa40c Update changelog. 2015-02-10 21:36:38 -06:00
Lance Edgar b04cf2140b Fix password prompt on Windows for make-user command.
Sometimes I really wonder about this code.
2015-02-10 21:34:31 -06:00
Lance Edgar f5e6ecf41b Update changelog. 2015-02-10 19:14:03 -06:00
Lance Edgar 4ed82abd7d Rework how Continuum versioning is configured.
The burden for configuring this now falls to the application entry point,
although that may not be a bad thing.  Even then, versioning is *not*
enabled by default so config must explicitly enable it.
2015-02-10 19:06:46 -06:00
Lance Edgar ee8440751a Fix bug when disabling versioning in import subcommand. 2015-02-10 01:03:23 -06:00
Lance Edgar 275387e47e Update changelog. 2015-02-09 23:51:03 -06:00
Lance Edgar d3ec2ca2c5 Fix Continuum versioning when we're recording changes also.
Sure would be nice to understand the background of why this hack is
required.
2015-02-09 22:30:17 -06:00
Lance Edgar d42a478e5a Add initial versioning support with SQLAlchemy-Continuum. 2015-02-09 18:36:03 -06:00
Lance Edgar 4712855b58 Add ImportSubcommand as base class for data import subcommands. 2015-02-09 12:45:11 -06:00
Lance Edgar 08dd2d000a Fix some db.changes stuff for tests... 2015-02-09 01:29:00 -06:00
Lance Edgar ebe2ce8109 Various data import tweaks. 2015-02-09 00:57:56 -06:00
Lance Edgar e19bc9d78e Tweaks to some model __unicode__() methods. 2015-02-09 00:50:17 -06:00
Lance Edgar 2581f7bda3 Rename tables etc. in preparation for Continuum support.
This has needed doing regardless I think, but the added history tables from
SQLAlchemy-Continuum make it more of a priority.
2015-02-09 00:45:48 -06:00
Lance Edgar 526ef323f5 Add more data normalization and support for more columns to model importing. 2015-02-07 12:50:08 -06:00
Lance Edgar 907645e044 Force classes derived from DataProvider to define key. 2015-02-07 12:48:44 -06:00
Lance Edgar afada0171a Add encoding support to files.count_lines().
This seemed to be necessary when working with a file with 'latin_1'
encoding.  Hopefully this is a good change and doesn't break anything..?
2015-02-07 12:41:15 -06:00
Lance Edgar ec72e5c9dd Fix (another) import bug when normalizing data fields which aren't present. 2015-02-07 10:48:04 -06:00
Lance Edgar 4c4cd39592 Fix import bug when normalizing data fields which aren't present. 2015-02-06 11:04:11 -06:00
Lance Edgar 5749ea9705 Increase length of Vendor.name column.
Bumped to 50 chars to match original Rattail schema.
2015-02-05 11:34:37 -06:00
Lance Edgar e2d4bf3e7f Fix encoding issue when sending email with non-ASCII chars in message.
I still don't understand all this 100%, but this seemed to satisfy the
immediate need (bugfix).
2015-02-05 10:36:05 -06:00
Lance Edgar 96daae2271 More db.importing features and tweaks.
* Let `db.cache.cache_model()` accept a callable for the key.
* Add `cache_model()` methods to `Importer` and `DataProvider`.
* Support for more model classes and fields.
* Add `Person.customers` relationship/proxy.
* Add getset factory to `Employee.first_name` and `last_name`.
2015-02-03 22:11:07 -06:00
Lance Edgar 111e8d8553 More db.importing features and tweaks.
* Change `db.cache.cache_model()` to allow tuple for key.
* Change `db.importing.Importer` and `DataProvider` to allow tuple for key.
* Add/improve several model importers.
2015-02-03 12:39:07 -06:00
Lance Edgar e3a7e0c7b9 Add some more model data importers, etc.
Also remove some redundant code.
2015-02-02 21:43:57 -06:00
Lance Edgar a26ff132b2 Fix bug when normalizing source data for import. 2015-02-02 21:43:15 -06:00
Lance Edgar 4e5cbd5535 Fix bug when importer makes new instance. 2015-02-02 19:32:05 -06:00
Lance Edgar 26c0d08142 bugfix 2015-02-02 19:18:06 -06:00
Lance Edgar a035b1893a Add import-csv command, and db.importing.providers.csv module.
Refactored `db.importing.providers` slightly to make this possible.
2015-02-02 19:13:26 -06:00
Lance Edgar 96c1ad1f34 Add db.importing subpackage.
First stab at this, seems to be working pretty well so far.
2015-02-02 19:13:26 -06:00
Lance Edgar 30e48e4b2f Fix bugs in set_*_price() API functions, and make them return price object. 2015-02-02 19:13:26 -06:00
Lance Edgar f386224392 Add csvutil.UnicodeWriter class.
Stole from Python docs, and used for a test but as of now no production
code is using this class.
2015-02-02 19:13:26 -06:00
Lance Edgar e80791337b Add db.cache.cache_model() function.
Currently implemented via a class, but not sure if that makes the most
sense.  Anyway it can evolve if/when needed.
2015-02-02 19:13:23 -06:00
Lance Edgar 03fa1e53c9 Add set_regular_price() and set_current_sale_price() API functions.
Not sure how good an idea this is, we'll see.
2015-01-31 18:17:42 -06:00
Lance Edgar fa1737bdd2 Add db.util.maxlen() function. 2015-01-31 18:16:58 -06:00
Lance Edgar bfbd39048b Add time.make_utc() function.
This seems like a good idea..?
2015-01-31 18:15:46 -06:00
Lance Edgar 8ec15a1ccd Add Category support to cache module. 2015-01-30 16:21:10 -06:00
Lance Edgar db11384bc4 Quote packages when installing via Fabric pip() function.
This is to support packages like 'SQLAlchemy<0.8' and so on.  Hoping this
change doesn't break anything...
2015-01-30 00:36:23 -06:00
Lance Edgar e089a1144e Allow Fabric env to override POD download URL.
Apparently the upstream link no longer works, damn...
2015-01-30 00:35:15 -06:00
Lance Edgar 2c5a950557 Update changelog. 2015-01-27 20:07:08 -06:00