Questions tagged [turbogears]

TurboGears, another open source MVC-style Web application framework based on Python.

It is made up of several pre-existing sub-projects glued together,

  • CherryPy: Base Web framework
  • MochKit: JavaScript library
  • Kid: Templating language
  • SQLObject: Object-relational mapper (ORM)
112 questions
0
votes
1 answer

Turbogears. Writing controller methods

The index method is the start point of any TurboGears controller class. Each of the URLs localhost:8080 localhost:8080/ localhost:8080/index is mapped to the RootController.index() method. How can I map localhost:8080 and localhost:8080/ to the…
leshiy
  • 1
  • 1
0
votes
2 answers

check if turbogears public file exists

I am new to turbogears and have an app that I am creating with multiple directories under public/media/ballots. I need to see if a directory exists. path = "public/media/ballots/" + x['directoryName'] #return path if os.path.exists(path): …
stuartz
  • 121
  • 4
  • 9
0
votes
4 answers

Chain FormEncode Validators

Problem: I have a form in TurboGears 2 that has a text field for a list of e-mails. Is there a simple way using ToscaWidgets or FormEncode to chain form validators for Set and Email or will I have to write my own validator for this?
Robbie
  • 892
  • 2
  • 7
  • 19
0
votes
1 answer

CherryPy server stopped when i run my Turbogear application

When i run my application, it is getting stopped and reports the following error: 2012-06-16 02:40:51,767 turbogears.startup INFO Binding metadata for SQLAlchemy... 2012-06-16 02:40:51,785 cherrypy.error ERROR [16/Jun/2012:02:40:51] ENGINE Error…
Reetesh Nigam
  • 133
  • 2
  • 2
  • 15
-1
votes
2 answers

Turbogears tutorials , debugging tools

I successfully installed turbogears via virtualenv on ubuntu , loaded it with paster after quickstart. I was looking for a good ide with debugging for turbogears and paster. I need any good suggestion how to continue with , any good tutorials ,…
Conex
  • 832
  • 8
  • 17
-2
votes
2 answers

How to make TurboGears treat '%2F' differently from '/' when routing?

I have a simple TurboGears 2 script, named app.py: #!/usr/bin/env python3 from wsgiref.simple_server import make_server from tg import expose, TGController, AppConfig class RootController(TGController): @expose() def lookup(self, name): …
Alex Henrie
  • 744
  • 1
  • 6
  • 17
-2
votes
3 answers

How will Turbogears reach the critical mass of Ruby on Rails?

I've been using Turbogears since I have a Python background, but I can't help feeling a pang of jealously seeing all the Ruby on Rails resources available. For example, for a crude comparison of the volume of resources, check out…
Lionel
  • 3,188
  • 5
  • 27
  • 40
1 2 3 4 5 6 7
8