On Friday, April 29, 2016 at 1:11:25 AM UTC-4, golauty wrote:
>
> My data model would fetch data from a couple of sources via rest api, this 
> data would then be used by the views.
> Ocassionaly(very rare) i want to push data to my model and finally do post 
> requests.
>

This strategy won't work under Pyramid or most other frameworks due to 
thread local variables.  You can learn more 
here 
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/threadlocals.html

Any data you stash in the registry should be considered "read only".  This 
includes data your app reads/generates and connections to databases.  If 
you want to update data, you can read/write from an external memory storage 
system like Redis or Memcached.  

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/32c5a78c-3e0d-48b4-bb9d-97fe7050134c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to