Questions tagged [paster]

a set of utilities for web development in Python described as "a framework for web frameworks"

Python Paste

The Python Paste package contains Python modules that help in implementing WSGI middleware.

The package includes a WSGI wrapper for CGI applications. It also includes a simple webserver that can produce WSGI requests.

WSGI Middleware

The WSGI standard is an interface that allows applications to use Python code to handle HTTP requests. A WSGI application is passed a Python representation of an HTTP request by an application, and returns content which will normally eventually be rendered by a web browser. A common use for this is when a web server serves content created by Python code.

There are, however, other uses: WSGI middleware is Python code that receives a WSGI request and then performs logic based upon this request, before passing the request on to a WSGI application or more WSGI middleware. WSGI middleware appears to an application as a server, and to the server as an application. This is analogous to the function of pipes on Unix systems. Functionality provided by WSGI middleware may include authentication, logging, url redirection, creation of sessions, and compression.

Paste helps in developing such WSGI middleware systems. For example, it is used in the Pylons web application framework.

Subcomponents of Paste

Paste has been a long-running open source project, dating from at least 2005. As it has grown, it has unbundled several other utilities from the Paste core. These utilities are part of the Paste project, but form their own packages and have their own version numbers. They include:

WebOb is a wrapper around the WSGI environment. Paste Deploy is a system for finding and configuring WSGI applications and servers. Paste Script, WebTest, ScriptType, INITools, Tempita, WaitForIt, WPHP, WSGIFilter, and WSGIProxy are other notable bundles.

111 questions
4
votes
2 answers

'gunicorn --paster' log messages not shown

I am starting gunicorn with the --paster option for running Pyramid. gunicorn -w 1 --paster development.ini gunicorn's own messages show up fine on console, for example 2014-02-20 22:38:50 [44201] [INFO] Starting gunicorn 18.0 2014-02-20 22:38:50…
Jonathan
  • 41
  • 2
4
votes
3 answers

No module named deploy when trying to start pyramid app with mod_wsgi

trying to use mod_wsgi for the first time for my pyramid app, but I keep getting an ImportError: No module named deploy when I try to access the site in my /etc/apache2/sites-available/domain.com ServerName domain.com …
minovsky
  • 857
  • 1
  • 15
  • 28
4
votes
7 answers

Pylons: address already in use when trying to serve

I'm running pylons and I did this: paster server development.ini It's running on :5000 But when I try to run the command again: paster serve development.ini I get this message: socket.error: [Errno 98] Address already in use Any ideas?
resopollution
  • 19,600
  • 10
  • 40
  • 49
3
votes
1 answer

Paster daemon won't shut down because can't read own pid file

TL;DR version: When I ask Paster to stop-daemon, it fails to read its own file that it uses to track its process id. Longer version: I am running Paster (pastescript 1.7.3) on Python 2.7.1 on Windows Vista. My first surprise comes from running a…
Oddthinking
  • 24,359
  • 19
  • 83
  • 121
3
votes
1 answer

Using the paste "call" scheme when starting a Pyramid application

I have a Pyramid application which I can start using pserve some.ini. The ini file contains the usual paste configuration and everything works fine. In production, I use uwsgi, having a paste = config:/path/to/some.ini entry, which works fine…
Achim
  • 15,415
  • 15
  • 80
  • 144
3
votes
1 answer

Paster cannot stop daemon

I'm using the following command in my pylons app in an attempt to stop the daemon on the server: paster serve --daemon dev.ini stop This is the error I get: No PID file exists in paster.pid Could not stop daemon; aborting Wondering how I can stop…
resopollution
  • 19,600
  • 10
  • 40
  • 49
3
votes
1 answer

Can't access Ubuntu web server from local machine

I'm running python paste http server on port 8087 on Ubuntu 11.10 nmap says 8087/tcp is open ufw firewall is inactive But if I pull its local ip up (192.168.1.50:8087) on another local network machine, it cannot connect. I can ping 192.168.1.50 on…
Vigrond
  • 8,148
  • 4
  • 28
  • 46
3
votes
2 answers

Paste (Python) Web Server - Autoreload Problem

When I start the `Paste' web server in daemon mode, it seems to kill off it's ability to reload when the timestamp of a source file is updated. Here is how I start the daemon... cd ${project} && ../bin/paster serve --reload --daemon development.ini;…
khosrow
  • 8,799
  • 4
  • 21
  • 24
3
votes
1 answer

After running paster, I have a few eggs in my product

I just ran bin/paster create -t dexterity my.example After running it, I have the following: bootstrap.py docs my.example.egg-info PasteDeploy-1.5.0-py2.6.egg plone.cfg setup.cfg buildout.cfg my Paste-1.7.5.1-py2.6.egg …
JiL
  • 65
  • 1
  • 6
2
votes
2 answers

Get Dreamweaver to highlight .mako files as .html

Ideally, I would like to be able to treat a site built using Mako templates in Dreamweaver, as I'm merely working on the design aspect. I imagine the work will go much faster if I could edit .mako files in Dreamweaver and have it render the file…
Jon Mitten
  • 1,965
  • 4
  • 25
  • 53
2
votes
2 answers

Plone buildout error when using a package created with paster

I'm new to Plone (4.1) and following Martin Aspeli's Professional Plone 4 development book. While following the book to create a custom theme, named optilux.theme (chapter 8), I encounter the following errors: http://pastie.org/3201791 The first…
fredo
  • 315
  • 1
  • 8
2
votes
1 answer

any way to composite configuration/.ini files in pylons?

We're running a pylons app with multiple ini files (production, staging, development, etc). When a new setting is added that can be the same in all environments, it would be great to be able to set it once in some sort of master configuration that…
dkuebric
  • 415
  • 1
  • 3
  • 6
2
votes
1 answer

Base path in paster configuration

I'm trying to deploy some Pyramid code to dotcloud. Unfortunately some paths are not mapped in the same way as in local paster deployment. When I'm running the development configuration with local server through paster serve ..., I can access static…
viraptor
  • 33,322
  • 10
  • 107
  • 191
2
votes
1 answer

Error when creating Database Tables - CKAN

i'm trying to install CKAN 2.5.2 on Centos 6.8 When i run paster db init -c /etc/ckan/default/development.ini i get error Traceback (most recent call last): File "/usr/lib/ckan/default/bin/paster", line 9, in
2
votes
1 answer

When using paster web server, does it service requests by creating a new thread?

Does paster create a new thread per request? Can you set the maximum number of threads for paster to use i.e. a thread pool? How can you if this is possible?
Blankman
  • 259,732
  • 324
  • 769
  • 1,199