624 if dn not in self.otherssubdirs: |
624 if dn not in self.otherssubdirs: |
625 self.otherssubdirs.append(dn) |
625 self.otherssubdirs.append(dn) |
626 |
626 |
627 # create hash value, if it doesn't have one |
627 # create hash value, if it doesn't have one |
628 if not self.pdata["HASH"][0]: |
628 if not self.pdata["HASH"][0]: |
629 hash = str(QCrytographicHash.hash( |
629 hash = str(QCryptographicHash.hash( |
630 QByteArray(self.ppath), QCryptographicHash.Sha1), |
630 QByteArray(self.ppath), QCryptographicHash.Sha1).toHex(), |
631 encoding = "utf-8") |
631 encoding = "utf-8") |
632 self.pdata["HASH"] = [hash] |
632 self.pdata["HASH"] = [hash] |
633 self.setDirty(True) |
633 self.setDirty(True) |
634 |
634 |
635 return res |
635 return res |
2259 self.menuPackagersAct.setEnabled(True) |
2259 self.menuPackagersAct.setEnabled(True) |
2260 self.pluginGrp.setEnabled(self.pdata["PROJECTTYPE"][0] == "E4Plugin") |
2260 self.pluginGrp.setEnabled(self.pdata["PROJECTTYPE"][0] == "E4Plugin") |
2261 |
2261 |
2262 self.emit(SIGNAL("projectAboutToBeCreated")) |
2262 self.emit(SIGNAL("projectAboutToBeCreated")) |
2263 |
2263 |
2264 hash = str(QCrytographicHash.hash( |
2264 hash = str(QCryptographicHash.hash( |
2265 QByteArray(self.ppath), QCryptographicHash.Sha1), |
2265 QByteArray(self.ppath), QCryptographicHash.Sha1).toHex(), |
2266 encoding = "utf-8") |
2266 encoding = "utf-8") |
2267 self.pdata["HASH"] = [hash] |
2267 self.pdata["HASH"] = [hash] |
2268 |
2268 |
2269 # create the project directory if it doesn't exist already |
2269 # create the project directory if it doesn't exist already |
2270 if not os.path.isdir(self.ppath): |
2270 if not os.path.isdir(self.ppath): |