Permalink
Browse files

BK-687 Long name of book made crash of publishing

  • Loading branch information...
1 parent 2ea6fbf commit 8045ff02405992bcf9ba0d3dda3b8c8278475079 @aerkalov aerkalov committed May 3, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/booki/utils/book.py
@@ -35,7 +35,7 @@ def checkBookAvailability(bookTitle):
@return: Returns true or false
"""
- url_title = bookiSlugify(bookTitle)
+ url_title = bookiSlugify(bookTitle[:100])
if url_title == '':
return False
@@ -68,9 +68,9 @@ def createBook(user, bookTitle, status = "new", bookURL = None):
"""
if bookURL:
- url_title = bookURL
+ url_title = bookURL[:100]
else:
- url_title = bookiSlugify(bookTitle)
+ url_title = bookiSlugify(bookTitle[:100])
book = models.Book(url_title = url_title,
title = bookTitle,

0 comments on commit 8045ff0

Please sign in to comment.