Khushboo Vashi
d32e861a47
Updated Privileges macros under Schema node.
...
The changes are required due to previous commit (8a7ec6b452
) regarding "parse_priv_to_db" function.
2016-03-10 12:01:13 +00:00
Ashesh Vashi
77ae220f1e
Resolved typos in SQL templates for PPAS
...
Thanks Khushboo Vashi for reporting.
2016-03-10 14:56:46 +05:30
Murtuza Zabuawala
8a7ec6b452
Update "parse_priv_to_db" function to return list a instead of a string.
...
This will also allow us to operate on individual privileges & also we
needed this functionality for column nodes.
For example,
*Earlier:* priv was string
GRANT {{ priv }} ON {{ type }} TO {{ conn|qtIdent(role) }};
*Now:* priv will be List, which we need to handle in jinja templates.
GRANT *{{ priv|join(', ') }}* ON {{ type }} TO {{ conn|qtIdent(role) }};
2016-03-09 17:10:03 +00:00
Arun Kollan
5d6c5bc74d
Improve display of error messages on dialogues.
2016-03-09 16:03:24 +00:00
Akshay Joshi
f08aa6a313
Always fetch column info from the server, even if there are no rows.
2016-03-08 15:59:53 +00:00
Dave Page
a92d4841d1
Add support for Schemas and Catalogs.
...
Initial patch by Murtuza Zabuawala with further hacking by Ashesh Vashi and I.
2016-03-08 15:48:11 +00:00
Ashesh Vashi
785d180451
Added missing library in requirementsXXX.txt used by the preferences
...
utility.
2016-03-07 19:18:19 +05:30
Dave Page
5ea822f33e
Preferences dialogue. Patch by Ashesh and Khushboo Vashi.
2016-03-07 11:48:53 +00:00
Ashesh Vashi
43116750b4
Honor the visible property of the model schema, and show/hide different
...
custom contorls based on it.
i.e.
UniqueCollectionControl, TabControl, FieldsetControl, etc.
2016-03-07 16:06:18 +05:30
Neel Patel
31ab9ebacc
Using the correct member variable while fetching the notices/messages
...
from the psycopg2 connection.
2016-03-06 18:56:42 +05:30
Ashesh Vashi
6014448dd7
Trigger an event whenever a register script has been initialized from
...
the browser.
2016-03-06 18:52:22 +05:30
Ashesh Vashi
cc08708f23
Allow to specify special type - 'group' in schema for the browser node,
...
which allows to determine certain group to hide/show the whole
tab/fieldset control in the properties, and create dialog.
Using this functionality in the database for the
'default privileges - types', which is not allowed before PG < 9.2 using
the version check.
2016-03-06 18:50:10 +05:30
Dave Page
5bf505e822
Add file missing from previous commit.
2016-03-04 13:17:13 +00:00
Dave Page
8f6c8fdd6e
Add some code review notes/hints to the docs.
2016-03-04 12:26:26 +00:00
Ashesh Vashi
ee71cab51e
Removed the wrong copyright information in the javascript file, which is
...
owned by pgAdmin IV.
2016-03-04 17:39:51 +05:30
Murtuza Zabuawala
fa97b5635e
Enable/disable edit button functionality conditionally in backgrid.
2016-03-04 11:55:50 +00:00
Sanket Mehta
a4e819c68c
Fix an error retrieving dependents and dependencies for casts.
2016-03-04 11:03:30 +00:00
Murtuza Zabuawala
6ed5e7183e
Backform control enhancements:
...
1) Unique collection control: we have added 'Edit' button in grid, earlier it was only delete button.
2) Sql field control: We have added control to disabled & visible functionality which were not available.
2016-03-04 11:00:17 +00:00
Ashesh Vashi
0b43443151
Allow the connection driver to return notices/messages from the server.
2016-03-04 10:35:50 +00:00
Harshal Dhumal
d2e372114b
Security Label and ACL template macros:
...
Way to use in template:
1) Security labels:
SECLABLE.SET(conn, object_type, object_name, provider, security_label,
object.schema)
SECLABLE.UNSET(conn, object_type, object_name, provider, object.schema)
2) Privileges:
PRIVILEGE.SET(conn, object_type, grantee, object_name,
privileges_without_grant, privileges_with_grant,
object.schema)
PRIVILEGE.UNSETALL(conn, object_type, grantee, object_name, schema)
privileges_without_grant = comma separated string of privileges.
privileges_with_grant = comma separated string of privileges.
2016-03-03 15:12:37 +00:00
Khushboo Vashi
3ff06da772
Security Labels, Privileges and Variables macros for the functions modules.
...
Usage of the macros:
Security labels:
SECLABLE.SET(conn, 'FUNCTION', func_name, provider, security_label, func_schema, func_args)
SECLABLE.UNSET(conn, 'FUNCTION', func_name, provider, func_schema, func_args)
Privileges:
PRIVILEGE.SET(conn, 'FUNCTION', grantee, func_name, privileges_without_grant, privileges_with_grant, func_schema, func_args)
PRIVILEGE.UNSETALL(conn, 'FUNCTION', grantee, func_name, func_schema, func_args)
Variables:
VARIABLES.SET(conn, 'FUNCTION', func_name, options, func_schema, func_args)
VARIABLES.UNSET(conn, 'FUNCTION', func_name, options, func_schema, func_args)
2016-03-03 14:08:28 +00:00
Khushboo Vashi
789ece89fb
In the current Backgrid implementation, a cell can be made editable through "editable: true/false" settings. It takes only a boolean value.
...
Add support for a function that can be set as an editable option value.
For Example:
editable: function(m) { return false; }
2016-03-03 14:03:59 +00:00
Akshay Joshi
e138ec53b6
Add support for asynchronous connections to the database server.
2016-03-02 13:29:15 +00:00
Ashesh Vashi
b41066a6b6
[Reversed Engineered SQL] Security Labels is not available for PostgreSQL <= 9.1
2016-03-01 15:36:52 +05:30
Ashesh Vashi
cf170821cb
Security Labels is not available for PostgreSQL <= 9.1
2016-03-01 11:06:31 +05:30
Ashesh Vashi
1cb2a054ff
Showing consitent reversed engineered SQL for the database node.
2016-03-01 10:42:04 +05:30
Ashesh Vashi
a6466c091c
Resolved a regess of the previous commit, which introduced during
...
previous commit: 39d432ca2c
.
[Thanks Neel Patel for pointing this out..]
2016-03-01 10:24:46 +05:30
Ashesh Vashi
39d432ca2c
Remove some unnecessary imports from the pgadmin/__init__.py, and
...
removed the file hooks.py, which is not used any more with new
infrastructure.
2016-02-29 23:08:08 +05:30
Neel Patel
000c76871f
Updated the misc module javascripts to work with latest wcDocker.
2016-02-29 19:37:24 +05:30
Ashesh Vashi
18d767b107
Updated the wcDocker to make use of wcSplitter (new functionalities),
...
which will be used by the debugger tool.
Updating the wcDocker from the repository -
'https://github.com/WebCabin/wcDocker ' up to commit-id:
0f5690318ce0bf457fdd374dcec7418d22b72e22
2016-02-29 19:36:51 +05:30
Ashesh Vashi
54edb4b482
Resolved a typo in variable name in the database/utils.py
2016-02-29 10:44:57 +05:30
Ashesh Vashi
3051e7cd62
Log the exception loading the module script on the console.
2016-02-28 17:05:50 +05:30
Ashesh Vashi
f8a45799b6
Resolved an issue related to adding menus dynamically using the jinja2
...
templates. The variable scope for the jinja2 template variable is not
consitent across all the for loop (loop withing loop), it was behaving
inconsistently, a value set in a loop was not properly accessible in
inner loop properly. In order to resolve the issue - setting/using the
variable only in inner loop, and call add_menus function multiple times,
which we were trying to avoid, but - we can live with that.
2016-02-28 17:00:52 +05:30
Ashesh Vashi
b85f9e6d1a
Creating an empty pgAdmin module container (named tools) for keeping
...
all the sub-modules of type tools.
2016-02-28 12:49:36 +05:30
Ashesh Vashi
2bf8eccb67
Pass the tree item (missing from the code) for making it inode agai.
2016-02-28 12:15:08 +05:30
Ashesh Vashi
2d7a218792
Resolved few issues with browser.js:
...
(dynamic menu generation, typo in error message)
- Dynamic menu generation code was failing for some corner cases.
- Removed trailing whitespaces.
- Resolved a typo in the message - 'click_for_detailed_msg', which was
resulting in '{}' message instead of actual error message.
2016-02-28 12:15:08 +05:30
Ashesh Vashi
41e85fd631
Make the default privileges jinja2 template macros to generate more
...
consistent SQL.
i.e.
Put 4 spaces after every new line (wherever required).
2016-02-28 12:15:08 +05:30
Khushboo Vashi
d4a13eaafa
Security Labels and the Variables are used in many modules under the Database Node.
...
Provide functions in the database node to handle them.
2016-02-26 15:21:55 +00:00
Akshay Joshi
b3ff96d2db
Add backgrid extensions for use in various tools: select-all, paginator and filter
2016-02-26 11:08:45 +00:00
Dave Page
3b2ef2961b
Correct error message to match the field name.
2016-02-25 16:47:07 +00:00
Dave Page
af25a11dde
Correct spelling of SECLABEL
2016-02-25 16:41:11 +00:00
Dave Page
f0e7bd91cb
Improve warning message
2016-02-25 11:58:02 +00:00
Dave Page
f3813239c0
Fix rule name generation
2016-02-25 11:14:34 +00:00
Dave Page
de9e122a91
Fix typo
2016-02-25 10:39:04 +00:00
Surinder Kumar
c950683fa1
Add support for extensions.
2016-02-24 16:45:35 +00:00
Sanket Mehta
f466e0169a
Add support for casts.
2016-02-24 16:44:37 +00:00
Dave Page
0b1cf1ad2c
Remove an unnecessary line ending.
2016-02-24 16:42:38 +00:00
Ashesh Vashi
f4ae7cd210
Resolved a typo in the node creation SQL template for PostgreSQL 9.2.
2016-02-24 15:00:25 +05:30
Akshay Joshi
7ffbb8c039
Add support for viewing/editing procedural languages.
2016-02-23 10:07:14 +00:00
Neel Patel
3b7886e61e
Runtime fixes for QT4 support.
2016-02-23 09:10:49 +00:00