Commit 7495ab2d authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slaprunner: grammar

parent dfb607f4
...@@ -214,7 +214,7 @@ class SlaprunnerTestCase(unittest.TestCase): ...@@ -214,7 +214,7 @@ class SlaprunnerTestCase(unittest.TestCase):
"""Test Login user before create session. This should return error value""" """Test Login user before create session. This should return error value"""
response = self.login(self.users[0], self.users[1]) response = self.login(self.users[0], self.users[1])
#redirect to config account page #redirect to config account page
assert "<h2 class='title'>Your personal informations</h2><br/>" in response.data assert "<h2 class='title'>Your personal information</h2><br/>" in response.data
def test_configAccount(self): def test_configAccount(self):
"""For the first lauch of slaprunner user need do create first account""" """For the first lauch of slaprunner user need do create first account"""
......
...@@ -21,7 +21,7 @@ $(document).ready(function () { ...@@ -21,7 +21,7 @@ $(document).ready(function () {
return false; return false;
} }
if (!$("input#email").val().match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)) { if (!$("input#email").val().match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)) {
$("#error").Popup("Please enter a valid email adress!", {type: 'alert', duration: 3000}); $("#error").Popup("Please enter a valid email address!", {type: 'alert', duration: 3000});
return false; return false;
} }
if (!hasAccount && !$("input#password").val()) { if (!hasAccount && !$("input#password").val()) {
......
...@@ -64,9 +64,9 @@ $(document).ready(function () { ...@@ -64,9 +64,9 @@ $(document).ready(function () {
if ($("input#user").val() !== "") { if ($("input#user").val() !== "") {
name = $("input#user").val(); name = $("input#user").val();
} }
if ($("input#email").val() !== '' && $("input#email").val() !== "Enter your email adress...") { if ($("input#email").val() !== '' && $("input#email").val() !== "Enter your email address...") {
if (!$("input#email").val().match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)) { if (!$("input#email").val().match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)) {
$("#error").Popup("Please enter a valid email adress!", {type: 'alert', duration: 3000}); $("#error").Popup("Please enter a valid email address!", {type: 'alert', duration: 3000});
return false; return false;
} }
email = $("input#email").val(); email = $("input#email").val();
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
<script src="{{ url_for('static', filename='js/scripts/account.js') }}" type="text/javascript" charset="utf-8"></script> <script src="{{ url_for('static', filename='js/scripts/account.js') }}" type="text/javascript" charset="utf-8"></script>
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<h2 class='title'>Your personal informations</h2><br/> <h2 class='title'>Your personal information</h2><br/>
<form class="account"> <form class="account">
<div class='form'> <div class='form'>
<label for="name">Your name: </label> <label for="name">Your name: </label>
<input type='text' name='name' id='name' value='{{name}}'/> <input type='text' name='name' id='name' value='{{name}}'/>
<div class='clear'></div> <div class='clear'></div>
<label for="email">Your email adress: </label> <label for="email">Your email address: </label>
<input type='text' name='email' id='email' value='{{email}}'/> <input type='text' name='email' id='email' value='{{email}}'/>
<div class='clear'></div> <div class='clear'></div>
<label for="username">User name: </label> <label for="username">User name: </label>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<label for='user'>Your name: &nbsp;&nbsp;&nbsp;</label> <label for='user'>Your name: &nbsp;&nbsp;&nbsp;</label>
<input type="text" name="user" id="user" size='20' value="{{name}}" /> <input type="text" name="user" id="user" size='20' value="{{name}}" />
<label for='email'>Email: </label> <label for='email'>Email: </label>
<input type="text" name="email" id="email" size='25' value="{% if not email %}Enter your email adress...{% else %}{{email}}{%endif%}" /> <input type="text" name="email" id="email" size='25' value="{% if not email %}Enter your email address...{% else %}{{email}}{%endif%}" />
<input type="hidden" name="workdir" id="workdir" value="{{workDir}}" /> <input type="hidden" name="workdir" id="workdir" value="{{workDir}}" />
<button class="button" id="clone">clone</button> <button class="button" id="clone">clone</button>
<img class="waitting" id="imgwaitting" src="{{ url_for('static', filename='images/waiting.gif') }}" alt="" /> <img class="waitting" id="imgwaitting" src="{{ url_for('static', filename='images/waiting.gif') }}" alt="" />
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<div class="clear"></div> <div class="clear"></div>
<div class="umenu"> <div class="umenu">
<h2><a href="{{ url_for('myAccount')}}">Your Account</a></h2> <h2><a href="{{ url_for('myAccount')}}">Your Account</a></h2>
<p>Update your account informations</p> <p>Update your account information</p>
<img src="{{ url_for('static', filename='images/user_card.png') }}" /> <img src="{{ url_for('static', filename='images/user_card.png') }}" />
</div> </div>
<div class="lmenu smaller"> <div class="lmenu smaller">
......
...@@ -41,7 +41,7 @@ def getSession(config): ...@@ -41,7 +41,7 @@ def getSession(config):
""" """
Get the session data of current user. Get the session data of current user.
Returns: Returns:
a list of user informations or False if fail to read data. a list of user information or False if fail to read data.
""" """
user_path = os.path.join(config['etc_dir'], '.users') user_path = os.path.join(config['etc_dir'], '.users')
user = "" user = ""
...@@ -343,7 +343,7 @@ def getProfilePath(projectDir, profile): ...@@ -343,7 +343,7 @@ def getProfilePath(projectDir, profile):
return os.path.join(projectFolder, profile) return os.path.join(projectFolder, profile)
def getSlapStatus(config): def getSlapStatus(config):
"""Return all Slapos Partitions with associate informations""" """Return all Slapos Partitions with associate information"""
slap = slapos.slap.slap() slap = slapos.slap.slap()
slap.initializeConnection(config['master_url']) slap.initializeConnection(config['master_url'])
partition_list = [] partition_list = []
...@@ -379,7 +379,7 @@ def removeInstanceRoot(config): ...@@ -379,7 +379,7 @@ def removeInstanceRoot(config):
shutil.rmtree(config['instance_root']) shutil.rmtree(config['instance_root'])
def getSvcStatus(config): def getSvcStatus(config):
"""Return all Softwares Instances process Informations""" """Return all Softwares Instances process Information"""
result = Popen([config['supervisor'], config['configuration_file_path'], result = Popen([config['supervisor'], config['configuration_file_path'],
'status']).communicate()[0] 'status']).communicate()[0]
regex = "(^unix:.+\.socket)|(^error:)|(^watchdog).*$" regex = "(^unix:.+\.socket)|(^error:)|(^watchdog).*$"
......
...@@ -428,7 +428,7 @@ def getmd5sum(): ...@@ -428,7 +428,7 @@ def getmd5sum():
else: else:
return jsonify(code=0, result="Can not get md5sum for this file!") return jsonify(code=0, result="Can not get md5sum for this file!")
#return informations about state of slapgrid process #return information about state of slapgrid process
@login_required() @login_required()
def slapgridResult(): def slapgridResult():
software_state = isSoftwareRunning(app.config) software_state = isSoftwareRunning(app.config)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment