Nicolas Évrard
2fef479575
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier
29129855ec
Add support for Python 3
...
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Cédric Krier
44dc331ced
Use Constraint instance in ModelSQL._sql_constraints
...
issue4814
review15491002
2015-06-22 16:57:06 +02:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
5ce5fb79d3
Use literal_eval instead of safe_eval whenever possible
...
CVE-2014-6633
issue4155
review10521002
2014-09-29 17:29:25 +02:00
Cédric Krier
67dfdc6a99
Make global cache depends on explicit context keys
...
This should prevent the invalidation of the cache when the context keys that are
changed has no influence onn the global cache.
issue3905
review6291002
2014-05-22 23:36:00 +02:00
Cédric Krier
f52fe8e45f
Use a sequence of records, values in write
...
issue3499
review1641003
2013-12-19 14:44:01 +01:00
Cédric Krier
abf1f94854
Fix domain concatenation between list and tuple
...
issue3395
2013-10-05 16:16:02 +02:00
Cédric Krier
f55fbdaa33
Add cache to Translation.get_language
...
review1005002
2013-09-02 17:37:21 +02:00
Albert Cervera i Areny
25463800c9
Replace _constraints with validate in ModelStorage and improve user messages.
...
issue2616
review371002
2013-03-07 16:53:19 +01:00
Cédric Krier
5e01f5c068
Fix flake8
2013-02-27 22:50:31 +01:00
Albert Cervera i Areny
30b1403cdc
Use a list of dictionaries in create().
...
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier
936dcca53a
Store default language in database
...
review592004
2012-11-23 17:59:04 +01:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
7bdb8a319b
Fix domain concatenation between list and tuple
2012-09-20 23:31:04 +02:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Cédric Krier
a94ceb4321
Add default database language code
...
The configuration option defines which translated value will be stored in the
main field.
The methods of ir.translation which were already publicly used are now public.
Setting the main translation mark translations of other languages fuzzy.
review198001
2012-01-27 21:11:06 +01:00
Nicolas Évrard
6ba18631e8
Use relative imports
2011-12-14 17:00:13 +01:00
Nicolas Évrard
0a471486e0
correct pyflake errors
...
review164003
2011-11-02 15:49:38 +01:00
Nicolas Évrard
c6174a0b61
replace .csv file by .po file for translations
...
review125002
issue1163
2011-10-04 13:03:06 +02:00
Cédric Krier
852f04dc51
Remove support of Python2.5 and fix py3 warnings
2011-07-12 00:16:15 +02:00
Cédric Krier
550aae8351
Change Pool into a Singleton
...
review42001
2011-07-03 13:20:58 +02:00
Cédric Krier
adef0c351e
Update locale copy code for issue1738
2010-10-24 00:52:33 +02:00
Cédric Krier
3a9ae031b8
Missing instanciation of Transaction for issue1656
2010-08-24 12:20:11 +02:00
Cédric Krier
df1fd283ac
New transaction management
...
Remove cursor, user and context from methods and use Transaction instead
2010-08-19 22:01:12 +02:00
Cédric Krier
483afed26a
Catch only Exception according to PEP 352
2010-07-08 19:53:39 +02:00
Cédric Krier
249bc77b9f
Allow search_rec_name of ir.lang to search on code for issue1388
2010-04-01 12:54:41 +02:00
Cédric Krier
d98601323c
Add missing import of datetime
...
Use string for strftime format
2009-12-18 09:10:38 +01:00
Cédric Krier
cae0a76a3d
Remove egenix-mx-base and replace it by python-dateutil
2009-12-17 11:39:54 +01:00
Cédric Krier
b427d21224
Add new tool safe_eval
2009-09-28 11:21:11 +02:00
Cédric Krier
f58e03cace
Use default language as default value of translated name of ir.lang for
...
issue1131
2009-08-17 10:52:36 +02:00
Bertrand Chenal
84f6557c93
Fix for empty lang in format_lang:
...
- Use a lambda to wrap format_lang and provide cursor and user
- Call the new default_code on ir.lang instead of using static 'en_US'
2009-08-11 14:15:01 +02:00
Cédric Krier
5a9114c9be
Return unicode string for strftime of ir.lang
...
Use ascii string for strftime of time
2009-08-04 16:54:42 +02:00
Cédric Krier
093c58e0f0
Make name of ir.lang translatable for issue1095
...
Use the language of the record to translate name if 'translate_name' is set in
the context
2009-08-03 17:22:41 +02:00
Cédric Krier
259e35f1d8
Add strftime to ir.lang to handle locale's format for issue1111
2009-07-23 10:53:28 +02:00
Cédric Krier
d301910e59
Fix guidelines
2009-05-17 17:23:47 +02:00
Cédric Krier
6bddc3fca9
Improve get_translatable_languages to call only once get
2009-05-17 16:49:57 +02:00
Korbinian Preisler
97c0f77251
add cache on ir.lang for issue 1025
2009-05-12 16:14:48 +02:00
Cédric Krier
c9992e11d2
Remove OSV and WizardOSV and move Cacheable into model
2009-02-28 16:56:54 +01:00
Cédric Krier
c0932e1015
Allow to use "%-m", "%-d","%-j" in date format for issue726
2009-01-05 00:51:28 +01:00
Cédric Krier
e31de1d2ba
Improve format fields naming
2008-09-22 20:44:15 +02:00
Cédric Krier
fff67c1dfd
Remove _log_access on ORM
2008-09-05 12:18:20 +02:00
Cédric Krier
33c6bf692c
Add constraint on decimal_point thousands_sep
2008-08-29 18:57:45 +02:00
Cédric Krier
2365ebc93d
Add check date on ir.lang
2008-08-27 19:45:29 +02:00
Cédric Krier
120de91895
Allow to modify lang from xml
2008-08-27 19:33:24 +02:00
Cédric Krier
9c3abf4267
Modify formatLang to use ir.lang and currency.currency object for formatting
...
Remove global lock
2008-08-27 17:34:29 +02:00
Cédric Krier
0232c66506
Fix COPYRIGHT
2008-06-23 20:18:54 +02:00
Cédric Krier
ca9dcaa92d
Remove constraint on name, code of language and RFC 4646 reference
2008-06-08 14:26:18 +02:00
Cédric Krier
d80152ce78
Remove _defaults dict and replace by default_ function to allow easy override
2008-02-26 16:23:05 +01:00
Cédric Krier
c6948c3f35
Remove _columns dict and put it directly in the object to reflect better the
...
browserecord
2008-02-26 12:40:40 +01:00