Questions tagged [turbogears2]

TurboGears 2.x is a "best-of-breed" full stack rapid development web framework written in Python.

TurboGears 2.x is a "best-of-breed" next generation full stack rapid development web framework written in Python.

It uses the currently subjectively "best of its breed" components such as Genshi/Kid (Templating), SQLAlchemy (Database ORM), Pylon (WSGI Stack) and repoze (Auth) and unites them with as little "glue code" as possible for a quick start off.

In short as found in a comment in the sources: TG2 : Pylons = Ubuntu : Debian.

It is similar in spirit to frameworks like Django, TG1 and Rails but aims to remove some of their frustrating limitations (handicapped ORMs that only speak with a very limited number of database systems and lack support for advanced DBM features like Stored Procs, Views, etc., unnatural templating, NIH syndrome and many more)

Source: TG Website, Docs @ http://turbogears.org/2.1/docs/

151 questions
0
votes
1 answer

Serving a CSV file for download

I am working with TurboGears 2.2.2. and need to serve a CSV file so that the user can download it. This is the code that I have so far: response.content_type = 'text/csv' response.headers['Content-Disposition'] = 'attachment;filename=%s.csv' %…
Xar
  • 7,572
  • 19
  • 56
  • 80
0
votes
1 answer

How to customize error response in a Turbogears2 controller

I'm using Turbogears2 to develop a small web application. And in some of my "controllers", I would like to response the client a json object with error information inside instead of an html page follows the standard error page template, because the…
Mingcai SHEN
  • 117
  • 1
  • 8
0
votes
1 answer

sqlalchemy object saved to complete action

Im new to sqlalchemy, Im query object and expunge of session for prevent the session save change, after add the object with change at session but not flush or commit. when the ends controller, the session save my object, i dont want that, I want the…
aeRogelio
  • 37
  • 1
  • 10
0
votes
1 answer

how to check if request is ajax in turbogears

How do I go about checking if a request is an ajax request in a controller method in Turbogears? Further, is it possible to return a 'partial' much like in rails or symfony if the request is an ajax request. I know about the json decorator but I…
Marc
  • 3,812
  • 8
  • 37
  • 61
0
votes
1 answer

Regenerating cookie_secret

In the turbogears development.ini file, there's a value something like this: cookie_secret = aabbccdd-eeff-0011-2233-445566778899 consisting of hexadecimal digits and dashes. The same value is placed in beaker.session.secret and…
BnMcGn
  • 1,440
  • 8
  • 22
0
votes
1 answer

SVG in pylons or turbogears?

Are there documented pylons or turbogears2 widgets for generating SVG markup as components and are there example applications that use them returning an SVG primary document?
John Hall
  • 556
  • 1
  • 4
  • 10
0
votes
1 answer

repose.who-friendlyform dependency in TurboGears 2

I am trying to install TurboGear 2. I was following the steps given in this documentation. Link: http://toscawidgets.org/documentation/tw2.core/turbogears.html On executing this command pip install -e . i got this error No distributions at all…
Charul
  • 450
  • 5
  • 18
0
votes
1 answer

Moving deployed TurboGears website from HTTP to HTTPS under Apache on Ubuntu 13.10

I have a TurboGears (either v2.2.1 or v2.3.1) website up and running on HTTP under Apache. The HTTP website works fine but I am trying to move it to HTTPS and am hitting a wall. I have two .conf files and tried copying the configuration block from…
0
votes
1 answer

DataGrid not rendering

I am new to TurboGears2 and by extension ToscaWidgets2. I am following the tutorial given here http://turbogears.readthedocs.org/en/latest/cookbook/datagrid.html for creating a basic datagrid. When I view the index page, all I see is this: class…
user2877578
0
votes
2 answers

how to update a record using DBSession in turbogears 2

Hi I'm trying to update a user row upon the user logging in. I simply want to increase the users login count by one. Here is the code in the post_login controller method: @expose() def post_login(self, came_from=url('/')): """ Redirect…
Marc
  • 3,812
  • 8
  • 37
  • 61
0
votes
1 answer

Are Turbogears2 apps deployable in Heroku?

I have been googling quite a bit about this topic but have found pretty much nothing about it. Does any body know if it is possible to deploy Turbogears2 apps to Heroku?
Xar
  • 7,572
  • 19
  • 56
  • 80
0
votes
1 answer

TurboGears 2.3: debug through Eclipse

In TurboGears 2.2, creating a tg_launch.py file with the following code would allow to debug it using breakpoint in Eclipse (PyDev plugin is installed): if __name__ == '__main__': from paste.script.serve import ServeCommand …
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
2 answers

TurboGears loads page twice

I have noticed strange thing. When I have in my RootController: class RootController(BaseController): secc = SecureController() error = ErrorController() @expose('app.templates.index') def index(self, **kwargs): print 'Hello…
nu.frix
  • 193
  • 1
  • 6
0
votes
0 answers

TurboGears2 / ToscaWidgets - Buttons

I am using TG2 and created a form with following buttons: buttons = [SaveButton(),CancelButton()] Now I would like to change a few things: Change the displayed name of the buttons (so from "Save Form" to something else) Change the redirect link…
DennisB
  • 3
  • 3