My Pyramid application facilitates importing and exporting GIS data, as 
well as allowing users to view and modify the data on a web map. Currently, 
when the application is first launched, all views are generated dynamically 
and routes are assigned to the config based on what data exists and what 
tables are available.

For example, if the tables "building" and "road" exist, GIS views to 
UPDATE, INSERT, and DELETE to these tables are generated at startup (using 
Papyrus).

What I need to accomplish is to add new views and routes when a user 
uploads new data, without needing to restart the app. 

Let's say a user uploads new GIS data (shapefile) that doesn't yet have 
Papyrus views defined. My code imports the data into the Postgres database, 
and creates a new SQLAlchemy model to map to that new table. I know how to 
map this SQLAlchemy model to a set of Papyrus views on app initialization, 
but *how do I access the Configurator object after app initialization (or 
is that even allowed)?*

My first thought was to just use a single set of views and routes for all 
of the GIS tables, but you need to assign the GIS table to the Papyrus 
"Protocol" class on definition. I may need to customize how that works if I 
cannot add new views or routes after the app has started.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to