Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
wendelin
Commits
7beae64a
Commit
7beae64a
authored
Jul 15, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin_data_lake*: show logged in user
- server script and ui changes
parent
88a9550f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
109 additions
and
27 deletions
+109
-27
bt5/erp5_wendelin_data_lake_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_data_lake/ERP5Site_getUserName.py
...tal_skins/erp5_wendelin_data_lake/ERP5Site_getUserName.py
+2
-0
bt5/erp5_wendelin_data_lake_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_data_lake/ERP5Site_getUserName.xml
...al_skins/erp5_wendelin_data_lake/ERP5Site_getUserName.xml
+62
-0
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_header_html.html
...lateItem/web_page_module/fif_gadget_erp5_header_html.html
+5
-0
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_header_html.xml
...plateItem/web_page_module/fif_gadget_erp5_header_html.xml
+2
-2
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_header_js.js
...TemplateItem/web_page_module/fif_gadget_erp5_header_js.js
+36
-23
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_header_js.xml
...emplateItem/web_page_module/fif_gadget_erp5_header_js.xml
+2
-2
No files found.
bt5/erp5_wendelin_data_lake_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_data_lake/ERP5Site_getUserName.py
0 → 100644
View file @
7beae64a
portal
=
context
.
getPortalObject
()
return
portal
.
Base_getUserCaption
()
bt5/erp5_wendelin_data_lake_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_data_lake/ERP5Site_getUserName.xml
0 → 100644
View file @
7beae64a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_getUserName
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_header_html.html
View file @
7beae64a
...
@@ -45,6 +45,11 @@
...
@@ -45,6 +45,11 @@
<h1
class=
"ui-title"
></h1>
<h1
class=
"ui-title"
></h1>
<div
id=
"logged_in_div"
class=
"ui-screen-hidden"
style=
"padding-left: 24pt;"
>
<span>
Logged In as :
</span>
<span
id=
"logged_in_user"
/>
</div>
<div
class=
"ui-controlgroup ui-controlgroup-horizontal ui-btn-right"
>
<div
class=
"ui-controlgroup ui-controlgroup-horizontal ui-btn-right"
>
<div
class=
"ui-controlgroup-controls"
>
<div
class=
"ui-controlgroup-controls"
>
</div>
</div>
...
...
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_header_html.xml
View file @
7beae64a
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
72.3959.36662.38195
</string>
</value>
<value>
<string>
9
85.18880.54279.1672
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
43842714.3
</float>
<float>
15
94905686.52
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_header_js.js
View file @
7beae64a
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*global window, rJS, Handlebars, document, RSVP */
/*global window, rJS, Handlebars, document, RSVP
, jIO, URL
*/
(
function
(
window
,
rJS
,
Handlebars
,
document
,
RSVP
)
{
(
function
(
window
,
rJS
,
Handlebars
,
document
,
RSVP
)
{
"
use strict
"
;
"
use strict
"
;
...
@@ -139,28 +139,25 @@
...
@@ -139,28 +139,25 @@
title_button_name
:
options
.
action
title_button_name
:
options
.
action
});
});
})
})
/*
.declareMethod('notifyUpdate', function () {
return this.render(this.stats.options);
})
*/
.
declareMethod
(
'
render
'
,
function
render
(
options
)
{
.
declareMethod
(
'
render
'
,
function
render
(
options
)
{
var
state
=
{
var
state
=
{
error
:
false
,
error
:
false
,
title_text
:
''
,
title_text
:
''
,
title_icon
:
undefined
,
title_icon
:
undefined
,
title_url
:
undefined
,
title_url
:
undefined
,
left_button_title
:
undefined
,
left_button_title
:
undefined
,
left_button_icon
:
undefined
,
left_button_icon
:
undefined
,
left_button_name
:
undefined
,
left_button_name
:
undefined
,
right_link_title
:
undefined
,
right_link_title
:
undefined
,
right_link_icon
:
undefined
,
right_link_icon
:
undefined
,
right_link_url
:
undefined
,
right_link_url
:
undefined
,
right_link_class
:
undefined
,
right_link_class
:
undefined
,
right_button_title
:
undefined
,
right_button_title
:
undefined
,
right_button_icon
:
undefined
,
right_button_icon
:
undefined
,
right_button_name
:
undefined
right_button_name
:
undefined
},
},
gadget
=
this
,
klass
,
klass
,
sub_header_list
=
[],
sub_header_list
=
[],
i
;
i
;
...
@@ -232,7 +229,17 @@
...
@@ -232,7 +229,17 @@
}
}
state
.
sub_header_list
=
sub_header_list
;
state
.
sub_header_list
=
sub_header_list
;
return
this
.
changeState
(
state
);
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
type
:
"
GET
"
,
url
:
new
URL
(
'
./ERP5Site_getUserName
'
,
window
.
location
.
href
)
});
})
.
push
(
function
(
result
)
{
state
.
user
=
result
.
target
.
response
;
return
gadget
.
changeState
(
state
);
});
})
})
.
onStateChange
(
function
onStateChange
(
modification_dict
)
{
.
onStateChange
(
function
onStateChange
(
modification_dict
)
{
...
@@ -353,6 +360,12 @@
...
@@ -353,6 +360,12 @@
}
else
{
}
else
{
promise_list
.
push
(
null
);
promise_list
.
push
(
null
);
}
}
if
(
gadget
.
state
.
user
)
{
var
logged_in_div
=
document
.
querySelector
(
"
#logged_in_div
"
),
logged_in_user
=
document
.
querySelector
(
"
#logged_in_user
"
);
logged_in_div
.
classList
.
remove
(
"
ui-screen-hidden
"
);
logged_in_user
.
innerHTML
=
gadget
.
state
.
user
;
}
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
...
@@ -385,4 +398,4 @@
...
@@ -385,4 +398,4 @@
throw
new
Error
(
"
Unsupported button
"
+
name
);
throw
new
Error
(
"
Unsupported button
"
+
name
);
});
});
}(
window
,
rJS
,
Handlebars
,
document
,
RSVP
));
}(
window
,
rJS
,
Handlebars
,
document
,
RSVP
,
jIO
,
URL
));
\ No newline at end of file
\ No newline at end of file
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_header_js.xml
View file @
7beae64a
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
69.59527.36796.52394
</string>
</value>
<value>
<string>
9
85.18881.59706.59153
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
36569733.07
</float>
<float>
15
94905727.52
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment