Commit Graph
7737 Commits
Author SHA1 Message Date
P. Christeas 8afaffc811 [Fix] Tolerate ids that came as strings.
If the list of IDs contains strings with numeric values (like '123'),
allow them to be used. If the strings cannot be parsed, the int() will
raise an Exception itself.

bzr revid: p_christ@hol.gr-20090925203427-3ckavo3w34dokwij
2009-09-25 23:34:27 +03:00
P. Christeas 6021b6dff3 Ir.attachment: improve SQL for access checks.
bzr revid: p_christ@hol.gr-20090922093255-f3iljq721pwbn9e0
2009-09-22 12:32:55 +03:00
P. Christeas e3e4be1cfb [IMP]: allow binary function fields to directly return size.
As used in document, function fields could have a shortcut method to
return the size instead of the contents. If done so and return a number,
use that instead.

bzr revid: p_christ@hol.gr-20090922093046-9r0gsj0qenapi06o
2009-09-22 12:30:46 +03:00
P. Christeas 9526157106 ORM: Protect against dropping columns.
When a column is converted to a function, by default the db column is
dropped. Sometimes this is a bad idea, until the data is migrated.
Let an attribute change this behaviour.

bzr revid: p_christ@hol.gr-20090913143021-6tj3c16n4lli9rls
2009-09-13 17:30:21 +03:00
P. Christeas b64ee551ba Web services: fix database operations (create, drop etc.) for new API.
bzr revid: p_christ@hol.gr-20090913142942-0h8qtnz9d47ktdco
2009-09-13 17:29:42 +03:00
P. Christeas 56ec1212c6 ORM feature: allow renaming of columns.
Sometimes we may want to rename object attributes, aka. SQL columns.
Provide a mechanism for that.

bzr revid: p_christ@hol.gr-20090912003049-v5xe6eypp5u462vg
2009-09-12 03:30:49 +03:00
P. Christeas c960d4fa36 Merge branch 'rfc' into rpc-py25
bzr revid: p_christ@hol.gr-20090910082439-zpch1tpf3sutw9f5
2009-09-10 11:24:39 +03:00
P. Christeas 210196117c Backport the HTTP server code from python 2.6 to 2.5
bzr revid: p_christ@hol.gr-20090910000241-3o1o5hcll10efa2y
2009-09-10 03:02:41 +03:00
P. Christeas c65b07debb safe_eval: make python 2.5 compatible.
bzr revid: p_christ@hol.gr-20090909234800-3u0a2fyi6673js4z
2009-09-10 02:48:00 +03:00
P. Christeas 2a16b99892 [Feature]: add condition to ir.sequence, let it be partitioned.
With this feature, multiple sequences may be defined per type. A weight
parameter will primarily order them. Then, the one whose condition is
true will be used.
This would let us write modules (calls to get() must be upgraded), where
the sequence numbering will depend on the data. Note that this is not
straghtforward, as the context passed must be carefully constructed. One
problem is that not all object data (eg category) may exist when the
sequence is called for a /new/ object (as a call for 'default').

The current code should be backwards compatible with old calls to get()
without a context.

bzr revid: p_christ@hol.gr-20090909203517-qahww8hika9t3zl8
2009-09-09 23:35:17 +03:00
P. Christeas 5f77353468 Implement safe_eval() in order to armour eval()
bzr revid: p_christ@hol.gr-20090909194325-hpn4cfhwehxg9dzk
2009-09-09 22:43:25 +03:00
P. Christeas be011d4302 Two hacks to make it python2.5 compatible..
.. but still, the http server lib in 2.5 is broken and won't respond
right.

bzr revid: p_christ@hol.gr-20090908163914-xb3i1ojwrl53bv29
2009-09-08 19:39:14 +03:00
P. Christeas 768ec7b320 Debian changelog for testing version.
bzr revid: p_christ@hol.gr-20090908081600-5d9e3wm020yiro7e
2009-09-08 11:16:00 +03:00
P. Christeas 214eb96758 HTTPSd: fix crash of server when no ssl available.
bzr revid: p_christ@hol.gr-20090908081516-hnbdn0mvqfy06qws
2009-09-08 11:15:16 +03:00
P. Christeas b098c935e9 Fix raising of exception.
bzr revid: p_christ@hol.gr-20090908081456-kk89t2imfe1a6b7i
2009-09-08 11:14:56 +03:00
P. Christeas 221e41381d Translating: skip buggy wizard states.
bzr revid: p_christ@hol.gr-20090905081350-33ysuupopqj49onq
2009-09-05 11:13:50 +03:00
P. Christeas 58323aa31a If the server is only translating, don't init the httpd.
When the server is about to run normally, httpd must be created before
the addons, so that they use it. However, if only translating, httpd may
not exist at all. Sometimes it /cannnot/ exist, because another server
may be running at the same port.

