Commit graph

3860 commits

Author SHA1 Message Date
Lance Edgar d1f51dce03 Added make-user command for creating Windows system user account. 2013-06-05 07:50:01 -07:00
Lance Edgar 63054311fd update changelog 2013-06-04 22:04:41 -07:00
Lance Edgar 4192c058b8 Overhaul of Windows file monitor.
This includes:

* "More native" Windows file monitor (i.e. less reliant on `edbob`; current
  code is more or less copied from that project).
* Improve base class for services, to handle the case where the Windows event
  log is full and can't be written to.  (This prevented the file monitor from
  starting on a machine where the log was full.)
2013-06-04 21:53:41 -07:00
Lance Edgar dc3fd2f1c0 Fixed "process elevation check" on Windows XP.
This affected the file monitor management commands.  Probably the check should
not even happen on Windows XP (?) but the current code seems to work okay...

closes #11
2013-06-02 16:38:34 -07:00
Lance Edgar d9428c4e0b Fixed file monitor service registration on Windows with --auto-start.
closes #10
2013-06-02 11:31:15 -07:00
Lance Edgar 331f775512 Added (Linux) file monitor configuration to Fabric script.
Also improved `create_user` to allow overwriting some settings.
2013-06-02 11:03:31 -07:00
Lance Edgar a732804911 Slight overhaul of Linux file monitor.
This includes the following:

* "More native" Linux file monitor (i.e. less reliant on `edbob`; current code
  is more or less copied from that project).
* Addition of `--pidfile` command argument on Linux.
2013-06-01 20:13:38 -07:00
Lance Edgar 4f96c6a457 Changed home folder of system user account to /var/lib/rattail. 2013-05-31 23:07:55 -07:00
Lance Edgar e15bd14436 update changelog 2013-05-22 21:41:55 -07:00
Lance Edgar 5b0182470c Added temp_path() function in files module. 2013-05-22 21:40:43 -07:00
Lance Edgar 4ae4989cb7 Tweaked Fabric release command. 2013-05-22 18:10:35 -07:00
Lance Edgar b8a47619fe update changelog 2013-05-22 18:01:06 -07:00
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