Esempio n. 1
0
class QualityScenarioDocument(models.Model):
    introduction = models.TextField(blank=True)
    references = models.ManyToManyField('References')
    quality_scenarios = models.ManyToManyField('QualityScenarios')

    def __unicode__(self):
        return self.introduction

    class Meta:
        verbose_name = "Quality Scenario Document"
        verbose_name_plural = "Quality Scenario Documents"

    @staticmethod
    def getReport(product=None):
        if (product):
            mycontext = {
                'qualityscenariodocuments':
                QualityScenarioDocument.objects.all,
                'product_name': product.name,
                'autoescape': False
            }
        else:
            mycontext = {
                'qualityscenariodocuments':
                QualityScenarioDocument.objects.all,
                'product_name': "All products",
                'autoescape': False
            }

        return render_to_latex(
            "admin/fur/qualityscenariodocument/report_qualityscenariodocument.tex",
            mycontext)
Esempio n. 2
0
class DDSA(models.Model):
    name = models.CharField(max_length=100)
    introduction = models.TextField(blank=True)
    references = models.ManyToManyField('References')
    technology = models.ManyToManyField('Technology')
    quality_attribute_priority = models.ManyToManyField(
        'QualityScenarios', through='QualityAttributePriority')
    requirements = models.ManyToManyField(Requirement, )

    def __unicode__(self):
        return self.name

    class Meta:
        verbose_name = "DSSA"
        verbose_name_plural = "DSSAs"

    @staticmethod
    def getReport(product=None):
        if (product):
            mycontext = {
                'dssas': DDSA.objects.all,
                'product_name': product.name,
                'autoescape': False
            }
        else:
            mycontext = {
                'dssas': DDSA.objects.all,
                'product_name': "All products",
                'autoescape': False
            }

        return render_to_latex("admin/fur/dssa/report_dssa.tex", mycontext)
Esempio n. 3
0
class TemplateScenarios(models.Model):
    introduction = models.CharField(max_length=100)
    references = models.ManyToManyField('References')
    scenarios = models.ManyToManyField('AddScenarios')

    def __unicode__(self):
        return self.introduction

    class Meta:
        verbose_name="Template Quality Scenario"
        verbose_name_plural="Template Quality Scenarios"
Esempio n. 4
0
class Scenarios(models.Model):
    name = models.CharField(max_length=100)
    stimulus = models.TextField(blank=True)
    response = models.TextField(blank=True)
    strategy = models.TextField(blank=True)
    feature = models.ManyToManyField(Feature)
    nf_requirement = models.ManyToManyField(Requirement)

    def __unicode__(self):
        return self.name

    class Meta:
        verbose_name="Scenario Detail"
Esempio n. 5
0
class DDSA(models.Model):
    name = models.CharField(max_length=100)
    description = models.CharField(max_length=100)
    references = models.ManyToManyField('References')
    technology = models.ManyToManyField('Technology')
    scenarios = models.ManyToManyField('AddScenarios')

    def __unicode__(self):
        return self.name

    class Meta:
        verbose_name="DSSA"
        verbose_name_plural="DSSAs"
Esempio n. 6
0
class Architecture(models.Model):
    name = models.CharField(max_length=200)
    description = models.TextField(max_length=500)
    references = models.ManyToManyField('References',
                                        blank=True,
                                        symmetrical=False,
                                        related_name='mainsteps_funcspec')
Esempio n. 7
0
class Technology(models.Model):
    api = models.ManyToManyField('API', verbose_name="API")
    description = models.TextField(blank=True)

    def __unicode__(self):
        return self.description

    class Meta:
        verbose_name = "Technology"
        verbose_name_plural = "Technologies"

    @staticmethod
    def getReport(product=None):
        if (product):
            mycontext = {
                'technologies': Technology.objects.all,
                'product_name': product.name,
                'autoescape': False
            }
        else:
            mycontext = {
                'technologies': Technology.objects.all,
                'product_name': "All products",
                'autoescape': False
            }

        return render_to_latex(
            "admin/fur/technologies/report_technologies.tex", mycontext)
Esempio n. 8
0
class Technology(models.Model):
    api = models.ManyToManyField('API', verbose_name="API")
    description = models.TextField(blank=True)

    def __unicode__(self):
        return self.description

    class Meta:
        verbose_name="Technology"
        verbose_name_plural="Technologies"
Esempio n. 9
0
class AddScenarios(models.Model):
    name = models.CharField(max_length=100)
    nf_requirement = models.ManyToManyField(Requirement)
    scenario = models.OneToOneField(Scenarios)

    def __unicode__(self):
        return self.name

    class Meta:
        verbose_name="Quality Scenario"
        verbose_name_plural="Quality Scenarios"