[python-win32] IE HTML DOM events

2006-08-28 Thread Richard Liao
Hi, I have a win32com application need to get IE HTML DOM events. I searched web for a few days, and I have found 4 methods to approach that. Sorry about this long text, because I want to give more hint. 1. method 1 #-- #

[python-win32] Shape file field update problem

2006-08-28 Thread Brad Posthumus
The CalculateField method uses VBScript, which does not support the FORMAT command. Try doing a search for "VBScript" and "FORMAT" to find an alternative method of formatting the date in a text field. As mentioned before this is not a Python issue. For future ArcGIS scripting questions, you wil

Re: [python-win32] PythonScript, unloading the Python engine

2006-08-28 Thread Mark Hammond
> Hi, > > Is it possible to (forcibly) unload the python engine after executing > a python script? Nope - Python has no facility for unloading extension modules, which means that repeated Inits and Terms in the same process tends to be problematic - and as a result we don't finalize at all. We us

Re: [python-win32] I do not manage to call methods in automated objectssince InvokeTypes() fails

2006-08-28 Thread Mark Hammond
> I am trying to write a client application that uses our com server > (automated) interface. > Usually VB scripts or C++ programs provide these client applications. > I use early binding by running makepy. > I manage to access all propertied, yet do not manage to call methods. > The InvokeTypes()

Re: [python-win32] Unexpected exception in gateway method 'AddTypeLib'with own Active Script Host

2006-08-28 Thread Johan Lindvall
The error was in our code. IActiveScriptSite::GetLCID returned garbage (even though we used the sample provided by Microsoft). Regards, -- /Johan. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win

Re: [python-win32] Memory Consumption when running Python COM Script

2006-08-28 Thread Mark Hammond
> > That is not expected. _make_method_ stores a copy of the method in > > self._builtMethods_ (line 309). A further __getattr__ for > that name should > > locate it. You may have found a 'bug' (or maybe it should > be called an > > un-optimization) when the default method name is used > though

[python-win32] PythonScript, unloading the Python engine

2006-08-28 Thread Johan Lindvall
Hi, Is it possible to (forcibly) unload the python engine after executing a python script? I would like to have the Dlls unloaded after Release in the following code: #define WINVER 0x400 #define _WIN32_WINNT 0x400 #include #include #include int main(int argc, char* argv[]) { CoInitialize

Re: [python-win32] Memory Consumption when running Python COM Script

2006-08-28 Thread Johan Lindvall
> That is not expected. _make_method_ stores a copy of the method in > self._builtMethods_ (line 309). A further __getattr__ for that name should > locate it. You may have found a 'bug' (or maybe it should be called an > un-optimization) when the default method name is used though - what is the

[python-win32] I do not manage to call methods in automated objects since InvokeTypes() fails

2006-08-28 Thread Amir Ein Dor
Dear python-win32 volunteers (I resent this mail because before I was not a subscriber) I was hopping to manage to introduce python into our product, starting with testing utilities and then who knows ... But I am blocked with the following: I am trying to write a client application that uses

Re: [python-win32] Memory Consumption when running Python COM Script

2006-08-28 Thread Mark Hammond
> I have investigated this further and found that python appears to > compile the Value call for each loop iteration (dynamic.py, row 300). > The compiled python objects are somehow kept during the lifetime of > the script. Is this correct? That is not expected. _make_method_ stores a copy of the