Scifabric / pybossa

PYBOSSA is the ultimate crowdsourcing framework (aka microtasking) to analyze or enrich data that can't be processed by machines alone.
http://pybossa.com
GNU Affero General Public License v3.0
745 stars 269 forks source link

Simplify updating of presenter templates #141

Closed gka closed 12 years ago

gka commented 12 years ago

Why not simply have a

PUT /api/APP_ID/template

endpoint in order to set/update the task presenter template?

I don't want to re-transmit thumbnails, long descriptions and all those stuff every time.

teleyinex commented 12 years ago

Good one :-) I'll try to check how easy will be, ok?

gka commented 12 years ago

great, thx.

gka commented 12 years ago

Think it's not that important anymore. Meanwhile I helped myself using a little PyBossa client which simplifies things a lot. Here's how I update a presenter template now:

import pbclient

pbclient.set('api_url', 'http://pybossa.com')
pbclient.set('api_key', '--my-api-key--')

app = pbclient.find_app(short_name='flickrperson')
app.info['task_presenter'] = open('presenter.html', 'r').read()
pbclient.update_app(app)
gka commented 12 years ago

PyBossa client moved to its own repository: https://github.com/PyBossa/pybossa-client

Think there's no need to simplify the API.