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
1
vote
1 answer

how to manage pylons/paster config file in a cluster?

I have 4 nodes running paster app, once I change the config, I need to change config files on the 4 nodes. It will be a headache if the nodes number growing. I believe it should be a common problem for people who running paster on more than one…
springrider
  • 470
  • 1
  • 6
  • 19
1
vote
1 answer

Installing CKAN Resource Authorizer

I’ve been working on installing the CKAN Resource Authorizer extension. I’m in the final stages of installation, all I need is to create the necessary tables in the database using and to reindex the CKAN metadata in SOLR using the following…
LD-Win
  • 11
  • 2
1
vote
1 answer

Automatically Generate Python Egg from Python PasteScript

So I'm using PasteScript's paster, and I'm trying to automate egg creation. My first step is to get a template of a Python egg. I noticed that PasteScript's paster has one built in, so I've been creating my template from the command line: $paster…
DrakeAnderson
  • 492
  • 4
  • 12
1
vote
1 answer

Syntax Error When Running paster?

No idea what happened, but all of a sudden, paster stopped working on my server (working with virtualenv and pyramid). Tried reinstalling everything but didn't work - same error again: Traceback (most recent call last): File "bin/paster", line 7,…
Raiders
  • 23
  • 3
1
vote
1 answer

Why tracking number get from resource API is different from the tracking number recorded in database?

I used resource_show in CKAN 2.7.3 API docs to get metadata from specific resources. In my tracking_summary table, I have some resource which has tracking number larger than 0. However, when I use resource_show with {'include_tracking': True}, it…
RandomEli
  • 1,527
  • 5
  • 30
  • 53
1
vote
1 answer

Pylons Paster not reloading code

Possible Duplicate: Paste (Python) Web Server - Autoreload Problem I have a pylons app in development. I start the app with paster serve --reload --daemon development.ini. I have apache in front of the app using ProxyPass. Since this site is in…
TripWired
  • 378
  • 7
  • 17
1
vote
2 answers

Pylons helloworld - "Expected version spec in..." error

I'm trying to start new project using this doc: http://pylonshq.com/docs/en/1.0/gettingstarted/ (download go-pylons, make virtualenv with it, etc). But when I'm trying to start helloworld app it says: $ paster serve --reload development.ini…
rvs
  • 1,251
  • 13
  • 22
1
vote
1 answer

Ckan Always redirecting to localhost:5000

I have set up a virtual machine(eg., ckan.test.com) and set up CKAN on that machine. Every thing looks fine until i try to submit any form. If i try to submit any form it will automatically redirect to localhost:5000. Ex: Login page is…
krish
  • 31
  • 7
1
vote
1 answer

Failure when using paster to backup CKAN

I want to upgrade CKAN to it's newest version. Before I upgrade the packages, I want to backup everything. I'm using the following as my reference. http://docs.ckan.org/en/ckan-1.4.3/upgrade.html. Another dev installed CKAN, who is no longer with…
AtomEye
  • 81
  • 7
1
vote
1 answer

Enable gzip compression in a Grok - Zope - PasteScript environment

I am trying to make my server send gzipped data. I have a grok application that runs over Paste (Paste-1.7.2-py2.4.egg) I have been trying to google how to make all that environment to serve data in gzip... But without success... I think the answer…
Savir
  • 17,568
  • 15
  • 82
  • 136
1
vote
1 answer

Pylons 1.0 - c.id no longer being automatically set on python v2.6.2 and 2.7

I am at a loss on this one, I intalled a SSD on my dev box today and started with a fresh development environment. In short, pylons no longer sets the c.id based on the id passed to the action. Code, error, and libs install:…
Tony
  • 2,037
  • 3
  • 22
  • 22
1
vote
1 answer

CKAN Set user permissions

After installing a fresh copy of CKAN 2.5a I want to give admin privileges for some users over a given organization. Reading http://docs.ckan.org/en/ckan-1.7.2/paster.html#rights-set-user-permissions looks like there is a paster command "rights"…
Vicens Fayos
  • 740
  • 1
  • 5
  • 18
1
vote
1 answer

Paste.httpserver - serve on socket

I am working with python buildout and want do deploy a diazo wsgi. So far, I managed to do so, but I want to make the app listen on a socket file, not an Ip:Port. Is this possible with paste.httpserver or is there an alternative package to serve…
moestly
  • 1,681
  • 15
  • 19
1
vote
3 answers

Django equivalent to paster for backend processes

I use pylons in my job, but I'm new to django. I'm making an rss filtering application, and so I'd like to have two backend processes that run on a schedule: one to crawl rss feeds for each user, and another to determine relevance of individual…
Lucas Wiman
  • 10,021
  • 2
  • 37
  • 41
1
vote
2 answers

Where did Pylons beautiful error handling go? Using Nginx + Paster + Flup#fcgi_thread

I need to run my development through nginx due to some complicated subdomain routing rules in my pylons app that wouldn't be handled otherwise. I had been using lighttpd + paster + Flup#scgi_thread and the nice error reporting by Pylons had been…
Tony
  • 2,037
  • 3
  • 22
  • 22