Re: How to use Pyramid/models outside of WSGI/Paster

2011-06-10 Thread Thomas G. Willis
But that's really a python pastedeploy thing. you dont need the import 
pyramid to get the app initialized from configuration. 

Python Paste has docs, http://pythonpaste.org/deploy/#basic-usage


Maybe pyramids docs could elaborate on the capabilities of pastedeploy in 
this section.
http://docs.pylonsproject.org/projects/pyramid/1.0/narr/startup.html 

However I think things like that would probably not be in scope, it's 
probably good enough that PasteDeploy is mentioned and curious users can go 
research themselves. :)

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/txTgkoJD6UMJ.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



How to use Pyramid/models outside of WSGI/Paster

2011-06-08 Thread somewhatofftheway
I'm new to Pyramid and can't figure out how to do something which
seems like it should be quite a common requirement.

Basically, I want to write a script that will use the database models
but will not need to do HTTP requests. The idea is that I can run it
by cron or whatever.

The equivalent in Pylons is answered here:

http://stackoverflow.com/questions/134387/run-pylons-controller-as-separate-app

Could anybody assist and tell me if there is a simple way to achieve
this? I have spent some time looking at Paster commands and the like
but without success.

Thanks,
Ben

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: How to use Pyramid/models outside of WSGI/Paster

2011-06-08 Thread Gael Pasgrimaud
Hi,

I guess that this thread already contain a reply:

http://groups.google.com/group/pylons-discuss/browse_thread/thread/fb1f4c49cf34eee2?hl=en#

But I'm agree that this point should be added in the pyramid
documentation with a recommended way to do that. It's a common need

--
Gael

On Tue, Jun 7, 2011 at 2:13 AM, somewhatofftheway
benjamins...@gmail.com wrote:
 I'm new to Pyramid and can't figure out how to do something which
 seems like it should be quite a common requirement.

 Basically, I want to write a script that will use the database models
 but will not need to do HTTP requests. The idea is that I can run it
 by cron or whatever.

 The equivalent in Pylons is answered here:

 http://stackoverflow.com/questions/134387/run-pylons-controller-as-separate-app

 Could anybody assist and tell me if there is a simple way to achieve
 this? I have spent some time looking at Paster commands and the like
 but without success.

 Thanks,
 Ben

 --
 You received this message because you are subscribed to the Google Groups 
 pylons-discuss group.
 To post to this group, send email to pylons-discuss@googlegroups.com.
 To unsubscribe from this group, send email to 
 pylons-discuss+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/pylons-discuss?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.