Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar
9d49f75e86 Fixed (more) lingering issues from Vendor.contacts mapping tweak. 2013-05-22 17:55:11 -07:00
Lance Edgar
6fd13b19e5 Fixed lingering issues from Vendor.contacts mapping tweak. 2013-05-22 17:43:16 -07:00
Lance Edgar
5021206513 update changelog 2013-05-21 22:34:14 -07:00
Lance Edgar
979ede330e Tweaked some ORM mappings.
`Vendor.contacts` and `Vendor.contact` now use the association proxy mechanism,
and `Product.department` and `Product.subdepartment` are configured with
ordering (to help FormAlchemy).
2013-05-18 18:50:25 -07:00
Lance Edgar
722d98d394 Added db.model module.
Currently this just provides a namespace.
2013-05-17 23:24:22 -07:00
Lance Edgar
3623bafac5 Improved repr() output for Change class. 2013-05-17 23:23:47 -07:00
Lance Edgar
1ce7fd031e Improved find_diffs() function.
Now it supports finding records which are present in the remote database but
missing locally.  Also fixed a bug with the progress bar, in the event there
are no records.
2013-05-17 12:24:20 -07:00
Lance Edgar
33ea01ad68 Updated repr() output for model classes. 2013-05-17 12:23:38 -07:00
Lance Edgar
02cc588eb4 update changelog 2013-05-17 09:00:30 -07:00
Lance Edgar
7abef7f7c1 Fixed instances_differ() function for SQLAlchemy < 0.8.
Presumably the use of `Mapper.column_attrs` was not a good idea anyway.  I'm
not quite sure what functionality it adds over `.columns`.

fixes #9
2013-05-17 08:54:59 -07:00
Lance Edgar
0128177a4f Added create_user Fabric command.
This creates the `rattail` user on a Linux environment.  Probably needs some
improvement but it's a start.
2013-05-16 18:03:06 -07:00
Lance Edgar
1aca3390b4 Changed some logging instances from INFO to DEBUG.
I was just getting tired of the noise.
2013-05-16 07:03:17 -07:00
Lance Edgar
a138dcd45e update changelog 2013-05-15 23:25:19 -07:00
Lance Edgar
5225b12265 Added db.diffs module. 2013-05-15 23:21:43 -07:00
Lance Edgar
876bf93a83 Added Session to rattail.db module.
This required a slight refactor to avoid circular imports.
2013-05-15 23:20:51 -07:00
Lance Edgar
14eab6aaaa Added mail module.
For now this just delegates to `edbob`.
2013-05-15 23:19:43 -07:00
Lance Edgar
b24cd9b8fa Tweaked Fabric script to remove egg info before building a release. 2013-05-14 18:52:52 -07:00
Lance Edgar
ae04f75c9e update changelog 2013-05-14 18:51:41 -07:00
Lance Edgar
cbd4a37feb Made product cache include *all* costs if so requested.
Silly oversight...
2013-05-14 18:48:35 -07:00
Lance Edgar
8ad2734e6c update changelog 2013-05-13 15:45:59 -07:00
Lance Edgar
d53e7da802 Made change recorder better able to handle new "sets" of related objects.
A situation occurred where multiple related objects were being introduced to
the database within the same session.  Somehow a dependent object was being
processed first, and its UUID value could not be determined since its
"upstream" object did yet have one either.  This commit improves this situation
so that the upstream object will be given an UUID value first, if it doesn't
yet have one.  The dependent object will then reuse the upstream object's UUID
as normal.
2013-05-13 15:38:26 -07:00
Lance Edgar
d2f5e8c757 Added PyPI registration and upload to Fabric script. 2013-05-12 08:22:14 -07:00
Lance Edgar
ba85de6750 update changelog 2013-05-12 08:16:36 -07:00
Lance Edgar
9ac5fba3d2 Added get_product_cache() function to db.cache module.
This is probably the first of many such convenience functions.
2013-05-11 20:12:44 -07:00
Lance Edgar
80b9a2cfd8 Added console module.
For now this only delegates to `edbob.console`.
2013-05-11 08:05:42 -07:00
Lance Edgar
8932f9c02b Removed setup.cfg file.
The `tag_build` setting was not doing us any favors.
2013-05-09 21:52:16 -07:00
Lance Edgar
0860d18672 bump version 2013-05-08 17:47:20 -07:00
Lance Edgar
ce10ee7d7e Added initial Fabric script. 2013-05-08 17:45:17 -07:00
Lance Edgar
e631b4cfaf update changelog 2013-05-08 17:43:36 -07:00
Lance Edgar
cd7f9e063c Fixed issue with recording changes when SQLAlchemy >= 0.8.0.
Apparently `RelationshipProperty.remote_side` is now a `set` and doesn't
support indexing.
2013-05-08 15:55:30 -07:00
Lance Edgar
b6988758ca Pretend all models and enumerations from edbob are part of rattail.
Some day this will actually be the case.  Client code should be able to avoid
the `edbob` namespace now so that porting will be easier.
2013-05-07 18:51:01 -07:00
Lance Edgar
7330cfdd73 Added Employee.user association proxy attribute. 2013-05-04 07:57:07 -07:00
Lance Edgar
d29b258986 Added make-config command.
This may need some work yet, to better handle the namespace package situation.
2013-04-22 07:41:15 -07:00
Lance Edgar
8f96c640d0 Added admin rights check for Windows file monitor registration.
Now the registration process is checked for an "elevated token" and if none is
found, a message is displayed and it exits without attempting the registration.

