While testing the function by the Python Script Shell, camera.take_photo() seems work. (The light next to the camera flashes) But there is no camera.jpg in the file system.
On the other hand I test the same function in MWS, i.e., link an URL by a browser to execute the camera.py. The error messages are as followings. It seems that the camera module can not be imported in MWS.
File "c:\resource\mod_python\apache.py", line 356, in HandlerDispatch
File "c:\resource\mod_python\apache.py", line 629, in import_module
module = imp.load_module(mname, f, p, d)
File "C:/Data/Web server/htdocs/pdacamera/cameraHandler.py", line 10, in ?
File "C:\Data\Web server\htdocs\camera.py", line 5, in ?
AttributeError: 'module' object has no attribute 'take_photo'