Skip to content

Instantly share code, notes, and snippets.

@jdunne-kaplan
Created March 18, 2015 16:32
Show Gist options
  • Save jdunne-kaplan/4994580f19dbb5da1892 to your computer and use it in GitHub Desktop.
Save jdunne-kaplan/4994580f19dbb5da1892 to your computer and use it in GitHub Desktop.
Add participant to session
import models
from google.appengine.ext import ndb
import lib
lib.session.create_participant(
opaqueID='TODO',
firstName='KAPx',
lastName='Developer',
username='kapxdev',
emailAddress='kapxdev@kapx.com',
roleID=models.DBParticipant.ROLE_ADMINISTRATOR
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment