I'm writing a python Script that handles user uploaded files (among other things). I'd like users to be able to overwrite files and looking at the API update_data() appears to be what I want. I did notice the caveat that it was callable by Python only, but no good explaination as to whether this meant just External Methods or Scripts or something else. And, sure enough when I try and use the Script I'm shown a login box and asked for authentication (even when the admin already). When I cannot authenticate I'm told that I don't have the proper permissions. So, there are two questions here, 1. just what is allowed to call update_data() 2. is there something else that I can call instead? Cheers, -- Bryan C. Andregg Duke University Medical Center Programmer Dept. of Anesthesiology e <bryan.andregg@duke.edu> p +1 919 684 6201
Bryan C. Andregg writes:
I'm writing a python Script that handles user uploaded files (among other things). I'd like users to be able to overwrite files and looking at the API update_data() appears to be what I want. I did notice the caveat that it was callable by Python only, but no good explaination as to whether this meant just External Methods or Scripts or something else. The distinction is not Python versus something else but rather file system based versus TTW (Through The Web editable) code.
When the API says, "Python only", it means "file system based Python only" (or a XXPythonScript). You can use an External Method or a Python implemented product. Dieter
On Wednesday 13 February 2002 11:41 am, Bryan C. Andregg wrote:
I'm writing a python Script that handles user uploaded files (among other things). I'd like users to be able to overwrite files and looking at the API update_data() appears to be what I want. I did notice the caveat that it was callable by Python only, but no good explaination as to whether this meant just External Methods or Scripts or something else.
And, sure enough when I try and use the Script I'm shown a login box and asked for authentication (even when the admin already). When I cannot authenticate I'm told that I don't have the proper permissions.
So, there are two questions here,
1. just what is allowed to call update_data()
unrestricted python code, ie external methods or python products
2. is there something else that I can call instead?
manage_edit hth kapil
participants (3)
-
Bryan C. Andregg -
Dieter Maurer -
kapil thangavelu