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
0
votes
1 answer

Pylons: question about websetup.py use

reading pylons documentations I did understand that websetup:setup_app is only called when the application is setup at first time by paster script. But, I found now, setup_app is call every time that application starts. Debugging the code, this…
Hugo
  • 2,139
  • 4
  • 22
  • 30
0
votes
1 answer

Intermittent CKAN database backup error

I have scheduled a backup of my CKAN database which resides on a remote UNIX box using cron. I run a simple script with the code below: . /usr/lib/ckan/default/bin/activate cd /usr/lib/ckan/default/src/ckan paster db dump…
NenadK
  • 381
  • 1
  • 6
  • 19
0
votes
1 answer

Paster make-config is deprecated and rhodecode-config not known

I'm trying to create production.ini file for rhodecode based on this tutorial. But paster gives the following error: ** Warning ** This command is now removed and deprecated, please use new rhodecode-config command instead. When I try to use…
0xmtn
  • 2,625
  • 5
  • 27
  • 53
0
votes
2 answers

Losing 'post' requests sent to Pylons paster server

I'm sending post requests to a Pylons server (served by paster serve), and if I send them with any frequency many don't arrive at the server. One at a time is ok, but if I fire off a few (or more) within seconds, only a small number get dealt with.…
0
votes
1 answer

What is the paste deploy uri syntax?

Paste Deploy can reference code with uris such as [section] use = egg:FooBar#baz What is the full syntax for these uris?
joeforker
  • 40,459
  • 37
  • 151
  • 246
0
votes
1 answer

How to run a clone of reddit.com website. Reddit.com source code gives error while implementing on Ubuntu 9.10 (karmic)

I am implementing the reddit.com source code on ubuntu karmic 9.10. I have followed all the steps and in one step where i am using paster command it throws an error. $paster shell example.ini File…
SIA
  • 773
  • 3
  • 11
  • 22
0
votes
1 answer

How do I use Flickzeug to get interactive tracebacks from a paste deploy WSGI pipeline?

I'd like to use Flickzeug to see interactive tracebacks by adding it to my paste deploy file's pipeline. The following doesn't work. What will? [pipeline] pipeline = flickzeug myapp
joeforker
  • 40,459
  • 37
  • 151
  • 246
0
votes
1 answer

Paste Script: Warning: could not load entry point app (ImportError: No module named app)

I'm developing small project with ability scaffold (copy project files as an template). Truing to build my project by following this tutorial This is what official documentation suggests. mkvirtuallenv app than paster create app than added in my…
Pol
  • 24,517
  • 28
  • 74
  • 95
0
votes
1 answer

Pylons Custom Middleware return 404

I have the following code as a middleware in an pylons application: import testing.model as model import re from pylons.controllers.util import abort class SubdomainCheckMiddleware(object): def __init__(self, app): self.app = app …
Mads Madsen
  • 825
  • 1
  • 6
  • 8
0
votes
1 answer

How to run included tests on deployed pylons application

I have installed pylons based application from egg, so it sits somewhere under /usr/lib/python2.5/site-packages. I see that the tests are packaged too and I would like to run them (to catch a problem that shows up on deployed application but not on…
Pēteris Caune
  • 43,578
  • 6
  • 59
  • 81
0
votes
2 answers

python paste using global egg instead of local one

I'm using Paste to run a Pylons application. Is there a way to specify in my paste config file to use the egg from the current directory (the same dir as the config file) instead of looking in global site-packages? For example, right now the config…
dave paola
  • 1,815
  • 3
  • 16
  • 27
0
votes
2 answers

ipython 0.10.2 crashes with turbogears paster shell

turbogears has intergrated paster shell with Ipython. for this to work you have to use version 0.10.2 (or less) so in the virtualenv I did: pip install ipython=0.10.2 when I run paster shell I get: Oops, IPython crashed. We do our best to make it…
alonisser
  • 11,542
  • 21
  • 85
  • 139
0
votes
1 answer

pylons/paste config files in fastcgi (deployment)

I'm running a pylons app using fastcgi and apache2. There are two versions (different revisions from my svn repo), one for staging and one for production. I'd like them to use different paste config files. Right now, my dispatch.fcgi inside…
dave paola
  • 1,815
  • 3
  • 16
  • 27
0
votes
1 answer

PasteWSGI server is not accepting POST data properly.

I have a PasteWSGI server running. Here is the sample curl request, curl -vX POST http://127.0.0.1:5000/save_topology --data '{"topo" : {"A": "asdasdasd"}, "house_id" : "2"}' server side code snippet is, def save_topology(self): from…
Aashish P
  • 1,894
  • 5
  • 22
  • 36
0
votes
1 answer

TurboGears2.2.0 install/run error when nosetests and paster setup-app development.ini

I encountered a problem after I finished all process of installing TurboGear2 on my OS X 10.8.2. Using Python2.7, TurboGear2.2.0 The installing process was based on tutorial of official website:…