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
2 answers

Pylons/Formencode With Multiple Checkboxes

I ran up against a few problems with Pylons/Formencode today when it came to validating multiple checkboxes. As a bit of background I have something like this in my Mako template: Project…
redrockettt
  • 131
  • 4
0
votes
1 answer

Install custom modules in a python virtual enviroment

I am doing some pylons work in a virtual python enviorment, I want to use MySQL with SQLalchemy but I can't install the MySQLdb module on my virtual enviorment, I can't use easyinstall because I am using a version that was compiled for python 2.6 in…
Joshkunz
  • 5,575
  • 6
  • 28
  • 24
0
votes
1 answer

Unit testing Couchdb model in Pylons

Given a default pylons installation are there any examples available on the best practices for unit testing a CouchDB model?
jdiaz
  • 7,354
  • 12
  • 42
  • 51
0
votes
4 answers

Python framework to create pure backend project

Some details about the project: pure backend project, no front expose a rest api (maybe custom routes?) connect to other rest apis query MySQL & MongoDB using an ORM have unit tests What Python framework would you recomend me for it?
Vlad Zloteanu
  • 8,464
  • 3
  • 41
  • 58
0
votes
0 answers

Domain routing with routes package in Python

I am using the routes package with pylons for my application. Recently, I have another domain which I want to use for some parts of my application. Can I setup routing.py with domain conditions as well? Something like - map.connect('/reviews/',…
Siddharth
  • 5,009
  • 11
  • 49
  • 71
0
votes
1 answer

About the add_static_view and static_url in Pyramid

I add the static view like this: config.add_static_view('CF_static', 'cistromeprimerscanner:templates/static', cache_max_age=604800) When I want to use a file in static directory in template file, I need to write like this, which is very long…
Hanfei Sun
  • 45,281
  • 39
  • 129
  • 237
0
votes
1 answer

Paster requires to be run from program directory?

Im running a solaris server which uses supervisor to monitor some Python applications. Previously, I could run the command: paster serve /opt/pyapps/menuadmin/prod.ini from any directory on the server. There were some recent issues and the /opt…
RonnyKnoxville
  • 6,166
  • 10
  • 46
  • 75
0
votes
2 answers

How do I set a session variable to a value in my database?

newb to python and pyramid/pylons. After a user logs in, I want to grab some data in my database and store it in a session variable. I've been able to store the user's login id with remember(). Using request.session, I can set a session variable as…
user_78361084
  • 3,538
  • 22
  • 85
  • 147
0
votes
1 answer

Update web page whilst processing data

Im not really sure what to search for on this subject. I have a Pylons back end which loops over a list of email addresses in a database and then displays them on a web page. What I would like to do is have a loading section (as there are some other…
RonnyKnoxville
  • 6,166
  • 10
  • 46
  • 75
0
votes
2 answers

PyDev project's PYTHONPATH automatically renamed. How do I properly configure this?

I'm new to PyDev and fairly rusty in Python. Trying to get back into it with a simple reddit app first. So here's my setup: I have 2 PyDev projects: reddit and pylons (reddit api.py imports from pylons). When I go into any file in the reddit project…
jayjyli
  • 771
  • 3
  • 11
  • 23
0
votes
1 answer

pylons global variable in class

in pylons, how do i use a variable that is considered global in a class, like using self, seems in pylons using self wont work. suppose i have in controller : a.py : class AController(BaseController): def TestA(self): text =…
Faris Nasution
  • 3,450
  • 5
  • 24
  • 29
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
  • 42,059
  • 16
  • 116
  • 175
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
  • 3,146
  • 7
  • 39
  • 54
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
  • 474
  • 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
  • 3,432
  • 1
  • 43
  • 48