This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ron_adam
Recipients BreamoreBoy, belopolsky, eric.araujo, georg.brandl, giampaolo.rodola, ncoghlan, ping, r.liebscher, ron_adam, srid
Date 2010-11-08.09:41:07
SpamBayes Score 1.1733392e-12
Marked as misclassified No
Message-id <1289209271.24.0.902315896878.issue2001@psf.upfronthosting.co.za>
In-reply-to
Content
> What about http://bugs.python.org/issue2001#msg114326 ?

Thanks for the reminder.


To Nick:

>However, the public (albeit undocumented) nature of the APIs >implementing the old Tk GUI means I'm not comfortable committing the >patch in a form that simply drops them without going through a >deprecation period first.

I think it would be ok sense this is a 'user' interface rather than a programming interface, but it won't hurt to ask specifically about this on python dev.  I got the impression that pydoc is considered a 'user' tool like idle, that just happens to live in lib, so the rules aren't considered to be quite as strict as it would be if it was a module meant to be used by other modules or programs.


>3. A serve() function to start the web server component should be >added back in

There is a _startserver() function.  The leading  underscore can be removed, or it can be renamed to serve.  A serve() function could also just call _startserver().


>2. The gui() function should still open the Tkinter GUI,
>and the -g option should be retained with its old functionality. >Invoking this function should trigger DeprecationWarning.
>
>4. The new behaviour of opening the web client can be provided
>as a "browse()" function (that accepts the port number the
>server is listening on as an argument).


After the patch the gui() function starts the server with a server text command window, and opens the browser to the correct page.  If you close the browser, you can use 'b' at the server prompt to reopen the browser at the address it is serving.

It sounds like you want "serve()" to just start the server. and "browse()" to just start the browser.  The gui() function does both in one step.

What would be the equivalent new way of doing both in one step, if gui() retains the old tk behavior?

Cheers, Ron
History
Date User Action Args
2010-11-08 09:41:11ron_adamsetrecipients: + ron_adam, ping, georg.brandl, ncoghlan, belopolsky, giampaolo.rodola, eric.araujo, r.liebscher, srid, BreamoreBoy
2010-11-08 09:41:11ron_adamsetmessageid: <1289209271.24.0.902315896878.issue2001@psf.upfronthosting.co.za>
2010-11-08 09:41:08ron_adamlinkissue2001 messages
2010-11-08 09:41:07ron_adamcreate