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)
111 questions
1
vote
1 answer

Returning Database Blobs in TurboGears 2.x / FCGI / Lighttpd extremely slow

I am running a TG2 App on lighttpd via flup/fastcgi. We are reading images (~30kb each) from BlobFields in a MySQL database and return those images with a custom mime type via a controller method. Caching these images on the hard disk makes no…
Tom
  • 2,835
  • 6
  • 28
  • 38
1
vote
0 answers

Catch exceptions in CherryPy 3.2 during body.process

I got the following error in a live site where a utf character (test string 'Îñţérñâţîöñåļîžæ†îøñ') was submitted: 400 Bad Request The request entity could not be decoded. The following charsets were attempted: ['utf-8'] Traceback (most recent…
EoghanM
  • 20,021
  • 21
  • 80
  • 110
1
vote
5 answers

How can I download python .egg files, when behind a firewall

I'm going to try out turbogears however I'm on windows vista. however due to firewall proxy problems, it seems i can't download .egg files which is required for setup turbogears to get installed in my windows environment. I do have a bootable, or I…
jpalala
  • 340
  • 3
  • 13
1
vote
1 answer

TG2.1: Proper location to store a database session instance?

I am using a custom database (MongoDB) with TG 2.1 and i am wondering where the proper place to store the PyMongo connection/database instances would be? Eg, at the moment they are getting created inside of my inherited instance of AppConfig. Is…
Lee Olayvar
  • 3,150
  • 5
  • 26
  • 33
1
vote
1 answer

How do I add content before in extended page? (KID templates)

I've got master.kid (simplified): My Site

My Site

Blixt
  • 47,351
  • 13
  • 105
  • 150
1
vote
1 answer

Turbogears 2: authentication, password in different table, feedback when update

I'm using turbogears 2.2 for writing web application like it seems to be really powerful framework, however there are many blackboxes like authentication as I don't understand them well (repoze.who plugin here). Requirements User password has to be…
tomis
  • 1,626
  • 1
  • 14
  • 26
1
vote
1 answer

turbogears request/user object in templates and request context

I am currently making the switch from Django to Turbogears 2.1 and am running into some problems that I could not find the answers to in the Turbogears docs. If tg developers read this, let me tell you that one of the best features Django has over…
Marc
  • 3,634
  • 7
  • 33
  • 58
1
vote
1 answer

Getting the description of the database with sqlalchemy

How can I find out the desciption of the database with sqlalchemy much like django's sqlall command . $ python manage.py sqlall Can I run something similar to sqlall in turbogears admin or with sqlalchemy with which I can get the create table or…
dusual
  • 1,939
  • 2
  • 18
  • 26
1
vote
1 answer

TurboGears2/SQLAlchemy: Inserting a new row into a table with an autoincrement Primary Key

I am a noob and am trying to get my head around TG2 and SQLAlchemy. The specific problem I am wrestling with at the moment is how to insert a new row into a table when the PK field is configured as autoincrement. For example: in my…
user167043
1
vote
4 answers

JavaFX or RIA desktop app (on dvd) also available on the web?

Is it possible to develop an application easily available on the web that also can be distributed on DVD (installer or started from the dvd)? For the moment, we use static html (frameset!) pages (generated by xml files), with one difference: pdf's…
Pieter Baele
1
vote
3 answers

Switching databases in TG2 during runtime

I am doing an application which will use multiple sqlite3 databases, prepopuldated with data from an external application. Each database will have the exact same tables, but with different data. I want to be able to switch between these databases…
D R
  • 19,435
  • 28
  • 102
  • 146
0
votes
6 answers

Python: Sending a large dictionary to a server

I have an application that should communicate status information to a server. This information is effectively a large dictionary with string keys. The server will run a web application based on Turbogears, so the server-side method called accepts an…
D-Bug
  • 616
  • 2
  • 8
  • 18
0
votes
2 answers

embed multiple kid template files into a main one

In the main kid template file, I want it to have only div tags, each of which do only call a rendered kid file and paste content inside it. (like "include" function in php) but I don't know how to do this. Does someone have any ideas about it?
Ple
0
votes
2 answers

Turbogears2: analog of django context processors

Is there any analog of django context processors in turbogears2? In tg1 was stdvars, but not in tg2 anymore. Explaining: I need to have some template tags, avaible on each page, without obvious declaring in each controller.
Mikhail
  • 659
  • 5
  • 15
0
votes
1 answer

How to access a static file in controller in turbogears

I have an XML file in /my_project/public/xml/file.xml, that I want to read and parse it in one method in controller. The file can be easily accessed through a template, but I have no experience with accessing files in controller.
narengi
  • 1,131
  • 2
  • 13
  • 34