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

Pyramid-debugging a resource cannot be found error

What are possible causes of "The resource could not be found" error in Pyramid? From my limited exeperiece debugging my Pyramid app, errors with routes and Python syntax error trigger a more explicit error message. Is there a way to get the…
sutee
  • 12,568
  • 13
  • 49
  • 61
0
votes
1 answer

paster quickstart not an option

I am just installing TurboGears2 on Windows 7 running a virtual environment (python 2.7). I am not seeing the paster quickstart option when I run paster --help Instead, here's that output: (VirtualEnv_1) C:\VirtualEnv_1\Scripts>paster…
Jon Mitten
  • 1,965
  • 4
  • 25
  • 53
0
votes
2 answers

How do I create a project without the project folder?

I'm new to pyramid and paster, just reading the docs for now. I use virtualenv and inside the virtualenv dir I want to start a pyramid project. The problem is that I would like for paster to not create a dir with the project name, and instead put…
Luiz Geron
  • 1,357
  • 15
  • 22
0
votes
2 answers

Avoid session expires after transaction.commit in pyramind paster pshell

Seems tansaction.commit() is the only way I have to make a commit in pyramid paster pshell. I understand it's good in serving webpages but in shell, after that, on next SQLAlchemy MyModel.my_attribute call I get: DetachedInstanceError: Parent…
neurino
  • 11,500
  • 2
  • 40
  • 63
0
votes
1 answer

Some paster command not working in ckan 2.7.3

Trying to use the info in: http://docs.ckan.org/en/ckan-1.4.3/authorization.html to create users and assign roles to specifics package and the command right not working. For instance: paster --plugin=ckan rights -c /etc/ckan/default/development.ini…
davisoski
  • 727
  • 2
  • 14
  • 41
0
votes
1 answer

how to serve downloadable PDF using pylons and paste server

I have a directory of .pdf files and I want a user to click on name of a file and have it downloaded. How can I do that with paste server in pylons?
Asterisk
  • 3,534
  • 2
  • 34
  • 53
0
votes
1 answer

Problems running paster shell example.ini in Ubuntu while trying to install reddit

When I try to run paster shell example.ini, I run into: connection failure: TLEngine(postgres://reddit/password@127.0.0.1/reddit) followed by a laundry list of traceback. At the end, I get: FATAL: password authentication failed for user…
Ben
  • 1
  • 1
0
votes
1 answer

#ckan PasteScript Error during CKan Migration from version 2.4 to 2.6

I'm upgrating from version 2.4 to version 2.6 using the documentation link I'm getting the following paster error when executing the paster command paster db upgrade -c /etc/ckan/default/production.ini Traceback (most recent call last): File…
0
votes
1 answer

Kallithea loads js dependencies very slowly

I'm running a local Kallithea server in a docker container. When we load the first time in Firefox or Chrome, it takes ages to load. It seems the loading of dependencies hangs on the jQuery or YUI js files. Once the dependencies are cached it loads…
Alex H
  • 190
  • 1
  • 9
0
votes
2 answers

How should I host multiple Pylons websites on the one server?

I currently have one Pylons website running on my server that is setup using nginx as a proxy to Paster. In the near future, I plan to host another Pylons site on the same server. If I were to go the same route and use nginx+Paster, it would mean…
dave
  • 7,717
  • 19
  • 68
  • 100
0
votes
1 answer

Modifying The Template For New Pylons Controllers

I'm at a point in my Pylons projects where I end up creating and deleting controllers often (probably more often than I should). I grow tired of adding my own imports and tweaks to the top of every controller. There was a recent question about…
Brighid McDonnell
  • 4,293
  • 4
  • 36
  • 61
0
votes
1 answer

CKAN harvester plugin fails at "paster harvester initdb"?

I'm trying to install the harvester plugin (https://github.com/ckan/ckanext-harvest) on CentOS 6.7 / Python 2.6.6 / CKAN 2.5.0a and everything's fine until I execute the following: paster --plugin=ckanext-harvest harvester initdb…
Fr3dY
  • 1
  • 3
0
votes
3 answers

Using Microsoft SQL through python on a webserver

I'm trying to run some queries to a database from a pylons (paster-based) webserver and every time I try to import the pymssql Library I'm using (its this one by the way) I keep getting this error: tds_init_winsock: WSAEnumProtocols failed with…
Joshkunz
  • 5,575
  • 6
  • 28
  • 24
0
votes
1 answer

How to manage Roles in Ckan 2+

I've installed CKAN 2.2 and now I try to manage my organizations users and have a coherant workflow so i search how to manage roles (add new ones, what options are avaiable, delete etc.). On google, I've find a possible way by using the "paster"…
potatoe
  • 1
  • 1
0
votes
4 answers

Paster does not work when installing DB

I have tried to use the below forum to item to fix the problem but it did not seam to work for me https://stackoverflow.com/questions/21955234/ckan-install-paster-error Amazingly I got the same issue when I tried to install CKAN on windows. paster…
Alex
  • 21
  • 4