473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

"running" code on client side with cherrypy?

Hi All,
I'm developing a website to handle some code/application version
control on a intranet. I'm using cherrypy and pysvn. Everything runs
quite good but i want the user to be able to checkout some projects
from the server. The user(on the client side) selects a folder in his
machine (i.e.: C:\Project1) and the server should checkout
(download/copy) all the project selected to the client machine. But
what happens is that the webserver shckout the project on the same
folder selected by the user but at server side. Everything works if
the user gives a network path (like \\pcname\sharedFolder). Any hint?

tnx!

Fabio

Aug 10 '06 #1
4 1811
Mr BigSmoke wrote:
Hi All,
I'm developing a website to handle some code/application version
control on a intranet. I'm using cherrypy and pysvn. Everything runs
quite good but i want the user to be able to checkout some projects
from the server. The user(on the client side) selects a folder in his
machine (i.e.: C:\Project1) and the server should checkout
(download/copy) all the project selected to the client machine. But
what happens is that the webserver shckout the project on the same
folder selected by the user but at server side. Everything works if
the user gives a network path (like \\pcname\sharedFolder). Any hint?
The folder is created on the server because that is where the CherryPy
code is running. It's not running on the client. Security concerns
dictate that this will never work the way you want. It's a fundamental
restriction of the web.
How would the user feel if they accidentally selected 'C:\windows\' as
the download path and their computer got messed up? ;-) Or more
likely, a spyware website could download a trojan to your computer when
you thought your were downloading a movie. When this kind of thing
happens today it's considered an exploit.

The reason that the UNC path works is that you are on an intranet and
the target PC has a shared folder. If you are actually signed on the
the web server and you open a CMD prompt you could key an equivalent
copy command and it would work. CherryPy is just doing the same thing.
But if your CheryPy app was exposed to the internet and I was running
it and asked to save the code to \\jgraves\share it would not work
because your intranet does not have a machine named 'jgraves'
(presumably).

I think the best that you could do would be to give a link to a zip
file and let the user choose the path they want to unzip to once they
have downloaded the file.

As for working with SVN, I really like TortoiseSVN but you would have
to install it on all machines which is what you are trying to avoid (I
think.)

Sorry to be the bearer of bad news.

....
jay graves

Aug 10 '06 #2
Tnx Jay... as i supposed there's no easy solution... I just thought
that, maybe, being on an intranet there was a possible solution...
About pysvn a tortoise... i do use tortoiseSVN and t works really
really fine.. we (developers) use it, but i'm writting server for
"normal" users that can checkout our applications releases... I'll try
some other solution... thanks very much!
cheers

Fabio
jay graves wrote:
Mr BigSmoke wrote:
Hi All,
I'm developing a website to handle some code/application version
control on a intranet. I'm using cherrypy and pysvn. Everything runs
quite good but i want the user to be able to checkout some projects
from the server. The user(on the client side) selects a folder in his
machine (i.e.: C:\Project1) and the server should checkout
(download/copy) all the project selected to the client machine. But
what happens is that the webserver shckout the project on the same
folder selected by the user but at server side. Everything works if
the user gives a network path (like \\pcname\sharedFolder). Any hint?

The folder is created on the server because that is where the CherryPy
code is running. It's not running on the client. Security concerns
dictate that this will never work the way you want. It's a fundamental
restriction of the web.
How would the user feel if they accidentally selected 'C:\windows\' as
the download path and their computer got messed up? ;-) Or more
likely, a spyware website could download a trojan to your computer when
you thought your were downloading a movie. When this kind of thing
happens today it's considered an exploit.

The reason that the UNC path works is that you are on an intranet and
the target PC has a shared folder. If you are actually signed on the
the web server and you open a CMD prompt you could key an equivalent
copy command and it would work. CherryPy is just doing the same thing.
But if your CheryPy app was exposed to the internet and I was running
it and asked to save the code to \\jgraves\share it would not work
because your intranet does not have a machine named 'jgraves'
(presumably).

I think the best that you could do would be to give a link to a zip
file and let the user choose the path they want to unzip to once they
have downloaded the file.

As for working with SVN, I really like TortoiseSVN but you would have
to install it on all machines which is what you are trying to avoid (I
think.)

Sorry to be the bearer of bad news.

...
jay graves
Aug 10 '06 #3
"Mr BigSmoke" <fa**********@gmail.comwrites:
Tnx Jay... as i supposed there's no easy solution... I just thought
that, maybe, being on an intranet there was a possible solution...
There are ways to ask the user for permission to install stuff on the
client (that's how self-installers work) but they're messy and browser
specific.
Aug 10 '06 #4
Mr BigSmoke wrote:
Tnx Jay... as i supposed there's no easy solution... I just thought
that, maybe, being on an intranet there was a possible solution...
About pysvn a tortoise... i do use tortoiseSVN and t works really
really fine.. we (developers) use it, but i'm writting server for
"normal" users that can checkout our applications releases...
If the goal is to allow final users to download releases, then it's
simpler - you just have to serve them with archived (zipped, tarballs,
Python-Eggs, whatever) versions of the last release so they can download
it - the browser will then ask them where tehy want to save it.

Aug 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Spiegel | last post by:
Hi all, I think this is a longshot, but is there a technique for programmatically run a webpage? Let's say one of our vendors has a page that we go to daily to pick up some files. Each time,...
7
by: Sally | last post by:
In a subform that has no records, what is the white area? If a subform has records and you scroll the records, what is the white area after the last record? I would like to be able to click in...
3
by: Claire | last post by:
Sorry for such a daft question. Ive been following some tutorials on creating windows services. Ive not done them before. In my original debuggable windows form application, I create my worker...
2
by: Mike Kingscott | last post by:
Hi all, Ok, I'm running Windows 2000, service pack 4. I have .Net framework installed, version 1.1.4322, I'm running IIS 5.0. When I try to open a solution that was opening just dandy last week,...
5
by: Jozef | last post by:
Hello, I have an Access XP database that has attachments to a BE database that has a password. The attachments work fine, until I run some code that modifies a BE table (adding a field). I do...
2
by: VMI | last post by:
In the Event Viewer I've been getting this error when I try to run an already-made web application: "aspnet_wp.exe could not be started. The error code for the failure is 80070545. This error..."....
5
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; How are we supposed to handle this. It appears that this must be run on a system for an ASP.NET app to run. On WinXP we are finding that the user ASPNET does not exist until this is run. ...
2
by: Javier1958 | last post by:
Hi all I have a problem running Visual Basic 2005 (.NET) programs in other computers different of that where I have Visual Studio installed. I know I have to install the .NET framework in the...
4
by: kidko | last post by:
I'm writing a small game in Javascript (using just PNGs for graphics and DOM manipulation to move them), and most of the content is procedurally generated. This includes all of the weapons involved,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.