pywin32-bugs Mailing List for Python for Windows Extensions (Page 71)
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...> - 2006-10-24 04:28:20
|
Bugs item #1582744, was opened at 2006-10-23 09:44 Message generated for change (Comment added) made by cheengshuchin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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 Private: No Submitted By: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-24 04:28 Message: Logged In: YES user_id=1546069 if I post a smaller file (<1MB), the semple seem work fine, but will fail on large file.... i found it('live headers') already, as priviously i try to find it via FF extension search only...:( those sample(extension_simple.py & advanced.py) only work with small file submit but not for bigggg file.... FYI: ==================== <HTML> <HEAD> <TITLE>Post Data</TITLE> <META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2"> </HEAD> <BODY> <FORM method="POST" action="http://localhost/pyisapi_test/test2?debug=1" enctype='multipart/form-data'> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[2] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[3] cols=35 rows=7></TEXTAREA> <input type="file" name="filen0" > <input type="file" name="filen1" > <INPUT type="Submit" value="Submit"> </FORM> </BODY> </HTML> ==================== new function define in extension_simple.py ----------------------- def test2(self, ecb): print 'TotalBytes :',ecb.TotalBytes print 'AvailableBytes :',ecb.AvailableBytes print 'Method :',ecb.Method print 'ContentType :',ecb.ContentType print 'AvailableData :',ecb.AvailableData return 'csc' --------------------- please check the output in attachment....:) But this fail if you select a big file(>2MB)...... ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 12:57 Message: Logged In: YES user_id=14198 Yep - in Aus - nearly bed time :) I suggest we try and get some of the samples working first. Let's just take this to email, but unless the samples work, your POST example isn't going to. I typed "live headers" into google and the first hit was the correct link from mozdev.org, as were most of the top 10 - I'm surprised you had trouble finding it. ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 11:07 Message: Logged In: YES user_id=1546069 hi mark, i can't find "live headers" extension for FF. so i can't provide you the header info....:( BTW thank for your help... r u still in aust.?? (almost 7:30pm now...:( ) ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:52 Message: Logged In: YES user_id=1546069 nope...non of them(I'm afraid).... actually we can POST file to iis server via "enctype='multipart/form-da". and we can read it out via isapi ecb.AvailableData, ecb.ContentType and with total bytes size ecb.TotalBytes. then we can use cgi module parse it after inject some isapi vars to os.enviroment(to make it become seem like CGI). Then I can expost all info in XML form via 4suit....:) I try to find "live headers" and try it again....:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 10:37 Message: Logged In: YES user_id=14198 I'm afraid I don't know how ISAPI is supposed to handle post data. You said you can't get the 'advanced' sample working - do any of them work? Maybe try the 'live headers' firefox extension - it may give you more clues what is going on. ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:26 Message: Logged In: YES user_id=1546069 I try to dig further, found that ECB seem work and recieve post data, even i can redirect those data to win32traceutil window include http vars or "print >>ecb, data", but it always end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. ......???????!!!!!....:) ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:13 Message: Logged In: YES user_id=1546069 hi mark, thank for your fast respond.....:) nothing in win32traceutil window(except "Tester dispatching ******"). i had try "advanced.py" as well, seem not work.... Attached with html form ===================== <HTML> <HEAD> <TITLE>Post Data</TITLE> <META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2"> </HEAD> <BODY> <FORM method="POST" action="http://localhost/pyisapi_test/test1?debug=1" enctype='multipart/form-data'> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[2] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[3] cols=35 rows=7></TEXTAREA> <input type="file" name="filen0" > <input type="file" name="filen1" > <INPUT type="Submit" value="Submit"> </FORM> </BODY> </HTML> =============================== BTW, Thank a lot for your help...:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 10:06 Message: Logged In: YES user_id=14198 Do you see a traceback in the win32traceutil window? Otherwise you will need to provide a sample which demonstrates the problem ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:54 Message: Logged In: YES user_id=1546069 some correction....: I can't compile it to any kind of isapi DLL as pywin32 ISAPI do...:( sorry for that...:( ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 12:57:16
|
Bugs item #1582744, was opened at 2006-10-23 19:44 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2006-10-23 22:57 Message: Logged In: YES user_id=14198 Yep - in Aus - nearly bed time :) I suggest we try and get some of the samples working first. Let's just take this to email, but unless the samples work, your POST example isn't going to. I typed "live headers" into google and the first hit was the correct link from mozdev.org, as were most of the top 10 - I'm surprised you had trouble finding it. ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 21:07 Message: Logged In: YES user_id=1546069 hi mark, i can't find "live headers" extension for FF. so i can't provide you the header info....:( BTW thank for your help... r u still in aust.?? (almost 7:30pm now...:( ) ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 20:52 Message: Logged In: YES user_id=1546069 nope...non of them(I'm afraid).... actually we can POST file to iis server via "enctype='multipart/form-da". and we can read it out via isapi ecb.AvailableData, ecb.ContentType and with total bytes size ecb.TotalBytes. then we can use cgi module parse it after inject some isapi vars to os.enviroment(to make it become seem like CGI). Then I can expost all info in XML form via 4suit....:) I try to find "live headers" and try it again....:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 20:37 Message: Logged In: YES user_id=14198 I'm afraid I don't know how ISAPI is supposed to handle post data. You said you can't get the 'advanced' sample working - do any of them work? Maybe try the 'live headers' firefox extension - it may give you more clues what is going on. ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 20:26 Message: Logged In: YES user_id=1546069 I try to dig further, found that ECB seem work and recieve post data, even i can redirect those data to win32traceutil window include http vars or "print >>ecb, data", but it always end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. ......???????!!!!!....:) ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 20:13 Message: Logged In: YES user_id=1546069 hi mark, thank for your fast respond.....:) nothing in win32traceutil window(except "Tester dispatching ******"). i had try "advanced.py" as well, seem not work.... Attached with html form ===================== <HTML> <HEAD> <TITLE>Post Data</TITLE> <META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2"> </HEAD> <BODY> <FORM method="POST" action="http://localhost/pyisapi_test/test1?debug=1" enctype='multipart/form-data'> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[2] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[3] cols=35 rows=7></TEXTAREA> <input type="file" name="filen0" > <input type="file" name="filen1" > <INPUT type="Submit" value="Submit"> </FORM> </BODY> </HTML> =============================== BTW, Thank a lot for your help...:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 20:06 Message: Logged In: YES user_id=14198 Do you see a traceback in the win32traceutil window? Otherwise you will need to provide a sample which demonstrates the problem ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 19:54 Message: Logged In: YES user_id=1546069 some correction....: I can't compile it to any kind of isapi DLL as pywin32 ISAPI do...:( sorry for that...:( ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 19:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 11:07:34
|
Bugs item #1582744, was opened at 2006-10-23 09:44 Message generated for change (Comment added) made by cheengshuchin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 11:07 Message: Logged In: YES user_id=1546069 hi mark, i can't find "live headers" extension for FF. so i can't provide you the header info....:( BTW thank for your help... r u still in aust.?? (almost 7:30pm now...:( ) ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:52 Message: Logged In: YES user_id=1546069 nope...non of them(I'm afraid).... actually we can POST file to iis server via "enctype='multipart/form-da". and we can read it out via isapi ecb.AvailableData, ecb.ContentType and with total bytes size ecb.TotalBytes. then we can use cgi module parse it after inject some isapi vars to os.enviroment(to make it become seem like CGI). Then I can expost all info in XML form via 4suit....:) I try to find "live headers" and try it again....:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 10:37 Message: Logged In: YES user_id=14198 I'm afraid I don't know how ISAPI is supposed to handle post data. You said you can't get the 'advanced' sample working - do any of them work? Maybe try the 'live headers' firefox extension - it may give you more clues what is going on. ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:26 Message: Logged In: YES user_id=1546069 I try to dig further, found that ECB seem work and recieve post data, even i can redirect those data to win32traceutil window include http vars or "print >>ecb, data", but it always end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. ......???????!!!!!....:) ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:13 Message: Logged In: YES user_id=1546069 hi mark, thank for your fast respond.....:) nothing in win32traceutil window(except "Tester dispatching ******"). i had try "advanced.py" as well, seem not work.... Attached with html form ===================== <HTML> <HEAD> <TITLE>Post Data</TITLE> <META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2"> </HEAD> <BODY> <FORM method="POST" action="http://localhost/pyisapi_test/test1?debug=1" enctype='multipart/form-data'> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[2] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[3] cols=35 rows=7></TEXTAREA> <input type="file" name="filen0" > <input type="file" name="filen1" > <INPUT type="Submit" value="Submit"> </FORM> </BODY> </HTML> =============================== BTW, Thank a lot for your help...:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 10:06 Message: Logged In: YES user_id=14198 Do you see a traceback in the win32traceutil window? Otherwise you will need to provide a sample which demonstrates the problem ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:54 Message: Logged In: YES user_id=1546069 some correction....: I can't compile it to any kind of isapi DLL as pywin32 ISAPI do...:( sorry for that...:( ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 10:52:18
|
Bugs item #1582744, was opened at 2006-10-23 09:44 Message generated for change (Comment added) made by cheengshuchin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:52 Message: Logged In: YES user_id=1546069 nope...non of them(I'm afraid).... actually we can POST file to iis server via "enctype='multipart/form-da". and we can read it out via isapi ecb.AvailableData, ecb.ContentType and with total bytes size ecb.TotalBytes. then we can use cgi module parse it after inject some isapi vars to os.enviroment(to make it become seem like CGI). Then I can expost all info in XML form via 4suit....:) I try to find "live headers" and try it again....:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 10:37 Message: Logged In: YES user_id=14198 I'm afraid I don't know how ISAPI is supposed to handle post data. You said you can't get the 'advanced' sample working - do any of them work? Maybe try the 'live headers' firefox extension - it may give you more clues what is going on. ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:26 Message: Logged In: YES user_id=1546069 I try to dig further, found that ECB seem work and recieve post data, even i can redirect those data to win32traceutil window include http vars or "print >>ecb, data", but it always end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. ......???????!!!!!....:) ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:13 Message: Logged In: YES user_id=1546069 hi mark, thank for your fast respond.....:) nothing in win32traceutil window(except "Tester dispatching ******"). i had try "advanced.py" as well, seem not work.... Attached with html form ===================== <HTML> <HEAD> <TITLE>Post Data</TITLE> <META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2"> </HEAD> <BODY> <FORM method="POST" action="http://localhost/pyisapi_test/test1?debug=1" enctype='multipart/form-data'> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[2] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[3] cols=35 rows=7></TEXTAREA> <input type="file" name="filen0" > <input type="file" name="filen1" > <INPUT type="Submit" value="Submit"> </FORM> </BODY> </HTML> =============================== BTW, Thank a lot for your help...:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 10:06 Message: Logged In: YES user_id=14198 Do you see a traceback in the win32traceutil window? Otherwise you will need to provide a sample which demonstrates the problem ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:54 Message: Logged In: YES user_id=1546069 some correction....: I can't compile it to any kind of isapi DLL as pywin32 ISAPI do...:( sorry for that...:( ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 10:37:06
|
Bugs item #1582744, was opened at 2006-10-23 19:44 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2006-10-23 20:37 Message: Logged In: YES user_id=14198 I'm afraid I don't know how ISAPI is supposed to handle post data. You said you can't get the 'advanced' sample working - do any of them work? Maybe try the 'live headers' firefox extension - it may give you more clues what is going on. ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 20:26 Message: Logged In: YES user_id=1546069 I try to dig further, found that ECB seem work and recieve post data, even i can redirect those data to win32traceutil window include http vars or "print >>ecb, data", but it always end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. ......???????!!!!!....:) ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 20:13 Message: Logged In: YES user_id=1546069 hi mark, thank for your fast respond.....:) nothing in win32traceutil window(except "Tester dispatching ******"). i had try "advanced.py" as well, seem not work.... Attached with html form ===================== <HTML> <HEAD> <TITLE>Post Data</TITLE> <META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2"> </HEAD> <BODY> <FORM method="POST" action="http://localhost/pyisapi_test/test1?debug=1" enctype='multipart/form-data'> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[2] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[3] cols=35 rows=7></TEXTAREA> <input type="file" name="filen0" > <input type="file" name="filen1" > <INPUT type="Submit" value="Submit"> </FORM> </BODY> </HTML> =============================== BTW, Thank a lot for your help...:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 20:06 Message: Logged In: YES user_id=14198 Do you see a traceback in the win32traceutil window? Otherwise you will need to provide a sample which demonstrates the problem ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 19:54 Message: Logged In: YES user_id=1546069 some correction....: I can't compile it to any kind of isapi DLL as pywin32 ISAPI do...:( sorry for that...:( ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 19:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 10:26:21
|
Bugs item #1582744, was opened at 2006-10-23 09:44 Message generated for change (Comment added) made by cheengshuchin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:26 Message: Logged In: YES user_id=1546069 I try to dig further, found that ECB seem work and recieve post data, even i can redirect those data to win32traceutil window include http vars or "print >>ecb, data", but it always end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. ......???????!!!!!....:) ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:13 Message: Logged In: YES user_id=1546069 hi mark, thank for your fast respond.....:) nothing in win32traceutil window(except "Tester dispatching ******"). i had try "advanced.py" as well, seem not work.... Attached with html form ===================== <HTML> <HEAD> <TITLE>Post Data</TITLE> <META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2"> </HEAD> <BODY> <FORM method="POST" action="http://localhost/pyisapi_test/test1?debug=1" enctype='multipart/form-data'> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[2] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[3] cols=35 rows=7></TEXTAREA> <input type="file" name="filen0" > <input type="file" name="filen1" > <INPUT type="Submit" value="Submit"> </FORM> </BODY> </HTML> =============================== BTW, Thank a lot for your help...:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 10:06 Message: Logged In: YES user_id=14198 Do you see a traceback in the win32traceutil window? Otherwise you will need to provide a sample which demonstrates the problem ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:54 Message: Logged In: YES user_id=1546069 some correction....: I can't compile it to any kind of isapi DLL as pywin32 ISAPI do...:( sorry for that...:( ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 10:13:58
|
Bugs item #1582744, was opened at 2006-10-23 09:44 Message generated for change (Comment added) made by cheengshuchin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 10:13 Message: Logged In: YES user_id=1546069 hi mark, thank for your fast respond.....:) nothing in win32traceutil window(except "Tester dispatching ******"). i had try "advanced.py" as well, seem not work.... Attached with html form ===================== <HTML> <HEAD> <TITLE>Post Data</TITLE> <META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2"> </HEAD> <BODY> <FORM method="POST" action="http://localhost/pyisapi_test/test1?debug=1" enctype='multipart/form-data'> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[1] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[2] cols=35 rows=7></TEXTAREA> <TEXTAREA name=csc[3] cols=35 rows=7></TEXTAREA> <input type="file" name="filen0" > <input type="file" name="filen1" > <INPUT type="Submit" value="Submit"> </FORM> </BODY> </HTML> =============================== BTW, Thank a lot for your help...:) ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-10-23 10:06 Message: Logged In: YES user_id=14198 Do you see a traceback in the win32traceutil window? Otherwise you will need to provide a sample which demonstrates the problem ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:54 Message: Logged In: YES user_id=1546069 some correction....: I can't compile it to any kind of isapi DLL as pywin32 ISAPI do...:( sorry for that...:( ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 10:06:17
|
Bugs item #1582744, was opened at 2006-10-23 19:44 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2006-10-23 20:06 Message: Logged In: YES user_id=14198 Do you see a traceback in the win32traceutil window? Otherwise you will need to provide a sample which demonstrates the problem ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 19:54 Message: Logged In: YES user_id=1546069 some correction....: I can't compile it to any kind of isapi DLL as pywin32 ISAPI do...:( sorry for that...:( ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 19:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 09:54:43
|
Bugs item #1582744, was opened at 2006-10-23 09:44 Message generated for change (Comment added) made by cheengshuchin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:54 Message: Logged In: YES user_id=1546069 some correction....: I can't compile it to any kind of isapi DLL as pywin32 ISAPI do...:( sorry for that...:( ---------------------------------------------------------------------- Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 09:52:32
|
Bugs item #1582744, was opened at 2006-10-23 09:44 Message generated for change (Comment added) made by cheengshuchin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- >Comment By: cheeng shu chin (cheengshuchin) Date: 2006-10-23 09:52 Message: Logged In: YES user_id=1546069 i did samething with pyisapie mudule, it seem work. but i can compile it to any kind of dll. can i know what was happend in isapi module??? BTW, Thank a lot for those look in this.....:) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 09:44:27
|
Bugs item #1582744, was opened at 2006-10-23 09: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=1582744&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: cheeng shu chin (cheengshuchin) Assigned to: Nobody/Anonymous (nobody) Summary: isapi extension seem Error for large file posting in iis Initial Comment: hi all, I try to submit a large file (2Mb+) to iis with pywin32 isapi extension via html form (POST method), but end out with "The page cannot be displayed" for IE and "server connection reset" for firefox. This happen even with attached module "C:\Python24 \Lib\site-packages\isapi\test\extension_simple.py". The form with this "CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d629bf20426" is it a limitation in isapi or some bug in it??? can someone help me on this??? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582744&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-23 09:02:36
|
Bugs item #1582720, was opened at 2006-10-23 11:02 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=1582720&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: Matt (matthiaskirst) Assigned to: Nobody/Anonymous (nobody) Summary: Python long integers aren't translated to Variant/long Initial Comment: Since Version 208 Python long integers are not translated to Variant/long type anymore. I think that is on purpose since long integers have undefined precision. But isn't it possible to gracefully convert to Variant/ long like in the versions up to 207? Maybe there is existing code around that can be broken by the above mentioned behaviour (like my one). Test code: import pythoncom class Test: _public_methods_ = [ 'Test' ] _reg_progid_ = "Python.COMTest3" _reg_clsid_ = "{2D7DD06A-83D3-4F31-848C- 57AFA22A650D}" _reg_clsctx_ = pythoncom.CLSCTX_INPROC_SERVER def Test( self ): a = long( 0 ) return a if __name__ == "__main__": import win32com.server.register print "Registering..." win32com.server.register.UseCommandLine( Test ) In VB: Private Sub Form_Load() Dim p As Object Dim a Set p = CreateObject("Python.COMTest3") a = p.Test() End Sub ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1582720&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-16 13:25:53
|
Patches item #1578151, was opened at 2006-10-16 09:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=1578151&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: bkssmith (bkssmith) Assigned to: Nobody/Anonymous (nobody) Summary: Patch for Testing Parameter Problem Initial Comment: As requested by Mark, I have attached patches that demonstrate a problem I am having with parameter handling when using a Python COM Object from Visual Basic after creating a type library for the object. Here are the two problems I am having, as originally reported on the pywin32 mailing list. 1) When using the COM server without the type library, I was returning a tuple with the return value of the function (in my case, an error code) as the first element. With the type library, this value must be the last element. It is my understanding that the return value for the function should be returned first, not last. 2) VBA was giving me an error like "Expecting 3 return values, got: 2" whenever a function contained an [in, out] parameter. It looks like the extra parameter it is looking for is the HRESULT signifying the success of the call itself, because if I insert a 0 at the beginning of my returned tuple the problem goes away but any other value causes an error saying the method call failed. I was originally testing my own object using VBA in Excel 2000. Mark requested the patches to the pippo sample included with pywin32. The patch adds two methods with the same signature. The difference is that the Python implementation of Method2() returns two values (as the IDL signature would suggest) and Method3() returns 3 values, with a 0 as the first value. My VBA test code (also attached) calls Method3 () first and correctly sets inout1 to -31 and the return value to -41. Note that this occurs even though the function return value is the *last* return value. The call to Method2() fails with the "Expecting 3 return values, got: 2" error. I have also tried using Visual Basic 2005 Express Edition and the behaviour is similar: the call to Method3() succeeds and the call to Method2() fails, although now the error is "Error HRESULT E_FAIL has been returned from a call to a COM component". My platform is Win XP Pro (SP2), Python 2.3.4, pywin Build 210. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=1578151&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-09 08:24:56
|
Bugs item #1573578, was opened at 2006-10-09 10:24 Message generated for change (Settings changed) made by j_lindvall You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1573578&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: Johan Lindvall (j_lindvall) >Assigned to: Mark Hammond (mhammond) Summary: IActiveScriptSiteInterruptPoll not used Initial Comment: QueryContinue of IActiveScriptSiteInterruptPoll is never called. Our app uses this function to perform idle events and allow the user to cancel scripts. This function should be called from somewhere within the Python Active Script Engine. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1573578&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-09 08:24:44
|
Bugs item #1573578, was opened at 2006-10-09 10: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=1573578&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: Johan Lindvall (j_lindvall) Assigned to: Nobody/Anonymous (nobody) Summary: IActiveScriptSiteInterruptPoll not used Initial Comment: QueryContinue of IActiveScriptSiteInterruptPoll is never called. Our app uses this function to perform idle events and allow the user to cancel scripts. This function should be called from somewhere within the Python Active Script Engine. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1573578&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-06 03:09:08
|
Bugs item #1571838, was opened at 2006-10-05 20:14 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1571838&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: Chris Gonnerman (solomoriah) Assigned to: Nobody/Anonymous (nobody) Summary: Error Message Missing Initial Comment: I'm running Win98 with Python 2.4.3, and I'm writing a module to generalize printing under Windows. I felt sure that one call wouldn't work on Win98, and sure enough it didn't: U:\Source\MSWinPrint>python mswinprint.py Traceback (most recent call last): File "mswinprint.py", line 252, in ? doc.begin_document() File "mswinprint.py", line 116, in begin_document devmode = win32print.GetPrinter(self.hprinter, 8)["pDevMode"] TypeError: GetPrinter() takes exactly 1 argument (2 given) But I realized I was running build 203, so I upgraded to build 209, and tried again: U:\Source\MSWinPrint>python mswinprint.py Traceback (most recent call last): File "mswinprint.py", line 252, in ? doc.begin_document() File "mswinprint.py", line 116, in begin_document devmode = win32print.GetPrinter(self.hprinter, 8)["pDevMode"] pywintypes.error: (0, 'GetPrinter', 'No error message is available') Now, I'm pretty sure the first version behavior is better than the second. ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2006-10-05 22:09 Message: Logged In: YES user_id=771074 In build 203, win32print.GetPrinter didn't accept an information level parm, alway using lvl 2. According to MSDN, on Win98 only 1,2 and 5 are valid levels for GetPrinter. Apparently the API function isn't setting an error code when passed a level that isn't supported on 98. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1571838&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-06 01:14:01
|
Bugs item #1571838, was opened at 2006-10-06 01:14 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=1571838&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: Chris Gonnerman (solomoriah) Assigned to: Nobody/Anonymous (nobody) Summary: Error Message Missing Initial Comment: I'm running Win98 with Python 2.4.3, and I'm writing a module to generalize printing under Windows. I felt sure that one call wouldn't work on Win98, and sure enough it didn't: U:\Source\MSWinPrint>python mswinprint.py Traceback (most recent call last): File "mswinprint.py", line 252, in ? doc.begin_document() File "mswinprint.py", line 116, in begin_document devmode = win32print.GetPrinter(self.hprinter, 8)["pDevMode"] TypeError: GetPrinter() takes exactly 1 argument (2 given) But I realized I was running build 203, so I upgraded to build 209, and tried again: U:\Source\MSWinPrint>python mswinprint.py Traceback (most recent call last): File "mswinprint.py", line 252, in ? doc.begin_document() File "mswinprint.py", line 116, in begin_document devmode = win32print.GetPrinter(self.hprinter, 8)["pDevMode"] pywintypes.error: (0, 'GetPrinter', 'No error message is available') Now, I'm pretty sure the first version behavior is better than the second. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1571838&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-10-04 14:12:14
|
Feature Requests item #1567449, was opened at 2006-09-29 05:29 Message generated for change (Comment added) made by sschukat You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1567449&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: Next Release (example) Status: Open Resolution: None Priority: 5 Submitted By: Jeffrey C. Jacobs (timehorse) Assigned to: Nobody/Anonymous (nobody) Summary: Dynamic Cast of COM Pointers Initial Comment: I don't know how many other COM libraries do this, but specifically with iTunes, the Interfaces defined for tracks form a hierarchy (in python-speak): class Track(Item): pass class FileOrCDTrack(Track): pass class URLTrack(Track): pass The problem is, a number of interfaces are defined to return a pointer to a Track interface when in fact one can test the object and safely refer to it via a derived interface. For instance, iTunesApp.CurrentTrack returns a Track interface pointer, even if it is a FileOrCDTrack. In fact, all but 1 interface prevents the user from accessing the derived class properties (which include a lot of new features that are part of the base class in AppleScript). Direct Indexing by name, ID or playlist order all return a pointer to the base interface. Thus, none of these allow access to the derived attributes in FileOrCDTrack even if the track is indeed a File or CD based track. So the ONLY way to retrieve the derived interface is to use the Enum method of the LibraryPlaylist object and iterate through ALL the tracks known, which in a large library can take an astronomical amount of time. The Enum method does however properly return FileOrCDTrack interfaces when appropriate. The idea of the Dynamic Cast would therefore be to allow the user to perform a C++ style dynamic_cast on an interface to convert it to a different interface. In this example, one would take a track instance, call it's 'kind' property to verify that it was a FileOrCDTrack and then cast the interface pointer from a Track interface to a FileOrCDTrack. ---------------------------------------------------------------------- Comment By: Stefan Schukat (sschukat) Date: 2006-10-04 16:12 Message: Logged In: YES user_id=977439 Try from win32com.client import CastTo FileTrack = CastTo(iTunesApp.CurrentTrack, "FileOrCDTrack") this should help. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-09-29 06:16 Message: Logged In: YES user_id=771074 You should be able to do this using QueryInterface. The attached code takes an IITTrack object and gets an IITFileOrCDTrack interface from it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1567449&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-09-29 04:16:45
|
Feature Requests item #1567449, was opened at 2006-09-28 22:29 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1567449&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: Next Release (example) Status: Open Resolution: None Priority: 5 Submitted By: Jeffrey C. Jacobs (timehorse) Assigned to: Nobody/Anonymous (nobody) Summary: Dynamic Cast of COM Pointers Initial Comment: I don't know how many other COM libraries do this, but specifically with iTunes, the Interfaces defined for tracks form a hierarchy (in python-speak): class Track(Item): pass class FileOrCDTrack(Track): pass class URLTrack(Track): pass The problem is, a number of interfaces are defined to return a pointer to a Track interface when in fact one can test the object and safely refer to it via a derived interface. For instance, iTunesApp.CurrentTrack returns a Track interface pointer, even if it is a FileOrCDTrack. In fact, all but 1 interface prevents the user from accessing the derived class properties (which include a lot of new features that are part of the base class in AppleScript). Direct Indexing by name, ID or playlist order all return a pointer to the base interface. Thus, none of these allow access to the derived attributes in FileOrCDTrack even if the track is indeed a File or CD based track. So the ONLY way to retrieve the derived interface is to use the Enum method of the LibraryPlaylist object and iterate through ALL the tracks known, which in a large library can take an astronomical amount of time. The Enum method does however properly return FileOrCDTrack interfaces when appropriate. The idea of the Dynamic Cast would therefore be to allow the user to perform a C++ style dynamic_cast on an interface to convert it to a different interface. In this example, one would take a track instance, call it's 'kind' property to verify that it was a FileOrCDTrack and then cast the interface pointer from a Track interface to a FileOrCDTrack. ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2006-09-28 23:16 Message: Logged In: YES user_id=771074 You should be able to do this using QueryInterface. The attached code takes an IITTrack object and gets an IITFileOrCDTrack interface from it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1567449&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-09-29 03:29:14
|
Feature Requests item #1567449, was opened at 2006-09-28 23:29 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1567449&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: Next Release (example) Status: Open Resolution: None Priority: 5 Submitted By: Jeffrey C. Jacobs (timehorse) Assigned to: Nobody/Anonymous (nobody) Summary: Dynamic Cast of COM Pointers Initial Comment: I don't know how many other COM libraries do this, but specifically with iTunes, the Interfaces defined for tracks form a hierarchy (in python-speak): class Track(Item): pass class FileOrCDTrack(Track): pass class URLTrack(Track): pass The problem is, a number of interfaces are defined to return a pointer to a Track interface when in fact one can test the object and safely refer to it via a derived interface. For instance, iTunesApp.CurrentTrack returns a Track interface pointer, even if it is a FileOrCDTrack. In fact, all but 1 interface prevents the user from accessing the derived class properties (which include a lot of new features that are part of the base class in AppleScript). Direct Indexing by name, ID or playlist order all return a pointer to the base interface. Thus, none of these allow access to the derived attributes in FileOrCDTrack even if the track is indeed a File or CD based track. So the ONLY way to retrieve the derived interface is to use the Enum method of the LibraryPlaylist object and iterate through ALL the tracks known, which in a large library can take an astronomical amount of time. The Enum method does however properly return FileOrCDTrack interfaces when appropriate. The idea of the Dynamic Cast would therefore be to allow the user to perform a C++ style dynamic_cast on an interface to convert it to a different interface. In this example, one would take a track instance, call it's 'kind' property to verify that it was a FileOrCDTrack and then cast the interface pointer from a Track interface to a FileOrCDTrack. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1567449&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-09-27 22:17:41
|
Bugs item #1566669, was opened at 2006-09-28 00:17 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=1566669&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: MichaelAye (accretor) Assigned to: Nobody/Anonymous (nobody) Summary: regsub required for demos but not installled Initial Comment: In Python 2.5 the regsub module is obsolete and not installed. For that reason the basictimerapp and the dlgappdemo don't start. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1566669&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-09-26 13:38:08
|
Bugs item #1517601, was opened at 2006-07-05 11:52 Message generated for change (Comment added) made by rberrett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1517601&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: None Priority: 5 Submitted By: rberrett (rberrett) Assigned to: Nobody/Anonymous (nobody) Summary: WNetGetUser fails if connection is specified Initial Comment: When trying to run WNetGetUser with connection (drive letter) supplied, raise a "Couldn't get the buffer size!" runtime errror Example: username = win32wnet.WNetGetUser( "z:" ) NOTE: This appears to be a caused by an inconstancy in they windows WNetGetUser call. The win32wnet wrapper calls WNetGetUser with NULL in the username argument to get the buffer size. But unless the connections (lpName) is also NULL the length is does not appear to be set Following sets the length correctly: WNetGetUser(NULL, NULL, &length ); Following fails to set the length: WNetGetUser("v:", NULL, &length ); ---------------------------------------------------------------------- >Comment By: rberrett (rberrett) Date: 2006-09-26 09:38 Message: Logged In: YES user_id=1121829 I am closing this issue, it appears that our file system softeware is causing this issue, this even effected other file systems on the same client. Since it was effecting all file systems, it seemed to be a WNet issue. Thanks for the effort. ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-09-25 10:59 Message: Logged In: YES user_id=1121829 These all are user logged in (not anonymous). I did some tests with WNetGetUser( drive, NULL, length) to get the size fo the buffer needed for the username. This return ERROR_MORE_DATA and should be setting length to the size of the buffer needed, but I always get length set to '0'. And even if I then use a large buffer when I call GetUser again with more than enough size I still get ERROR_MORE_DATA. This looks like it is either a MicroSoft bug, or something on my systems are causing WNetGetUser to act incorrectly. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-09-22 10:41 Message: Logged In: YES user_id=14198 Is it possible the share is connected with *no* user - ie, anonymously? Its not obvious to me how to set that up to test though... ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-08-09 09:56 Message: Logged In: YES user_id=1121829 With build 209, WNetGetUser now always gived the following: error: (234, 'WNetGetUser', 'More data is available.') Even on mounts that NetUseGetInfo info is retruned correctly. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-30 00:18 Message: Logged In: YES user_id=771074 Can you try this with build 209 and see what error you get back now ? ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-07-07 09:52 Message: Logged In: YES user_id=1121829 I tried this against a few systems, both Windows XP and Unix based, with the same results ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-07 04:20 Message: Logged In: YES user_id=771074 What type of systems provide the shares that the local drives are mapped to ? I also added WNetGetLastError to win32wnet, in case extended error info is available from them. ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-07-06 10:34 Message: Logged In: YES user_id=1121829 Versions: python 2.4.2 win32 2.4.205.0 OS: Windows XP ServicePack 2 NetUseGetInfo is giving good information, but GetUser still seems to be failing. I have tried this one a couple of our test machines. I have attached a small test program I used to to examine the problem I was having. Here is a sample of the output: X: Microsoft Windows Network \\b3server3\storage_1 NetUseGetInfo: {'remote': u'\\\\b3server3\\storage_1', 'local': u'X:'} WNetGetUser: Couldn't get the buffer size! W: Microsoft Windows Network \\nssgsvr\test NetUseGetInfo: {'remote': u'\\\\nssgsvr\\test', 'local': u'W:'} WNetGetUser: Couldn't get the buffer size! ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-07-06 02:38 Message: Logged In: YES user_id=14198 My experience is exactly the same as Roger's - it works fine for an existing connection. I tried XP and (thanks to vmware!) Win98. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-06 01:23 Message: Logged In: YES user_id=771074 I can't reproduce this with an existing connection on Win2k or WinXP. What OS and python/pywin32 versions do you have ? Also, could you verify that the mapped drive exists under the current user by adding this line before WNetGetUser: print win32net.NetUseGetInfo(None,'v:') (or z:, or whichever drive letter you're passing to WNetGetUser) Roger Roger ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-07-05 15:48 Message: Logged In: YES user_id=1121829 I see this with any existing mapped drive letters. The only time I do not get this message is if I do not specify the connection. username = win32wnet.WNetGetUser() ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-05 15:01 Message: Logged In: YES user_id=771074 I see this too, but only if a nonexistent connection is passed to it. Do you get this error if you pass a drive letter that's actually mapped ? The first call for the buffer size isn't checking the returned error code. I'll check in a fix shortly. Roger ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1517601&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-09-25 14:59:23
|
Bugs item #1517601, was opened at 2006-07-05 11:52 Message generated for change (Comment added) made by rberrett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1517601&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: rberrett (rberrett) Assigned to: Nobody/Anonymous (nobody) Summary: WNetGetUser fails if connection is specified Initial Comment: When trying to run WNetGetUser with connection (drive letter) supplied, raise a "Couldn't get the buffer size!" runtime errror Example: username = win32wnet.WNetGetUser( "z:" ) NOTE: This appears to be a caused by an inconstancy in they windows WNetGetUser call. The win32wnet wrapper calls WNetGetUser with NULL in the username argument to get the buffer size. But unless the connections (lpName) is also NULL the length is does not appear to be set Following sets the length correctly: WNetGetUser(NULL, NULL, &length ); Following fails to set the length: WNetGetUser("v:", NULL, &length ); ---------------------------------------------------------------------- >Comment By: rberrett (rberrett) Date: 2006-09-25 10:59 Message: Logged In: YES user_id=1121829 These all are user logged in (not anonymous). I did some tests with WNetGetUser( drive, NULL, length) to get the size fo the buffer needed for the username. This return ERROR_MORE_DATA and should be setting length to the size of the buffer needed, but I always get length set to '0'. And even if I then use a large buffer when I call GetUser again with more than enough size I still get ERROR_MORE_DATA. This looks like it is either a MicroSoft bug, or something on my systems are causing WNetGetUser to act incorrectly. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-09-22 10:41 Message: Logged In: YES user_id=14198 Is it possible the share is connected with *no* user - ie, anonymously? Its not obvious to me how to set that up to test though... ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-08-09 09:56 Message: Logged In: YES user_id=1121829 With build 209, WNetGetUser now always gived the following: error: (234, 'WNetGetUser', 'More data is available.') Even on mounts that NetUseGetInfo info is retruned correctly. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-30 00:18 Message: Logged In: YES user_id=771074 Can you try this with build 209 and see what error you get back now ? ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-07-07 09:52 Message: Logged In: YES user_id=1121829 I tried this against a few systems, both Windows XP and Unix based, with the same results ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-07 04:20 Message: Logged In: YES user_id=771074 What type of systems provide the shares that the local drives are mapped to ? I also added WNetGetLastError to win32wnet, in case extended error info is available from them. ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-07-06 10:34 Message: Logged In: YES user_id=1121829 Versions: python 2.4.2 win32 2.4.205.0 OS: Windows XP ServicePack 2 NetUseGetInfo is giving good information, but GetUser still seems to be failing. I have tried this one a couple of our test machines. I have attached a small test program I used to to examine the problem I was having. Here is a sample of the output: X: Microsoft Windows Network \\b3server3\storage_1 NetUseGetInfo: {'remote': u'\\\\b3server3\\storage_1', 'local': u'X:'} WNetGetUser: Couldn't get the buffer size! W: Microsoft Windows Network \\nssgsvr\test NetUseGetInfo: {'remote': u'\\\\nssgsvr\\test', 'local': u'W:'} WNetGetUser: Couldn't get the buffer size! ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-07-06 02:38 Message: Logged In: YES user_id=14198 My experience is exactly the same as Roger's - it works fine for an existing connection. I tried XP and (thanks to vmware!) Win98. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-06 01:23 Message: Logged In: YES user_id=771074 I can't reproduce this with an existing connection on Win2k or WinXP. What OS and python/pywin32 versions do you have ? Also, could you verify that the mapped drive exists under the current user by adding this line before WNetGetUser: print win32net.NetUseGetInfo(None,'v:') (or z:, or whichever drive letter you're passing to WNetGetUser) Roger Roger ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-07-05 15:48 Message: Logged In: YES user_id=1121829 I see this with any existing mapped drive letters. The only time I do not get this message is if I do not specify the connection. username = win32wnet.WNetGetUser() ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-05 15:01 Message: Logged In: YES user_id=771074 I see this too, but only if a nonexistent connection is passed to it. Do you get this error if you pass a drive letter that's actually mapped ? The first call for the buffer size isn't checking the returned error code. I'll check in a fix shortly. Roger ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1517601&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-09-22 14:41:43
|
Bugs item #1517601, was opened at 2006-07-06 01:52 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1517601&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: rberrett (rberrett) Assigned to: Nobody/Anonymous (nobody) Summary: WNetGetUser fails if connection is specified Initial Comment: When trying to run WNetGetUser with connection (drive letter) supplied, raise a "Couldn't get the buffer size!" runtime errror Example: username = win32wnet.WNetGetUser( "z:" ) NOTE: This appears to be a caused by an inconstancy in they windows WNetGetUser call. The win32wnet wrapper calls WNetGetUser with NULL in the username argument to get the buffer size. But unless the connections (lpName) is also NULL the length is does not appear to be set Following sets the length correctly: WNetGetUser(NULL, NULL, &length ); Following fails to set the length: WNetGetUser("v:", NULL, &length ); ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2006-09-23 00:41 Message: Logged In: YES user_id=14198 Is it possible the share is connected with *no* user - ie, anonymously? Its not obvious to me how to set that up to test though... ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-08-09 23:56 Message: Logged In: YES user_id=1121829 With build 209, WNetGetUser now always gived the following: error: (234, 'WNetGetUser', 'More data is available.') Even on mounts that NetUseGetInfo info is retruned correctly. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-30 14:18 Message: Logged In: YES user_id=771074 Can you try this with build 209 and see what error you get back now ? ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-07-07 23:52 Message: Logged In: YES user_id=1121829 I tried this against a few systems, both Windows XP and Unix based, with the same results ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-07 18:20 Message: Logged In: YES user_id=771074 What type of systems provide the shares that the local drives are mapped to ? I also added WNetGetLastError to win32wnet, in case extended error info is available from them. ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-07-07 00:34 Message: Logged In: YES user_id=1121829 Versions: python 2.4.2 win32 2.4.205.0 OS: Windows XP ServicePack 2 NetUseGetInfo is giving good information, but GetUser still seems to be failing. I have tried this one a couple of our test machines. I have attached a small test program I used to to examine the problem I was having. Here is a sample of the output: X: Microsoft Windows Network \\b3server3\storage_1 NetUseGetInfo: {'remote': u'\\\\b3server3\\storage_1', 'local': u'X:'} WNetGetUser: Couldn't get the buffer size! W: Microsoft Windows Network \\nssgsvr\test NetUseGetInfo: {'remote': u'\\\\nssgsvr\\test', 'local': u'W:'} WNetGetUser: Couldn't get the buffer size! ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-07-06 16:38 Message: Logged In: YES user_id=14198 My experience is exactly the same as Roger's - it works fine for an existing connection. I tried XP and (thanks to vmware!) Win98. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-06 15:23 Message: Logged In: YES user_id=771074 I can't reproduce this with an existing connection on Win2k or WinXP. What OS and python/pywin32 versions do you have ? Also, could you verify that the mapped drive exists under the current user by adding this line before WNetGetUser: print win32net.NetUseGetInfo(None,'v:') (or z:, or whichever drive letter you're passing to WNetGetUser) Roger Roger ---------------------------------------------------------------------- Comment By: rberrett (rberrett) Date: 2006-07-06 05:48 Message: Logged In: YES user_id=1121829 I see this with any existing mapped drive letters. The only time I do not get this message is if I do not specify the connection. username = win32wnet.WNetGetUser() ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-07-06 05:01 Message: Logged In: YES user_id=771074 I see this too, but only if a nonexistent connection is passed to it. Do you get this error if you pass a drive letter that's actually mapped ? The first call for the buffer size isn't checking the returned error code. I'll check in a fix shortly. Roger ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1517601&group_id=78018 |
From: SourceForge.net <no...@so...> - 2006-09-22 14:32:14
|
Bugs item #1408485, was opened at 2006-01-18 07:56 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1408485&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: v1.0 (example) >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Michael Kleehammer (mkleehammer) Assigned to: Nobody/Anonymous (nobody) Summary: OVERLAPPED not hashable Initial Comment: Can we make the OVERLAPPED object hashable so it can be stored in a set or used as a dictionary key? As mentioned in a previous bug report, references to OVERLAPPED objects must be maintained even after posting it to the I/O subsystem. It is sometimes natural to want to store it in a set or dictionary. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2006-09-23 00:32 Message: Logged In: YES user_id=14198 Checking in src/PyOVERLAPPED.cpp; new revision: 1.11; previous revision: 1.10 Checking in src/PyWinObjects.h; new revision: 1.10; previous revision: 1.9 Checking in test/test_win32file.py; new revision: 1.11; previous revision: 1.10 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1408485&group_id=78018 |