pywin32-bugs Mailing List for Python for Windows Extensions (Page 84)
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
(24) |
May
(19) |
Jun
(15) |
Jul
(43) |
Aug
(39) |
Sep
(25) |
Oct
(43) |
Nov
(19) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(21) |
Feb
(18) |
Mar
(14) |
Apr
(80) |
May
(56) |
Jun
(24) |
Jul
(30) |
Aug
(17) |
Sep
(36) |
Oct
(106) |
Nov
(38) |
Dec
(30) |
2005 |
Jan
(14) |
Feb
(14) |
Mar
(48) |
Apr
(28) |
May
(49) |
Jun
(23) |
Jul
(9) |
Aug
(13) |
Sep
(28) |
Oct
(21) |
Nov
(8) |
Dec
(26) |
2006 |
Jan
(56) |
Feb
(33) |
Mar
(33) |
Apr
(18) |
May
(16) |
Jun
(9) |
Jul
(24) |
Aug
(16) |
Sep
(14) |
Oct
(37) |
Nov
(38) |
Dec
(22) |
2007 |
Jan
(7) |
Feb
(16) |
Mar
(11) |
Apr
(15) |
May
(15) |
Jun
(8) |
Jul
(24) |
Aug
(26) |
Sep
(18) |
Oct
(11) |
Nov
(20) |
Dec
(1) |
2008 |
Jan
(19) |
Feb
(55) |
Mar
(7) |
Apr
(35) |
May
(66) |
Jun
(38) |
Jul
(26) |
Aug
(5) |
Sep
(25) |
Oct
(25) |
Nov
(18) |
Dec
(18) |
2009 |
Jan
(25) |
Feb
(38) |
Mar
(29) |
Apr
(25) |
May
(5) |
Jun
(11) |
Jul
(16) |
Aug
(16) |
Sep
(16) |
Oct
(1) |
Nov
(15) |
Dec
(33) |
2010 |
Jan
(13) |
Feb
(11) |
Mar
(1) |
Apr
(24) |
May
(26) |
Jun
(19) |
Jul
(22) |
Aug
(51) |
Sep
(38) |
Oct
(39) |
Nov
(25) |
Dec
(27) |
2011 |
Jan
(40) |
Feb
(31) |
Mar
(21) |
Apr
(42) |
May
(11) |
Jun
(16) |
Jul
(20) |
Aug
(14) |
Sep
(6) |
Oct
(8) |
Nov
(34) |
Dec
(7) |
2012 |
Jan
(60) |
Feb
(24) |
Mar
(6) |
Apr
(28) |
May
(41) |
Jun
(15) |
Jul
(14) |
Aug
(25) |
Sep
(30) |
Oct
(18) |
Nov
(30) |
Dec
(9) |
2013 |
Jan
(3) |
Feb
(8) |
Mar
(17) |
Apr
(23) |
May
(34) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2005-08-12 15:48:56
|
Bugs item #1257754, was opened at 2005-08-12 10:48 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1257754&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Open Resolution: None Priority: 5 Submitted By: Todd (goldfita) Assigned to: Nobody/Anonymous (nobody) Summary: dbi.internal-error executing stored procedure Initial Comment: Sorry if this is not a bug. I haven't been able to find much documentation. I get the following error: dbi.internal-error: [Microsoft][ODBC SQL Server Driver] Invalid Descriptor Index in FETCH The table has an image column and a timestamp column, and I just select a single row. I was able to execute other stored procedures without trouble. And I can execute the one that causes a problem without trouble using jdbc. I tried shortening the data in the image column to just a few bytes, but that didn't help. The code is below. import dbi, odbc try: s = odbc.odbc('xxx/xxx/xxx') cur = s.cursor() cur.execute('exec my_proc 5') print cur.fetchone() except NameError,e: print 'error ', e, 'undefined' See also - http://mail.python.org/pipermail/tutor/2001- March/004637.html ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1257754&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-08-11 13:30:13
|
Bugs item #1253931, was opened at 2005-08-08 08:21 Message generated for change (Comment added) made by pijanakrava You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1253931&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: installation Group: None Status: Open Resolution: None Priority: 5 Submitted By: karen (karent) Assigned to: Nobody/Anonymous (nobody) Summary: NT4 SP6 Build 204 creating dir ..\gen_py function not avail Initial Comment: Installing Build 204 on NT4 SP6, get the following error: Creating Directory c:\python\Lib\site- packages\win32com\gen_py function not available. Only happening on NT ..... how do I fix it and what is the impact on the remaining installation. ---------------------------------------------------------------------- Comment By: SEEWALD Christophe (pijanakrava) Date: 2005-08-11 15:30 Message: Logged In: YES user_id=814642 actually it also happens on win2k where the c:\python\Lib\site- packages\win32com\gen_py is empty. But the code for gen_py is in c:\python\Lib\site-packages\win32com\client so maybe the gen_py directory should just be removed. Since I'm not a pro with pywin32's sources, that's just an observation. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1253931&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-08-10 04:06:28
|
Bugs item #1255370, was opened at 2005-08-09 19:33 Message generated for change (Comment added) made by dpward You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1255370&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: com Group: None Status: Open Resolution: None Priority: 5 Submitted By: David Ward (dpward) Assigned to: Nobody/Anonymous (nobody) Summary: Problem using MS Collaboration Data Objects with build 204 Initial Comment: We are having problems using Microsoft's Collaboration Data Objects (CDO) to send e-mail with pywin32 build 204. Our Python code works perfectly with win32all build 163. Preliminary testing with pywin32 build 200 seemed to indicate that our code works with that as well. This is the end of the traceback message we are getting: File "C:\Program Files\NeTTS\ctb\common\eventplugins\emailoutlook\RAg ent.py", line 604, in SendEmail msg.Update() File "<COMObject <unknown>>", line 3, in Update File "C:\Python23\Lib\site- packages\win32com\client\dynamic.py", line 251, in _ApplyTypes_ result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args) com_error: (-2147352567, 'Exception occurred.', (1087, 'Collaboration Data Objects', ' [Collaboration Data Objects - [E_INVALIDARG(80070057)]]', None, 0, - 2147024809), None) Do you know what change in pywin32 is causing this? Thanks for your help. ---------------------------------------------------------------------- >Comment By: David Ward (dpward) Date: 2005-08-10 00:06 Message: Logged In: YES user_id=1326408 No, the only difference is pywin32 itself. Something in pywin32 has changed between builds 200 and 204 that is breaking CDO. To test this, we started with a clean VMware image with Windows XP and Office XP. We booted from this image and installed Python and pywin32 build 204. We ran our code, and it returned the error above. Then we reverted to the clean VMware image again. We did everything *exactly* the same, except that we installed win32all build 163, but this time our code worked perfectly. We reverted VMware again to the base image, and then used win32all build 200, and also did not notice any problems. The *only* difference in all of these three situations was the pywin32/win32all build version. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-08-09 22:36 Message: Logged In: YES user_id=14198 I've never heard anything similar. You could try explicitly providing any optional args to "Update()", as I believe a subtle change was made to the way default arguments are passed. If it possible something else changed - eg, new CDO version, or the code now using makepy when it previously was not, etc? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1255370&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-08-10 02:36:44
|
Bugs item #1255370, was opened at 2005-08-10 09:33 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1255370&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: com Group: None Status: Open Resolution: None Priority: 5 Submitted By: David Ward (dpward) Assigned to: Nobody/Anonymous (nobody) Summary: Problem using MS Collaboration Data Objects with build 204 Initial Comment: We are having problems using Microsoft's Collaboration Data Objects (CDO) to send e-mail with pywin32 build 204. Our Python code works perfectly with win32all build 163. Preliminary testing with pywin32 build 200 seemed to indicate that our code works with that as well. This is the end of the traceback message we are getting: File "C:\Program Files\NeTTS\ctb\common\eventplugins\emailoutlook\RAg ent.py", line 604, in SendEmail msg.Update() File "<COMObject <unknown>>", line 3, in Update File "C:\Python23\Lib\site- packages\win32com\client\dynamic.py", line 251, in _ApplyTypes_ result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args) com_error: (-2147352567, 'Exception occurred.', (1087, 'Collaboration Data Objects', ' [Collaboration Data Objects - [E_INVALIDARG(80070057)]]', None, 0, - 2147024809), None) Do you know what change in pywin32 is causing this? Thanks for your help. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-08-10 12:36 Message: Logged In: YES user_id=14198 I've never heard anything similar. You could try explicitly providing any optional args to "Update()", as I believe a subtle change was made to the way default arguments are passed. If it possible something else changed - eg, new CDO version, or the code now using makepy when it previously was not, etc? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1255370&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-08-09 23:33:55
|
Bugs item #1255370, was opened at 2005-08-09 19:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1255370&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: com Group: None Status: Open Resolution: None Priority: 5 Submitted By: David Ward (dpward) Assigned to: Nobody/Anonymous (nobody) Summary: Problem using MS Collaboration Data Objects with build 204 Initial Comment: We are having problems using Microsoft's Collaboration Data Objects (CDO) to send e-mail with pywin32 build 204. Our Python code works perfectly with win32all build 163. Preliminary testing with pywin32 build 200 seemed to indicate that our code works with that as well. This is the end of the traceback message we are getting: File "C:\Program Files\NeTTS\ctb\common\eventplugins\emailoutlook\RAg ent.py", line 604, in SendEmail msg.Update() File "<COMObject <unknown>>", line 3, in Update File "C:\Python23\Lib\site- packages\win32com\client\dynamic.py", line 251, in _ApplyTypes_ result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args) com_error: (-2147352567, 'Exception occurred.', (1087, 'Collaboration Data Objects', ' [Collaboration Data Objects - [E_INVALIDARG(80070057)]]', None, 0, - 2147024809), None) Do you know what change in pywin32 is causing this? Thanks for your help. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1255370&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-08-08 06:21:53
|
Bugs item #1253931, was opened at 2005-08-08 16:21 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1253931&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: installation Group: None Status: Open Resolution: None Priority: 5 Submitted By: karen (karent) Assigned to: Nobody/Anonymous (nobody) Summary: NT4 SP6 Build 204 creating dir ..\gen_py function not avail Initial Comment: Installing Build 204 on NT4 SP6, get the following error: Creating Directory c:\python\Lib\site- packages\win32com\gen_py function not available. Only happening on NT ..... how do I fix it and what is the impact on the remaining installation. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1253931&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-08-02 22:30:24
|
Feature Requests item #1124115, was opened at 2005-02-17 04:36 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1124115&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: Next Release (example) Status: Open Resolution: None Priority: 5 Submitted By: Ian Storrs (ian_001) Assigned to: Nobody/Anonymous (nobody) Summary: Update Win32ras for new RAS functions Initial Comment: Update Win32ras to provide ability to fetch the RAS local and remote server IP addresses, read the RAS counters for a connection, and clear the RAS counters for a connection. This means updating WINVER, using the lastest ras.h include file from Microsoft, and checking that ras32api.dll is loaded at run time to avoid problems on older OS's i.e. anything other than Win2k and WinXP. Necessary code changes are below. I have built and verified these changes on Win32Extensions 2.03 with Python 2.3. #ifndef WINVER #define WINVER 0x500 #endif // @pymethod |win32ras|GetIpAddress|Returns a list of IP addresses. static PyObject * PyRasGetIpAddress( PyObject *self, PyObject *args ) { RASPPPIP lpprojection; HRASCONN hras; DWORD rc; DWORD bufsize; if (!PyArg_ParseTuple(args, "i:GetIpAddress", &hras)) // @pyparm int|hras||The handle to the RAS connection being checked. return NULL; RASCONNSTATUS cs; // @pyseeapi RasGetConnectStatus cs.dwSize = sizeof(RASCONNSTATUS); if ((rc=RasGetConnectStatus(hras, &cs ))) return ReturnRasError ("RasGetIpAddress",rc); // @pyseeapi RasGetConnectStatus if (!(cs.rasconnstate==RASCS_Connected)) return ReturnRasError ("RasGetIpAddress"); // @pyseeapi RasGetConnectStatus lpprojection.dwSize = bufsize = sizeof (RASPPPIP); // @pyseeapi RasGetErrorString if (rc=RasGetProjectionInfo (hras,RASP_PppIp,&lpprojection,&bufsize)) return ReturnRasError ("RasGetIpAddress",rc); return Py_BuildValue ("(ss)",lpprojection.szIpAddress, lpprojection.szServerIpAddress); } #if (WINVER >= 0x500) // @pymethod |win32ras|GetConnectionStatistics|Returns a list of RAS statistics. static PyObject * PyRasGetConnectionStatistics( PyObject *self, PyObject *args ) { RAS_STATS rasstats; HRASCONN hras; DWORD rc; DWORD bufsize; if (!PyArg_ParseTuple (args, "i:GetConnectionStatistics", &hras)) // @pyparm int|hras||The handle to the RAS connection being checked. return NULL; HINSTANCE hLib = LoadLibrary ("RASAPI32.DLL"); // Try to load the library if (hLib == NULL) return NULL; // Return NULL if RASAPI32.DLL is not loaded on the system FreeLibrary(hLib); RASCONNSTATUS cs; // @pyseeapi RasGetConnectStatus cs.dwSize = sizeof(RASCONNSTATUS); if ((rc=RasGetConnectStatus(hras, &cs ))) return ReturnRasError ("RasGetConnectionStatistics",rc); // @pyseeapi RasGetConnectStatus if (!(cs.rasconnstate==RASCS_Connected)) return ReturnRasError ("RasGetConnectionStatistics"); // @pyseeapi RasGetConnectStatus rasstats.dwSize = bufsize = sizeof (RAS_STATS); // @pyseeapi RasGetConnectionStatistics if (rc=RasGetConnectionStatistics (hras,&rasstats)) return ReturnRasError ("RasGetConnectionStatistics",rc); return Py_BuildValue ("(iiiiiiiii)",rasstats.dwBytesXmited, rasstats.dwBytesRcved, rasstats.dwCrcErr, rasstats.dwTimeoutErr, rasstats.dwAlignmentErr, rasstats.dwHardwareOverrunErr, rasstats.dwFramingErr, rasstats.dwBufferOverrunErr, rasstats.dwConnectDuration); } static PyObject * // @pymethod |win32ras|ClearConnectionStatistics|Clears ths RAS statistics and returns 1 if successful. PyRasClearConnectionStatistics( PyObject *self, PyObject *args ) { HRASCONN hras; DWORD rc; if (!PyArg_ParseTuple (args, "i:ClearConnectionStatistics", &hras)) // @pyparm int|hras||The handle to the RAS connection being checked. return NULL; HINSTANCE hLib = LoadLibrary ("RASAPI32.DLL"); // Try to load the library if (hLib == NULL) return NULL; // Return NULL if RASAPI32.DLL is not loaded on the system FreeLibrary(hLib); RASCONNSTATUS cs; // @pyseeapi RasGetConnectStatus cs.dwSize = sizeof(RASCONNSTATUS); if ((rc=RasGetConnectStatus(hras, &cs ))) return ReturnRasError ("RasClearConnectionStatistics",rc); // @pyseeapi RasGetConnectStatus if (!(cs.rasconnstate==RASCS_Connected)) return ReturnRasError ("RasClearConnectionStatistics"); // @pyseeapi RasGetConnectStatus // @pyseeapi RasGetConnectionStatistics if (rc=RasClearConnectionStatistics(hras)) return ReturnRasError ("RasClearConnectionStatistics",rc); BOOL bRet = 1; return Py_BuildValue("i", bRet); } #endif /* List of functions exported by this module */ // @module win32ras|A module encapsulating the Windows Remote Access Service (RAS) API. static struct PyMethodDef win32ras_functions[] = { {"CreatePhonebookEntry", PyRasCreatePhonebookEntry, METH_VARARGS}, // @pymeth CreatePhonebookEntry|Creates a new phonebook entry. The function displays a dialog box into which the user can enter information about the entry. {"Dial", PyRasDial, METH_VARARGS}, // @pymeth Dial|Establishes a RAS connection to a RAS server. {"EditPhonebookEntry", PyRasEditPhonebookEntry, METH_VARARGS}, // @pymeth EditPhonebookEntry|Creates a new phonebook entry. The function displays a dialog box into which the user can enter information about the entry {"EnumConnections", PyRasEnumConnections, METH_VARARGS}, // @pymeth EnumConnections|Returns a list of tuples, one for each active connection. {"EnumEntries", PyRasEnumEntries, METH_VARARGS}, // @pymeth EnumEntries|Returns a list of tuples, one for each phonebook entry. {"GetConnectStatus", PyRasGetConnectStatus, METH_VARARGS}, // @pymeth GetConnectStatus|Returns a tuple with connection information. {"GetEntryDialParams", PyRasGetEntryDialParams, METH_VARARGS}, // @pymeth GetEntryDialParams|Returns a tuple with the most recently set dial parameters for the specified entry. {"GetErrorString", PyRasGetErrorString, METH_VARARGS}, // @pymeth GetErrorString|Returns an error string for a RAS error code. {"HangUp", PyRasHangUp, METH_VARARGS}, // @pymeth HangUp|Terminates a remote access session. {"IsHandleValid", PyRasIsHandleValid, METH_VARARGS}, // @pymeth IsHandleValid|Indicates if the given RAS handle is valid. {"SetEntryDialParams", PyRasSetEntryDialParams, METH_VARARGS}, // @pymeth SetEntryDialParams|Sets the dial parameters for the specified entry. {"RASDIALEXTENSIONS", PyWinObject_NewRASDIALEXTENSIONS, METH_VARARGS}, // @pymeth RASDIALEXTENSIONS|Creates a new <o RASDIALEXTENSIONS> object {"GetIPAddress", PyRasGetIpAddress, METH_VARARGS}, // @pymeth GetIPAddress|Gets the PPP IP address for remote access session. #if (WINVER >= 0x500) {"GetConnectionStatistics", PyRasGetConnectionStatistics, METH_VARARGS}, // @pymeth GetConnectionStatistics|Gets the statistics for remote access connection. {"ClearConnectionStatistics", PyRasClearConnectionStatistics, METH_VARARGS}, // @pymeth GetConnectionStatistics|Gets the statistics for remote access connection. #endif {NULL, NULL} }; ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-08-03 08:30 Message: Logged In: YES user_id=14198 MSDN says RasGetProjectionStatus is available for NT - so win32ras should be fine, even if it does involve bumping WINVER. Implementing only one kind of projection is fine - just so long as it is capable of being extended further. For example, you should still accept a RASPROJECTION param, but raise a NotImplementedError if the value is not one supported. Thanks! ---------------------------------------------------------------------- Comment By: Ian Storrs (ian_001) Date: 2005-08-02 22:05 Message: Logged In: YES user_id=956816 OK can remove the code for GetConnectionStatistics and ClearConnectionStatistics completely from win32ras and leave it in win2kras as requested. I can also remove the checks of Ras status before calling them. About GetProjectionStatus - I can make the change as requested, but only for RASPPPIP, not the others. So this will be a hardcode version that does not handle the other 6 rasprojection values. I do not currently have time to work on mapping all of these structures. Is that OK? Then the question is how to handle the RASPPPIP structure, since it contains a check on Winver=0x500 - do I leave it in win32ras with an ifdef, or move it to win2kras without an ifdef, or have 2 versions (in which case will the win2kras version override the win32ras version) ? /Ian ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-06-26 23:17 Message: Logged In: YES user_id=14198 Sorry for the delay. * It looks like only GetIpAddress() has been added to the method table of win32rasmodule.cpp - GetConnectionStatistics and ClearConnectionStatistics seem missing (ahh - I see - you accidently left the these methods in win32ras *and* added them to win2kras) * Can we change GetIpAddress() to GetProjectionInfo and return everyting in the RASPPPIP structure. * I think it would be better to not check the RAS status before calling these functions - just let the API itself return the appropriate error code - it will be clearer to the user. It would be fantastic if you could make these changes for me and upload a new patch. Thanks, Mark ---------------------------------------------------------------------- Comment By: Ian Storrs (ian_001) Date: 2005-06-14 00:09 Message: Logged In: YES user_id=956816 I have made the requested changes to win32ras and win2kras and attached the two files. Best Regards Ian ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-03-05 09:36 Message: Logged In: YES user_id=14198 There is a win2kras module designed to avoid needing to LoadLibrary functions. Can you please reapply you patch to this module (and you can drop the LoadLibrary) Also, pyseeapi for ClearConnectionStatistics is wrong :) Thanks ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1124115&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-08-02 12:05:36
|
Feature Requests item #1124115, was opened at 2005-02-16 12:36 Message generated for change (Comment added) made by ian_001 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1124115&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: Next Release (example) Status: Open Resolution: None Priority: 5 Submitted By: Ian Storrs (ian_001) Assigned to: Nobody/Anonymous (nobody) Summary: Update Win32ras for new RAS functions Initial Comment: Update Win32ras to provide ability to fetch the RAS local and remote server IP addresses, read the RAS counters for a connection, and clear the RAS counters for a connection. This means updating WINVER, using the lastest ras.h include file from Microsoft, and checking that ras32api.dll is loaded at run time to avoid problems on older OS's i.e. anything other than Win2k and WinXP. Necessary code changes are below. I have built and verified these changes on Win32Extensions 2.03 with Python 2.3. #ifndef WINVER #define WINVER 0x500 #endif // @pymethod |win32ras|GetIpAddress|Returns a list of IP addresses. static PyObject * PyRasGetIpAddress( PyObject *self, PyObject *args ) { RASPPPIP lpprojection; HRASCONN hras; DWORD rc; DWORD bufsize; if (!PyArg_ParseTuple(args, "i:GetIpAddress", &hras)) // @pyparm int|hras||The handle to the RAS connection being checked. return NULL; RASCONNSTATUS cs; // @pyseeapi RasGetConnectStatus cs.dwSize = sizeof(RASCONNSTATUS); if ((rc=RasGetConnectStatus(hras, &cs ))) return ReturnRasError ("RasGetIpAddress",rc); // @pyseeapi RasGetConnectStatus if (!(cs.rasconnstate==RASCS_Connected)) return ReturnRasError ("RasGetIpAddress"); // @pyseeapi RasGetConnectStatus lpprojection.dwSize = bufsize = sizeof (RASPPPIP); // @pyseeapi RasGetErrorString if (rc=RasGetProjectionInfo (hras,RASP_PppIp,&lpprojection,&bufsize)) return ReturnRasError ("RasGetIpAddress",rc); return Py_BuildValue ("(ss)",lpprojection.szIpAddress, lpprojection.szServerIpAddress); } #if (WINVER >= 0x500) // @pymethod |win32ras|GetConnectionStatistics|Returns a list of RAS statistics. static PyObject * PyRasGetConnectionStatistics( PyObject *self, PyObject *args ) { RAS_STATS rasstats; HRASCONN hras; DWORD rc; DWORD bufsize; if (!PyArg_ParseTuple (args, "i:GetConnectionStatistics", &hras)) // @pyparm int|hras||The handle to the RAS connection being checked. return NULL; HINSTANCE hLib = LoadLibrary ("RASAPI32.DLL"); // Try to load the library if (hLib == NULL) return NULL; // Return NULL if RASAPI32.DLL is not loaded on the system FreeLibrary(hLib); RASCONNSTATUS cs; // @pyseeapi RasGetConnectStatus cs.dwSize = sizeof(RASCONNSTATUS); if ((rc=RasGetConnectStatus(hras, &cs ))) return ReturnRasError ("RasGetConnectionStatistics",rc); // @pyseeapi RasGetConnectStatus if (!(cs.rasconnstate==RASCS_Connected)) return ReturnRasError ("RasGetConnectionStatistics"); // @pyseeapi RasGetConnectStatus rasstats.dwSize = bufsize = sizeof (RAS_STATS); // @pyseeapi RasGetConnectionStatistics if (rc=RasGetConnectionStatistics (hras,&rasstats)) return ReturnRasError ("RasGetConnectionStatistics",rc); return Py_BuildValue ("(iiiiiiiii)",rasstats.dwBytesXmited, rasstats.dwBytesRcved, rasstats.dwCrcErr, rasstats.dwTimeoutErr, rasstats.dwAlignmentErr, rasstats.dwHardwareOverrunErr, rasstats.dwFramingErr, rasstats.dwBufferOverrunErr, rasstats.dwConnectDuration); } static PyObject * // @pymethod |win32ras|ClearConnectionStatistics|Clears ths RAS statistics and returns 1 if successful. PyRasClearConnectionStatistics( PyObject *self, PyObject *args ) { HRASCONN hras; DWORD rc; if (!PyArg_ParseTuple (args, "i:ClearConnectionStatistics", &hras)) // @pyparm int|hras||The handle to the RAS connection being checked. return NULL; HINSTANCE hLib = LoadLibrary ("RASAPI32.DLL"); // Try to load the library if (hLib == NULL) return NULL; // Return NULL if RASAPI32.DLL is not loaded on the system FreeLibrary(hLib); RASCONNSTATUS cs; // @pyseeapi RasGetConnectStatus cs.dwSize = sizeof(RASCONNSTATUS); if ((rc=RasGetConnectStatus(hras, &cs ))) return ReturnRasError ("RasClearConnectionStatistics",rc); // @pyseeapi RasGetConnectStatus if (!(cs.rasconnstate==RASCS_Connected)) return ReturnRasError ("RasClearConnectionStatistics"); // @pyseeapi RasGetConnectStatus // @pyseeapi RasGetConnectionStatistics if (rc=RasClearConnectionStatistics(hras)) return ReturnRasError ("RasClearConnectionStatistics",rc); BOOL bRet = 1; return Py_BuildValue("i", bRet); } #endif /* List of functions exported by this module */ // @module win32ras|A module encapsulating the Windows Remote Access Service (RAS) API. static struct PyMethodDef win32ras_functions[] = { {"CreatePhonebookEntry", PyRasCreatePhonebookEntry, METH_VARARGS}, // @pymeth CreatePhonebookEntry|Creates a new phonebook entry. The function displays a dialog box into which the user can enter information about the entry. {"Dial", PyRasDial, METH_VARARGS}, // @pymeth Dial|Establishes a RAS connection to a RAS server. {"EditPhonebookEntry", PyRasEditPhonebookEntry, METH_VARARGS}, // @pymeth EditPhonebookEntry|Creates a new phonebook entry. The function displays a dialog box into which the user can enter information about the entry {"EnumConnections", PyRasEnumConnections, METH_VARARGS}, // @pymeth EnumConnections|Returns a list of tuples, one for each active connection. {"EnumEntries", PyRasEnumEntries, METH_VARARGS}, // @pymeth EnumEntries|Returns a list of tuples, one for each phonebook entry. {"GetConnectStatus", PyRasGetConnectStatus, METH_VARARGS}, // @pymeth GetConnectStatus|Returns a tuple with connection information. {"GetEntryDialParams", PyRasGetEntryDialParams, METH_VARARGS}, // @pymeth GetEntryDialParams|Returns a tuple with the most recently set dial parameters for the specified entry. {"GetErrorString", PyRasGetErrorString, METH_VARARGS}, // @pymeth GetErrorString|Returns an error string for a RAS error code. {"HangUp", PyRasHangUp, METH_VARARGS}, // @pymeth HangUp|Terminates a remote access session. {"IsHandleValid", PyRasIsHandleValid, METH_VARARGS}, // @pymeth IsHandleValid|Indicates if the given RAS handle is valid. {"SetEntryDialParams", PyRasSetEntryDialParams, METH_VARARGS}, // @pymeth SetEntryDialParams|Sets the dial parameters for the specified entry. {"RASDIALEXTENSIONS", PyWinObject_NewRASDIALEXTENSIONS, METH_VARARGS}, // @pymeth RASDIALEXTENSIONS|Creates a new <o RASDIALEXTENSIONS> object {"GetIPAddress", PyRasGetIpAddress, METH_VARARGS}, // @pymeth GetIPAddress|Gets the PPP IP address for remote access session. #if (WINVER >= 0x500) {"GetConnectionStatistics", PyRasGetConnectionStatistics, METH_VARARGS}, // @pymeth GetConnectionStatistics|Gets the statistics for remote access connection. {"ClearConnectionStatistics", PyRasClearConnectionStatistics, METH_VARARGS}, // @pymeth GetConnectionStatistics|Gets the statistics for remote access connection. #endif {NULL, NULL} }; ---------------------------------------------------------------------- >Comment By: Ian Storrs (ian_001) Date: 2005-08-02 08:05 Message: Logged In: YES user_id=956816 OK can remove the code for GetConnectionStatistics and ClearConnectionStatistics completely from win32ras and leave it in win2kras as requested. I can also remove the checks of Ras status before calling them. About GetProjectionStatus - I can make the change as requested, but only for RASPPPIP, not the others. So this will be a hardcode version that does not handle the other 6 rasprojection values. I do not currently have time to work on mapping all of these structures. Is that OK? Then the question is how to handle the RASPPPIP structure, since it contains a check on Winver=0x500 - do I leave it in win32ras with an ifdef, or move it to win2kras without an ifdef, or have 2 versions (in which case will the win2kras version override the win32ras version) ? /Ian ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-06-26 09:17 Message: Logged In: YES user_id=14198 Sorry for the delay. * It looks like only GetIpAddress() has been added to the method table of win32rasmodule.cpp - GetConnectionStatistics and ClearConnectionStatistics seem missing (ahh - I see - you accidently left the these methods in win32ras *and* added them to win2kras) * Can we change GetIpAddress() to GetProjectionInfo and return everyting in the RASPPPIP structure. * I think it would be better to not check the RAS status before calling these functions - just let the API itself return the appropriate error code - it will be clearer to the user. It would be fantastic if you could make these changes for me and upload a new patch. Thanks, Mark ---------------------------------------------------------------------- Comment By: Ian Storrs (ian_001) Date: 2005-06-13 10:09 Message: Logged In: YES user_id=956816 I have made the requested changes to win32ras and win2kras and attached the two files. Best Regards Ian ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-03-04 17:36 Message: Logged In: YES user_id=14198 There is a win2kras module designed to avoid needing to LoadLibrary functions. Can you please reapply you patch to this module (and you can drop the LoadLibrary) Also, pyseeapi for ClearConnectionStatistics is wrong :) Thanks ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1124115&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-07-27 17:45:12
|
Bugs item #1246207, was opened at 2005-07-27 12:45 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1246207&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Open Resolution: None Priority: 5 Submitted By: Justin Johnson (justincjohnson) Assigned to: Nobody/Anonymous (nobody) Summary: GetMessage/PeekMessage not found in win32api Initial Comment: PostThreadMessage exists in win32api, but not GetMessage/PeekMessage. I'm not sure why this is, but I need access to those functions. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1246207&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-07-26 22:48:36
|
Bugs item #1243330, was opened at 2005-07-23 07:09 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1243330&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Arioch (thomasjeffrey) Assigned to: Nobody/Anonymous (nobody) Summary: Cant find an installed platform SDK Initial Comment: I'm trying to install the pywin32 extension and keep getting the following error whenever I try to do it " warning-can cant find all and installed form platform SDK error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but but it isn't installed." I successfully installed the platform SDK for Microsoft and tried reinstalling the extension I'm still getting the same error. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-07-27 08:48 Message: Logged In: YES user_id=14198 You need both a compiler (VC6 for Python 2.3 and earlier, VC7 for later) and the platform SDK to build these extensions from source-code. However, it isn't clear that you actually need to build from source code - is there a reason you can't use the pre-built binaries? ---------------------------------------------------------------------- Comment By: Arioch (thomasjeffrey) Date: 2005-07-27 01:54 Message: Logged In: YES user_id=1317225 Does this mean actually have to have Microsoft Visual Studio 6 installed? I just installed the Microsoft software development kit available online, as I assumed that's what the prerequisites were. if you are saying they actually need visual C. version 6 and I will go and see if I can locate it thanks for your assistance so far ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-07-25 08:21 Message: Logged In: YES user_id=14198 This error sounds like it is MSVC6 itself that can not be located. If you recently installed it, you must start the MSVC6 dev environment before it will be found by distutils. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1243330&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-07-26 15:54:47
|
Bugs item #1243330, was opened at 2005-07-22 21:09 Message generated for change (Comment added) made by thomasjeffrey You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1243330&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Arioch (thomasjeffrey) Assigned to: Nobody/Anonymous (nobody) Summary: Cant find an installed platform SDK Initial Comment: I'm trying to install the pywin32 extension and keep getting the following error whenever I try to do it " warning-can cant find all and installed form platform SDK error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but but it isn't installed." I successfully installed the platform SDK for Microsoft and tried reinstalling the extension I'm still getting the same error. ---------------------------------------------------------------------- >Comment By: Arioch (thomasjeffrey) Date: 2005-07-26 15:54 Message: Logged In: YES user_id=1317225 Does this mean actually have to have Microsoft Visual Studio 6 installed? I just installed the Microsoft software development kit available online, as I assumed that's what the prerequisites were. if you are saying they actually need visual C. version 6 and I will go and see if I can locate it thanks for your assistance so far ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-07-24 22:21 Message: Logged In: YES user_id=14198 This error sounds like it is MSVC6 itself that can not be located. If you recently installed it, you must start the MSVC6 dev environment before it will be found by distutils. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1243330&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-07-24 22:21:51
|
Bugs item #1243330, was opened at 2005-07-23 07:09 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1243330&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Arioch (thomasjeffrey) Assigned to: Nobody/Anonymous (nobody) Summary: Cant find an installed platform SDK Initial Comment: I'm trying to install the pywin32 extension and keep getting the following error whenever I try to do it " warning-can cant find all and installed form platform SDK error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but but it isn't installed." I successfully installed the platform SDK for Microsoft and tried reinstalling the extension I'm still getting the same error. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-07-25 08:21 Message: Logged In: YES user_id=14198 This error sounds like it is MSVC6 itself that can not be located. If you recently installed it, you must start the MSVC6 dev environment before it will be found by distutils. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1243330&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-07-22 21:09:12
|
Bugs item #1243330, was opened at 2005-07-22 21:09 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1243330&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Arioch (thomasjeffrey) Assigned to: Nobody/Anonymous (nobody) Summary: Cant find an installed platform SDK Initial Comment: I'm trying to install the pywin32 extension and keep getting the following error whenever I try to do it " warning-can cant find all and installed form platform SDK error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but but it isn't installed." I successfully installed the platform SDK for Microsoft and tried reinstalling the extension I'm still getting the same error. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1243330&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-07-11 19:44:50
|
Bugs item #1236275, was opened at 2005-07-11 13:44 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1236275&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Vaughn Seward (cflat7) Assigned to: Nobody/Anonymous (nobody) Summary: Sorting of the objects/defs in Class List Panel Initial Comment: I like the idea of the Class List panel (panel at the left-hand side of the code) but it is sorted alphabetically. I don't necessarily organize the classes and defines in my modules alphabetically. I therefore find the panel confusing and as a result cannot use it. Why not provide an option to sort it the same way that it appears in the code? ~Vaughn ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1236275&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-07-06 21:06:01
|
Bugs item #1232272, was opened at 2005-07-04 17:24 Message generated for change (Comment added) made by jmgouzit You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1232272&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: jmg (jmgouzit) Assigned to: Nobody/Anonymous (nobody) Summary: slow start up and shut down time Initial Comment: for a few weeks i have significant (and new) delay when launching and stoping pythonwin. i have already reinstalled pythonwin and deleted python24.dll, pywintypes24.dll, and pythoncom24.dll which where outside the windows system directory. but nothing change. what can i do to find the reason ? config : win xp sp2, python 2.4.1, pythonwin buid 204. my other extensions are pysqlite2, pychecker, ctypes, elementidy, elementtree. thanks for help. jm. ---------------------------------------------------------------------- >Comment By: jmg (jmgouzit) Date: 2005-07-06 23:05 Message: Logged In: YES user_id=1307294 yes i've got plenty of (more than 1000) : -HKEY_CURRENT_USER\Software\Python 2.4\Python for Win32\ToolbarDebugging-BarNNNN - HKEY_CURRENT_USER\Software\Python 2.4\Python for Win32\ToolbarDefault-BarNNNN. after deleting then enture key everything seem ok !! thanks for your reply. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-07-05 02:11 Message: Logged In: YES user_id=14198 Could you please check your registry under the key HKEY_CURRENT_USER\Software\Python 2.4\Python for Win32 - there may be many "Toolbar" sub-keys. If so, please delete them (deleting that entire key may be easier) and see if they come back (note that ~10 entries is normal - hundreds is not!) This bug should be fixed in build 204, so may not come back for you (ie, the entries may have been written by 203) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1232272&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-07-05 00:11:06
|
Bugs item #1232272, was opened at 2005-07-05 01:24 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1232272&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: jmg (jmgouzit) Assigned to: Nobody/Anonymous (nobody) Summary: slow start up and shut down time Initial Comment: for a few weeks i have significant (and new) delay when launching and stoping pythonwin. i have already reinstalled pythonwin and deleted python24.dll, pywintypes24.dll, and pythoncom24.dll which where outside the windows system directory. but nothing change. what can i do to find the reason ? config : win xp sp2, python 2.4.1, pythonwin buid 204. my other extensions are pysqlite2, pychecker, ctypes, elementidy, elementtree. thanks for help. jm. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-07-05 10:11 Message: Logged In: YES user_id=14198 Could you please check your registry under the key HKEY_CURRENT_USER\Software\Python 2.4\Python for Win32 - there may be many "Toolbar" sub-keys. If so, please delete them (deleting that entire key may be easier) and see if they come back (note that ~10 entries is normal - hundreds is not!) This bug should be fixed in build 204, so may not come back for you (ie, the entries may have been written by 203) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1232272&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-07-04 15:24:05
|
Bugs item #1232272, was opened at 2005-07-04 17:24 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1232272&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: jmg (jmgouzit) Assigned to: Nobody/Anonymous (nobody) Summary: slow start up and shut down time Initial Comment: for a few weeks i have significant (and new) delay when launching and stoping pythonwin. i have already reinstalled pythonwin and deleted python24.dll, pywintypes24.dll, and pythoncom24.dll which where outside the windows system directory. but nothing change. what can i do to find the reason ? config : win xp sp2, python 2.4.1, pythonwin buid 204. my other extensions are pysqlite2, pychecker, ctypes, elementidy, elementtree. thanks for help. jm. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1232272&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-06-29 04:19:59
|
Feature Requests item #861514, was opened at 2003-12-17 20:19 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=861514&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None >Status: Closed >Resolution: Works For Me Priority: 5 Submitted By: mike foord (fuzzy_dream) Assigned to: Nobody/Anonymous (nobody) Summary: Dedent, Indent Region. Plus Collapsible Sections. Initial Comment: In IDLE I use the Indent and Unindent region options - frequently. Particularly by their shortcuts - 'ctrl-]' and 'ctrl-['. Not only does pythonwin use a different shortcut for dedent region - but it doesn't have a shortcut at all for indent region. For this region I tend to edit my modules in IDLE and only use pythonwin for my main code - because of it's quick 'import/reload - module' option. (Which intermittently fails to reload a module by the way... - *possibly* caused by occasional conflicts with Psyco the optimizing compiler ?). Also an option to collapse sections of code from view would be useful. If these features I request are *already* available - could you contact me on mike at pcblokes dot com ?? Thanks Fuzzy ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-06-29 14:19 Message: Logged In: YES user_id=14198 Folding etc can also be achieved with the keypad +/- and * keys ( the latter collapses every top-level fold) See pywin\default.cfg for keyboard assignment, and the .chm file that ships with pythonwin for more details on the keyboard assignments and how to change them Please re-open if these responses don't answer your questions. ---------------------------------------------------------------------- Comment By: Tony Meyer (anadelonbrin) Date: 2005-06-29 12:24 Message: Logged In: YES user_id=552329 And dedent is shift-tab. These are much more common than ctrl-] and ctrl=] in my experience. To collapse a block, click the little minus on the left of the window that appears at the start of each block. ---------------------------------------------------------------------- Comment By: TLis (tlis) Date: 2005-06-28 05:48 Message: Logged In: YES user_id=1186126 Indent region in pythonwin? Select the region and press Tab key ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=861514&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-06-29 02:24:34
|
Feature Requests item #861514, was opened at 2003-12-17 22:19 Message generated for change (Comment added) made by anadelonbrin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=861514&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Submitted By: mike foord (fuzzy_dream) Assigned to: Nobody/Anonymous (nobody) Summary: Dedent, Indent Region. Plus Collapsible Sections. Initial Comment: In IDLE I use the Indent and Unindent region options - frequently. Particularly by their shortcuts - 'ctrl-]' and 'ctrl-['. Not only does pythonwin use a different shortcut for dedent region - but it doesn't have a shortcut at all for indent region. For this region I tend to edit my modules in IDLE and only use pythonwin for my main code - because of it's quick 'import/reload - module' option. (Which intermittently fails to reload a module by the way... - *possibly* caused by occasional conflicts with Psyco the optimizing compiler ?). Also an option to collapse sections of code from view would be useful. If these features I request are *already* available - could you contact me on mike at pcblokes dot com ?? Thanks Fuzzy ---------------------------------------------------------------------- Comment By: Tony Meyer (anadelonbrin) Date: 2005-06-29 14:24 Message: Logged In: YES user_id=552329 And dedent is shift-tab. These are much more common than ctrl-] and ctrl=] in my experience. To collapse a block, click the little minus on the left of the window that appears at the start of each block. ---------------------------------------------------------------------- Comment By: TLis (tlis) Date: 2005-06-28 07:48 Message: Logged In: YES user_id=1186126 Indent region in pythonwin? Select the region and press Tab key ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=861514&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-06-27 19:48:39
|
Feature Requests item #861514, was opened at 2003-12-17 10:19 Message generated for change (Comment added) made by tlis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=861514&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Submitted By: mike foord (fuzzy_dream) Assigned to: Nobody/Anonymous (nobody) Summary: Dedent, Indent Region. Plus Collapsible Sections. Initial Comment: In IDLE I use the Indent and Unindent region options - frequently. Particularly by their shortcuts - 'ctrl-]' and 'ctrl-['. Not only does pythonwin use a different shortcut for dedent region - but it doesn't have a shortcut at all for indent region. For this region I tend to edit my modules in IDLE and only use pythonwin for my main code - because of it's quick 'import/reload - module' option. (Which intermittently fails to reload a module by the way... - *possibly* caused by occasional conflicts with Psyco the optimizing compiler ?). Also an option to collapse sections of code from view would be useful. If these features I request are *already* available - could you contact me on mike at pcblokes dot com ?? Thanks Fuzzy ---------------------------------------------------------------------- Comment By: TLis (tlis) Date: 2005-06-27 21:48 Message: Logged In: YES user_id=1186126 Indent region in pythonwin? Select the region and press Tab key ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=861514&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-06-27 19:01:44
|
Bugs item #1201289, was opened at 2005-05-13 03:14 Message generated for change (Comment added) made by janusfury You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1201289&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Kevin Gadd (janusfury) Assigned to: Nobody/Anonymous (nobody) Summary: Exception handling code generates malformed EXCEPINFO struct Initial Comment: In ErrorUtils.cpp, the PyCom_ExcepInfoFromPyException function does not zero out the EXCEPINFO structure with ZeroMemory or memset before filling in the data elements, and it does not fill all of them in. Because of this, the Python Active Scripting interface sends malformed errors to script hosts. In particular, the pfnDeferredFillIn member of the EXCEPINFO struct contains a random value. This member is a function pointer, and according to MS's documentation, the only way to prevent it from being called is to assign it a NULL value. The particular script hosting implementation I use attempts to call this pointer upon recieving any and all Python script errors, and the only fix I've been able to come up with is to ignore the field outright (which probably is not correct). If this behavior is by design, any suggestions on a scripting host hack for dealing with this would be appreciated, so I can pass them on to the scripting host's author. ---------------------------------------------------------------------- >Comment By: Kevin Gadd (janusfury) Date: 2005-06-27 12:01 Message: Logged In: YES user_id=313047 My bad! I thought the project maintainer was supposed to be the only one making changes like those. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-06-27 04:38 Message: Logged In: YES user_id=14198 I can't recall from my mail - did you test my changes to this? If so, can you please close it? Thanks ---------------------------------------------------------------------- Comment By: Kevin Gadd (janusfury) Date: 2005-05-17 01:32 Message: Logged In: YES user_id=313047 Sure, I'm using ActiveState Python 2.4.1 (iirc) and would be glad to test an updated version. I should be able to test it pretty easily by disabling the hack I added to get around the issue and seeing if it still works. If I need to I can manually install vanilla Python 2.4 and then win32com, if ActiveState distributes a custom version. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-05-15 18:56 Message: Logged In: YES user_id=14198 It sounds like you are correct. I have made the change here - would you be able to test this for me? If so, what Python version are you using? Mark ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1201289&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-06-27 18:29:38
|
Bugs item #1228438, was opened at 2005-06-27 18:29 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1228438&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: installation Group: None Status: Open Resolution: None Priority: 5 Submitted By: zorzik (zorzik) Assigned to: Nobody/Anonymous (nobody) Summary: pywin requires Microsoft Visual Studio!? Initial Comment: Pywin (pywin32-204.win32-py2.4) cannot be installed, asks for MSVCR71.dll. Guess this file is a dll from Microsoft Visual C++. Its funny that this open source program hosted on sourceforge requires quite expensive microsoft program to be purchased before installation :-) The installation program should at least point to e.g. dll-files.com or better include the file... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1228438&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-06-27 12:41:03
|
Bugs item #1202308, was opened at 2005-05-16 00:09 Message generated for change (Settings changed) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1202308&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: com Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: George van den Driessche (gbmvdd) Assigned to: Nobody/Anonymous (nobody) Summary: genpy.py doesn't catch all dispatchable interfaces. Initial Comment: Symptoms ======== PyWin32 is installed from pywin32-204.win32-py2.3.exe. Using win32com.client to hook events in Visual Studio .NET 2003, the following code fails: -------- bugtest.py -------- from win32com.client.gencache import EnsureModule from win32com.client import Dispatch EnvDTE = EnsureModule( '{80CC9F66-E7D8-4DDD- 85B6-D9E6CD0E93E2}', 0, 7, 0 ) dte = Dispatch( 'VisualStudio.DTE' ) events = dte.Events docEvents = events.DocumentEvents print docEvents -------- bugtest.py -------- The failure is as follows: -------- traceback -------- Traceback (most recent call last): File "C:\dev\PyAddin\BugTest.py", line 7, in -toplevel- docEvents = events.DocumentEvents File "C:\PROGRA~1\Python23\lib\site- packages\win32com\client\__init__.py", line 455, in __getattr__ return self._ApplyTypes_(*args) File "C:\PROGRA~1\Python23\lib\site- packages\win32com\client\__init__.py", line 449, in _ApplyTypes_ user, resultCLSID) File "C:\PROGRA~1\Python23\lib\site- packages\win32com\client\__init__.py", line 467, in _get_good_object_ return _get_good_object_(obj, obUserName, resultCLSID) File "C:\PROGRA~1\Python23\lib\site- packages\win32com\client\__init__.py", line 485, in _get_good_object_ return _get_good_single_object_(obj, obUserName, resultCLSID) File "C:\PROGRA~1\Python23\lib\site- packages\win32com\client\__init__.py", line 472, in _get_good_single_object_ return Dispatch(obj, obUserName, resultCLSID, UnicodeToString=NeedUnicodeConversions) File "C:\PROGRA~1\Python23\lib\site- packages\win32com\client\__init__.py", line 96, in Dispatch return __WrapDispatch(dispatch, userName, resultCLSID, typeinfo, UnicodeToString, clsctx) File "C:\PROGRA~1\Python23\lib\site- packages\win32com\client\__init__.py", line 40, in __WrapDispatch return klass(dispatch) File "C:\PROGRA~1\Python23\lib\site- packages\win32com\client\__init__.py", line 490, in __init__ self.__dict__["_dispobj_"] = self.default_interface(oobj) File "C:\PROGRA~1\Python23\lib\site- packages\win32com\client\__init__.py", line 495, in __getattr__ d=self.__dict__["_dispobj_"] KeyError: '_dispobj_' -------- traceback -------- Cause ===== In genpy.py, _Build_CoClassChildren enumerates the dispatchable interfaces of a coclass, to construct the list of interfaces and dispinterfaces to be generated. But some interfaces, though dispatchable, are not listed as TKIND_DISPATCH (I think these are Automation interfaces as opposed to Dual interfaces; this is just a guess, though). These interfaces then don't get included in the generated module. Listing the dispinterfaces for DocumentEvents using the OLE object viewer that comes with Visual Studio, versus inspecting the generated Python coclass for DocumentEvents, highlights the shortcoming. Possible solution ================= Applying the following patch to genpy.py solves the problem, allowing Visual Studio events to be hooked in Python: -------- diff -------- 680c680,681 < if refAttr.typekind == pythoncom.TKIND_DISPATCH: --- > if refAttr.typekind == pythoncom.TKIND_DISPATCH or > (refAttr.typekind == pythoncom.TKIND_INTERFACE and refAttr[11] & pythoncom.TYPEFLAG_FDISPATCHABLE): -------- diff -------- I have not tried to test whether this has any adverse effects on other aspects of pythoncom. But the additional data in the generated module seems to be healthy. Remarks ======= Visual Studio .NET has a different system of event source objects from Office applications. Office applications are their own event sources, whereas Visual Studio .NET has several different event objects, for Document events, Solution events, IDE events and so on. I suppose this architectural difference is why this bug appears not to have been reported against Office applications too. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-06-27 22:40 Message: Logged In: YES user_id=14198 Thanks - it did require one other change to get all the tests passing, but I tracked that down. Checking in client/genpy.py; new revision: 1.47; previous revision: 1.46 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1202308&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-06-27 12:07:41
|
Bugs item #1202339, was opened at 2005-05-16 01:46 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1202339&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: com Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jason R. Coombs (jaraco) Assigned to: Nobody/Anonymous (nobody) Summary: Early binding of WMI Scripting V1.2 Library hides properties Initial Comment: Using the microsoft sample code located at http://www.microsoft.com/technet/scriptcenter/scripts/python/ad/domains/addmpy01.mspx, I find that the code will not run if the the scripting library (Microsoft WMI Scripting V1.2 Library) is configured for early binding (that is, I use the makepy utility). If I remove the early binding, the script runs fine. With early binding enabled, I get the following output: --- begin output --- Caption: Traceback (most recent call last): File "C:\bin\domain_enum.py", line 7, in ? print "Caption: ", objItem.Caption File "C:\Program Files\Python\Lib\site-packages\win32com\client\__init__.py", line 454, in __getattr__ raise AttributeError, "'%s' object has no attribute '%s'" % (repr(self), attr) AttributeError: '<win32com.gen_py.Microsoft WMI Scripting V1.2 Library.ISWbemObjectEx instance at 0x14848208>' object has no attribute 'Caption' --- end output --- I have found that the objItem.Caption attribute is not available, but I can use objItem.Properties_.Item( 'Caption' ).Value to acquire the correct result. I am unsure how to approach this problem, but I post it for public knowledge. I will be happy to look into the problem further or provide more information, but I would need some direction to proceed. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-06-27 22:07 Message: Logged In: YES user_id=14198 It looks like these interfaces are designed to be used early-bound. I can't find 'Caption' described in the typelib at all. I'm not sure how to proceed either! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1202339&group_id=78018 |
From: SourceForge.net <no...@so...> - 2005-06-27 11:38:13
|
Bugs item #1201289, was opened at 2005-05-13 20:14 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1201289&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Kevin Gadd (janusfury) Assigned to: Nobody/Anonymous (nobody) Summary: Exception handling code generates malformed EXCEPINFO struct Initial Comment: In ErrorUtils.cpp, the PyCom_ExcepInfoFromPyException function does not zero out the EXCEPINFO structure with ZeroMemory or memset before filling in the data elements, and it does not fill all of them in. Because of this, the Python Active Scripting interface sends malformed errors to script hosts. In particular, the pfnDeferredFillIn member of the EXCEPINFO struct contains a random value. This member is a function pointer, and according to MS's documentation, the only way to prevent it from being called is to assign it a NULL value. The particular script hosting implementation I use attempts to call this pointer upon recieving any and all Python script errors, and the only fix I've been able to come up with is to ignore the field outright (which probably is not correct). If this behavior is by design, any suggestions on a scripting host hack for dealing with this would be appreciated, so I can pass them on to the scripting host's author. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-06-27 21:38 Message: Logged In: YES user_id=14198 I can't recall from my mail - did you test my changes to this? If so, can you please close it? Thanks ---------------------------------------------------------------------- Comment By: Kevin Gadd (janusfury) Date: 2005-05-17 18:32 Message: Logged In: YES user_id=313047 Sure, I'm using ActiveState Python 2.4.1 (iirc) and would be glad to test an updated version. I should be able to test it pretty easily by disabling the hack I added to get around the issue and seeing if it still works. If I need to I can manually install vanilla Python 2.4 and then win32com, if ActiveState distributes a custom version. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-05-16 11:56 Message: Logged In: YES user_id=14198 It sounds like you are correct. I have made the change here - would you be able to test this for me? If so, what Python version are you using? Mark ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1201289&group_id=78018 |