Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
slapos
Commits
2f2a5ad0
Commit
2f2a5ad0
authored
Jun 02, 2017
by
Iliya Manolov
Committed by
Ivan Tyagov
Jun 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed password output when entering ERP5 magics.
@Tyagov
@kirr
/reviewed-on
nexedi/slapos!171
parent
2e742fe5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
software/ipython_notebook/software.cfg
software/ipython_notebook/software.cfg
+1
-1
software/ipython_notebook/template/ERP5kernel.py.jinja
software/ipython_notebook/template/ERP5kernel.py.jinja
+4
-1
No files found.
software/ipython_notebook/software.cfg
View file @
2f2a5ad0
...
...
@@ -47,7 +47,7 @@ md5sum = d7d4a7e19d55bf14007819258bf42100
[erp5-kernel]
<= download-file-base
filename = ERP5kernel.py.jinja
md5sum =
5e7e0acef2f32e75f8f17bc851414aa1
md5sum =
0bcc802a7723b58c1e71269951d751eb
[kernel-json]
<= download-file-base
...
...
software/ipython_notebook/template/ERP5kernel.py.jinja
View file @
2f2a5ad0
...
...
@@ -107,7 +107,10 @@ class ERP5Kernel(Kernel):
magic_value = code.split()[1]
# Set magic_value to the required attribute
setattr(self, magic_info.variable_name , magic_value)
self.response = 'Your %s is %s. '%(magic_info.magic_name, magic_value)
if magic_info.magic_name != "erp5_password":
self.response = 'Your %s is %s.\n'%(magic_info.magic_name, magic_value)
else:
self.response = None
# Catch exception while setting attribute and set message in response
except AttributeError:
...
...
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