- 04 Dec, 2014 1 commit
-
-
Jérome Perrin authored
-
- 07 Apr, 2014 1 commit
-
-
Jérome Perrin authored
-
- 24 Jan, 2014 7 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Aurel authored
-
Julien Muchembled authored
-
Aurel authored
-
Arnaud Fontaine authored
-
Tatuya Kamada authored
-
- 23 Jan, 2014 9 commits
-
-
Julien Muchembled authored
Simulation Movements use 'causality' to link to different portal types: - Business Link - Trade Model Path - amount generator line/cell Only Business Links implement getCompletedStateList.
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
The initial 'exec' traceback was not passed when raising ImportError (following PEP-302), thus it displayed traceback in component_package instead of the actual location of the error. Also, Caching source code retrieved from traceback/(i)pdb (through get_source()) was done after the actual 'exec', whereas it should have always been *before* obviously... Steps to reproduce: 1/ Create and validate a Test Component A importing another Component B. 2/ Invalidate Component B or add a typo not handled by pylint (because of exceptions).
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
Using DeadlockDebugguer lead to a deadlock when trying to debug a deadlock on ZODB Component as it was trying to load the Component. Moreover, this required accessing to ERP5 Site whereas DeadlockDebugguer is used outside. Steps to reproduce: 1. Create an Extension Component with a sleep and run it. 2. Call manage_debug_threads.
-
Arnaud Fontaine authored
This is much faster, eg defining a max function is about 39 times faster and even more on more complicated code: $ python -mtimeit -s 'code = "def max(a, b): return a > b and a or b"' 'exec code' 10000 loops, best of 3: 25.2 usec per loop $ python -mtimeit -s 'code = compile("def max(a, b): return a > b and a or b", "<string>", "exec")' 'exec code' 1000000 loops, best of 3: 0.632 usec per loop Another reason is for traceback/pdb readability as __file__ is displayed in the backtrace, but with 'exec' __file__ equals to '<string>', compile() allows to specify a readable name easily without having to override __file__. Also, set __file__ to the Component relative URL instead of the ID for readability sake.
-
Arnaud Fontaine authored
Signed-off-by: Julien Muchembled <jm@nexedi.com>
-
Mame Coumba Sall authored
-
- 21 Jan, 2014 3 commits
-
-
Julien Muchembled authored
-
Julien Muchembled authored
-
Julien Muchembled authored
-
- 17 Jan, 2014 6 commits
-
-
Vincent Pelletier authored
Fixes unittest.expectedFailure usage, allowing phasing out backportUnittest gradually (at least for the backport part).
-
Vincent Pelletier authored
-
Ivan Tyagov authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
- 16 Jan, 2014 13 commits
-
-
Kazuhiko Shiozaki authored
because they raise "The operation is insecure" error in recent Firefox.
-
Mame Coumba Sall authored
- It causes the movements to be created in another delivery if the start/stop dates are different from invoice date
-
Jérome Perrin authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Arnaud Fontaine authored
The code wrongly assumed that the .py file (containing source code of a Component) was on the filesystem upon import but importing from an archive uses tarfile and does not extract anything...
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
Get rid of refactoring/convention/spurious messages (ERP5 Naming Convention may be added later on). Also, Pylint cannot deal with dynamic accessor/module generation, so disable these error messages as well. Also, patch pylint to handle try/except for modules imports (https://www.logilab.org/ticket/9386).
-
Arnaud Fontaine authored
Likewise Pylint, compile() has no side effects as it juste compile source into a code object which may be passed to 'exec'.
-
Arnaud Fontaine authored
Pylint should be enough and has no side effects...
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Aurel authored
-