aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils
AgeCommit message (Expand)Author
2013-10-28Update db.pyWladimir Diedel
2013-10-27Document SQL_WARNING_THRESHOLD.Aymeric Augustin
2013-10-27Fix all flake8 warnings and add flake8 to tox.Aymeric Augustin
2013-10-27Centralize access to config and default values.Aymeric Augustin
2013-10-26Eliminate almost all flake8 messages.Aymeric Augustin
2013-10-26Remove unused imports.Aymeric Augustin
2013-10-26Don't shorten SQL selections shorter than 10 chars.Aymeric Augustin
2013-10-26Don't crash on non ascii bytestrings in db params.Aymeric Augustin
2013-10-21Minor cleanup.Aymeric Augustin
2013-10-21Added configurable HIDDEN_STACKTRACE_MODULES.Simon Meers
2013-10-18Ensure the toolbar only outputs valid XML.Aymeric Augustin
2013-10-17Support non-ASCII queries in the SQL panel.Aymeric Augustin
2013-10-17FileControllerTest = TestCase('FileControllerTest'); FileControllerTest.prototype.XtestOnSelectUpdateView = function(){ var view = jQuery('<span><a/><span/></span>'); var swf = {}; var controller = new FileController(view, null, swf); swf.uploadFile = function(path){}; controller.select('A', 9, '9 bytes'); assertEquals(view.find('a').text(), "A"); assertEquals(view.find('span').text(), "9 bytes"); }; FileControllerTest.prototype.XtestUpdateModelView = function(){ var view = FileController.template(''); var input = $('<input name="value.input">'); var controller; var scope = new Scope({value:{}, $binder:{updateView:function(){ controller.updateView2013-10-17Avoid a crash in _quote_params for some default values.Aymeric Augustin
2013-10-15Catch exceptions liberally when looking for sources.Aymeric Augustin
2013-04-29Handle db aliases which are not defined in connectionsDavid Cramer
2013-04-24Fix tests for Django 1.3Vladislav Poluhin
2013-04-24Merge branch 'master' of https://github.com/django-debug-toolbar/django-debug...Vladislav Poluhin
2013-04-24Got rid of the circular importsVladislav Poluhin
2013-04-23Form for SQL validationVladislav Poluhin
2013-03-02Merge pull request #342 from davidwtbuxton/masterJannis Leidel
2013-03-02Merge branch 'issue_230' of git://github.com/akaariai/django-debug-toolbar in...Jannis Leidel
2013-02-20Improve how we decode stringsDavid Cramer
2013-02-20Improvements for decoding params for recordingDavid Cramer
2012-12-30Use the built-in json module on python >= 2.6.Simon Charette
2012-12-11Python 2.5 compatibility #261David Buxton
2012-11-26Merge pull request #336 from craigds/masterJannis Leidel
2012-11-21fix hashcompat deprecation warnings with django 1.5Craig de Stigter
2012-09-03Fixed issue #230 -- prevent crash when transaction is in error stateVincent Alsteen
2012-08-27Made usable connections with alias not in db.connectionsAnssi Kääriäinen
2012-08-27Fixed issue #230 -- Avoid queries in aborted transactionsAnssi Kääriäinen
2012-05-13Added support for class methods.Jannis Leidel
2012-05-13More use of import_module.Jannis Leidel
2012-05-13Stop getting a setting all the time.Jannis Leidel
2012-04-07Updated cache panel to handle multiple backends and look more like the SQL pa...Jannis Leidel
2012-01-12pep8David Cramer
h", null); }; FileControllerTest.prototype.XtestRemoveAttachment = function(){ var doc = FileController.template(); var input = $('<input name="file">'); var scope = new Scope(); input.data('scope', scope); var controller = new FileController(doc, 'file', null, null); controller.updateView(scope); assertEquals(false, doc.find('input').attr('checked')); scope.set('file', {url:'url', size:123}); controller.updateView(scope); assertEquals(true, doc.find('input').attr('checked')); doc.find('input').attr('checked', false); controller.updateModel(scope); assertNull(scope.get('file')); doc.find('input').attr('checked', true); controller.updateModel(scope); assertEquals('url', scope.get('file.url')); assertEquals(123, scope.get('file.size')); }; FileControllerTest.prototype.XtestShouldEmptyOutOnUndefined = function () { var view = FileController.template('hello'); var controller = new FileController(view, 'abc', null, null); var scope = new Scope(); scope.set('abc', {text: 'myname', url: 'myurl', size: 1234}); controller.updateView(scope); assertEquals("myurl", view.find('a').attr('href')); assertEquals("myname", view.find('a').text()); assertEquals(true, view.find('input').is(':checked')); assertEquals("1.2 KB", view.find('span').text()); scope.set('abc', undefined); controller.updateView(scope); assertEquals("myurl", view.find('a').attr('href')); assertEquals("myname", view.find('a').text()); assertEquals(false, view.find('input').is(':checked')); assertEquals("1.2 KB", view.find('span').text()); };