Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin_dbui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2pext
plugin_dbui
Commits
bf35db37
Commit
bf35db37
authored
12 years ago
by
LE GAC Renaud
Browse files
Options
Downloads
Patches
Plain Diff
DirectSvc exceptions are logged in the web2py ticket system and not on the terminal
parent
dbff0937
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/plugin_dbui/directsvc.py
+10
-3
10 additions, 3 deletions
modules/plugin_dbui/directsvc.py
static/plugin_dbui/CHANGELOG
+18
-17
18 additions, 17 deletions
static/plugin_dbui/CHANGELOG
with
28 additions
and
20 deletions
modules/plugin_dbui/directsvc.py
+
10
−
3
View file @
bf35db37
...
...
@@ -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
'
]
...
...
This diff is collapsed.
Click to expand it.
static/plugin_dbui/CHANGELOG
+
18
−
17
View file @
bf35db37
--------------------------------- 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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment