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

SQLAlchemy(Postgresql) - Race Conditions

We are writing an inventory system and I have some questions about sqlalchemy (postgresql) and transactions/sessions. This is a web app using TG2, not sure this matters but to much info is never a bad. How can make sure that when changing…
Ominus
  • 5,501
  • 8
  • 40
  • 44
2
votes
2 answers

sqlalchemy throws a DataError 22001 using tg2 and pyodbc to write into SQL Server 2005

I'm using a reflected sqlalchemy mapped class into a SQL Server table. I DBSession.add() instances of Activities class (the mapped class) with data I get from a different source. and then I called transaction.commit() (since I'm calling from tg2 I…
alonisser
  • 11,542
  • 21
  • 85
  • 139
2
votes
1 answer

Turbogears2: App not starting as sub-package

I'm trying to deploy TurboGears as the sub-package frontend of my main application MainApp. Following, the structure of my project: . ├── MainApp │   ├── MainApp.egg-info │   ├── backend │   ├── frontend │   └── __init__.py ├── LICENSE.txt ├──…
ckdo
  • 21
  • 1
2
votes
4 answers

What web framework to choose

I'm comming from java world (apache wicket) and need to use python for my project. I've heard about Turbogear2, Pyramid(Pylons) or Django and read some about them. My first choice will be TurboGears2 built on top of Pylons, with tools already…
oyo
  • 1,906
  • 2
  • 16
  • 22
2
votes
1 answer

Why I should not return a json list as result in web service?

I did try to return a data list as result in my web application. For example @expose('json') def getList(): return ['apple', 'banana', 'orange'] But the web framework TurboGears2 stops me and says 01:50:22,687 ERROR [error] You may not expose…
Fang-Pen Lin
  • 13,420
  • 15
  • 66
  • 96
2
votes
2 answers

sqlautocode for mysql giving syntax error

I am using TG2.1 on WinXP. Python ver is 2.6. Trying to use sqlautocode (0.5.2) for working with my existing MySQL schema. SQLAlchemy ver is 0.6.6 import sqlautocode # works OK While trying to reflect the schema ---- sqlautocode…
2
votes
3 answers

debugging containerised python web app

I have made this first docker container, and it works as per the Dockerfile. FROM python:3.5-slim RUN apt-get update && \ apt-get -y install gcc mono-mcs && \ apt-get -y install vim && \ apt-get -y install nano && \ …
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
2
votes
1 answer

TurboGears and backlash: How to add extra, per-request context to Raven for more informative Sentry reports?

Through backlash, TurboGears supports error reporting to Sentry via Raven. Enabling the error reporting is quite easy, just add the appropriate setting in the .ini configuration file, for example: [DEFAULT] debug = false trace_errors.sentry_dsn =…
Martin Thorsen Ranang
  • 2,394
  • 1
  • 28
  • 43
2
votes
2 answers

Access the interactive backlash/Werkzeug debugger in a failed AJAX request against a TurboGears server

TurboGears features backlash, a great interactive debugger in the browser, based on the Werkzeug Debugger. When debugging is turned on in the server configuration, if a request fails, the server responds with an interactive Web page where you can…
Martin Thorsen Ranang
  • 2,394
  • 1
  • 28
  • 43
2
votes
1 answer

Turbogears2 AdminController throwing an error with a many-to-many relationship

I'm having an issue with turbogears admin controller throwing an error when I try to edit the User, ShoppingItem or ShoppingList items (code below). The error coming up is AttributeError: 'function' object has no attribute 'primary_key'. The Local…
2
votes
1 answer

TurboGears + Heroku + gevent

Following the tutorial, linked below, i've tried to install TurboGears on Heroku using gevent. http://turbogears.readthedocs.org/en/latest/cookbook/deploy/heroku.html Can't figure out why, but I get there errors: ERROR [gearbox] Failed to load…
Gibberish
  • 148
  • 3
  • 11
2
votes
3 answers

How to keep query parameters during pagination with webhelpers.paginate

I look an example of paginating from http://rapidprototype.ch/bg2docs/tg2pagination.html for my Turbogears 2 project and it works great but, I have a problem regarding my query parameters when I change the page I'm looking. This is what I have in my…
Juparave
  • 706
  • 5
  • 11
2
votes
1 answer

How to change the database on the fly in python using TurboGear framework?

I have come across a requirement that needs to access a set of databases in a Mongodb server, using TurboGear framework. There I need to list down the Databases, and allow the user to select one and move on. As far as I looked, TurboGear does…
njs
  • 113
  • 8
1
vote
1 answer

TurboGears 2.x app-layer config namespacing

Coming from a Django background, I'm accustomed to the framework providing a configuration mechanism which is suitable (and intended) for app-layer configuration rather than framework configuration only. The TurboGears 2.x template includes a…
Charles Duffy
  • 280,126
  • 43
  • 390
  • 441
1
vote
1 answer

Block tags in turbogears/genshi (py:match)?

Ok, I'm coming from Django, so please excuse me if what I write doesn't make sense. I'm trying to "override" a portion of my master template in turbogears using genshi. So far I've only tried the py:match directive with no success: master…
Ruben Quinones
  • 2,442
  • 8
  • 26
  • 30
1
2
3
10 11