Exemple #1
0
	def __init__(self,repo,databases):
		BackendExporter.__init__(self,repo,databases)
		self.templates = {}

		self.freecad = self.databases["freecad"]
		self.openscad = self.databases["openscad"]
		self.drawings = self.databases["drawings"]

		self.statistics = statistics.StatisticsExporter(repo,databases)
		self.checker = checker.CheckerExporter(repo,databases)
Exemple #2
0
    def __init__(self, repo, databases):
        BackendExporter.__init__(self, repo, databases)
        self.templates = {}

        self.freecad = self.databases["freecad"]
        self.openscad = self.databases["openscad"]
        self.drawings = self.databases["drawings"]

        self.statistics = statistics.StatisticsExporter(repo, databases)
        self.checker = checker.CheckerExporter(repo, databases)
Exemple #3
0
    def __init__(self, repo, databases):
        BackendExporter.__init__(self, repo, databases)
        self.openscad = databases["openscad"]

        #check for module name clashes
        modules = []
        for coll in repo.collections:
            for cl in coll.classes:
                if cl.openscadname in modules:
                    raise ModuleNameCollisionError(cl.openscadname)
                modules.append(cl.openscadname)
        for base in self.openscad.getbase.values():
            if base.type == "module":
                if base.name in modules:
                    raise ModuleNameCollisionError(base.name)
Exemple #4
0
	def __init__(self,repo,databases):
		BackendExporter.__init__(self,repo,databases)
		self.openscad = databases["openscad"]

		#check for module name clashes
		modules = []
		for coll in repo.collections:
			for cl in coll.classes:
				if cl.openscadname in modules:
					raise ModuleNameCollisionError(cl.openscadname)
				modules.append(cl.openscadname)
		for base in self.openscad.getbase.values():
			if base.type == "module":
				if base.name in modules:
					raise ModuleNameCollisionError(base.name)
Exemple #5
0
	def __init__(self,repo,databases):
		BackendExporter.__init__(self,repo,databases)

		self.checks = {}
		self.checks["missingbase"] = MissingBaseTable()
		self.checks["unknownclass"] = UnknownClassTable()
		self.checks["missingcommonparameters"] = MissingCommonParametersTable()
		self.checks["missingdrawing"] = MissingDrawingTable()
		self.checks["missingsvgsource"] = MissingSVGSourceTable()
		self.checks["unsupportedlicense"] = UnsupportedLicenseTable()
		self.checks["unknownfile"] = UnknownFileTable()
		self.checks["nonconformingparametername"] = NonconformingParameternameTable()
		self.checks["tableproblem"] = TableProblemTable()
		self.checks["missingbaseconnection"] = MissingBaseConnectionTable()

		for check in self.checks.values():
			check.populate(repo,databases)
Exemple #6
0
    def __init__(self, repo, databases):
        BackendExporter.__init__(self, repo, databases)

        self.checks = {}
        self.checks["missingbase"] = MissingBaseTable()
        self.checks["unknownclass"] = UnknownClassTable()
        self.checks["missingcommonparameters"] = MissingCommonParametersTable()
        self.checks["missingdrawing"] = MissingDrawingTable()
        self.checks["missingsvgsource"] = MissingSVGSourceTable()
        self.checks["unsupportedlicense"] = UnsupportedLicenseTable()
        self.checks["unknownfile"] = UnknownFileTable()
        self.checks[
            "nonconformingparametername"] = NonconformingParameternameTable()
        self.checks["tableproblem"] = TableProblemTable()
        self.checks["missingbaseconnection"] = MissingBaseConnectionTable()

        for check in self.checks.values():
            check.populate(repo, databases)
Exemple #7
0
	def __init__(self,repo,databases):
		BackendExporter.__init__(self,repo,databases)
		self.solidworks = databases["solidworks"]
Exemple #8
0
	def __init__(self,repo,databases):
		BackendExporter.__init__(self,repo,databases)
		self.dbs = databases
Exemple #9
0
 def __init__(self, repo, databases):
     BackendExporter.__init__(self, repo, databases)
     self.freecad = databases["freecad"]
Exemple #10
0
 def __init__(self, repo, databases):
     BackendExporter.__init__(self, repo, databases)
     self.solidworks = databases["solidworks"]
Exemple #11
0
	def __init__(self,repo,databases):
		BackendExporter.__init__(self,repo,databases)
		self.freecad = databases["freecad"]
Exemple #12
0
	def __init__(self,repo,databases):
		BackendExporter.__init__(self,repo,databases)
		self.freecad = databases["freecad"]
		self.openscad = databases["openscad"]
		self.drawings = databases["drawings"]