403 Commits

Author SHA1 Message Date
Nicolas Setton
175e53d370 Remove redundant with clauses.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@95115 936e1b1b-40f2-da11-902a-00137254ae57
2006-02-02 16:14:16 +00:00
Emmanuel Briot
b77569900e Projects.Project_Path now return a Virtual_File instead of a String
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@95101 936e1b1b-40f2-da11-902a-00137254ae57
2006-02-01 10:40:59 +00:00
Emmanuel Briot
4e9e6b3bb1 Change the type of a parameter. This puts back a compilation warning, but
otherwise we are not compatible with the version of python uses in the nightly
 builds


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@95055 936e1b1b-40f2-da11-902a-00137254ae57
2006-01-27 08:29:37 +00:00
Emmanuel Briot
0809e41d96 Fix compilation warning
Minor code reformating


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@95041 936e1b1b-40f2-da11-902a-00137254ae57
2006-01-26 15:32:59 +00:00
Emmanuel Briot
0d9057e80e Fix various refcount issues
(Clone): Missing calls to Py_INCREF. Fixes F126-010
(Execute_Command): Slightly cleaner implementation, requires less calls to
 Ref/Unref


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@95040 936e1b1b-40f2-da11-902a-00137254ae57
2006-01-26 15:32:33 +00:00
Emmanuel Briot
b98e9ea4db (PyObject_Call): New subprogram
Various comment improvements to properly document what needs to be unrefed,
 and what doesn't


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@95039 936e1b1b-40f2-da11-902a-00137254ae57
2006-01-26 15:30:02 +00:00
Emmanuel Briot
1708b3f884 (Override_Default_IO): Proper handling if the GPS console has already been
destroyed. Part of F120-027


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@95004 936e1b1b-40f2-da11-902a-00137254ae57
2006-01-24 16:49:22 +00:00
Emmanuel Briot
89a8b347d7 (Clone): New subprogram (EC05-011)
(Execute, returning String): New subprogram
 This is part of providing action_hooks returning strings, for the debugger


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@94644 936e1b1b-40f2-da11-902a-00137254ae57
2005-12-06 16:36:18 +00:00
Emmanuel Briot
5276c11735 Adapted to the new API for MDI, where the initial position of children is
orthogonal to their group, and children have to be created before they are
 put in the MDI


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@94360 936e1b1b-40f2-da11-902a-00137254ae57
2005-11-21 15:04:55 +00:00
Quentin Ochem
76e2eb897b (Initialize): Py_SetProgramName is now called before Py_Initialize.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@93915 936e1b1b-40f2-da11-902a-00137254ae57
2005-10-28 12:10:12 +00:00
Emmanuel Briot
fae57fcfda (Run_Command): Only activate python's trace function while executing an
interactive command. This function is used to process the gtk+ event in case
 the python function takes a long time to execute, but we do not want to
 execute it for internal functions (in particular the one used to initialize
 the IO when the python console is created at startup).
 Found while working with the sysprof profile on linux. This is a minor
 speedup, but more important cleans up the profile since
 python.module.initialize_io was showing up as using 23.3% of the startup
 time, when in fact it uses 0.08%


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@93716 936e1b1b-40f2-da11-902a-00137254ae57
2005-10-17 16:36:56 +00:00
Emmanuel Briot
21e072de50 (Load_Python_Startup_Files): In case of error, no more need to reimport the
file to display the error messages. This trick didn't always work, and a
 better solution has been put in place where error messages are sent to the
 Messages window if the Python console doesn't exist


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@93503 936e1b1b-40f2-da11-902a-00137254ae57
2005-10-04 13:01:05 +00:00
Emmanuel Briot
37f60b4ccc (Run_Command): Even if the output should be hidden, we display unhandled
exceptions in the current console associated with the python interpreter
 (either the Python console if open, or the Messages window, unless these have
 been overriden). Helps debugging scripts


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@93489 936e1b1b-40f2-da11-902a-00137254ae57
2005-10-03 13:21:25 +00:00
Emmanuel Briot
1e341fe667 (Override_Default_IO): new subprogram. Makes sure that changing the console
associated with the python interpreter will also display results of print to
 that console.
 In particular, this fixes the case where a filter set for an action is in
 fact raising an exception, which would be displayed in the python console if
 it exists, and would not be displayed otherwise. If the python console does
 not exist, we fall back on the Messages window, so that such error messages
 and exceptions and filters are properly displayed for the user, which helps
 debugging


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@93488 936e1b1b-40f2-da11-902a-00137254ae57
2005-10-03 13:20:28 +00:00
Emmanuel Briot
16697f7779 (Display_Prompt): Do nothing unless the console is editable (since the prompt
should only be displayed in that case). Fixes issue where the prompt is
 displayed in the Messages window (see the AWS integration)


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@93430 936e1b1b-40f2-da11-902a-00137254ae57
2005-09-27 08:39:50 +00:00
Emmanuel Briot
7f522643c0 Undo temporary change done for E830-020, which breaks the python console
completly (no output ever)


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@93414 936e1b1b-40f2-da11-902a-00137254ae57
2005-09-26 08:14:34 +00:00
Pascal Obry
107ca7567e (Load_Python_Startup_Files): Add support for the GPS_CUSTOM_PATH. This
is consistent with what is done for the .xml files. This way it is
 possible to load Python file in non standard location as pointed by
 the GPS_CUSTOM_PATH variable.
Reorder with clauses.
Minor reformatting.
Part of work for E923-010.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@93413 936e1b1b-40f2-da11-902a-00137254ae57
2005-09-24 08:59:27 +00:00
Quentin Ochem
d0a44900df (Create_Python_Console): Temporary removed the call to Initialize_IO.
This is a part of E830-020.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@93304 936e1b1b-40f2-da11-902a-00137254ae57
2005-08-30 18:42:00 +00:00
Emmanuel Briot
c7112254e2 Adapted to the new API for modules
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92704 936e1b1b-40f2-da11-902a-00137254ae57
2005-07-11 15:06:49 +00:00
Arnaud Charlet
57c9e93217 Remove cast to PyCodeObject, not recognized/needed by Python 1.3
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92655 936e1b1b-40f2-da11-902a-00137254ae57
2005-07-08 13:19:49 +00:00
Emmanuel Briot
06353be6b9 (Py_Class_Is_Subclass): Now implemented in our own layer in C
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92640 936e1b1b-40f2-da11-902a-00137254ae57
2005-07-08 08:27:21 +00:00
Emmanuel Briot
b193f870da Various changes to the functions so that we support both Classes and
"new-style" classes of Python (aka objects deriving from the object class)


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92639 936e1b1b-40f2-da11-902a-00137254ae57
2005-07-08 08:27:01 +00:00
Emmanuel Briot
daaa305f5c (Register_Module): Do not added documentation for the GPS module, since this
is done in shell_commands.xml now.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92509 936e1b1b-40f2-da11-902a-00137254ae57
2005-06-30 09:59:54 +00:00
Emmanuel Briot
ef470b3785 Add support for overriding "+", "-", "<" and ">" when creating a new
class. Used for EditorLocation


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92460 936e1b1b-40f2-da11-902a-00137254ae57
2005-06-24 15:16:16 +00:00
Emmanuel Briot
ad79b4f00d (Set_Data, Get_Data, Get_Instance): New subprograms since it is now the
responsability of each language to associate a widget and a class instance
 to avoid memory leaks and storage_errors
Fixes memory leaks where some python objects were never freed, in particular
 class instances


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@92420 936e1b1b-40f2-da11-902a-00137254ae57
2005-06-22 10:32:05 +00:00