summaryrefslogtreecommitdiffstats
path: root/Lib/webbrowser.py
Commit message (Collapse)AuthorAgeFilesLines
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-4/+4
|
* If no webbrowsers were found _tryorder would be empty, cmd would never be ↵Jack Jansen2002-03-151-0/+1
| | | | | | set and the "del cmd" would fail. Fixed. 2.2.1 candidate.
* SF #515026, delete global variable that was apparently used onlyNeal Norwitz2002-02-111-0/+1
| | | | in a for loop.
* Fix webbrowser.py security bug: be more careful about what we pass toFred Drake2002-01-071-12/+15
| | | | | os.system(). This closes Python bug #500401, Debian bug #127507.
* Address SF patch #485789 (Stefan Schwarzer).Guido van Rossum2001-12-041-1/+1
| | | | $BROWSER should be split on os.pathsep, not on ":".
* _tryorder should always be a list, then the problem Jack had to fix inGuido van Rossum2001-12-031-5/+4
| | | | | | 1.24 wouldn't have occurred in the first place. Remove a debug print command accidentally inserted by Martin in 1.23.
* Missing comma in tuple initializer caused webbrowser.open() not to work atJack Jansen2001-12-031-1/+1
| | | | all in MacPython. (why did noone ever notice this?)
* Patch #484847: Default to netscape.exe on OS/2.Martin v. Löwis2001-11-251-0/+10
|
* _os should be os; reported by Neal Norwitz.Fred Drake2001-10-131-1/+1
|
* Fix malformed line (PyChecker)Andrew M. Kuchling2001-08-131-1/+1
|
* Remove some false comments.Fred Drake2001-07-191-159/+156
| | | | | | Reorganize so the initialization sequences does not bite us in the foot. (There is no good reason to discard classes that clients may want to subclass.)
* If the user's environment has set the BROWSER environment variable (as GnomeSkip Montanaro2001-07-181-6/+9
| | | | | | | seems to do), the user may not be aware of its contents. Attempt to add any to _browsers. closes bug #429136
* _synthesize(): Helper function: when the users passes a specificFred Drake2001-04-121-7/+50
| | | | | | | | | | | | | | | | value for the 'using' parameter of the get() function or the BROWSER environment variable, if the thing passed in is a path (as seems to be the case with KDE) instead of a short name, examine the available controllers to see if we can synthesize one based on a pre-registered controller that shares the same base name. get(): If the user specifies a browser we don't know about, use _synthesize() to attempt to create a usable controller. Some small adjustments were needed in some of the browser classes to support this.
* Fixes a fatal bug when the module has computed alternatives containing %s.Eric S. Raymond2001-03-311-1/+1
|
* Update auto-detection for Konqueror to include KDE 2 -- the kfm command isFred Drake2001-03-261-2/+5
| | | | | gone; "konqueror" is the new name, and the command-line args are different. kfmclient has not changed, though.
* Clarify synopsis line a bit.Ka-Ping Yee2001-03-021-3/+3
| | | | Remove -no-about-splash option (not understood by all Netscapes).
* final round of __all__ lists (I hope) - skipped urllib2 because Moshe may beSkip Montanaro2001-03-011-0/+2
| | | | giving it a slight facelift
* Whitespace normalization.Tim Peters2001-02-281-1/+1
|
* Remove two meaningless, module-level global statements (one of aJeremy Hylton2001-02-271-7/+9
| | | | | | non-existent variable :-). Reflow long lines.
* Whitespace normalization.Tim Peters2001-02-091-6/+6
|
* Fixed autoraise glitches.Eric S. Raymond2001-01-231-5/+5
|
* Expose the autoraise capability. Improve the documentation.Eric S. Raymond2001-01-231-10/+7
|
* Rewrite webbrowser.py to fix various bugs following Ka-Ping Yee'sEric S. Raymond2001-01-231-178/+222
| | | | | | | | complaints. The new version moves most of its initialization to package load time; it's simpler, faster, smaller, and adds support for Mozilla and Links. Interpretation of the BROWSER variable now works and is documented. The open_new entry point and methods are marked "deprecated; may be removed in 2.1".
* Whitespace normalization. Top level of Lib now fixed-point for reindent.py!Tim Peters2001-01-151-1/+1
|
* SF Patch #103211.Guido van Rossum2001-01-141-4/+4
| | | | | | | | | Ping apparently doesn't check in Accepted patches, so I'm doing this for him. According to Ping: The name of the controller class should be "Konqueror", not "Konquerer". (See the website http://www.konqueror.org/.)
* Typo for Mac code, fixing SF bug 12195.Guido van Rossum2000-11-131-1/+1
|
* Do not set Konquerer to be the default browser if $KDEDIR is set -- someFred Drake2000-10-021-3/+1
| | | | | | Linux distributions which provide both KDE and Gnome set this environment variable even if the user is not using KDE. We do *not* want to start Konquerer if KDE is not running unless the user actually tells us to!
* Implemented new os.startfile function, unique to Windows, exposing aTim Peters2000-09-221-1/+1
| | | | | | | | | | | | | | | | subset of Win32 ShellExecute's functionality. Guido wants this because IDLE's Help -> Docs function currently crashes his machine because of a conflict between his version of Norton AntiVirus (6.10.20) and MS's _popen. Docs for startfile are being mailed to Fred (or just read the docstring -- it tells the whole story). Changed webbrowser.py to use os.startfile instead of os.popen on Windows. Changed IDLE's EditorWindow.py to pass an absolute path for the docs (hardcoding ShellExecute's "directory" arg to "." as used to be done let IDLE work, but made the startfile command exceedingly obscure for other uses -- the MS docs are terrible, of course, & still not sure I understand it). Note that Windows Python must link with shell32.lib now! That's where ShellExecute lives.
* Hack the Windows code to use os.popen().Guido van Rossum2000-09-031-3/+1
| | | | | The returned file is assigned to an instance variable; otherwise the implied close hangs for a long time.
* New module to control Web browsers; see the documentation forFred Drake2000-07-091-0/+229
more information.