def createSpecialWordMap(request_user, rType, privWord, wordLength): pubWord = '^' * wordLength wMap = WordMap(owner=request_user, wordType=rType, privWord=privWord, pubWord=pubWord) wMap.save() return (wMap, pubWord)
def createWordMap(request_user, rType, privWord): pubWord = convertWordToSymbols(privWord) wMap = WordMap(owner=request_user, wordType=rType, privWord=privWord, pubWord=pubWord) wMap.save() return (wMap, pubWord)
def createSpecialWordMap(request_user, rType, privWord, wordLength): pubWord = '^'*wordLength wMap = WordMap(owner=request_user, wordType=rType, privWord=privWord, pubWord=pubWord) wMap.save() return (wMap, pubWord)