Browse Source

"MaJ config + details"

Doug Le Tough 3 years ago
parent
commit
c6c4a75354
5 changed files with 9 additions and 9 deletions
  1. 0
    3
      ref.tetalab.org.wsgi
  2. 1
    1
      stock.sql
  3. 1
    1
      templates/login.html
  4. 4
    4
      tetastock.py
  5. 3
    0
      tetastock.tetalab.org.wsgi

+ 0
- 3
ref.tetalab.org.wsgi View File

@@ -1,3 +0,0 @@
1
-import sys
2
-sys.path.insert(0, '/var/www/stock.tetalab.org')
3
-from stock_tetalab import app as application

+ 1
- 1
stock.sql View File

@@ -66,4 +66,4 @@ alter table stock_kit_compositions owner to tetastock;
66 66
 alter table stock_orders owner to tetastock;
67 67
 alter database tetastock owner to tetastock;
68 68
 
69
-insert into stock_users (mail, password, name) values ('test', '$2b$08$OkfihuGRyLdpftBpGhnpeeeUhUTQS0oXvR2NFByC.65XCKKvPBWHS');
69
+insert into stock_users (mail, password, name) values ('test', '$2b$08$OkfihuGRyLdpftBpGhnpeeeUhUTQS0oXvR2NFByC.65XCKKvPBWHS', 'test');

+ 1
- 1
templates/login.html View File

@@ -1,5 +1,5 @@
1 1
 {% extends "index.html" %}
2
-{% block title %}Éditer un fournisseur{% endblock %}
2
+{% block title %}Se connecter{% endblock %}
3 3
         {% block top_menu %}
4 4
         <span class='top_menu_item_selected'>Authentification</span>
5 5
         {% endblock %}

+ 4
- 4
tetastock.py View File

@@ -104,8 +104,8 @@ def sync_cookies(response, session):
104 104
   """ Sync cookies with session """
105 105
   for key in session:
106 106
     response.set_cookie(key, value=str(session[key]))
107
-    if key != u'session':
108
-      print '[c]', key, session[key]
107
+    #~ if key != u'session':
108
+      #~ print '[c]', key, session[key]
109 109
 
110 110
 def sync_session(request, session):
111 111
   """ Sync session with cookies"""
@@ -123,8 +123,8 @@ def sync_session(request, session):
123 123
       except ValueError:
124 124
         # Value is not an int, will be treated as string
125 125
         session[key] = str(request.cookies[key].encode('utf8'))
126
-    if key != u'session':
127
-      print '[s]', key, request.cookies[key]
126
+    #~ if key != u'session':
127
+      #~ print '[s]', key, request.cookies[key]
128 128
 
129 129
 def check_user(request, session):
130 130
   """ Check user credentials """

+ 3
- 0
tetastock.tetalab.org.wsgi View File

@@ -0,0 +1,3 @@
1
+import sys
2
+sys.path.insert(0, '/var/www/tetastock.tetalab.org')
3
+from tetastock import app as application

Loading…
Cancel
Save