bzr revid: p_christ@hol.gr-20090905081157-8943pfwve7b0g7xl
2009-09-05 11:11:57 +03:00
P. Christeas a17a31abe1 Remove debuggint print's
bzr revid: p_christ@hol.gr-20090903215338-0z39w3mp1iqxlwv8
2009-09-04 00:53:38 +03:00
P. Christeas feca055dea Implement basic-authenticated services. Log messages.
bzr revid: p_christ@hol.gr-20090903210802-7bmexrzduofhhxm2
2009-09-04 00:08:02 +03:00
P. Christeas 77cf69258c Initialize services before databases.
This will let modules register into services properly.

bzr revid: p_christ@hol.gr-20090903210647-6xs4cco3pl9fo3o4
2009-09-04 00:06:47 +03:00
P. Christeas 643b76682a Don't print messages, log them..
bzr revid: p_christ@hol.gr-20090903130145-iybg1xtmxg6xylhk
2009-09-03 16:01:45 +03:00
P. Christeas 69b1313fbb Bring back net-rpc service.
This commit re-enables net-rpc, using a port of the old code.

bzr revid: p_christ@hol.gr-20090903130038-4a0jq10x6dhb9qxx
2009-09-03 16:00:38 +03:00
P. Christeas 0b5b67b336 Fix quoting of ids when passed to sql.
bzr revid: p_christ@hol.gr-20090903073240-cyydggro48990k2s
2009-09-03 10:32:40 +03:00
P. Christeas 9e2d058641 Fix merging of 5.0.4 into API-changed netsvc.
bzr revid: p_christ@hol.gr-20090901222455-y8yozw41ovizkne1
2009-09-02 01:24:55 +03:00
P. Christeas ceef9b0be9 Merge branch 'xrg' into rfc, 5.0.4 patch obsolete.
Conflicts:
	bin/netsvc.py

bzr revid: p_christ@hol.gr-20090901210513-xc3f51eobxdv4g1b
2009-09-02 00:05:13 +03:00
Jay (Open ERP) d594e929ba [FIX] Security Loophole corrected
[openobject-server @ jvo@tinyerp.com-20090901150136-tjpngpcfixg940b6]

bzr revid: p_christ@hol.gr-20090901210416-x0euuqx22nchdyj7
2009-09-02 00:04:16 +03:00
P. Christeas 0a838fba3a Fix https transports, certificates etc.
Now we can serve https: the send_error() must be fixed so that
content-lenth is specified, certificates are configurable and
connections get properly shutdown so that the client won't wait
forever.

bzr revid: p_christ@hol.gr-20090831132956-00atxsfcy3qkdw4j
2009-08-31 16:29:56 +03:00
P. Christeas a267ef5d05 [IMP] reorder the imports in websrv_lib.
bzr revid: p_christ@hol.gr-20090831093703-vysodh51eczb1hcd
2009-08-31 12:37:03 +03:00
P. Christeas 483e133ee8 Fix dispatching of reports after API change.
bzr revid: p_christ@hol.gr-20090830145331-29ffrhf228defnl2
2009-08-30 17:53:31 +03:00
P. Christeas 4abaf2763e [MAJOR IMP] Rewrite the http/RPC engine and let HTTP/1.1 features.
This patch attempts a major change in the structure of the XML-RPC
framework. There is one http server, capable of multiple services
(except XML-RPC). That server could handle authentication, and is also
HTTP/1.1 capable, which means it supports **persistent connections** !

At this commit, the old behaviour of the XML-RPC protocol is merely
working. The netsvc.Service is split, so expect wizard/report breakages.
External modules (koo) also break with this API.

The net-svc code is crippled and gone FTM.

bzr revid: p_christ@hol.gr-20090829152346-7i1iiqs8skdddamq
2009-08-29 18:23:46 +03:00
P. Christeas 6e6329bb7d Merge origin/5.0.4 into xrg
Conflicts:
	bin/addons/base/i18n/base.pot

