Commit graph

4435 commits

Author SHA1 Message Date
C?dric Krier
9df7d77298 Use compact separators to dump json
issue6373
review31211002
2017-03-23 22:53:03 +01:00
C?dric Krier
090b23f497 Replace filter button by entry icon
This removes the feeling of unaligned label between the filter button and the
context labels.

issue6307
review33141002
2017-03-21 23:29:44 +01:00
Sergi Almacellas Abellana
14f51d0c2a Explicity copy action context on board action
The context is implicitly copied by or operator when it is evaluated to false,
but we should ensure it's always copied as it's updated with action values
issue6336

review34771002
2017-03-16 14:06:44 +01:00
C?dric Krier
6a0a618497 Catch RPCException in count_tab_domain
issue6325
review27171002
2017-03-13 20:59:39 +01:00
C?dric Krier
bd4c43630d Set default keyword for action triggered by button
issue6302
review33871002
2017-03-13 20:35:17 +01:00
C?dric Krier
4aaf70cff4 Use attributes keyword argument for Screen
issue6303
review32071002
2017-03-08 10:48:34 +01:00
C?dric Krier
65e95c2d30 Always verify certificate with CA
The fingerprint is no more used for certificate verification but only to
prevent fallback to plain http connection.
The system CA is used by default if no ca_certs is configured.

issue6270
review27991002
2017-03-08 10:44:01 +01:00
Nicolas ?vrard
58eb76e3ec Correctly convert datetime in the domain parser
issue6301
review28061002
2017-02-27 10:58:12 +01:00
C?dric Krier
6b86fd6323 Remove tips
issue6285
review26191002
2017-02-25 18:40:23 +01:00
C?dric Krier
3759d1673a Ellipsize tab label longer than 20 chars
Replace the size request hack as it does not work on GTK3.

issue6284
review34721002
2017-02-25 18:38:15 +01:00
C?dric Krier
0376ccf339 Avoid unnecessary write of known_hosts file
Loading the existing file should not trigger a save of the file on each key
neither when setting the same fingerprint.

issue6098
review31111002
2017-02-20 23:12:30 +01:00
C?dric Krier
d0e01be3b7 Disable create new record from key on read-only editable tree
issue6220
review33071002
2017-02-17 18:47:21 +01:00
C?dric Krier
d811ade6f0 Do not assign menu definition as it is a property
Instead set revision callback dynamically.

issue6257
2017-02-14 13:36:34 +01:00
C?dric Krier
64731ea0da Do not skip One2Many with readonly attribute for modified values
Since changeset f4d51f07325d, the readonly state of one2many is not limited to
the modification of existing lines.

issue6256
review31091002
2017-02-14 00:05:19 +01:00
C?dric Krier
a079244f4c Change toolbar_def and menu_def into instance property
The list need to be re-evaluated on each instantiation because the strings must
be translated using the current language.

issue6257
review27981002
2017-02-14 00:02:38 +01:00
C?dric Krier
0b7bc68727 Use record context to trigger action from pop-up menu
And allow to pass a context when record is an integer.

issue6214
review27951002
2017-02-11 19:10:28 +01:00
C?dric Krier
417b32fc3e Unquote URI before passing to urlopen
issue5503
review29191002
2017-02-08 21:35:01 +01:00
C?dric Krier
11ff953e14 Use underline for save button in form window
issue6233
review29961002
2017-02-07 01:12:31 +01:00
C?dric Krier
bfca4e5ba6 Backed out changeset 42f552527a47 2017-02-06 23:23:54 +01:00
C?dric Krier
48473cca6d Increase version number 2017-02-06 22:36:20 +01:00
Nicolas ?vrard
9295f58f91 Cast Date and Time field value to the correct type when checking for modification
issue6179
review33751002
2017-01-27 19:47:20 +01:00
Adrien
c765cd7449 Use save_current of WinForm in WinSearch
It prevents the new form from closing when an error message is raised.

issue5609
review23171002
2017-01-15 19:04:16 +01:00
C?dric Krier
f854d169f5 Remove explicit block parameter in main_iteration
On GTK3, this parameter does not exist and on GTK2 it is by default True.

issue6181
review33761002
2017-01-14 23:46:27 +01:00
C?dric Krier
77fd2fddde Add missing signal unconnect in destroy
issue6178
review34631002
2017-01-14 23:45:00 +01:00
C?dric Krier
625432f90b Load autocomplete only on display of Char widget
Keeping the autocomplete always up to date is very expensive especially for
large list because the method is called once per field for each record.
Indeed autocomplete is only needed when the Char widget is displayed. So we
could just load it at display and keep it up to date when fields are changed.

issue6167
review34611002
2017-01-13 20:04:01 +01:00
C?dric Krier
9e8ec2a613 Use get_window instead of window attribute in center_window
Sometimes the attribute is not available while the method is.

issue6162
review34621002
2017-01-11 14:47:53 +01:00
C?dric Krier
5cec20fb8c Use get_root_coords when available
In GTK3, it is the proper way to compute coordinates instead of using
get_origin. This allows to fix the different behaviour for popup position of
datetime widget.

