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
Admin message
Authenticating with a password
with git over http
works again
. More information
here
.
Show more breadcrumbs
w2pext
plugin_dbui
Commits
aef4ca05
Commit
aef4ca05
authored
14 years ago
by
Renaud Le Gac
Browse files
Options
Downloads
Patches
Plain Diff
Configuration of remote call and high level variables are moved to appbase.js
parent
5a5deec0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
controllers/plugin_dbui.py
+1
-2
1 addition, 2 deletions
controllers/plugin_dbui.py
static/plugin_dbui/lib/appbase.js
+23
-10
23 additions, 10 deletions
static/plugin_dbui/lib/appbase.js
views/plugin_dbui.html
+1
-9
1 addition, 9 deletions
views/plugin_dbui.html
with
25 additions
and
21 deletions
controllers/plugin_dbui.py
+
1
−
2
View file @
aef4ca05
...
...
@@ -152,8 +152,7 @@ def index():
return
dict
(
clibs
=
csslibs
,
\
jlibs
=
jslibs
,
\
alibs
=
applibs
,
\
appdebug
=
debug
,
\
cfgSvcMethods
=
cfgSvc
.
_getMethods
())
appdebug
=
debug
)
def
database
():
...
...
This diff is collapsed.
Click to expand it.
static/plugin_dbui/lib/appbase.js
+
23
−
10
View file @
aef4ca05
...
...
@@ -10,26 +10,39 @@
Ext
.
namespace
(
'
App
'
);
/**
* @cfg {
Object} App.cfgSvcMethods
*
Ext.direct.Provider exposing methods for a web service
.
* @cfg {
String} App.name
*
Name of the web application
.
* This constants is defined by the server.
*/
/**
* @cfg {
String
} App.dbu
rl
*
Define the url of the database router/controller
* @cfg {
Boolean
} App.d
e
bu
g
*
Activate the debug mode on the server side.
* This constants is defined by the server.
*
*/
/**
* @cfg {
Boolean
} App.d
e
bu
g
*
Activate the debug mode
o
n
the
server side.
* @cfg {
String
} App.dbu
rl
*
Define the url
o
f
the
database router/controller
* This constants is defined by the server.
*
*/
App
.
dburl
=
'
/
'
+
App
.
name
+
'
/plugin_dbui/database
'
;
/**
* @cfg {
String} App.name
*
Name of the web application
.
* @cfg {
Object} App.cfgSvcMethods
*
Ext.direct.Provider exposing methods for a web service
.
* This constants is defined by the server.
*/
\ No newline at end of file
*/
App
.
cfgSvcMethods
=
{
"
url
"
:
'
/
'
+
App
.
name
+
'
/plugin_dbui/configuration
'
,
"
type
"
:
"
remoting
"
,
"
actions
"
:
{
"
cfgSvc
"
:
[{
'
name
'
:
'
getFormModel
'
,
'
len
'
:
1
},
{
'
name
'
:
'
getGridModel
'
,
'
len
'
:
1
},
{
'
name
'
:
'
getTables
'
,
'
len
'
:
0
}]
}
};
This diff is collapsed.
Click to expand it.
views/plugin_dbui.html
+
1
−
9
View file @
aef4ca05
...
...
@@ -17,19 +17,11 @@
{{for el in jlibs:}}
<script
type=
"text/javascript"
src=
"{{=el}}"
></script>
{{pass}}
<!-- Namespace, global variables
and remote methods
for the application -->
<!-- Namespace, global variables for the application -->
<script
type=
"text/javascript"
>
Ext
.
namespace
(
'
App
'
);
App
.
name
=
'
{{=request.application}}
'
;
App
.
debug
=
{{
=
str
(
appdebug
).
lower
()}};
App
.
dburl
=
'
/{{=request.application}}/plugin_dbui/database
'
;
App
.
cfgSvcMethods
=
{
"
url
"
:
'
/{{=request.application}}/plugin_dbui/configuration
'
,
"
type
"
:
"
remoting
"
,
"
actions
"
:
{
"
cfgSvc
"
:
{{
=
XML
(
cfgSvcMethods
)}}
}
};
</script>
<!-- application librairies -->
...
...
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