656 self.otherssubdirs.append(dn) |
656 self.otherssubdirs.append(dn) |
657 |
657 |
658 # create hash value, if it doesn't have one |
658 # create hash value, if it doesn't have one |
659 if not self.pdata["HASH"][0]: |
659 if not self.pdata["HASH"][0]: |
660 hash = str(QCryptographicHash.hash( |
660 hash = str(QCryptographicHash.hash( |
661 QByteArray(self.ppath), QCryptographicHash.Sha1).toHex(), |
661 QByteArray(self.ppath.encode("utf-8")), |
|
662 QCryptographicHash.Sha1).toHex(), |
662 encoding="utf-8") |
663 encoding="utf-8") |
663 self.pdata["HASH"] = [hash] |
664 self.pdata["HASH"] = [hash] |
664 self.setDirty(True) |
665 self.setDirty(True) |
665 |
666 |
666 return res |
667 return res |
1827 self.pdata["TRANSLATIONPATTERN"][0] != '') |
1828 self.pdata["TRANSLATIONPATTERN"][0] != '') |
1828 |
1829 |
1829 self.projectAboutToBeCreated.emit() |
1830 self.projectAboutToBeCreated.emit() |
1830 |
1831 |
1831 hash = str(QCryptographicHash.hash( |
1832 hash = str(QCryptographicHash.hash( |
1832 QByteArray(self.ppath), QCryptographicHash.Sha1).toHex(), |
1833 QByteArray(self.ppath.encode("utf-8")), QCryptographicHash.Sha1).toHex(), |
1833 encoding="utf-8") |
1834 encoding="utf-8") |
1834 self.pdata["HASH"] = [hash] |
1835 self.pdata["HASH"] = [hash] |
1835 |
1836 |
1836 # create the project directory if it doesn't exist already |
1837 # create the project directory if it doesn't exist already |
1837 if not os.path.isdir(self.ppath): |
1838 if not os.path.isdir(self.ppath): |