From b275e4706288b7bca27200d1a203f649a6772abc Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sat, 27 Jun 2020 17:20:11 -0500 Subject: [PATCH] Route names must match pgwui component names --- README.rst | 4 ++-- src/pgwui_upload/__init__.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index a4610f2..d75e761 100644 --- a/README.rst +++ b/README.rst @@ -60,10 +60,10 @@ URL Configuration ----------------- The default URL for PGWUI_Upload looks like -*https://www.example.com/upload*. The route name is ``upload``. +*https://www.example.com/upload*. See the PGWUI_Server documentation for how to configure a different -route. +URL. Development Status diff --git a/src/pgwui_upload/__init__.py b/src/pgwui_upload/__init__.py index 2155315..167613a 100644 --- a/src/pgwui_upload/__init__.py +++ b/src/pgwui_upload/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2018 The Meme Factory, Inc. http://www.meme.com/ +# Copyright (C) 2018, 2020 The Meme Factory, Inc. http://www.karlpinc.com/ # This file is part of PGWUI_Upload. # @@ -17,16 +17,16 @@ # . # -# Karl O. Pinc +# Karl O. Pinc '''Provide a way to configure PGWUI. ''' - +PGWUI_COMPONENT = 'pgwui_upload' DEFAULT_UPLOAD_ROUTE = '/upload' def includeme(config): '''Pyramid configuration for PGWUI_Upload ''' - config.add_route('upload', DEFAULT_UPLOAD_ROUTE) + config.add_route(PGWUI_COMPONENT, DEFAULT_UPLOAD_ROUTE) config.scan() -- 2.34.1