Harshal Dhumal
df594d56e5
Resolving issue setting proper value for options in Select2Cell
2016-01-07 10:55:22 +05:30
Ashesh Vashi
5e67ca959d
JSONinfy all data in new mode for the Backbone.Model.
...
Also, takes care about not quoting the identifier, when found any digit
in the name (except it starts with a digit).
2016-01-07 09:40:45 +05:30
Ashesh Vashi
a086820288
Allow to pass array as an input to the qtIdent.
2016-01-07 08:38:55 +05:30
Ashesh Vashi
ee3efc369d
Stringify the data only during GET mode.
2016-01-07 08:37:14 +05:30
Harshal Dhumal
67a80ce8dd
Adding Select2Cell, which uses select2.
2016-01-07 08:35:20 +05:30
Ashesh Vashi
753793820b
Resolved an issue in the sesion tracking, and generating the data
...
properly.
Also, takes care of setting options to empty array, when it couldn't
fetch the options for the NodeAjaxOptionsControl.
And, generating proper url for 'msql' url in the SQL tab, when creating
new node from the same type of node.
2016-01-06 19:20:55 +05:30
Ashesh Vashi
456f5bc5b7
Making minor changes:
...
* Start tracking changes immediatedly depends on the handler.
* Attaching control with the filter in the NodeListByNameControl.
* Generating proper data for the NodeListByNameControl.
2016-01-06 02:25:13 +05:30
Murtuza Zabuawala
675e79daab
Adding the IntegerControl for the backform.
...
(With few cosmetic changes by Ashesh.)
2016-01-05 16:50:00 +05:30
Ashesh Vashi
bd3492afdf
Pass the model properly, while checking enable/disable for Select control.
2016-01-05 15:02:45 +05:30
Ashesh Vashi
d498b473c7
Changing the caching mechanism to allow it to store at particular level.
...
Some data will be applicable to parent level, even though - it has
been fetched it from a particular node.
i.e.
roles will be applicable to server level (not particular role level).
2016-01-05 14:36:33 +05:30
Ashesh Vashi
9f8a46c820
Passing the control, and field information along with the model while
...
rendering the Select control.
2016-01-05 13:18:49 +05:30
Ashesh Vashi
aec96b4933
Adding the node at correct place in the browser tree after creating new object.
2016-01-05 13:02:00 +05:30
Ashesh Vashi
7beaefd1c6
Resolving few issues with the drop/drop cascade object function at front-end.
...
Also, modified the translation messages as per Dave (Thanks Akshay Joshi for the patch).
Modified the way, we show the error message dialog.
2016-01-05 12:36:33 +05:30
Ashesh Vashi
1945872e3f
Send ajax request as 'application/json', while fetching the modified sql
...
from the dialog properties.
2016-01-05 02:17:40 +05:30
Ashesh Vashi
faa984debc
Append the new node under the collection, when it should be.
2016-01-05 02:15:22 +05:30
Ashesh Vashi
8cd0fda406
Pass the data of the parent, not type, while checking in the isParent(..) function
2016-01-04 23:25:21 +05:30
Ashesh Vashi
3a261b429a
Added select2 as dependency
2016-01-04 23:23:16 +05:30
Ashesh Vashi
fc9f94c1d0
Return the tuple (status, message) from the psycopg2 driver instead of
...
returning the response itself.
2016-01-04 21:59:24 +05:30
Ashesh Vashi
6b0f4790da
Show the menus "Delete/Drop", and "Drop Cascade", when defined respective functions canDrop(..), and canDropCascade(..) for the node.
2016-01-04 21:57:18 +05:30
Ashesh Vashi
cd40a07ac3
Resolved a typo in the backform.pgadmin.js, while extending the
...
Backform.Control.prototype.render(..) function.
2016-01-04 19:27:54 +05:30
Ashesh Vashi
ec7e98e6a7
Allow a node to have two types of parents, modified the code to handle
...
such situation. This has been modified specifically for the children
under the schema, and catalog nodes.
Also, override the Backform.Control.prototype.render function to allow
to provide the control data to the evaluable functions (i.e. disabled,
visible, required).
2016-01-04 17:52:34 +05:30
Ashesh Vashi
84843f8c37
Pass the tree item object to the menu objects, which could be used by
...
the disabled function to make it enable/disable based on the current
selected item.
2016-01-04 17:22:06 +05:30
Murtuza Zabuawala
b309b1ffb8
[Python 3 compability] decode function used in 'needsQuoting' function
...
is not available on Python 3.
2016-01-04 17:09:15 +05:30
Harshal Dhumal
eed1590a51
Do not close the privilege cell editor, when clicked one of its own
...
children.
Also, resolved an issue related showing 'unknown' instead of privileges,
when loading existing privileges.
2016-01-04 16:59:47 +05:30
Harshal Dhumal
9d9f17c163
Clear the status-bar on the 'on-status-clear' event of the model
2016-01-04 16:54:06 +05:30
Ashesh Vashi
7358549524
Allow to specify the number of arguments in the qtTypeIdent to make it work
...
with schema specified object name.
You can use the qtTypeIdent template filter as:
conn|qtTypeIdent(name)
or,
conn|qtTypeIdent(schema_name, name)
2016-01-04 13:41:57 +05:30
Harshal Dhumal
6057259bdc
Create the status-bar in the properties dialog, and it will listen for
...
on-status event from the model.
2016-01-04 13:35:11 +05:30
Ashesh Vashi
1ba5d79978
Allow to specify the number of arguments in the qtIdent to make it work
...
with schema specified object name. This will also works with
EntepriseDB's package too.
Also, added dependency on the current connection object, it will allow
us to use the keywords list specific to the database server in futuer.
You can use the qtIdent template filter as:
conn|qtIdent(name)
or,
conn|qtIdent(schema_name, name)
2016-01-04 13:13:46 +05:30
Ashesh Vashi
613be3b6fe
Resolved a typo introduced in the previous commit.
2016-01-04 12:58:29 +05:30
Ashesh Vashi
aedf970748
Allow to use the url with/without the node id in the node ajax options
...
control, also - allow to specify the filter function in the nodes-by-id,
and nodes-by-name control.
2016-01-04 12:43:27 +05:30
Surinder Kumar
f451bd0a83
Set options fetched from the server as it is only when transform function is not provided.
2016-01-04 12:19:00 +05:30
Ashesh Vashi
49373df02d
Resolved issues regarding the rows, and column description not return by
...
the given query in the execute_dict and execute_2darray function in the
psycopg2 driver.
2016-01-04 12:11:52 +05:30
Ashesh Vashi
109b367fc3
Allow to specify the options as a function, which returns array in form
...
of (label, value) tuple in the SelectControl.
We will apply the transform function, while rendering the control, and
not during intialization. This will allow us to generate different
options data based on the dependent values.
2016-01-04 11:34:43 +05:30
Murtuza Zabuawala
574105ce5e
Resolved an issue related to logging the error message.
...
Also, fetch the datlastsysoid when making the connection.
2016-01-04 11:18:04 +05:30
Murtuza Zabuawala
cf802cb23f
Resolved an issue in the node control related using existing cached data
2016-01-04 11:12:03 +05:30
Ashesh Vashi
ef3f54378c
Introduced an ajax response 'not_implemented' with HTTP status code 501.
2016-01-02 14:55:13 +05:30
Ashesh Vashi
2aeae06882
Added support for qtIdent, qtTypeIdent, qtLiteral for quoting the
...
inputs.
In order to do the proper quoting around the identifier, different type,
and literal, we introduced respective functions qtIdent, qtTypeIdent,
qtLiteral in psycopg2 driver. Also, introduced them as the Jinja's
custom filter for using it directly inside the templates.
Also, created an utility - generate_keywords.py in order to generate
keyword lists from the latest PostgreSQL installation.
2016-01-02 14:54:05 +05:30
Ashesh Vashi
eb83d57c5a
Introduced new controls to show the list of a node type (by name and id) as properties of other node.
...
Resolved a typo in privileges control.
Removed duplicate lines in backform.pgadmin.js
2015-12-28 01:00:20 +05:30
Murtuza Zabuawala
d56ddb9fa4
Adding the SQL tab for the nodes, with 'hasSQL' property set to true, in
...
create/edit mode. It will fetch the modified sql using the 'msql' url
specific to that node.
Also, modified by Ashesh before committing it.
i.e. Added code comments, cleanup code for the control, etc.
2015-12-26 16:15:40 +05:30
Ashesh Vashi
402e89e535
Keep all the information in the tree node data in the
...
getTreeNodeHierarchy(..) function, and make changes to make the
generate_url function to work with it.
2015-12-26 14:22:29 +05:30
Ashesh Vashi
15daf44e19
Moving children function within the PGChildNodeView itself, instead of
...
putting it in separate class PGChildNode, because - it has not been used
anywhere else.
2015-12-26 11:29:12 +05:30
Ashesh Vashi
d55b02aeab
Resolved a typo in collection.js, which leads to not adding the
...
properties of a node in backgrid list with mode parameter.
Thanks Akshay Joshi for reporting the issue.
2015-12-23 18:11:30 +05:30
Ashesh Vashi
c51ecc69e4
Resolved few intialization issue with Node model data, moved the
...
privileges functionality out of the backform.pgadmin.js to make it more
modular. Now - privileges will expect the privileges data in following
format:
<name_of_the_property> : [{
"privileges": [{
"privilege_type": <privilege_type>,
"privilege": true,
"with_grant": false
},
...
],
"grantee": <grantee>,
"grantor": <grantor>
},
...
]
Example:
acl": [{
"privileges": [{
"privilege_type": "CONNECT",
"privilege": true,
"with_grant": false
}],
"grantee": '',
"grantor": 'ashesh'
},{
"privileges": [{
"privilege_type": "CREATE",
"privilege": true,
"with_grant": false
},{
"privilege": true,
"privilege_type": "TEMPORARY",
"with_grant": false
}],
"grantee": test,
"grantor": ashesh
}]
2015-12-23 12:10:23 +05:30
Ashesh Vashi
bf5170bc89
Changed the server properties a little bit to in-corporate suggestions
...
from Dave. Also - remove unwanted round cornor from the menu item.
2015-12-22 10:50:33 +05:30
Murtuza Zabuawala
5f890dadc9
Remove any unwanted white-spaces while renderting any template in template code
2015-12-22 10:43:24 +05:30
Ashesh Vashi
1391003e03
Added the backgrid cell for bootstrap switch for representing the
...
boolean properties.
2015-12-17 19:19:59 +05:30
Ashesh Vashi
cd34ee6dd7
Switch Control was not honouring the user's options for bootstrap switch
2015-12-17 18:41:36 +05:30
Ashesh Vashi
0273c29283
Introduction of the privilege support for database object (Patch:
...
Murtuza Zabuawala), and Unique column control for backform (Harshal
Dhumal).
Also, includes some fixes for the model, & collection handling.
2015-12-17 18:30:42 +05:30
Ashesh Vashi
ca0b1f20df
Fixed the issue while parsing, and assigning the data properly in the Node.
2015-12-17 16:13:36 +05:30
Ashesh Vashi
c796eee2a7
Do not show the properties in property windows, when they're not
...
applicable. i.e. not supported by that version.
2015-12-16 16:02:17 +05:30