Issue1762054
Created on 2007年07月27日.15:12:12 by arjaan, last changed 2015年01月22日.20:43:42 by zyasoft.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | Remove |
| webbrowser.py | juneau001, 2009年10月13日.18:56:04 | Patch for webbrowser.py | ||
| webbrowser.py | juneau001, 2014年05月10日.14:36:07 | |||
| Messages | |||
|---|---|---|---|
| msg3034 (view) | Author: arjaan (arjaan) | Date: 2007年07月27日.15:12:12 | |
Is it possible to add the webbrowser module, so this script can run with jython? import webbrowser url = 'http://www.python.org' webbrowser.open_new(url) |
|||
| msg3079 (view) | Author: Philip Jenvey (pjenvey) | Date: 2008年03月10日.01:46:36 | |
I'd really like to add the webbrowser module (Paste imports it) but unfortunately it's kind of useless without the platform specific ic module. Without ic it will try spawning console browsers on POSIX systems via os.system. The problem with that is our os.system can't share the jython process's stdin with the child webbrowser process (a limitation of Java), so you can't actually use the browser. Java 1.6 provides similar functionality via java.awt.Desktop.browse. We could utilize that (it will refuse to work on a headless environment though) |
|||
| msg5229 (view) | Author: Juneau001 (juneau001) | Date: 2009年10月13日.18:56:03 | |
Implemented open() using java.awt.Desktop as suggested by pjenvey. This patch also includes a special InternetConfig() class in place of using ic. The InternetConfig() class uses the same open() implementation making use of the java.awt.Desktop browse method. This patch has been tested on Mac OS X 10.5.8 and Windows XP. This implementation of the webbrowser module has also been tested with the yolk utility. |
|||
| msg6866 (view) | Author: Alan Kennedy (amak) | Date: 2012年03月19日.20:41:24 | |
Josh, maybe its time to apply your patch? At least if we can get people using it, we can address any issues that might arise? |
|||
| msg6906 (view) | Author: Juneau001 (juneau001) | Date: 2012年03月20日.01:21:53 | |
I will re-test the patch under 2.5.3 and OS X 10.7 to ensure that everything still works as expected. If it is okay then I can commit it. |
|||
| msg7418 (view) | Author: Alan Kennedy (amak) | Date: 2012年08月20日.23:53:49 | |
Any developments? |
|||
| msg7419 (view) | Author: Juneau001 (juneau001) | Date: 2012年08月21日.03:08:10 | |
I will test again under 2.7 alpha |
|||
| msg8373 (view) | Author: Juneau001 (juneau001) | Date: 2014年05月10日.14:36:07 | |
This version of webbrowser.py has been successfully tested using Jython 2.7b2 on OS X 10.9.2 on Java build 1.8.0-b132. |
|||
| msg9383 (view) | Author: Jim Baker (zyasoft) | Date: 2015年01月14日.02:57:57 | |
Fixed as of https://hg.python.org/jython/rev/a4631c4cb565 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015年01月22日 20:43:42 | zyasoft | set | status: pending -> closed |
| 2015年01月14日 02:58:10 | zyasoft | set | status: open -> pending resolution: accepted -> fixed |
| 2015年01月14日 02:57:57 | zyasoft | set | messages: + msg9383 |
| 2015年01月07日 07:35:43 | zyasoft | set | priority: normal -> high |
| 2014年09月05日 16:16:02 | zyasoft | set | assignee: zyasoft resolution: remind -> accepted |
| 2014年05月10日 14:36:09 | juneau001 | set | files:
+ webbrowser.py messages: + msg8373 |
| 2014年05月10日 05:41:13 | zyasoft | set | nosy: + zyasoft |
| 2013年02月19日 18:50:33 | fwierzbicki | set | resolution: remind versions: + Jython 2.7, - Deferred |
| 2012年08月21日 03:08:11 | juneau001 | set | messages: + msg7419 |
| 2012年08月20日 23:53:49 | amak | set | messages: + msg7418 |
| 2012年06月11日 20:48:20 | Arfrever | set | nosy: + Arfrever |
| 2012年03月20日 01:21:54 | juneau001 | set | messages: + msg6906 |
| 2012年03月19日 20:41:24 | amak | set | nosy:
+ amak messages: + msg6866 |
| 2009年10月13日 18:56:06 | juneau001 | set | files:
+ webbrowser.py messages: + msg5229 |
| 2009年10月11日 14:57:10 | juneau001 | set | nosy: + juneau001 |
| 2009年03月14日 03:04:53 | fwierzbicki | set | versions: + Deferred |
| 2008年12月15日 19:00:50 | fwierzbicki | set | components: + Library, - None |
| 2008年11月03日 20:59:39 | fwierzbicki | set | nosy: + fwierzbicki |
| 2008年03月10日 01:46:36 | pjenvey | set | nosy:
+ pjenvey messages: + msg3079 |
| 2007年07月27日 15:12:12 | arjaan | create | |
Supported by Python Software Foundation,
Powered by Roundup