Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: develop
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (16 sloc) 0.55 kB
from google.appengine.ext import db
from models import base
from hashlib import sha256
from random import random
import string
class Twiml(base.CommonModel):
AccountSid = db.StringProperty()
Url = db.StringProperty()
Twiml = db.BlobProperty() #pickled since its a list, 0,0 means first child of first element
Current = db.ListProperty(int, default = [0])
Initial = db.BooleanProperty(default = True)
CallSid = db.StringProperty()
SmsSid = db.StringProperty()
@classmethod
def new_Sid(self):
return 'TW'+sha256(str(random())).hexdigest()
Jump to Line
Something went wrong with that request. Please try again.