issue6162
review29911002
2017-01-10 11:40:27 +01:00
C?dric Krier
6fcbfc435b Replace URL entry by a toolbar button
issue6085
review31761002
2017-01-07 16:54:25 +01:00
C?dric Krier
37650a4949 Remove custom CSS for editable/readonly widget
This customization breaks the default rendering of many widgets so it is better
to disable it until a better solution is found.

issue6145
review29111002
2016-12-30 22:24:31 +01:00
C?dric Krier
4bd90fc4a9 Show database entry when list is empty
As database management was removed in changeset 9da26612368c, we can use an
empty list when access is denied and thus show back again the entry.

issue6151
review27001002
2016-12-29 13:47:58 +01:00
C?dric Krier
dbd4fca03d Use time instance to format time widget in tree
The value of a time widget can be a datetime instance.
The changeset acffa8c5cf89 changed the strftime by datetime_strftime but it can
not format time instance so the value must be converted into time and use
strftime.

issue5930
review33711002
2016-12-29 13:45:03 +01:00
C?dric Krier
7f7ae3c4a3 Use get_parent method instead of parent attribute
Under GTK3, accessing the attribute fails for GtkDialog.

issue6146
review32921005
2016-12-28 00:26:44 +01:00
C?dric Krier
c3f6d6c91b Use CSS name instead of widget name for readonly/editable style
Changing the widget name remove the style of selected row in multiselection
widget.

issue6145
review30931002
2016-12-28 00:25:30 +01:00
C?dric Krier
13633f3ce7 Use argument list for select function in multiselection
The select function signature is different between GTK2 and GTK3 but as we do
not use the arguments, they can be ignored in a argument list.

issue6141
review31841002
2016-12-28 00:24:06 +01:00
C?dric Krier
e792b2ccd3 Do not override signals in TreeViewControl
It is not needed and it break the event type received by do_button_press_event
which receives an Event instead of an EventButton.

issue6144
review32921004
2016-12-28 00:22:31 +01:00
C?dric Krier
b6ef844e8b Use get_child instead of child attribute for ComboBoxEntry
Under GTK3, the widget does not have the child attribute and also it does not
take a model as initial parameter.

issue6143
review33691002
2016-12-28 00:20:58 +01:00
C?dric Krier
3aae0b5b71 Set Frame label after initialisation
GTK3 does not support label as initialisation argument.

issue6142
review31841003
2016-12-28 00:19:25 +01:00
C?dric Krier
74920edcc4 Fix setting twice the placeholder text
The implementation of placeholder for GTK+-2 must manage the case when the
placeholder is set multiple times. So when setting placeholder, if it does not
have the focus and it contains the default placeholder, the text should be
removed to have _focus_out set the new placeholder.

issue6137
review25921003
2016-12-27 11:38:22 +01:00
C?dric Krier
5222abb10b Manage negative value for col attribute
issue2090
review32901002
2016-12-21 23:13:18 +01:00
C?dric Krier
6c13a9a8b1 Ensure to compile catalog when doing a build
issue6116
review29821002
2016-12-17 00:45:27 +01:00
C?dric Krier
eb2beab59e Show exception argument in RPCException string
issue6060
review30791002
2016-12-17 00:26:19 +01:00
Xavier Codinas
988c41a682 Rename context_get to get_context
issue5965
review25751002
2016-12-15 10:29:45 +01:00
C?dric Krier
7212652281 Always set sequence if sequence was changed on previous record
This makes the test in the code in accordance with the comment.
Also it prevent a comparison between integer and None which is no more allowed
in Python3.

issue6106
review29811002
2016-12-15 09:32:40 +01:00
Maxime Richez
069a772a72 Fix AttributeError when Screen initializes date format attribute from context
The context parameter could be None and so generating an AttributeError. Then
it is better to use self.context which is guarantee to be always a dictionary.

issue6082
review34531002
2016-12-14 11:18:49 +01:00
C?dric Krier
81d7109ed6 Store default date format as Screen property
Instead of setting date_format in every context (which will be included in
url), it is better to store the default value on the Screen. Also it should be
stored privately on the Screen to avoid modification which could result into an
inconsistency on the display.

issue6082
review25841002
2016-12-13 18:35:39 +01:00
C?dric Krier
e74547c7c5 Use same type for default values of URL
This allows to compare same Form as equals.

issue6084
review29071002
2016-12-09 16:47:22 +07:00
C?dric Krier
fc44bd7d52 Use valid JSON default value for name parameter in URLs
Since changeset 5912d920b36b, the default value is not a valid JSON string.

issue6083
review30841002
2016-12-09 16:19:54 +07:00
Sergi Almacellas Abellana
df10c85aa3 Raise valueError when no date is supplied in datetime_strftime
issue6053
review31751002
2016-12-07 12:37:08 +01:00
C?dric Krier
e83e286c51 Increase version number 2016-11-28 15:56:21 +01:00
C?dric Krier
2a35f271dc Added tag 4.2.0 for changeset 94037cff031e 2016-11-28 15:55:39 +01:00