Commit graph

3860 commits

Author SHA1 Message Date
Lance Edgar 7b18fec2a2 Add ExportMixin.filepath() convenience method
also added the `export_key` attribute here
2017-03-22 13:51:04 -05:00
Lance Edgar 32e2f4f75c Add db.util.short_session() context manager 2017-03-22 13:50:22 -05:00
Lance Edgar 6b9dab9bba Add better "runas" user support for subcommands 2017-03-22 13:49:18 -05:00
Lance Edgar de1329728f Add poddoc module for basic appy.pod integration support 2017-03-22 13:47:44 -05:00
Lance Edgar 0b51eedbd9 Add sane default handling of PDF attachments when sending email 2017-03-22 13:47:16 -05:00
Lance Edgar f73e9bf8ab Make config.export_filepath() return filedir if no filename given 2017-03-22 13:46:47 -05:00
Lance Edgar 754521afda Add errors kwarg to csv readers 2017-03-21 19:34:58 -05:00
Lance Edgar ad5e26437c Remove unwanted tests 2017-03-21 15:07:08 -05:00
Lance Edgar 447fa7289d Tweak template files for new batch 2017-03-21 13:15:49 -05:00
Lance Edgar 12c5d94f69 Refactor core commands somewhat
this also adds the `--runas` arg
2017-03-21 13:15:29 -05:00
Lance Edgar 1b2e8c534c Add CustomerMailingAddress to data model 2017-03-21 13:15:04 -05:00
Lance Edgar 9c932a5ee6 Add mysql.clone_db() fablib function 2017-03-21 13:13:59 -05:00
Lance Edgar 7f6b89f7bb Change BatchMixin.delete_data() method to remove entire folder
instead of trying to delete known files first, just remove it all
2017-03-21 13:12:49 -05:00
Lance Edgar b3e67e3bda Add ModelBase.make_proxy() class method
this hopefully will make for some more terse / readable code..
2017-03-21 13:11:31 -05:00
Lance Edgar bf5619775a Fix typo in project template's setup.py 2017-03-21 13:10:29 -05:00
Lance Edgar 55eb8136fb Add BatchHandler.populate() and should_populate()
..and `populate_batches` attribute
2017-03-21 13:07:33 -05:00
Lance Edgar 68c63cf8bd Make allow_cancel default to false, for util.progress_loop() 2017-03-21 13:06:20 -05:00
Lance Edgar 80f5ccb81e Make util.pretty_hours() accept a seconds arg
..and calculate a timedelta object from that
2017-03-21 13:02:01 -05:00
Lance Edgar 963b9db450 Make filename arg optional for config.batch_filepath()
If not specified, function will now return batch's filedir
2017-03-21 13:01:24 -05:00
Lance Edgar f91f95c5a2 Disable some unused commands
The command logic remains in place, for now...
2017-03-21 13:00:17 -05:00
Lance Edgar d23981ee0c Tweak deployment of Apache site, for better kwargs support 2017-03-19 13:37:03 -05:00
Lance Edgar 7ecefb7082 Add RattailConfig.demo() method
Plus a tweak to new project template
2017-03-19 11:00:27 -05:00
Lance Edgar a3f84df19d Add universal fablib function for cloning PostgreSQL database 2017-03-17 18:45:02 -05:00
Lance Edgar 1383cd799e Refactor how/when mail aliases are created for new system users 2017-03-17 17:49:07 -05:00
Lance Edgar e8901b3cad Provide default logo for Login page in new project template 2017-03-17 15:49:58 -05:00
Lance Edgar ed2b272623 Refactor new project template, to use variations of project name 2017-03-17 11:23:45 -05:00
Lance Edgar 4f4ac9cb4d Update changelog 2017-03-16 15:13:01 -05:00
Lance Edgar 6f09936979 Fix logic for util.hours_as_decimal()
The decimal part of that wasn't working quite right..hopefully is now
2017-03-16 14:52:46 -05:00
Lance Edgar af2c61580f Don't assume datasync URL is configured, within email previews 2017-03-16 11:36:05 -05:00
Lance Edgar 439bb515d2 Update changelog 2017-03-15 13:19:09 -05:00
Lance Edgar 20e8f6c749 Don't cache local data unless supported, for BatchImporter 2017-03-15 13:04:39 -05:00
Lance Edgar 1d6ee88ae4 Add new BatchImporter for sake of product image and similar imports 2017-03-15 12:22:03 -05:00
Lance Edgar af9b84c03e Update changelog 2017-03-13 14:06:26 -05:00
Lance Edgar 3ea4cb689a Add default_dbkey for export-rattail commands 2017-03-13 13:28:29 -05:00
Lance Edgar bc7357e042 Add script() and set_user_password() to postgresql fablib 2017-03-10 18:55:56 -06:00
Lance Edgar 46ac996d96 Update changelog 2017-03-09 11:54:38 -06:00
Lance Edgar 3c47d96afd Use query.count() if no count provided to progress_loop()
..and assuming len(data) doesn't work
2017-03-08 10:49:55 -06:00
Lance Edgar 44323bdfc5 Add 'identity' kwarg for fablib ssh.cache_host_key() 2017-03-08 09:06:38 -06:00
Lance Edgar 50f3a58d22 Fix ownership bug when uploading Mako template file via fabric 2017-03-06 16:08:54 -06:00
Lance Edgar 8b59ed68c3 Detect, warn about invalid cost in KeHE vendor catalog parser 2017-03-06 16:07:54 -06:00
Lance Edgar b7220cfff8 Tweak how we exclude product images from rattail export 2017-03-04 07:40:35 -08:00
Lance Edgar 8026055c22 Update changelog 2017-03-03 15:57:25 -08:00
Lance Edgar 091cb12bee Add Product.discontinued flag to schema 2017-03-03 15:07:26 -08:00
Lance Edgar f34875aafb Update changelog 2017-03-03 11:57:16 -08:00
Lance Edgar 9ca913248f Allow 'frontend' override for apt-get install via fabric
also adds the `apt.add_repository()` function
2017-03-02 18:39:33 -08:00
Lance Edgar ee0c0d4901 Add allow_cancel kwarg for progress_loop() 2017-03-02 18:39:19 -08:00
Lance Edgar fbe9a4016b Update changelog 2017-03-01 13:27:41 -08:00
Lance Edgar 0506dc77c1 Add Product.ingredients to schema 2017-02-27 21:02:46 -08:00
Lance Edgar c7d36d962d Add Product.notes to schema 2017-02-27 20:47:49 -08:00
Lance Edgar 4089d4c5fb Update changelog 2017-02-24 12:14:57 -06:00