moved common cartridge folder up a level

refs #3396

Change-Id: I34eca357286e50b0d3d82c15e27dfb4015da45a4
Reviewed-on: https://gerrit.instructure.com/3041
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
This commit is contained in:
Bracken Mosbacker 2011-04-07 13:25:41 -06:00 committed by Brian Palmer
parent 76470f7592
commit cfe4b5ffc8
25 changed files with 41 additions and 41 deletions

View File

@ -17,7 +17,7 @@
#
class ContentExportsController < ApplicationController
before_filter :require_context
before_filter :require_context, :except => :xml_schema
before_filter { |c| c.active_tab = "settings" }
def index
@ -77,7 +77,7 @@ class ContentExportsController < ApplicationController
def xml_schema
file = nil
if params[:version]
file = Rails.root + "lib/canvas/cc/xsd/#{params[:version]}.xsd"
file = Rails.root + "lib/cc/xsd/#{params[:version]}.xsd"
end
if File.exists?(file)

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
require 'cc/cc'
class ContentExport < ActiveRecord::Base
include Workflow
belongs_to :course
@ -51,7 +51,7 @@ class ContentExport < ActiveRecord::Base
self.workflow_state = 'exporting'
self.save
begin
if Canvas::CC::CCExporter.export(self)
if CC::CCExporter.export(self)
self.workflow_state = 'exported'
else
self.workflow_state = 'failed'

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module AssignmentGroups
def create_assignment_groups
return nil unless @course.assignment_groups.active.count > 0

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module AssignmentResources
def add_assignments

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module BasicLTILinks
def create_basic_lti_links
return nil unless @manifest.basic_ltis.length > 0

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module CanvasResource
include ModuleMeta
include ExternalFeeds

View File

@ -21,20 +21,20 @@ require 'set'
require 'zip/zip'
# Canvas Common Cartridge
module Canvas::CC
module CC
end
require 'canvas/cc/cc_helper'
require 'canvas/cc/cc_exporter'
require 'canvas/cc/manifest'
require 'canvas/cc/wiki_resources'
require 'canvas/cc/module_meta'
require 'canvas/cc/learning_outcomes'
require "canvas/cc/canvas_resource"
require "canvas/cc/assignment_resources"
require "canvas/cc/topic_resources"
require "canvas/cc/web_resources"
require "canvas/cc/web_links"
require 'canvas/cc/resource'
require 'canvas/cc/organization'
require 'canvas/cc/qti/qti'
require 'cc/cc_helper'
require 'cc/cc_exporter'
require 'cc/manifest'
require 'cc/wiki_resources'
require 'cc/module_meta'
require 'cc/learning_outcomes'
require "cc/canvas_resource"
require "cc/assignment_resources"
require "cc/topic_resources"
require "cc/web_resources"
require "cc/web_links"
require 'cc/resource'
require 'cc/organization'
require 'cc/qti/qti'

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
class CCExporter
attr_accessor :course, :user, :export_dir, :manifest, :zip_file

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module CCHelper
CANVAS_NAMESPACE = 'http://canvas.instructure.com/xsd/cccv1p0'

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module ExternalFeeds
def create_external_feeds
return nil unless @course.external_feeds.count > 0

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module GradingStandards
def create_grading_standards
return nil unless @course.grading_standards.count > 0

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module LearningOutcomes
def create_learning_outcomes
return nil unless LearningOutcome.active.find_all_by_context_id_and_context_type(@course.id, 'Course').count > 0

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
class Manifest
include CCHelper

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module ModuleMeta
def create_module_meta
return nil unless @course.context_modules.active.count > 0

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
class Organization
include CCHelper

View File

@ -20,5 +20,5 @@ module Canvas:CC
end
end
require 'canvas/cc/qti/qti_generator'
require 'cc/qti/qti_generator'

View File

@ -15,10 +15,10 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module QTI
class QTIGenerator
include Canvas::CC::CCHelper
include CC::CCHelper
include QTIItems
def initialize(manifest, resources_node)

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module QTI
module QTIItems

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
class Resource
include CCHelper
include WikiResources

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module Rubrics
def create_rubrics
return nil unless @course.rubrics.active.count > 0

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module TopicResources
def add_topics

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module WebLinks
def add_web_links
@manifest.weblinks.each do |tag|

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module WebResources
def add_course_files
course_folder = Folder.root_folders(@course).first

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
module Canvas::CC
module CC
module WikiResources
def add_wiki_pages