Rahul Warhekar
rahul.warhekar at edisphere.com
Thu Aug 5 08:49:11 EDT 2010
Hello, Ok, I will change my question. I want to open remote servers text file using mod_python in my program, to display file contents in browser for reading. But I am getting result as 'FALSE' when I tried to check the availability of that path in my program. For checking path I have used Os.access(path, os.F_OK) function. But for information when I used the same function with same path from Python IDE I am getting output as 'TRUE'. Please guide me with the problem. I am being stuck on this place. Thanks, Rahul Warhekar From: mod_python-bounces at modpython.org [mailto:mod_python-bounces at modpython.org] On Behalf Of Rahul Warhekar Sent: Wednesday, August 02, 2010 9:16 PM To: mod_python at modpython.org Subject: [mod_python] Error in reading remote server file with HTTP Hello All, I am trying to read file from remote machine using mod_python, but I am getting Error while using opening the file. So I tried to use os.access (path, F_OK) to check for path availability from Python IDE so it returns 'True' but when I Tries the same os.access(path, F_OK) function from browser it is returning 'False'. I think this function might be due to some security reasons but my os.access() is returning true when executed from Python IDE. Any help regarding this will be greatly appreciated. Thanks In advance Rahul Warhekar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20100805/940c3e9c/attachment.html
|