Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Example prosthetics in a django-nonrel based runner environment.
Python JavaScript Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
djangoappengine
dreamer WVRS-124: tool to fix broken dreamer images
emotional
errormon
gaeauth
jswrapper
media
oauth
redirector
templates
webapp
.gitignore
COPYING
README.md
__init__.py
app.yaml.local.template
app.yaml.template
base_prosthetic.py
bleach.zip
build_local_environment.py
cron.yaml
deploy
django-nonrel.zip
djangotoolbox.zip
html5lib.zip
index.yaml
main.py
manage.py
settings.py
urls.py
zip_loader.py

README.md

Prerequisites

  • Google App Engine SDK installed

Running the prosthetic server locally

  • copy app.yaml.local.template to app.yaml.local and edit to include an application name. (can be anything for local development)
  • Create a super-user with the following commands in the python console:
    from django.contrib.auth.models import User
    su = User.objects.create_user('admin', 'admin@localhost', 'password') 
    su.is_staff = True
    su.is_superuser = True 
    su.save()
  • run "python manage.py runserver" to start the prosthetic server on http://localhost:8000/

Running the prosthetic server remotely

  • register a google app engine domain (http://appengine.google.com/)
  • copy app.yaml.local.template to app.yaml.local and edit to include the name of your registered domain
  • run "python manage.py deploy" to deploy the application on GAE.
  • (once deployed) run "python manage.py remote shell" to connect to the server remotely.
  • Create a super-user with the following commands in the python console:
    from django.contrib.auth.models import User
    su = User.objects.create_user('admin', 'admin@localhost', 'password') 
    su.is_staff = True
    su.is_superuser = True 
    su.save()

(you probably want to use a better username/password)

  • Visit your app at http://.appspot.com/

Adding a prosthetic to the server

  • Visit the admin site (/admin/) on your server. Log in. Click the "add" button next to 'prosthetics'.
  • Fill in the name and description of your prosthetic. Can be anything.
  • The classname needs to be the python classname of the implementation of your prosthetic. The bundled interesting prosthetic classes are "emotional.prosthetic.Emotional" or "dreamer.prosthetic.Dreamer". If your classname is the same as the folder name, but capitalized, you can just use a single word ('emotional' or 'dreamer' in this case).
  • Server should be the hostname of the weavrs server you want your prosthetic to talk to. Probably www.weavrs.com.
  • Consumer key/secret are from the prosthetic page on the weavrs server. Visit http://www.weavrs.com/developer/ for details.
  • Check 'show on homepage' if this is the main prosthetic you want to run on this server. A server can contain multiple prosthetics, but only one will be displayed on the homepage of the server.
  • Click "save"
  • Return to the root of your site to see the enabled prosthetic.

Other code

This source tree includes the following other projects:

Something went wrong with that request. Please try again.