Re: pgAdmin 4 as Web application
От | Albe Laurenz |
---|---|
Тема | Re: pgAdmin 4 as Web application |
Дата | |
Msg-id | A737B7A37273E048B164557ADEF4A58B5388C035@ntex2010i.host.magwien.gv.at обсуждение исходный текст |
Ответ на | Re: pgAdmin 4 as Web application (Neel Patel <neel.patel@enterprisedb.com>) |
Список | pgadmin-hackers |
Neel Patel wrote: > We already have condition for QUrlQuery class as below. It will be used only if Qt version is >= 5.0. > > #if QT_VERSION >= 0x050000 > // Extract filename and query from encoded URL > QUrlQuery query_data(reply->url()); > QString file_name = query_data.queryItemValue("filename"); > QString query = query_data.queryItemValue("query"); > #else > QUrl url(reply->url()); > QString file_name = url.queryItemValue("filename"); > QString query = url.queryItemValue("query"); > #endif Oh, I see now, thank you for the help. I was missing commit dcf5bfc495bea1d5b28c389335cbd89e73468aaa (I downloaded the pgadmin4-1.0-beta3 source). After editing the file, I can build it, but when starting "pgadmin4" I get Full Python path: "" User Python path: "" Webapp path: "/MYSQL/mysqldata/fs1/rpmbuild/pgadmin4-1.0-beta3/web/pgAdmin4.py" Traceback (most recent call last): File "/MYSQL/mysqldata/fs1/rpmbuild/pgadmin4-1.0-beta3/web/pgAdmin4.py", line 24, in <module> from pgadmin import create_app File "/MYSQL/mysqldata/fs1/rpmbuild/pgadmin4-1.0-beta3/web/pgadmin/__init__.py", line 281 arch_keys = {0} ^ SyntaxError: invalid syntax The same happens when I try to start it as web application. My system has Python 2.6.6 Qt 4.6.2 Apache httpd 2.2.15 What could be the problem? Yours, Laurenz Albe
В списке pgadmin-hackers по дате отправления: