Changeset d006a6d in rattail
- Timestamp:
- 08/01/2022 09:16:57 PM (6 months ago)
- Branches:
- master
- Children:
- 96ec45c
- Parents:
- ad5df3a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rattail/commands/core.py
rad5df3a rd006a6d 806 806 807 807 808 class LoadHostDataCommand(Subcommand):809 """810 Loads data from the Rattail host database, if one is configured.811 """812 813 name = 'load-host-data'814 description = "Load data from host database"815 816 def run(self, args):817 from .db import get_engines818 from .db import load819 820 engines = get_engines(self.config)821 if 'host' not in engines:822 sys.stderr.write("Host engine URL not configured.\n")823 sys.exit(1)824 825 proc = load.LoadProcessor(self.config)826 proc.load_all_data(engines['host'], ConsoleProgress)827 828 829 808 class MakeAppDir(Subcommand): 830 809 """
Note: See TracChangeset
for help on using the changeset viewer.