diff --git a/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.py b/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.py index 3f0ef8c7..37e67e8f 100644 --- a/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.py +++ b/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.py @@ -33,33 +33,15 @@ class AboutUpgradeMightyScape(inkex.EffectExtension): try: localCommit = local_repo.head.commit remote_repo = git.remote.Remote(local_repo, 'origin') - remoteCommit = remote_repo.fetch()[0].commit + remoteCommit = remote_repo.fetch()[0].commit + self.msg("Latest remote commit is: " + str(remoteCommit)[:7]) + authors = [] # for every remote commit while remoteCommit.hexsha != localCommit.hexsha: authors.append(remoteCommit.author.email) remoteCommit = remoteCommit.parents[0] - #local_commits = list(local_repo.iter_commits("master", max_count=5)) - local_commits = list(local_repo.iter_commits("master")) - self.msg("Local commit id is: " + str(localCommit)[:7]) - self.msg("Latest remote commit is: " + str(remoteCommit)[:7]) - self.msg("There are {} local commits at the moment.".format(len(local_commits))) - localCommitList = [] - for local_commit in local_commits: - localCommitList.append(local_commit) - #localCommitList.reverse() - self.msg("*"*40) - self.msg("Latest 10 local commits are:") - for i in range(0, 10): - self.msg("{} | {} : {}".format( - datetime.utcfromtimestamp(localCommitList[i].committed_date).strftime('%Y-%m-%d %H:%M:%S'), - localCommitList[i].name_rev[:7], - localCommitList[i].message.strip()) - ) - #self.msg(" - {}: {}".format(localCommitList[i].newhexsha[:7], localCommitList[i].message)) - self.msg("*"*40) - if localCommit.hexsha != remoteCommit.hexsha: ssh_executable = 'git' with local_repo.git.custom_environment(GIT_SSH=ssh_executable): @@ -126,6 +108,26 @@ class AboutUpgradeMightyScape(inkex.EffectExtension): remotes.append("https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X.git") #main remotes.append("https://github.com/vmario89/mightyscape-1.X.git") #copy/second remote + localCommit = local_repo.head.commit + #local_commits = list(local_repo.iter_commits("master", max_count=5)) + localCommits = list(local_repo.iter_commits("master")) + self.msg("Local commit id is: " + str(localCommit)[:7]) + self.msg("There are {} local commits at the moment.".format(len(localCommits))) + localCommitList = [] + for local_commit in localCommits: + localCommitList.append(localCommit) + #localCommitList.reverse() + self.msg("*"*40) + self.msg("Latest 10 local commits are:") + for i in range(0, 10): + self.msg("{} | {} : {}".format( + datetime.utcfromtimestamp(localCommitList[i].committed_date).strftime('%Y-%m-%d %H:%M:%S'), + localCommitList[i].name_rev[:7], + localCommitList[i].message.strip()) + ) + #self.msg(" - {}: {}".format(localCommitList[i].newhexsha[:7], localCommitList[i].message)) + self.msg("*"*40) + #finally run the update success = self.update(local_repo, remotes[0]) if success is False: #try the second remote if first failed diff --git a/extensions/fablabchemnitz/animate_order/animate_order.py b/extensions/fablabchemnitz/animate_order/animate_order.py index 19d00dc3..08b191f0 100644 --- a/extensions/fablabchemnitz/animate_order/animate_order.py +++ b/extensions/fablabchemnitz/animate_order/animate_order.py @@ -59,10 +59,6 @@ class AnimateOrder(inkex.EffectExtension): target_html = os.path.join(extension_dir, "animate_order.html") - if os.path.exists(target_html) is False: - inkex.utils.debug("Error. Target file does not exist!") - exit(1) - docTitle = self.document.getroot().get("{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}docname") if docTitle is None: title = "Animate Order - Vivus JS" @@ -96,6 +92,10 @@ class AnimateOrder(inkex.EffectExtension): print( ' ' , file=text_file) print( '' , file=text_file) + if os.path.exists(target_html) is False: + inkex.utils.debug("Error. Target file does not exist!") + exit(1) + #now open firefox args = [self.options.browser, target_html] try: diff --git a/extensions/fablabchemnitz/contour_scanner_and_trimmer/contour_scanner_and_trimmer.inx b/extensions/fablabchemnitz/contour_scanner_and_trimmer/contour_scanner_and_trimmer.inx index 1b1e50be..3db73666 100644 --- a/extensions/fablabchemnitz/contour_scanner_and_trimmer/contour_scanner_and_trimmer.inx +++ b/extensions/fablabchemnitz/contour_scanner_and_trimmer/contour_scanner_and_trimmer.inx @@ -2,23 +2,34 @@ Contour Scanner And Trimmer fablabchemnitz.de.contour_scanner_and_trimmer - - - - false - false - false - true - 0.100 - 3 - 0.1 - false - true - - - - - + + + + + + false + false + false + true + 0.100 + 3 + 0.1 + + 1.0 + 30 + false + + + + + + + + + + + + false false false @@ -27,22 +38,35 @@ false false false - - - false - false - false - false - false - false - false - false - false + + true + + + + + + false + + + + false + false + false + false + false + false + false + false + + false + false + false + + false false - - - - + + + @@ -50,11 +74,11 @@ false true - true - false + true + false + true true - false - + true false false @@ -64,48 +88,44 @@ - - - - - - - - 1630897151 - 3419879935 - 1592519679 - 3351636735 - 4289703935 - 258744063 - 4012452351 - 2330080511 - 2593756927 - 6320383 - 4239343359 - - - - - 3227634687 - 1923076095 - 3045284607 - - 1.0 - 30 - false - true - true - - - + + + + + + 1630897151 + + 3419879935 + 1592519679 + 3351636735 + 4289703935 + 258744063 + 4012452351 + 2330080511 + + + + + 897901823 + 869366527 + + 2593756927 + 6320383 + 4239343359 + + 3227634687 + 1923076095 + 3045284607 + + + + -