aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-05 14:09:50 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-05 14:09:50 +0200
commit99c3bed49f6ee0124be79de66a91daaa5f56f735 (patch)
tree26203e9517d8a38241f2b6bc454fc27d9b499b81
parentImproved forms validation. (diff)
downloadnewspipe-99c3bed49f6ee0124be79de66a91daaa5f56f735.tar.gz
newspipe-99c3bed49f6ee0124be79de66a91daaa5f56f735.tar.bz2
newspipe-99c3bed49f6ee0124be79de66a91daaa5f56f735.zip
Improved make_valid_nickname function.
-rw-r--r--README.rst2
-rw-r--r--db_create.py2
-rw-r--r--messages.pot2
-rw-r--r--pyaggr3g470r/models.py2
-rw-r--r--pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mobin9898 -> 9898 bytes
-rw-r--r--pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po4
6 files changed, 6 insertions, 6 deletions
diff --git a/README.rst b/README.rst
index 17b576ad..ac39c0e8 100644
--- a/README.rst
+++ b/README.rst
@@ -29,7 +29,7 @@ Deployment
This application can be deployed on Heroku or on a traditional server.
-After installation, you will be able to connect with the email *root@pyAggr3g470r.localhost* and the password *root*.
+After installation, you will be able to connect with the email *root@pyAggr3g470r.localhost* and the password *root_password*.
Deploying the application on Heroku
diff --git a/db_create.py b/db_create.py
index f2eec828..7cdd6411 100644
--- a/db_create.py
+++ b/db_create.py
@@ -69,7 +69,7 @@ role_user = Role(name="user")
user1 = User(firstname="admin", lastname="admin",
email="root@pyAggr3g470r.localhost",
- pwdhash=generate_password_hash("root"))
+ pwdhash=generate_password_hash("root_password"))
user1.roles.extend([role_admin, role_user])
db.session.add(user1)
diff --git a/messages.pot b/messages.pot
index a2295726..d72a0ea0 100644
--- a/messages.pot
+++ b/messages.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2014-05-05 13:39+0200\n"
+"POT-Creation-Date: 2014-05-05 14:07+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index dcbe221c..9770ed77 100644
--- a/pyaggr3g470r/models.py
+++ b/pyaggr3g470r/models.py
@@ -51,7 +51,7 @@ class User(db.Model, UserMixin):
@staticmethod
def make_valid_nickname(nickname):
- return re.sub('[^a-zA-Z0-9_\.\-]', '', nickname)
+ return re.sub(ur'[^\w]', '', nickname, flags=re.U)
def get_id(self):
"""
diff --git a/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mo b/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mo
index 930ffe2a..6fb63ea3 100644
--- a/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mo
+++ b/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.mo
Binary files differ
diff --git a/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po b/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po
index eac8cfe2..0172f25b 100644
--- a/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po
+++ b/pyaggr3g470r/translations/fr/LC_MESSAGES/messages.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2014-05-05 13:39+0200\n"
-"PO-Revision-Date: 2014-05-05 13:39+0100\n"
+"POT-Creation-Date: 2014-05-05 14:07+0200\n"
+"PO-Revision-Date: 2014-05-05 14:07+0100\n"
"Last-Translator: Cédric Bonhomme <cedric@cedricbonhomme.org>\n"
"Language-Team: fr <LL@li.org>\n"
"Language: fr\n"
bgstack15