Beispiel #1
0
    def create_resource_link(self, lti_consumer, lti_context=None, resource_link_id=None, compair_assignment=None):
        lti_resource_link = LTIResourceLinkFactory(
            lti_consumer=lti_consumer,
            compair_assignment=compair_assignment
        )
        if lti_context:
            lti_resource_link.lti_context = lti_context
        if resource_link_id:
            lti_resource_link.resource_link_id = resource_link_id

        self.lti_resource_links.append(lti_resource_link)

        db.session.commit()

        return lti_resource_link
Beispiel #2
0
    def create_resource_link(self,
                             lti_consumer,
                             lti_context=None,
                             resource_link_id=None,
                             compair_assignment=None):
        lti_resource_link = LTIResourceLinkFactory(
            lti_consumer=lti_consumer, compair_assignment=compair_assignment)
        if lti_context:
            lti_resource_link.lti_context = lti_context
        if resource_link_id:
            lti_resource_link.resource_link_id = resource_link_id

        self.lti_resource_links.append(lti_resource_link)

        db.session.commit()

        return lti_resource_link
Beispiel #3
0
    def generate_resource_link_id(self):
        lti_resource_link = LTIResourceLinkFactory.stub()

        return lti_resource_link.resource_link_id
Beispiel #4
0
    def generate_resource_link_id(self):
        lti_resource_link = LTIResourceLinkFactory.stub()

        return lti_resource_link.resource_link_id