fixes #5
2013-04-21 10:13:34 -07:00
Lance Edgar
5fd9a61323 Added admin rights check for Palm conduit registration.
Now the registration process is checked for an "elevated token" and if none is
found, a message is displayed and it exits without attempting the
registration.

fixes #3
2013-04-20 17:33:47 -07:00
Lance Edgar
e59648d38e Fixed capitalization of Palm HotSync Manager. 2013-04-20 13:13:36 -07:00
Lance Edgar
317d33bd63 Improved Palm conduit (un)registration logic.
Now this can handle the case where Hotsync Manager is not installed on the
local machine.  The code was refactored to make things cleaner also.

fixes #8
2013-04-20 12:34:06 -07:00
Lance Edgar
61cbe119fd Made Palm conduit unregistration more graceful.
Now this will "succeed" even if the conduit isn't actually registered.

fixes #7
2013-04-20 10:16:56 -07:00
Lance Edgar
bc9a960ac6 Tweaked MANIFEST file.
This was really for the sake of testing commit hooks.
2013-04-19 09:56:19 -07:00
Lance Edgar
7cd7c6f6ed Tweaked MANIFEST file.
This was really for the sake of testing commit hooks.
2013-04-19 09:53:01 -07:00
Lance Edgar
8f65bb7952 Renamed CHANGES file.
Added ``.rst`` extension for a better editor experience.
2013-04-19 09:50:06 -07:00
Lance Edgar
bc4b239ab7 update changelog 2013-03-21 23:05:01 -05:00
Lance Edgar
a9352386e7 Added "case" to `UNIT_OF_MEASURE` enumeration. 2013-03-21 22:58:32 -05:00
Lance Edgar
9f32a0db0b Added purge-batches command.
This command will delete forever all batches whose purge date has
passed.  It is meant to be run on a scheduled basis, e.g. nightly.
2013-02-25 13:28:37 -08:00
Lance Edgar
4d50f1b769 Added new batch system.
This commit adds a new batch system which will eventually replace the
old one.  Hopefully they can play nicely in parallel, in the meantime.
2013-02-25 13:28:37 -08:00
Lance Edgar
26d0150161 Added `wince` module.
This module is used to interface with the Rattail app for Windows CE handheld
devices.
2013-02-25 13:27:49 -08:00
Lance Edgar
3d5b241104 Added `files` module.
This will eventually supercede ``edbob.files``, but for now this commit adds
only three functions.  These just so happened to be ones needed to support some
code involving inventory count batches.
2013-02-25 13:22:07 -08:00
Lance Edgar
f52920fe83 Added Palm OS app interface.
This commit adds the Palm HotSync conduit, which is used to create CSV
files when a handheld running the Rattail app is synced with its
desktop PC.
2013-02-25 13:08:58 -08:00
Lance Edgar
cdb769ad22 Added csvutil module.
Currently this only adds some better `DictWriter` support for Python
versions older than 2.7.
2013-02-22 18:25:18 -08:00
Lance Edgar
d7a70b2464 bugfix 2013-02-20 22:06:33 -08:00