diff --git a/modules/plugin_dbui/directsvc.py b/modules/plugin_dbui/directsvc.py index 51920d2c2f75c8fed797f309861ab416d0d76147..03b832cddc634efb1bad558f6846f9c1f16f5c42 100644 --- a/modules/plugin_dbui/directsvc.py +++ b/modules/plugin_dbui/directsvc.py @@ -10,6 +10,7 @@ import sys from basesvc import BaseSvc from gluon.http import HTTP +from gluon.restricted import RestrictedError from helper import as_list DBUI = 'Dbui' @@ -130,9 +131,15 @@ class DirectSvc(BaseSvc): di['result'] = self.procedures[k](*arg['data']) else: di['result'] = self.procedures[k]() - - except Exception, e: - traceback.print_exc(file=sys.stdout) + + # catch exceptions and log them in the ticker system + # inform the user that something went wrong in the server + except: + r = RestrictedError(layer='directsvc.py', + code='route', + output='', + environment=self.environment) + r.log(request) self.error(500, 'Internal server error.') del di['data'] diff --git a/static/plugin_dbui/CHANGELOG b/static/plugin_dbui/CHANGELOG index 3b215870ab99ea180f0aa506211c96066d39ab8c..c8b046aae0b4d1d162ee1f83050b08ad7fe6411c 100644 --- a/static/plugin_dbui/CHANGELOG +++ b/static/plugin_dbui/CHANGELOG @@ -1,6 +1,7 @@ --------------------------------- CHANGE LOG ---------------------------------- HEAD + - DirectSvc exceptions are logged in the ticket system. 0.4.10.1 (Dec 2012) - Bug fixed @@ -9,7 +10,7 @@ HEAD - Several improvement handling the number of rows and reset in DirectStore, Grid, GridFilter, pGridPaging and pGridExpertMenu. - Improve the handling of LinkedComboBox. - + 0.4.9.7 (Nov 2012) - Major release with several improvements. - New syntax for grid filter via the method GridModifier.append_filter. @@ -18,7 +19,7 @@ HEAD - Add the possibility to configure an Ext.data.ArrayStore in the model. - Add a new widget LinkedComboBox and new method link_comboboxes in FormModifiers. - - Add a plugin pRegExp and remove custom widget app.form.TextField + - Add a plugin pRegExp and remove custom widget app.form.TextField and app.form.TextArea. - Add a new python class Selector to help building reports. - improve store and row-editor messaging on exception. @@ -26,7 +27,7 @@ HEAD - New controller for software version plugin_dbui/versions. - Add modifiers persistency. - Add helper function get_create_id and get_id - + 0.4.8.2 (Jul 2012) - Consolidation version - Add a StoreModifier to handle the orderby directive @@ -39,12 +40,12 @@ HEAD - Add the possibility to filter on any foreign field. - Add app.form.TextField and app.form.TextArea to work with the regular expression validator IS_MATCH - + 0.4.6.1 (May 2012) - Minor release - Add the property timeout to App.PanelWithUrlSelector - Add constant UNDEF, UNDEF_ID and UNKNOWN - + 0.4.6 (Mar 2012) - Major release. - More general configuration for App.PanelWithUrlSelector. @@ -56,7 +57,7 @@ HEAD - Redesign the plugin parameters and the related index view. - Add a mechanism to extract report as latex of pdf files. - Bugs fixed. - + 0.4.5 (Feb 2012) - Consolidation version - Polish code and documentation as well as bug fixed @@ -65,7 +66,7 @@ HEAD - Rename the plugin configuration parameters and add new ones. - Script to build and tag a new version of plugin_dbui - Add helper function get_file_paths and remove get_js_files - + 4.3.0 (Dec 2011) - Major change which is not backward compatible - Add mechanism to transport database validators on the client side. @@ -84,34 +85,34 @@ HEAD - Simplify the model (db, default, dummy, widget) - Add the helper function is_mathjax - Bugs fixed - + 0.4.2 (Oct 2011) - Migrate to git and to ExtJS 3.4 - Backport the modifiers syntax developped in the branch 0.5.x - Backport the 0.5.x look and feel for the row editor contex menu - Bugs fixed - + 0.4.1 (Apr 2011) - Bugs fixed. - Add local files (fr-fr) for client and server sides. - Use the same sequence to load MathJax and ExtJS libraries. - Move to MathJax 1.1.0 - + 0.4.0 (Mar 2011) - Major Consolidation to ease evolution and maintenance. - Introduce the generic service directSvc to handle Ext.Direct protocol and remove database and configuration controllers. - - Redesign the controllers section (call, csv, debug, get_api, index, status) + - Redesign the controllers section (call, csv, debug, get_api, index, status) and the associated views (debug, index). - Remove the configuration property model in grid, from and comboBox widgets. A unique store is attached to each table and instantiate once. - Redesign and simplify the client class App.grid.Grid, App.form.FormPanel, App.form.ComboBox and remove App.form.EntryFormPanel. - - Re-visit plugins: App.grid.RowEditor, App.grid.RowEditorContextMenu + - Re-visit plugins: App.grid.RowEditor, App.grid.RowEditorContextMenu and App.gridPaging - New button App.ButtonDownlod in order to download file from the server. - Add the version number id appbase.js - + 0.3.2 (Jan 2011) - Update the user documentation. - Plugin parameters for the application javascript source code and library. @@ -119,14 +120,14 @@ HEAD - The viewport and composite fields can be configured in the python model. - Forms can be customized using embedded panels, i.e tabPanel. - Few bugs fixed - + 0.3.1 (Jan 2011) - refactoring the javascript code to be compliant with JSLint. - rename some python methods to be compliant with the PEP8 recommendation. - Introduce new Modifier tools based on classes to customize widgets. - Remove the first set of the Modifier tools based on function. - Few bugs fixed - + 0.3.0 (Dec 2010) - Customization of widgets and applications via the python model. Add many tools to help in the configuration at the python level. @@ -136,7 +137,7 @@ HEAD - Add a grid filter using a form which is defined in the model. - Move to Ext JS 3.3.1 - Add a minified version of the library. - + 0.2.3 (Nov 2010) - The configuration service handles the attributes Label, comment, readable, writable and widget from the SQLField class. @@ -147,7 +148,7 @@ HEAD In previous version it was Field or TableField depending on the context. - Use the widget numberfield for integer and double. - Add internationalization for table and field names. - + 0.2.2 (Oct 2010) - Migrate to web2py 1.88.1 and ExtJS 3.3.0 - Transform the code as a web2py plugin with the name plugin_dbui.