Re: Hi All, I am a newbee for cherrypy. My question is how to realize a link limitation for cherry?

Tim Roberts <[email protected]>
Newsgroups gmane.comp.python.cherrypy
Organization Providenza & Boekelheide, Inc.
Message-ID <[email protected]>
Zhao Kevin wrote:
>
>      My request is to realize the function like that:
>      There is a Linux Distro installer ,with it we can install a
> specify Linux Distro, just like installation process of Redhat and
> ubuntu, you need to select the disk, set the network ,set the user id
> and passwd and then begin to the installation process. 
>      Now we are working about putting this installer to web, so we can
> get access from browser.It will be more convenient. For example, I can
> get access to "http://45.37.251.102" , select the parameters : disk,
> network , user id and passwd just like in the origin installer.

If you are installing an operating system, how do you have access to a
browser?

Remember that web applications run in a limited sandbox -- they cannot
access the local disk arbitrarily.  You will have to send over an
application to control things on the client side.  You can certainly
download a desktop application, pass the parameters to that application,
and then have it continue just like the current installers, which will
fetch the additional files.  All you are doing is starting the process.


> After set the parameters , begin installation.  So I put the
>  questions here, I need to realize the function "forbid multiple http
> session" , because if multiple session connecting to the server, one
> session will affect another session. So at the same time of the
> installation process, I just want a single session to server.
>     By using http keep-alive ,could  I solve the problem?

Why do you think one session will affect another session?  There is no
reason on earth why that has to be true.  All you have to do is send
over a "session identifier" during the first contact, then any
additional contact can send back the session identifier.  You can have
several machines doing installations at the same time.  You just have to
remember how far along that particular session got.

-- 
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.