dicarlolab / mturkutils

High-throughput web-based human psychophysics
0 stars 4 forks source link

Sandboxing #5

Closed yamins81 closed 10 years ago

yamins81 commented 10 years ago

@ardila there's something I don't understand about the current mturk code as you've been using it. Specifically, how are you handling Sandboxing?

n Ha's code, he writes separate HTMLs to S3, one for the sandbox version and one for the real version. This is what I've done in the past.

However, the html templates you have largely appear to submit results to the real mturk server, by a call to: https://www.mturk.com/mturk/externalSubmit

But to sandbox, you need to have a call to:

https://workersandbox.mturk.com/mturk/externalSubmit

But the write_html and methods that call it don't take a "sandbox" argument, and that the original call appears to unmodified. How do you get the HTMLs uploaded to S3 to direct output to correct server when you sandbox?

Thanks!

ardila commented 10 years ago

My sandboxed html files will fail to submit in the Sandbox, which is a slight problem, but you can still see them and check that they work, and that was enough for me.

On Sat, May 24, 2014 at 5:50 PM, Dan Yamins notifications@github.comwrote:

@ardila https://github.com/ardila there's something I don't understand about the current mturk code as you've been using it. Specifically, how are you handling Sandboxing?

n Ha's code, he writes separate HTMLs to S3, one for the sandbox version and one for the real version. This is what I've done in the past.

However, the html templates you have largely appear to submit results to the real mturk server, by a call to: https://www.mturk.com/mturk/externalSubmit

But to sandbox, you need to have a call to:

https://workersandbox.mturk.com/mturk/externalSubmit

But the write_html and methods that call it don't take a "sandbox" argument, and that the original call appears to unmodified. How do you get the HTMLs uploaded to S3 to direct output to correct server when you sandbox?

Thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/dicarlolab/mturkutils/issues/5 .