Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
w2pext
plugin_dbui
Commits
539230d8
Commit
539230d8
authored
Apr 15, 2015
by
LE GAC Renaud
Browse files
Use the construct Note.
parent
fea673fe
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
19 deletions
+20
-19
modules/plugin_dbui/converter.py
modules/plugin_dbui/converter.py
+3
-3
modules/plugin_dbui/dbsvc.py
modules/plugin_dbui/dbsvc.py
+4
-4
modules/plugin_dbui/extjs.py
modules/plugin_dbui/extjs.py
+4
-3
modules/plugin_dbui/fieldsmodifier.py
modules/plugin_dbui/fieldsmodifier.py
+1
-1
modules/plugin_dbui/formmodifier.py
modules/plugin_dbui/formmodifier.py
+1
-1
modules/plugin_dbui/helper.py
modules/plugin_dbui/helper.py
+4
-4
modules/plugin_dbui/navtree.py
modules/plugin_dbui/navtree.py
+1
-1
modules/plugin_dbui/storemodifier.py
modules/plugin_dbui/storemodifier.py
+1
-1
modules/plugin_dbui/viewportmodifier.py
modules/plugin_dbui/viewportmodifier.py
+1
-1
No files found.
modules/plugin_dbui/converter.py
View file @
539230d8
...
...
@@ -74,7 +74,7 @@ def _to_field(field, linkedcombo=True, **kwargs):
The association is defined in the dictionary
:const:`FTYPE_TO_XTYPE`.
.. attention:
:
Warning
:
It is recommended to used the more general method :meth:`to_field`
which also understands :class:`.FieldContainer`.
...
...
@@ -178,7 +178,7 @@ def to_field(field, composite=True, linkedcombo=True, **kwargs):
:class:`.FieldContainer` and takes into account
the :class:`.FieldsModifier` instructions.
.. n
ote:
:
N
ote:
The return configurator is a :class:`.Field`.
However it can be a :class:`.ComboBox`,
a :class:`.FieldDate`,
...
...
@@ -187,7 +187,7 @@ def to_field(field, composite=True, linkedcombo=True, **kwargs):
The association is defined in the dictionary
:const:`FTYPE_TO_XTYPE`.
.. n
ote:
:
N
ote:
The database fields can be organized in
:class:`.FieldContainer` in the application
model using the modifiers
...
...
modules/plugin_dbui/dbsvc.py
View file @
539230d8
...
...
@@ -146,13 +146,13 @@ class DbSvc(BaseSvc):
* the second element contains only the left join conditions or an empty string.
* the third element contains only the filter conditions or an empty string.
.. n
ote:
:
N
ote:
All elements of the list are ANDED in the web2py query
.. n
ote:
:
N
ote:
comparison operators are ``==, !=, <, >, <=, >=``
.. n
ote:
:
N
ote:
Boolean operators are ``&, |``
"""
...
...
@@ -284,7 +284,7 @@ class DbSvc(BaseSvc):
Raises:
DbSvcException: when the database table does not exists
..n
ote:
:
N
ote:
The method works with regular and alias tables.
"""
...
...
modules/plugin_dbui/extjs.py
View file @
539230d8
...
...
@@ -19,7 +19,7 @@ class Base(Storage):
and ``append_plugins``. They are required to append ``items``
and ``plugins``.
.. n
ote:
:
N
ote:
A protection is set to avoid changing the ``xtype`` of the element.
"""
...
...
@@ -132,7 +132,8 @@ class FieldSet(Base):
class
FieldText
(
Base
):
"""Configurator for ``Ext.form.field.Text``.
:note: Regular expression for the validation can be written as a string.
Note:
Regular expression for the validation can be written as a string.
"""
xtype
=
'textfield'
...
...
@@ -173,7 +174,7 @@ class GridColumn(dict):
class
GridColumnModel
(
list
):
"""Configurator for ``Ext.grid.ColumnModel``.
.. n
ote:
:
N
ote:
It is implemented as a ``list`` of :class:`.GridColumn`.
"""
...
...
modules/plugin_dbui/fieldsmodifier.py
View file @
539230d8
...
...
@@ -96,7 +96,7 @@ class FieldsModifier(Modifier):
They can be super seed by the keyword arguments.
.. n
ote:
:
N
ote:
* Each ``field`` is identified by its database field name.
* ``field`` should belong to the database table defined in the constructor.
* The first ``field`` is the main field of the ``FieldContainer``.
...
...
modules/plugin_dbui/formmodifier.py
View file @
539230d8
...
...
@@ -26,7 +26,7 @@ def configure_forms(db, **extjs):
list of forms to be modified. They are identified by their
associated table name.
.. n
ote:
:
N
ote:
The keyword arguments define values for the Ext JS configuration
options of he ``Ext.form.Panel`` class.
...
...
modules/plugin_dbui/helper.py
View file @
539230d8
...
...
@@ -127,11 +127,11 @@ def encode_field(*args):
Returns:
str:
.. n
ote:
:
N
ote:
useful to build database field name like ``TableField``
or ``TableFieldFunc``.
.. n
ote:
:
N
ote:
The Ext JS ComboBox don't decode properly any separator between
table and field like table+field. Therefore choice for the encoding
are very limited.
...
...
@@ -173,7 +173,7 @@ def get_all_tables(dal):
Returns:
list:
.. n
ote:
:
N
ote:
It is recommend to use standard iterator provided by
the gluon.dal.DAL class. However by construction, they ignore
alias table.
...
...
@@ -189,7 +189,7 @@ def get_create_id(table, **kwargs):
If the record does not exist it is created with the values
specified in the keywords arguments.
Example:
:
Example:
id = get_create_id(db.person, first_name="Joe", last_name="Doe")
...
...
modules/plugin_dbui/navtree.py
View file @
539230d8
...
...
@@ -53,7 +53,7 @@ class Node(object):
hidden (list): list of children to be hidden.
.. n
ote:
:
N
ote:
* Leaf names are translated in the current language
* Leaf names are sorted in alphabetic order
...
...
modules/plugin_dbui/storemodifier.py
View file @
539230d8
...
...
@@ -41,7 +41,7 @@ class AddStore(object):
For an ``Ext.data.ArrayStore`` the keyword ``fields`` and ``data``
have to be defined. For more details see the ExtJS documentation.
.. n
ote:
:
N
ote:
The key associated to this store in the persistent dictionary
is the ``storeId``. Its value is derived from the store name,
*e.g.* ``nameStore``.
...
...
modules/plugin_dbui/viewportmodifier.py
View file @
539230d8
...
...
@@ -57,7 +57,7 @@ class ViewportModifier(Modifier):
Args:
args (list): list of :class:`.Node`
.. n
ote:
:
N
ote:
Elements of the list equal to ``None`` are ignored.
This feature is useful when the list of nodes depend on user role.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment