Beispiel #1
0
def addon(config):

    if Validate.bool(config.registry.settings.get('d2l_on','False')) == False:
        return config
    
    # D2L Routes
    add_route(config, 'd2l_authorization', '/d2l/login')
    add_route(config, 'd2l_dropbox_submit', '/d2l/dropbox/submit')
    add_route(config, 'd2l_dropbox', '/d2l/dropbox/{id}')
    add_route(config, 'd2l_instructor_grades', '/d2l/instructors/grades/{id}')
    
    Addons.register('D2L Integration','1.0.0')
    config.scan()
    return config
    
    
    
Beispiel #2
0
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#

from quizsmith.app.utilities import add_route
from quizsmith.setup import Addons

Addons.register('QuizSmith Core','1.0.0')
def addon(config):

    # App Routes
    config.add_route('menu', '/') #root
    add_route(config, 'help', '/help')
    add_route(config, 'feedback', '/help/feedback')
    add_route(config, 'credits', '/credits')
    add_route(config, 'profile', '/profile')
    add_route(config, 'change_password', '/profile/change')
    add_route(config, 'halt', '/halt')
    add_route(config, 'login', '/login')
    add_route(config, 'logout', '/logout')
    add_route(config, 'register', '/register')
    add_route(config, 'alias', '/alias')
    add_route(config, 'category', '/category')
Beispiel #3
0
#     http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#

from quizsmith.app.utilities import PyramidFormalchemyACL, add_route
from quizsmith.app.views import BaseView
from quizsmith.app.models import Categories
from quizsmith.app.utilities import ACL
from quizsmith.setup import Addons

Addons.register('QuizSmith Admin Panel','1.0.0')
def addon(config):

    # Edit Panel Routes
    add_route(config, 'edit_home','/edit')
    add_route(config, 'edit_categories','/edit/categories')
    add_route(config, 'edit_info', '/edit/info')
    add_route(config, 'import_category', '/edit/category/import')
    add_route(config, 'edit_category','/edit/category/{category}')
    add_route(config, 'edit_questions', '/edit/category/{category}/questions')
    add_route(config, 'edit_question','/edit/category/{category}/questions/{id}')
    add_route(config, 'export_category', '/edit/category/{category}/export/{category_name}.zip')
    add_route(config, 'edit_delete', '/edit/delete/{type}/{id}')
    add_route(config, 'edit_groups', '/edit/groups')
    add_route(config, 'edit_theme', '/edit/theme')
    add_route(config, 'export_theme', '/edit/theme/export/{theme_name}.zip')