From: | Seçkin Alan <seckinalan(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | pgAdmin4 Bug fix or my Fault ? |
Date: | 2015-05-13 21:11:15 |
Message-ID: | CAJZJJmrpD90qgDWJni5cZ1ZPt-L1CqUL4wePyy9t9LmiBCg97Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 Gravatar
from flask.ext.security import login_required
from flask.ext.login import current_user
from inspect 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 does not 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
From | Date | Subject | |
---|---|---|---|
Next Message | essam Gndelee essam | 2015-05-13 21:35:40 | i feel like compelled ! |
Previous Message | Jeff Janes | 2015-05-13 21:07:47 | Re: PATCH: adaptive ndistinct estimator v4 |