pgAdmin4 Bug fix or my Fault ?
От | Seçkin Alan |
---|---|
Тема | pgAdmin4 Bug fix or my Fault ? |
Дата | |
Msg-id | CAJZJJmrpD90qgDWJni5cZ1ZPt-L1CqUL4wePyy9t9LmiBCg97Q@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: pgAdmin4 Bug fix or my Fault ?
|
Список | pgsql-hackers |
Hi, I am using Debian Jessie and install pgAdmin4 Required modules. after I clone pgAdmin4 from http://git.postgresql.org/gitweb/?p=pgadmin4.git;a=summary , First of, ıf I want run setup.py, I must fix bug . after I want run pgadmin4.py, I must fix gravatar import line. In this case, There are really bugs? or is it my fault ?Thank you. diff --git a/web/pgadmin/browser/views.py b/web/pgadmin/browser/views.py index 07637be..f336f31 100644 --- a/web/pgadmin/browser/views.py +++ b/web/pgadmin/browser/views.py @@ -11,7 +11,7 @@MODULE_NAME = 'browser' from flask import Blueprint, Response, current_app, render_template, url_for -from flaskext.gravatar import Gravatar +from flask_gravatar import Gravatarfrom flask.ext.security import login_requiredfrom flask.ext.login import current_userfrominspect import getmoduleinfo, getmembers @@ -223,4 +223,4 @@ def get_nodes(): return resp - \ No newline at end of file + diff --git a/web/setup.py b/web/setup.py index c7398f5..da6652e 100644 --- a/web/setup.py +++ b/web/setup.py @@ -59,7 +59,9 @@ def do_setup(): db.create_all() user_datastore.create_role(name='Administrators', description='pgAdmin Administrators Role') user_datastore.create_user(email=email, password=password) + db.session.commit() user_datastore.add_role_to_user(email, 'Administrators') + # Get the user's ID and create the default server group user = User.query.filter_by(email=email).first() @@ -138,4 +140,5 @@ if os.path.isfile(config.SQLITE_PATH): do_upgrade()else: print "The configuration database %s doesnot exist.\nEntering initial setup mode...\n" % config.SQLITE_PATH - do_setup() \ No newline at end of file + do_setup() -- Seçkin ALAN http://sckn.org
В списке pgsql-hackers по дате отправления: