An error occurred fetching the project authors.
- 11 Jun, 2013 5 commits
-
-
Vincent Pelletier authored
Also, provide one argument per line. Also, avoid shadowing "id" built-in.
-
Vincent Pelletier authored
isMessageRegistered duplicates work done in registerMessage, so it wastes time when creating an activity (in the likely event the activity is not a duplicate).
-
Vincent Pelletier authored
It is (likely) already known to caller, is only used to look up an option which is rarely enabled, and it turns out to be (relatively) expensive.
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
- 10 Jun, 2013 2 commits
-
-
Vincent Pelletier authored
Without this, __getattr__ is executed 3 times per restricted_getattr call. With, it's (still) called twice.
-
Vincent Pelletier authored
-
- 21 May, 2013 2 commits
-
-
Kazuhiko Shiozaki authored
so that we can register activity by path from restricted environment. also set default parameters just same as ActiveObject.activate().
-
Kazuhiko Shiozaki authored
so that we can call ActivityTool.activateObject() with not only by object but also by it's path. Signed-off-by: Vincent Pelletier <vincent@nexedi.com>
-
- 20 May, 2013 1 commit
-
-
Jérome Perrin authored
-
- 22 Apr, 2013 2 commits
-
-
Julien Muchembled authored
Later, we might want to do more processing after loading, or before dumping, accessing private Message data.
-
Julien Muchembled authored
When an object is deleted, higher level code used to flush its messages (without invoking them). However, a concurrent and very long transaction may be about to activate such an object, without conflict. We already experienced false -3 errors that could prevent other messages to be validated. Because there is no efficient and reliable way to flush absolutely all messages, messages on deleted objects are now ignored and deleted without any email notification. There's only a WARNING in logs. But for performance reasons, there's still a flush on object deletion. To simplify code, messages that went to -3 for other reasons, like a non-existing method, now go to -2. In fact, this was already the case for grouped messages. In case that a path is recycled, it may still be possible for a message to be executed on a wrong object (the new one), instead of being ignored (because the activated object was deleted). So in such scenario, developer should make sure not to delete an object that may be activated in a concurrent transaction. If the original object has an OID at the moment it is activated, an assertion will make sure the message is not executed on another object.
-
- 28 Dec, 2012 3 commits
-
-
Sebastien Robin authored
-
Tristan Cavelier authored
-
Tristan Cavelier authored
-
- 17 Dec, 2012 1 commit
-
-
Jérome Perrin authored
-
- 26 Nov, 2012 1 commit
-
-
Julien Muchembled authored
New SQLBase._getMessageList method has a very simple ZSQLCatalog-like API, and replaces SQL{Dict,Queue}_readMessageList DTML scripts. 'include_processing' parameter disappears (in favor of 'processing') and default behaviour is to include messages being processed.
-
- 24 Oct, 2012 1 commit
-
-
Vincent Pelletier authored
-
- 03 Jul, 2012 1 commit
-
-
Kazuhiko Shiozaki authored
-
- 02 Jul, 2012 1 commit
-
-
Kazuhiko Shiozaki authored
-
- 20 Jun, 2012 1 commit
-
-
Leonardo Rochael Almeida authored
Also, use local imports of itools where this is still necessary, and remove all mention of itools from ERP5 code.
-
- 07 Jun, 2012 1 commit
-
-
Kazuhiko Shiozaki authored
-
- 02 Jun, 2012 1 commit
-
-
Kazuhiko Shiozaki authored
commit 2ba8fb59b67cda4a35bda5ee809ac0dd6af40d84 Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri Jun 1 23:26:30 2012 +0200 if the activity is called by super user, it should be invoked with the same permission as UnrestrictedMethod. commit f63c2e8625934d0a5a056e933f4c7215098bfa1b Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri Jun 1 15:58:41 2012 +0200 use UnrestrictedMethod's super user instead of ad-hoc SUPER_USER. commit 965460b092967bc3ada3ee7268e1f942fc770efd Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri Jun 1 15:57:45 2012 +0200 security query for super user should be simply empty. commit 6d519b78f52f1a631d6663ee5594ae92a0730cc3 Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri Jun 1 15:37:33 2012 +0200 support both ERP5Security's SUPER_USER and UnrestrictedMethod's super user. commit 21431518b821a5e2756caad5393fc746bed79d36 Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri Jun 1 15:32:45 2012 +0200 make sure that SUPER_USER can access the object explicitly, that can be required with erp5_web. commit 63279ac74cbb40e520da36571927bfdee5af5e05 Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri Jun 1 15:27:00 2012 +0200 use UnrestrictedMethod instead of ad-hoc SUPER_USER, still keeping SUPER_USER for compatibility.
-
- 23 Apr, 2012 1 commit
-
-
Julien Muchembled authored
-
- 06 Apr, 2012 1 commit
-
-
Julien Muchembled authored
-
- 28 Dec, 2011 2 commits
-
-
Julien Muchembled authored
-
Julien Muchembled authored
-
- 23 Dec, 2011 1 commit
-
-
Julien Muchembled authored
-
- 19 Oct, 2011 2 commits
-
-
Julien Muchembled authored
-
Julien Muchembled authored
-
- 17 Oct, 2011 2 commits
-
-
Julien Muchembled authored
- PEP 308: Conditional Expressions - PEP 341: Unified try/except/finally - PEP 343: The ‘with’ statement
-
Julien Muchembled authored
Checked following occurrences in comments: - "Python 2.[456]" - "Zope 2.[891]" - "BBB" - "BACK" Checked uses of: - email, hashlib, numpy & tarfile (modules) - ImportError - string.Template - suppress_events (parameter of _setObject) Excluded: - some forked modules (MailTemplates, PortalTransforms...) - some i18n compatibility code
-
- 29 Aug, 2011 1 commit
-
-
Julien Muchembled authored
-
- 09 Aug, 2011 1 commit
-
-
Julien Muchembled authored
-
- 02 Aug, 2011 3 commits
-
-
Julien Muchembled authored
- reduce probability and cost of ConflictError by posting the activity result by activity - do not post None (to force it, it's still possible to forge an ActiveResult object containing the None value) - allow grouped messages to post results (previous implementation was not working, and this required to change the API of grouping methods)
-
Julien Muchembled authored
-
Julien Muchembled authored
More changes should be done so that Activity Tool provides an API to activate an object using only its path.
-
- 01 Aug, 2011 2 commits
-
-
Julien Muchembled authored
-
Julien Muchembled authored
-
- 22 Jul, 2011 1 commit
-
-
Vincent Pelletier authored
-