Route names must match pgwui component names
authorKarl O. Pinc <kop@karlpinc.com>
Sat, 27 Jun 2020 22:20:11 +0000 (17:20 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Sat, 27 Jun 2020 22:20:11 +0000 (17:20 -0500)
README.rst
src/pgwui_upload/__init__.py

index a4610f2c99a145692c2853d45eacefeb35df23b7..d75e761d84058a77507d798a23be3a5ed5ed47bd 100644 (file)
@@ -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
index 2155315ed0d5fd75ba268cc6efaa32468c718dca..167613a8b4f7a7b0c1471d3a17313412f90b7d4e 100644 (file)
@@ -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.
 #
 # <http://www.gnu.org/licenses/>.
 #
 
-# Karl O. Pinc <kop@meme.com>
+# Karl O. Pinc <kop@karlpinc.com>
 
 '''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()