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
830 questions
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
  • 740
  • 8
  • 18
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
  • 22,822
  • 32
  • 111
  • 180
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
  • 6,166
  • 10
  • 46
  • 75
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,577
  • 16
  • 32
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
  • 2
  • 14
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,229
  • 11
  • 49
  • 109
-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,371
  • 2
  • 12
  • 18
-1
votes
1 answer

Pylons and Facebook?

I'm looking for a good example / explanation for allowing logging in to my pylons website with facebook (oauth 2.0). I need to read the user's email and therefore need him to login with facebook to my pylons website. If anyone can point me out to…
Mark
  • 1
-1
votes
1 answer

Deserialize Multidict using Colander

On a website I have a If both options are selected, then the Pyramid server’s…
Jens
  • 8,423
  • 9
  • 58
  • 78
-1
votes
1 answer

Guide me to build ad server using Pylons

Building advertising infrastructure for each website is somewhat bad, especially when the website is new and not much traffic. People will curious to advertise to website with low traffic. I need ad server (like AdSense) which: user can register,…
kopelkan
  • 1,135
  • 2
  • 9
  • 8
-1
votes
2 answers

pylon pyramid class function definition indentation

Going through the documentation of pylon project wiki2 tutorial found this codes and What I know is a class has a function definition defined with indentation after class declaration. Checked the python documentation too and is the same but the…
Tara Prasad Gurung
  • 3,422
  • 6
  • 38
  • 76
-1
votes
1 answer

Which I must learn? Pylons vs Pyramid?

Which framework is better pyramid vs pylons? what similarities do they have? which of them must I learn. I learn django actively and I want to learn pyramid or pylons also.
Dato Gachechiladze
  • 341
  • 1
  • 3
  • 3
1 2 3
55
56