Questions tagged [pylons]

Pylons is a lightweight web framework emphasizing flexibility and rapid development.

Pylons

Pylons is an cross-platform and an open source web application written in . It makes extensive use of the Web Server Gateway Interface standard to promote reusability and to separate functionality into distinct modules. It is strongly influenced by Ruby on Rails: two of its main components, Routes and WebHelpers, are Python reimplementations of Rails features.

It was created by James Gardner and Ben Bangert and launched in september 2005.

At the current stable release (1.0 / May 28, 2010) it has more separation of the influence by Ruby on Rails and it can be seen in the routes module.

Resources

  • Gardner, James (2009) The Definitive Guide to Pylons. (APRESS)
  • Wikipedia (2011) Pylons (web framework). Last taken from: http://en.wikipedia.org/wiki/Pylons in february 26 2011
834 questions
0
votes
4 answers

Which Python framework is flexible and similar to CodeIgniter in PHP?

The requirement is to develop a HTML based facebook app. It would not be content based like a newspaper site, but will mostly have user generated data which would be aggregated and presented from database + memcache. The app would contain 4-5 pages…
DhruvPathak
  • 38,316
  • 14
  • 103
  • 164
0
votes
3 answers

How can I display updating output of a slow script using Pylons?

I am writing an application in Pylons that relies on the output of some system commands such as traceroute. I would like to display the output of the command as it is generated rather than wait for it to complete and then display all at once. I…
Dave Forgac
  • 2,736
  • 6
  • 35
  • 51
0
votes
1 answer

Pylons 0.9.6 Get Current Server Name

In my Pylons config file, I have: [server:main1] port = 9090 ...config here... [server:main2] port = 9091 ...config here... Which are ran using: paster serve --server-name=main1 ...(more stuff)... paster serve --server-name=main2 ...(more…
Matthew
  • 464
  • 1
  • 6
  • 12
0
votes
1 answer

How can I move multiple Pylons Applications into a single Composite Application?

We have several single Pylon websites running but would like to make these more easily reusable. There is a concept of a "Composite Application" inside pylons, but there seems to be limited instructions on how to achieve this. Has anyone done this…
Matthew Wilcoxson
  • 2,975
  • 1
  • 38
  • 42
0
votes
0 answers

two controllers in a single .py file

I've been going through the reddit code and i noticed that they sometimes have two controller classes in a single py file. eg: api.py contains: class ApiminimalController class ApiController I was wondering how that is done. I tried it myself but…
hackawaye
  • 1
  • 1
  • 4
0
votes
1 answer

request.accept_language is always null in python

In pylons project when I do request.accept_language.best_matches(), it is returning me Null. I have set 2 languages in browser (en-us and es-ar) by going to Preferences-Content- Languages in firefox. How can I get the languages specified in the…
0
votes
2 answers

TurboMail not adding Content-ID when embedding images

My bad. Postmark does not support inline images apparently. Solved by changing smtp-mail provider. I'm trying to send e-mails with TurboMail using pylons. Everything works fine, except for using embedded images in html-content. It seems that the…
Carl
  • 720
  • 7
  • 17
0
votes
1 answer

Dropdown menus in forms containing database primary keys

In a framework like Django or Pylons you can set up function to handle form submissions. If your form involves a dropdown menu (i.e. a select tag) populated with objects from a database you can set the values equal to the primary key for the record…
hekevintran
  • 20,016
  • 27
  • 102
  • 172
0
votes
1 answer

Beaker 1.5.1 not creating cache file

Recently one of our app servers went down, when it was rebooted the Python Beaker module stopped producing cache files. The error I am getting is: Error - : 'ver' URL: http://127.0.0.1:3002/menuadmin/ File…
RonnyKnoxville
  • 5,103
  • 9
  • 37
  • 67
0
votes
2 answers

Pyramid url incorrectly generated, served on nginx+phusion passenger and Mako templates

Stuck with a problem involving Pyramid's request urls, where request.static_url and request.application_url are 2 identifiable suspects. The generated request urls in Pyramid somehow includes the view url when I put it on the web host, but works…
Juan Bill
  • 11
  • 2
0
votes
1 answer

Pylons routing through folders

I am kind of new to pylons and I have the task of designing a API versioning system. I want to store the different versions of the APIs in different folders. For example: controllers/APIVersion/v1/clientAPI.py -- Version…
kmdent
  • 1,505
  • 15
  • 29
0
votes
1 answer

SQL Alchemy return list of ids

I am using SQL Alchemy and I want to return a list of Document Ids. The Ids are the primary key in the documents table. My current query returns a list of tuples. userDocs = session.query(Document.idDocument).filter(Document.User_idUser ==…
Jeremy Thiesen
  • 167
  • 1
  • 13
0
votes
1 answer

Accessing values from json in Pylons

In my controller I'm getting a json string (called c.order_history which looks like: [ { "status": [ { "status": "created", "timestamp": "2012-04-06 00:14:10" }, { "status": "authed", …
bob_cobb
  • 2,043
  • 9
  • 45
  • 103
-1
votes
3 answers

Which Python web framework has the most employment opportunities? (And which has features like Ruby on Rails?)

What is the best Python web framework that one should get into if one is interested in job prospects where that framework is being used? I am a co-op student. When applying for jobs I remember seeing Python for web development mentioned in many of…
jack
  • 786
  • 1
  • 7
  • 22
-1
votes
2 answers

Authorization in pylons

I use pylons for develop of my project. What lib I can use to authorization users? I know about authkit, but he not supported now.
jerboa
  • 1,211
  • 2
  • 11
  • 18
1 2 3
55
56