Commit graph

3830 commits

Author SHA1 Message Date
Lance Edgar c2b2601103 Fixed FormAlchemy table rendering when underlying session is not primary.
This was needed for a grid based on a LOC SMS session.
2013-08-10 11:57:03 -07:00
Lance Edgar 42d0e52b89 Added style for grid checkbox cells. 2013-07-22 21:50:30 -07:00
Lance Edgar b7fdd1f797 Replaced Grid.clickable with .viewable.
Clickable grid rows seemed to be more irritating than useful.  Now a view icon
is shown instead.
2013-07-22 21:32:54 -07:00
Lance Edgar 134613aadd Moved tests out of package dir. 2013-07-22 19:22:18 -07:00
Lance Edgar 68650a5488 Removed several references to edbob. 2013-07-19 15:57:53 -07:00
Lance Edgar 578e4bde2a Stole grids and grid-based views from edbob. 2013-07-19 15:04:03 -07:00
Lance Edgar aad5e6e2bd Fixed customer group deletion.
Now any customer associations are dropped first, to avoid database integrity
errors.
2013-07-05 12:04:48 -07:00
Lance Edgar a681b4f872 Fixed bug with helpers.pretty_date(). 2013-07-05 10:52:47 -07:00
Lance Edgar 094e77d06a Added autocomplete view and template. 2013-06-19 22:37:11 -07:00
Lance Edgar 81b181f128 Added simpleform wildcard import to forms module. 2013-06-19 22:32:20 -07:00
Lance Edgar 4cb09d903e Added helpers module.
Also added a Pyramid subscriber hook to add the module to the template renderer
context with a key of `h`.  This is nothing really new, but it overrides the
helper provided by `edbob`, and adds a `pretty_date()` function (which maybe
isn't a good idea anyway..?).
2013-06-19 22:29:57 -07:00
Lance Edgar d07aee345a Added some tests. 2013-06-19 22:26:34 -07:00
Lance Edgar 84225f00e1 Initial tests.
This doesn't add much in the way of useful tests but it should pave the way for
more. Tests may be run like so:

{{{
python setup.py nosetests --with-coverage
}}}
2013-06-19 14:21:45 -07:00
Lance Edgar 4174e6d77d update changelog 2013-06-09 13:46:20 -07:00
Lance Edgar fec34d8290 Added support for product codes.
These are shown when viewing a product, and may be used to locate a product via
search filters.
2013-06-09 13:03:42 -07:00
Lance Edgar c7995c5241 Fixed bugs where edit links were appearing for unprivileged users. 2013-06-07 08:52:57 -07:00
Lance Edgar 6440319bb0 Tweaked Fabric release command. 2013-05-22 18:10:55 -07:00
Lance Edgar a45f31cb59 update changelog 2013-05-21 22:39:35 -07:00
Lance Edgar c422b900c6 Extensive commit; see notes.
* Replaced `forms` module with subpackage; added some initial goodies (many of
  which are currently just imports from `edbob`).

* Added/edited various CRUD templates for consistency.

* Renamed `customer_groups` module and template folder to `customergroups`.

* Modified several view modules so their Pyramid configuration is more
  "extensible."  This just means routes and views are defined as two separate
  steps, so that derived applications may inherit the route definitions if they
  so choose.

* Added Employee CRUD views; added Email Address field to index view.

* Updated `people` view module so it no longer derives from that of `edbob`.

* Added support for, and some implementations of, extra key lookup abilities to
  CRUD views.  This allows URLs to use a "natural" key (e.g. Customer ID
  instead of UUID), for cases where that is more helpful.

* Product CRUD now uses autocomplete for Brand field.  Also, price fields no
  longer appear within an editable fieldset.

* Within Store index view, default sort is now ID instead of Name.

* Added Contact and Phone Number fields to Vendor CRUD views; added Contact and
  Email Address fields to index view.
2013-05-21 21:51:41 -07:00
Lance Edgar 931700131f Added extra key lookups for customer and product routes.
Now the CRUD routes for these objects can leverage UUIDs of various related
objects in addition to the primary object.  More should be done with this, but
at least we have a start.
2013-05-17 23:32:57 -07:00
Lance Edgar 5f3b91826a Added email address to vendor CRUD views. 2013-05-17 23:32:17 -07:00
Lance Edgar 680cc8aeb4 Added Session to rattail.pyramid namespace. 2013-05-17 23:31:25 -07:00
Lance Edgar 736f5e9ba1 Removed setup.cfg file.
The `tag_build` setting was not doing us any favors.
2013-05-09 21:53:07 -07:00
Lance Edgar 57e2aad698 update changelog 2013-05-08 17:54:58 -07:00
Lance Edgar c6f5df7721 Added id and .status fields to Employee grid view. 2013-05-07 18:01:58 -07:00
Lance Edgar 06429a4d05 Added Person autocomplete view and User CRUD views. 2013-05-07 17:41:58 -07:00
Lance Edgar 25951c0080 Added AutocompleteView. 2013-05-07 17:39:05 -07:00
Lance Edgar e283957c9e Added CRUD view and template. 2013-05-04 16:11:09 -07:00
Lance Edgar a63870e032 Added initial Fabric script. 2013-04-16 07:07:48 -07:00
Lance Edgar a383c9ff62 update changelog 2013-04-16 06:52:15 -07:00
Lance Edgar 9fabccd7ce Sorted Ordering Worksheet by brand, description. 2013-04-16 06:48:40 -07:00
Lance Edgar bd700431f6 update changelog 2013-02-20 22:14:42 -08:00
Lance Edgar 8368754ba6 Made batch creation and execution threads aware of sys.excepthook.
Updated both instances to use `rattail.threads.Thread` instead of
`threading.Thread`.  This way if an exception occurs within the
thread, the registered handler will be invoked.
2013-02-20 22:08:40 -08:00
Lance Edgar edf9bda744 update changelog 2013-02-12 22:22:22 -08:00
Lance Edgar 6744c77cc0 Merge branch 'v0.3' 2013-02-12 22:07:14 -08:00
Lance Edgar c7132fa4d6 update changelog 2013-02-11 19:10:13 -08:00
Lance Edgar cd7f7ee444 Added "preferred only" option to Ordering Worksheet. 2013-02-11 19:08:24 -08:00
Lance Edgar 80eb558783 Added Brand and Size fields to the Ordering Worksheet.
Also tweaked the template styles slightly, and added the ability to
override the template via config.
2013-02-11 18:55:21 -08:00
Lance Edgar d14b388b4b update changelog 2013-02-10 17:20:05 -08:00
Lance Edgar 86e96273a5 Fixed bug where requesting deletion of non-existent batch row was redirecting
to a non-existent route.
2013-02-10 17:15:25 -08:00
Lance Edgar 3895091ad0 update changelog 2013-02-05 19:37:15 -08:00
Lance Edgar 5a69037e42 bump version 2013-02-05 19:35:04 -08:00
Lance Edgar b4feccbca0 Fixed batch grid and CRUD views so that the execution time shows a pretty (and
local) display instead of 24-hour UTC time.
2013-02-05 19:16:51 -08:00
Lance Edgar 4cd598f33e add inventory worksheet report 2012-11-28 15:47:00 -08:00
Lance Edgar a53f4477e4 use StrippingFieldRenderer for LabelProfile.printer_spec and .formatter_spec 2012-11-28 09:32:22 -08:00
Lance Edgar 589c3e6ca6 bump version 2012-11-27 21:53:37 -08:00
Lance Edgar 470aa10d9f update changelog 2012-11-27 21:52:26 -08:00
Lance Edgar 95096e0872 handle missing printer in label profile templates 2012-11-27 14:34:05 -08:00
Lance Edgar b1faddd33e fix batch url in row crud template 2012-11-27 11:28:09 -08:00
Lance Edgar 765fa7f949 use default_format when saving label profiles 2012-11-26 16:27:55 -08:00