--- a/Helpviewer/PersonalInformationManager/PersonalInformationManager.py Tue Oct 15 22:03:54 2013 +0200 +++ b/Helpviewer/PersonalInformationManager/PersonalInformationManager.py Fri Oct 18 23:00:41 2013 +0200 @@ -4,7 +4,8 @@ # """ -Module implementing a personal information manager used to complete form fields. +Module implementing a personal information manager used to complete form +fields. """ from __future__ import unicode_literals # __IGNORE_WARNING__ @@ -18,7 +19,8 @@ class PersonalInformationManager(QObject): """ - Class implementing the personal information manager used to complete form fields. + Class implementing the personal information manager used to complete form + fields. """ FullName = 0 LastName = 1 @@ -124,7 +126,8 @@ @param menu reference to the main menu (QMenu) @param view reference to the view (HelpBrowser) - @param hitTestResult reference to the hit test result (QWebHitTestResult) + @param hitTestResult reference to the hit test result + (QWebHitTestResult) """ self.__view = view self.__element = hitTestResult.element() @@ -140,7 +143,8 @@ for key, info in sorted(self.__allInfo.items()): if info: - act = submenu.addAction(self.__translations[key], self.__insertData) + act = submenu.addAction( + self.__translations[key], self.__insertData) act.setData(info) submenu.addSeparator() @@ -161,8 +165,9 @@ info = act.data() info = info.replace('"', '\\"') self.__element.evaluateJavaScript( - 'var newVal = this.value.substring(0, this.selectionStart) + "{0}" +' - ' this.value.substring(this.selectionEnd); this.value = newVal;'.format(info)) + 'var newVal = this.value.substring(0, this.selectionStart) +' + ' "{0}" + this.value.substring(this.selectionEnd); this.value =' + ' newVal;'.format(info)) def viewKeyPressEvent(self, view, evt): """ @@ -214,7 +219,8 @@ def connectPage(self, page): """ - Public method to allow the personal information manager to connect to the page. + Public method to allow the personal information manager to connect to + the page. @param page reference to the web page (HelpWebPage) """