def create_profile(self, user):
        salt = sha_constructor(str(random.random())).hexdigest()[:5]
        username = user.username
        if isinstance(username, unicode):
            username = username.encode('utf-8')
        activation_key = sha_constructor(salt+username).hexdigest()
        return self.create(user=user,
                           activation_key=activation_key)
Takes a video object and returns HTML markup for embedding it.
dataset/ETHPy150Open nathanborror/django-registration/registration/models.py/RegistrationManager.create_profile--crossover with--dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/parser.py/generate_video