parameters: (
          chapter=None, content=None,
          user=None, comment='', revision=None)
docstring: Creates history record for chapter change.
  
      @type chapter: C{booki.editor.models.Chapter}
      @param chapter: Chapter object
      @type content: C{string}
      @param content: Old content
      @type user: C{django.contrib.auth.models.User}
      @param user: Booki user object
      @type comment: C{string}
      @param comment: Comment about this change
      @type revision: C{int}
      @param revision: Revision number for this change
docstring_summary: Creates history record for chapter change.
docstring_tokens: Creates history record for chapter change .
function: def logChapterHistory(
          chapter=None, content=None,
          user=None, comment='', revision=None):
      """
      Creates history record for chapter change.
  
      @type chapter: C{booki.editor.models.Chapter}
      @param chapter: Chapter object
      @type content: C{string}
      @param content: Old content
      @type user: C{django.contrib.auth.models.User}
      @param user: Booki user object
      @type comment: C{string}
      @param comment: Comment about this change
      @type revision: C{int}
      @param revision: Revision number for this change
      """
  
      try:
          history = models.ChapterHistory(
              chapter=chapter,
              content=content,
              user=user,
              revision=revision,
              comment=comment
          )
          history.save()
          return history
  
      except ValueError:
          return None
function_tokens: def logChapterHistory ( chapter = None , content = None , user = None , comment = '' , revision = None ) : try : history = models . ChapterHistory ( chapter = chapter , content = content , user = user , revision = revision , comment = comment ) history . save ( ) return history except ValueError : return None