コード例 #1
0
ファイル: models.py プロジェクト: joabepinheiro/splarch
    def getReport(product=None):
        if product:
            mycontext = {
                "usecases": UseCase.objects.filter(feature__in=product.features.all),
                "product_name": product.name,
                "autoescape": False,
            }
        else:
            mycontext = {"usecases": UseCase.objects.all, "product_name": "All products", "autoescape": False}

        return render_to_latex("admin/fur/usecase/report_usecase.tex", mycontext)
コード例 #2
0
ファイル: models.py プロジェクト: joabepinheiro/splarch
    def getReport(product=None):
        if product:
            mycontext = {
                "glossary": Glossary.objects.filter(feature__in=product.features.all).distinct(),
                "product_name": product.name,
                "autoescape": False,
            }
        else:
            mycontext = {"glossary": Glossary.objects.all, "product_name": "All products", "autoescape": False}

        return render_to_latex("admin/fur/glossary/report_glossary.tex", mycontext)
コード例 #3
0
ファイル: models.py プロジェクト: joabepinheiro/splarch
 def getReport(product=None):
     if product:
         mycontext = {"features": product.features.all, "product_name": product.name, "autoescape": False}
     else:
         mycontext = {"features": Feature.objects.all, "product_name": "All products", "autoescape": False}
     return render_to_latex("admin/fur/feature/report_features.tex", mycontext)