From: Karl O. Pinc Date: Sat, 27 Jun 2020 22:20:11 +0000 (-0500) Subject: Route names must match pgwui component names X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=b275e4706288b7bca27200d1a203f649a6772abc;p=pgwui_upload_core Route names must match pgwui component names --- 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()