bzr revid: p_christ@hol.gr-20090828180203-xbavbj02nas6f0qy
2009-08-28 21:02:03 +03:00
Christophe Simonis 36b7806e8f [REL] 5.0.4
bzr revid: christophe@tinyerp.com-20090828165855-461psr84dugkzvp7
2009-08-28 18:58:55 +02:00
Christophe Simonis 59bcfa0f49 [MERGE]
bzr revid: christophe@tinyerp.com-20090828163729-slp5iosj2h3ajodt
bzr revid: christophe@tinyerp.com-20090828165755-zht8z9xnk4ckonfi
2009-08-28 18:57:55 +02:00
Fabien Pinckaers 8714d5863f [FIX] no traceback when access denied
bzr revid: fp@tinyerp.com-20090828165027-uh9a77aqbsyecr2r
2009-08-28 18:50:27 +02:00
Fabien Pinckaers 82191446b3 modifs
bzr revid: fp@tinyerp.com-20090828164537-jtrz05vgj9zmwyq9
2009-08-28 18:45:37 +02:00
Christophe Simonis c8e7057f2f [MERGE]
bzr revid: christophe@tinyerp.com-20090828164312-x6j4etkj67b6txpi
2009-08-28 18:43:12 +02:00
Christophe Simonis acfad85353 [IMP] update translations
bzr revid: christophe@tinyerp.com-20090828162626-bx1vbht9efyo8lez
2009-08-28 18:26:26 +02:00
Fabien Pinckaers 91116d7418 merge
bzr revid: fp@tinyerp.com-20090828162043-5vom5gmhmjxsbx83
2009-08-28 18:20:43 +02:00
Christophe Simonis bba48476eb [IMP] replace partner name and address in demo
bzr revid: christophe@tinyerp.com-20090828161924-8954gi134hhcxdj2
2009-08-28 18:19:24 +02:00
Christophe Simonis 3c1be5bec7 [IMP] add translation names
bzr revid: christophe@tinyerp.com-20090828161829-t09div4pnx0pfij2
2009-08-28 18:18:29 +02:00
Fabien Pinckaers 2f26cee06d [FIX] Security fix
bzr revid: fp@tinyerp.com-20090828161802-i6ec75ifobpncaz0
2009-08-28 18:18:02 +02:00
Christophe Simonis d9ed0c296c [IMP] update translations files
[FIX] remove bad translation files (bad name)
[ADD] new translations

bzr revid: christophe@tinyerp.com-20090828161604-zaf83m7tb7islki7
2009-08-28 18:16:04 +02:00
P. Christeas 8558374c2b Merge branch 'xrg' into optimize
Conflicts:
	bin/osv/orm.py

bzr revid: p_christ@hol.gr-20090828143403-c48ylvbkzgnimvhr
2009-08-28 17:34:03 +03:00
P. Christeas 2e77de275a [IMP] remove irritating call to bzr.
bzr revid: p_christ@hol.gr-20090828142011-9ree0qumovrx9wt6
2009-08-28 17:20:11 +03:00
Jay (Open ERP) 2f47eb2650 [IMP] report_dcoument : changed the misleading name of action
bzr revid: jvo@tinyerp.com-20090828112251-13twdpixu8p50ox4
2009-08-28 16:52:51 +05:30
Jay (Open ERP) 60f4bcf9e3 [FIX] report_document : Dashboard should not display partner with no files
lp bug: https://launchpad.net/bugs/416807 fixed

bzr revid: jvo@tinyerp.com-20090828111622-eivmpeb3aac9rx90
2009-08-28 16:46:22 +05:30
Jay (Open ERP) 72cfa7cf23 [FIX] Document : error on create if attachment not specified
bzr revid: jvo@tinyerp.com-20090828111159-yoe862iefxw2h3uo
2009-08-28 16:41:59 +05:30
Olivier Laurent 369221b471 [FIX] pep8
bzr revid: olt@tinyerp.com-20090828094049-9ls3emo12g34r0d8
2009-08-28 11:40:49 +02:00
mra (Open ERP) fc5d45c54a [IMP] base_module_quality: make minimal score for all test, add message if the score is below limit,varible for whether to activate the test or not
bzr revid: mra@tinyerp.com-20090828072457-en2vpm5l1514xtj7
2009-08-28 12:54:57 +05:30
Jay (Open ERP) ce0c60e152 [FIX] Functional fields with M2O relation can be printed on print screen now
lp bug: https://launchpad.net/bugs/415391 fixed

bzr revid: jvo@tinyerp.com-20090827141922-aapmtmc50y168jun
2009-08-27 19:49:22 +05:30