Re: [pgAdmin4] [Patch]: Extension Module
От | Dave Page |
---|---|
Тема | Re: [pgAdmin4] [Patch]: Extension Module |
Дата | |
Msg-id | CA+OCxoyeCxRWgBa=Yq_h6uAkgv9oXWfRkK-r9JiAaFSVnSOmpg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [pgAdmin4] [Patch]: Extension Module (Surinder Kumar <surinder.kumar@enterprisedb.com>) |
Список | pgadmin-hackers |
Thanks - committed.
On Tue, Feb 23, 2016 at 11:07 AM, Surinder Kumar <surinder.kumar@enterprisedb.com> wrote:
Hi,PFA patch with changes suggested by DavePlease review the patch and let me know for any comments.On Mon, Feb 15, 2016 at 4:37 PM, Dave Page <dpage@pgadmin.org> wrote:HiOn Mon, Feb 15, 2016 at 9:55 AM, Surinder Kumar <surinder.kumar@enterprisedb.com> wrote:Hi,PFA patch with following changes:
- Added "Create Extension" menu item in context menu of Database node.
- Added a new method "node_node" in ExtensionModule class. If a node has child, returns True, otherwise False.
- Fixed an issue in which icon won't display in create extension link in context menu.
- Added Docstring for the class and methods in python file and proper commenting in js file.
- Followed PEP-08 coding conventions.
I haven't tested this, but a few initial comments:- The commenting of the JS code is better than I've seen in other patches \o/, but the commenting style is inconsistent. We should use /* */ for multi-line comments, and // for single line.- The JS code could use some carefully introduced blank lines to help make it more readable.Done- s/}else{/} else {/Done- Dependency/depends display is missing (see previous email to Akshay). This is essential for this node!Implemented dependency and depends- There's no pydoc comment introducing __init__.pyAdded pydoc- Shouldn't "data='-- Modified SQL --'," be "data=gettext('-- Modified SQL --'),"?Yes, it should be. Fixed.--Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
В списке pgadmin-hackers по дате отправления: