Cédric Krier
e1c3caae8e
Always pass string to urllib.unquote
...
When there is no trailing '/', it adds None which is not supported by
urllib.unquote.
issue4589
review12981002
2015-03-02 23:02:34 +01:00
Cédric Krier
c53357263e
Format exception using format_exception
...
format_tb doesn't return the exception but only the traceback so it is harder
to copy paste the all exception like for a server error. As it calls directly
the error dialog, there is no more need for the tb kwargs in process_exception.
issue4576
review11941002
2015-02-28 11:25:46 +01:00
Cédric Krier
b58461988e
Remove unused clear method in ScreenContainer
...
The clear button has been removed in changeset 7d9c51aed8ed
2015-02-28 11:24:21 +01:00
Cédric Krier
6cd4059786
Add reload client action
...
issue4430
review12831002
2015-02-27 10:38:34 +01:00
Cédric Krier
fdc9107bdc
Move set completion in the display of Many2One
...
Since issue4535, the Reference field failed because get_access is called
earlier in the __init__ of Many2One before the creation of widget_combo. It is
better to set the completion later as the model can change in the Reference and
so the access rights.
issue4580
review11951002
2015-02-19 13:53:17 +01:00
Cédric Krier
2682924215
Fix localize_domain to work with extended clause of Reference field
...
The first extra value must be dropped when localize a Reference field.
issue4562
review8941002
2015-02-19 13:49:11 +01:00
Cédric Krier
f30b538665
Set default printing option to action run by wizard
...
issue4575
review10971002
2015-02-19 13:47:16 +01:00
Cédric Krier
f4881e38a5
Escape backslash in domain parser
...
Backslash is the escape key so it must be escaped.
issue4471
review15011002
2015-02-19 13:43:35 +01:00
Sergi Almacellas Abellana
29118dd21b
Prevent error on tree view with image widget and no value
...
issue4326
review5731002
2015-02-16 18:37:36 +01:00
Jan Grasnick
52cef8d55c
Wrong key used when setting active_model to context
...
issue4564
review10931002
2015-02-16 10:44:46 +01:00
Cédric Krier
f4ff6ca934
Set completion action following the access right
...
The actions of completion are not always connected or allowed to the user.
So get_completion gets two optional parameter for the search and create action,
they are set according to the access right of the user by each widget.
issue4535
review10871002
2015-02-14 18:27:31 +01:00
Cédric Krier
098f661740
Clear entry when combobox is set to inactive item
...
GTK doesn't clear the entry when calling set_active with -1.
Complete changeset 112709fa23f4.
issue4298
review13991002
2015-02-14 18:20:11 +01:00
Cédric Krier
efcbf15617
pre-validate button before saving and confirm after pre-validate
...
When the evaluation of the button states is done after the save, the fields are
not yet reloaded.
The confirmation should be done on an action that can be executed.
issue4551
review13981002
2015-02-14 18:07:53 +01:00
Cédric Krier
05873c529a
Improve type checking in PYSON
...
- convert long type to int
- convert str and unicode to basestring
- use isinstance when possible
issue4405
2015-02-14 17:57:34 +01:00
Cédric Krier
b27124a675
Keep storing float data in graph
...
data is used in many places in graph as a float to draw the pixels.
Revert this behaviour from changeset 21f958dabaf0
2015-02-12 23:12:16 +01:00
Cédric Krier
a0fbfb6b48
locale.format doesn't accept None when formatting float
...
This was introduced in changeset 21f958dabaf0
2015-02-12 10:48:19 +01:00
Cédric Krier
f5454bf7f8
Enforce text fields size
...
issue3879
review13281002
2015-02-11 00:12:00 +01:00
Cédric Krier
4c5f7521c7
Add TimeDelta field
...
And remove float_time widget.
issue4026
review11761002
2015-02-09 22:59:39 +01:00
Cédric Krier
9d32db194f
Fix color and readonly for new date/time widgets
...
issue4457
review5981002
2015-02-04 23:24:07 +01:00
Cédric Krier
4cab4b63bd
The search string when sorting should always be a string
...
If the search string is None then the original search_value is set back and the
result will be a mixed sorted list.
issue4514
review8881003
2015-02-04 23:14:56 +01:00
Nicolas Évrard
aba459b0ed
Transmit context information to the action executed
...
issue4525
review11841002
2015-02-04 17:26:51 +01:00
Nicolas Évrard
200c578f8a
Set single-paragraph-mode of cellrenderertext according to widget type
...
issue4243
review14571002
2015-02-03 16:39:57 +01:00
Cédric Krier
7f2dd4c19c
Fix search box for new date/time widgets
...
- activate signal doesn't exist on Time but on its child
- replace set_text by a custom set_values
- store last search after reformatting of domain parser
issue4457
review10101002
2015-02-03 10:43:57 +01:00
Cédric Krier
4e360524f4
Simplify date, time and datetime widgets
...
- Use parse of dateutil
- Remove datetime widget in list view
- Allow to use widget attribute for date/time
issue4457
review12311003
2015-01-26 11:31:24 +01:00
Cédric Krier
adff4c21bd
Allow to put many times the same field on tree view
...
issue4456
review6821002
2015-01-12 22:54:45 +01:00
Cédric Krier
66c2e7b4d2
domain_parser must format timezoned datetime
...
A domain is always using UTC datetime for list version and local timezone for
the string version.
issue4441
review13841002
2015-01-03 11:34:31 +01:00
Cédric Krier
a2dec94faa
Use errno to test Broken pipe
...
The value could depend on the OS
review10691002
2014-12-16 22:07:10 +01:00
Cédric Krier
cbcb1467da
Activate SO_KEEPALIVE on socket
...
issue4398
review7781003
2014-12-11 22:31:37 +01:00
Cédric Krier
ae7479ee16
Quote search text from widgets
...
The text set as search_filter from a widget should be quoted to have the same
behavior as the completion and also allow strict matching for text containing
spaces.
issue4388
review10661002
2014-12-11 22:29:24 +01:00
Cédric Krier
7a6301cd53
Don't fail while autodetecting invalid field in import window
...
on_row_expanded could be called on node without children by sig_autodetect, in
such case the returned child is an invalid GtkTreeIter. So it must ignore such
case to let sig_autodetect popup an error message.
issue4313
review7791002
2014-12-11 22:26:09 +01:00
Cédric Krier
80dc23e002
Allow domain inversion to set None to X2M field
...
When domain is like ('field', '=', None), the domain inversion set the value to
None.
issue4301
review10701002
2014-12-11 22:23:37 +01:00
Cédric Krier
e4becbfd04
Force display of Many2Many screen after edition
...
Since changeset 0c2f313bf62d, the cancel of the record is not enough to refresh
the display of the edited record in the Many2Many list view. So a display call
must be triggered to clear the CellCache.
issue4391
review6721002
2014-12-11 22:12:42 +01:00
Sergi Almacellas Abellana
7d922a0eab
Add missing view attribute for ProgressBar widget
...
issue4342
review14661002
2014-12-05 18:36:08 +01:00
Cédric Krier
d6688c389a
Add completion to dictionary widget
...
The same completion as for Many2Many is added to dictionary widget but in
addition it also set the focus on the first newly added key.
issue4365
review9891002
2014-12-04 23:45:18 +01:00
Cédric Krier
74cb91c708
Exclude some dll embeded when building on windows7
...
issue4356
review8731002
2014-12-04 23:33:37 +01:00
Cédric Krier
213c1eff5a
Fix most flake8 errors
...
review13751003
2014-12-03 16:04:19 +01:00
Cédric Krier
cf94534f43
Don't show WinSearch by default
...
To allow to check result before showing the pop-up and then automatically fill
the field when the result is unique.
issue4334
review11631002
2014-11-27 22:25:28 +01:00
Cédric Krier
b82546f410
Don't try to set focus on non focusable invalid widget
...
A field could be invalid but in the same time not focusable, so it should be
skipped when setting the focus.
issue4361
review12741002
2014-11-27 22:18:54 +01:00
Cédric Krier
6e97179c53
Optimize py2exe
...
Remove no more used pytz
Exclude unused tcl/Tk
issue4355
review6681002
2014-11-23 19:44:26 +01:00
Robin Baumgartner
aad0e82db0
Merge host and port field in profile editor
...
issue4350
review14681002
2014-11-21 09:46:08 +01:00
Cédric Krier
a7588e3826
Set active item in revision combobox
...
issue4333
review6661002
2014-11-19 21:38:13 +01:00
Cédric Krier
fa861187a8
Fix save graph after refactoring of changeset 0535f5cf7e00
...
issue4337
review6671003
2014-11-19 21:26:26 +01:00
Cédric Krier
d84be97b30
pre_validate must not set value and must always validate xxx2many records
...
issue4330
issue4331
review9841002
2014-11-19 21:24:25 +01:00
Cédric Krier
5b7c2ff067
Fix focus of invalid widget
...
tab_compare only works correctly for sibling widgets. find_first_focus_widget
uses the nested focus_chain to find the first widget.
issue4332
review5741002
2014-11-19 21:21:38 +01:00
Cédric Krier
5542d95814
Missing dynamic library: jpeg and tiff for py2app
...
issue4328
review7711002
2014-11-19 21:20:35 +01:00
Cédric Krier
4e950814de
Separate hue color of scheme by golden angle
...
issue4257
review12631002
2014-11-10 23:33:03 +01:00
Cédric Krier
6db40b3a4b
Use the parent children for prefetching only works for same model
...
otherwise it must use the direct group
issue4319
review5721003
2014-11-10 23:25:26 +01:00
Cédric Krier
1768b21d89
get_focus_chain can return None
...
issue4318
review5721002
2014-11-10 23:24:23 +01:00
Cédric Krier
0b4bd46c3c
Clear entry when combobox is set to inactive item
...
GTK doesn't clear the entry when calling set_active with -1.
issue4298
review13691002
2014-11-10 23:20:17 +01:00
Cédric Krier
385c02ce84
Fix comparison of empty revision with last one
...
revision can be None and so can not be compared to a datetime
2014-11-10 12:39:57 +01:00