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

How to run included tests on deployed pylons application

I have installed pylons based application from egg, so it sits somewhere under /usr/lib/python2.5/site-packages. I see that the tests are packaged too and I would like to run them (to catch a problem that shows up on deployed application but not on…
Pēteris Caune
  • 43,578
  • 6
  • 59
  • 81
0
votes
1 answer

MVC web framework that allows end users to define models at runtime

It seems this can be hacked into Django, but I'd rather prefer a framework that has better support for end user defined models. Basically, I want the users of my app/website to be able to do at the runtime of the application what I do at compile…
mb21
  • 34,845
  • 8
  • 116
  • 142
0
votes
1 answer

Logging post data in TurboGears / Pylons

Does TurboGears (2.1.5) or Pylons (1.0) provide a logger for printing form parameters (aka post data or post parameters) with each post / put request? Something similar to Rails' default parameter logging: Started PUT "/customers/4/addresses/13"…
Noah Harrison
  • 197
  • 1
  • 5
  • 15
0
votes
1 answer

Globally redirecting in Pyramid...this is printing to the console twice

thanks to Michael Merickel I was able to globally redirect an ip address. I could have added this as a comment but decided on another question. His code gives the user an error message. I'd like to also receive an alert when this happens. I did it…
user776942
0
votes
1 answer

Unable to implement AJAX form submission (inline success) with deform_bootstrap

I was trying to implement Ajax form submission as context given AJAX Form Submission(inline success) but it is not working in my case, here is my code. @view_config(route_name='add_user', permission='admin', renderer='add_user.mako') def…
CrazyGeek
  • 3,397
  • 2
  • 24
  • 38
0
votes
1 answer

Pylons howto get windows user

Is it possible to get the current windows user from with in pylons? I am starting a pylons app that is going to be used from within a controlled Windows domain. Is it possible to get the logged on user? Much like I would do in ASP.NET with…
Daniel
  • 21
  • 2
0
votes
1 answer

Pylons Google App Engine installation raise an error

I used latest version of GAE. I try install Pylons v1.0 with this help article: http://countergram.com/pylons-google-app-engine paster serve --reload development.ini work fine Apache2+wsgi work fine But: dev_appserver.py pylons I have got error…
mrLSD
  • 688
  • 1
  • 5
  • 14
0
votes
2 answers

python paste using global egg instead of local one

I'm using Paste to run a Pylons application. Is there a way to specify in my paste config file to use the egg from the current directory (the same dir as the config file) instead of looking in global site-packages? For example, right now the config…
dave paola
  • 1,815
  • 3
  • 16
  • 27
0
votes
1 answer

Issue with transforming data on insert?

So I was wondering if anyone could help me. I currently have some class class Sha1(ColumnClause): pass @compiles(Sha1) def compile_sha1(element, compiler, **kw): return 'PASSWORD("{}")'.format(element.name) And when I use SQLAlchemy orm…
spdub
  • 45
  • 1
  • 5
0
votes
4 answers

How do you serve vanilla/custom pages in an MVC based site?

Let's say you've setup your site using Pylons, Django and most of the site runs fine and according to the framework used. However, what if you had a custom section that was entirely say, composed of flat html files and its own set of images, which…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
0
votes
1 answer

Pylons deployment questions

I'm a beginner with Pylons and I've mostly developed on my localhost using the built-in web server. I think it's time to start deployment for my personal blog, I have a Debian Lenny server with apache2-mpm-prefork module and mod_wsgi - I've never…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
0
votes
1 answer

pylons/paste config files in fastcgi (deployment)

I'm running a pylons app using fastcgi and apache2. There are two versions (different revisions from my svn repo), one for staging and one for production. I'd like them to use different paste config files. Right now, my dispatch.fcgi inside…
dave paola
  • 1,815
  • 3
  • 16
  • 27
0
votes
1 answer

sqlalchemy: AttributeError: 'tuple' object has no attribute 'insert'

I was playing around making a simple haiku site using sqlalchemy and pylons. It basically takes a haiku, writes it to a database, and displays the haiku. The problem appears when I get the data from the form and try and write it to a database,…
Joshkunz
  • 5,575
  • 6
  • 28
  • 24
0
votes
1 answer

ToscaWidgets CalendarDatePicker pylons

How does one set the date on the CalendarDatePicker. i.e. it defaults to current date and I want to display it with another date which I will set from my controller. I am displaying the CalendarDatePicker widget in a TableForm from tw.form. I have…
Daniel
  • 839
  • 2
  • 11
  • 14
0
votes
1 answer

How can i use render to render a page in pylons with a named anchor?

I need to render a page after a formencode validation. html = render('/billing_errors/index.mako') This page contains tabs that are anchored.