Пример #1
0
    def handle_noargs(self, **options):
        self.options = bunchify(options)
        svg_path = self.options.svg_path
        if svg_path is None:
            svg_path = os.path.dirname(self.options.workbook)

        workbook = self.open_workbook()
        profile = Profile.get_profile(self.options.profile, self.options.clear)

        result = import_profile_from_workbook(profile, workbook,
                                              svg_path=svg_path,
                                              post_calculate=self.options.post_calculate)
        if result.error:
            logger.warning("Formulas con error: %2d" % result.error)
        logger.info("Formulas calculadas OK: %2d" % result.ok)
        logger.info("Total: %2d" % result.total)
Пример #2
0
    def handle_noargs(self, **options):
        self.options = bunchify(options)
        svg_path = self.options.svg_path
        if svg_path is None:
            svg_path = os.path.dirname(self.options.workbook)

        workbook = self.open_workbook()
        profile = Profile.get_profile(self.options.profile, self.options.clear)

        result = import_profile_from_workbook(
            profile,
            workbook,
            svg_path=svg_path,
            post_calculate=self.options.post_calculate)
        if result.error:
            logger.warning("Formulas con error: %2d" % result.error)
        logger.info("Formulas calculadas OK: %2d" % result.ok)
        logger.info("Total: %2d" % result.total)