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
1
vote
2 answers

How to place multiple @paginate turbogears 2?

Give a controller and a method like: import genshi from pylons import tmpl_context, request, url import re from tg import expose, flash from tg.controllers import redirect from tg.decorators import validate import tw.forms as twf from…
Alessandro
  • 23
  • 5
1
vote
1 answer

releasing turbogears2 handle on specific DB (controlling the transaction manager)

I'm building a turbogears application that works with 2 db - the second one - which I'm referring to is an mssql db - used by another application (not mine - my application is actually a hack to solve a problem - so I can't control the other…
alonisser
  • 11,542
  • 21
  • 85
  • 139
1
vote
1 answer

assigning specific column to be primary key when reflecting an existing table with sqlalchemy and turbogears

this is part of a project that involves working with tg2 against 2 databases one of them (which this model uses is mssql). since that table I need to read/write from is created and managed with a different application I don't want turbogears to…
alonisser
  • 11,542
  • 21
  • 85
  • 139
1
vote
1 answer

i18n breaking turbogears setup -wiki20 tutorial

ollowing the 20wiki tutorial as a Turbogears newbie I'm using win7, python 2.7.2 (I guess the my computer locale is hebrew, but for the beginning I was planning on english development) and I think the turbogears version is 2.1.3 when I run the…
alonisser
  • 11,542
  • 21
  • 85
  • 139
1
vote
3 answers

web presenting framework for SQLObject/SQLAlchemy projects

I'm looking for the most graceful way of taking a non-web project based on either SQLObject or SQLAlchemy and overlay it with a decent web-framework. I've looked at Turbogears, and even though it looks like something I could use, the models seems to…
joveha
  • 2,599
  • 2
  • 17
  • 19
1
vote
0 answers

i can't run tg-admin in python2.7, how can i do that?

I was trying to run tg-admin in ubuntu 11.04 on python 2.7 but I keep having an error shown below, but later I was able to run it using python 2.6 like this : #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT:…
jspeshu
  • 1,211
  • 3
  • 12
  • 20
1
vote
3 answers

login through XHR

i want to modify authentication behaviour so that the whole process can be done on the client side through xhr. so for example when i sumbit the login form login_handler would return a some json data on success and error instead of loading up new…
rhyek
  • 1,790
  • 1
  • 19
  • 23
1
vote
1 answer

Suppress 'None' in Jinja2 in TurboGears using Environment.finalize

I've integrated Jinja2 in TurboGears 2.3.12 and in my template file, I have used the following code I got None in the textbox as the object was new. I want to remove the None to an empty string. Found…
5r33naDh
  • 43
  • 8
1
vote
1 answer

problem with turbogear2 quickstart example

Hello I have Ubuntu 10.10 installed. And I wanted to try out Turbogear. I got the installation steps correctly I think. Problems that I have encountered though is in the steps where you create the quickstart example When I type in the command to…
starcorn
  • 8,261
  • 23
  • 83
  • 124
1
vote
1 answer

Simultaneous requests with turbogears2

I'm very new to web dev, and i'm trying to build a simple Web interface with Ajax calls to refresh data, and turbogears2 as the backend. My Ajax calls are working fine and makes periodic calls to my Turbogears2 server, however these calls takes time…
TamTamHero
  • 33
  • 5
1
vote
1 answer

Which characters does TurboGears replace in the URL?

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 all__things(self): …
Alex Henrie
  • 744
  • 1
  • 6
  • 17
1
vote
1 answer

TypeError is raised when using `abort(404)`

When I use abort(status_code=404, detail='No such user', passthrough='json') This exception is raised: TypeError: 'NoneType' object is not iterable This is the traceback: File…
Amin Etesamian
  • 3,363
  • 5
  • 27
  • 50
1
vote
6 answers

Simple ascii url encoding with python

look at that: import urllib print urllib.urlencode(dict(bla='Ã')) the output is bla=%C3%BC what I want is simple, I want the output in ascii instead of utf-8, so I need the output: bla=%C3 if I…
bluefoot
  • 10,220
  • 11
  • 43
  • 56
1
vote
1 answer

How can I return JSON output when repoze.who authentication fails?

I'm writing a repoze.who plugin and want to return JSON from the repoze.who authentication middleware and still controll the HTTP status code. How can this be done?
Martin Thorsen Ranang
  • 2,394
  • 1
  • 28
  • 43
1
vote
1 answer

Turbogears nostests results in OperationalError when using SQLAlchemy-FullText-Search

I recently installed SQLAlchemy-FullText-Search dependency in (https://github.com/mengzhuo/sqlalchemy-fulltext-search), but since that I get unexpected results. When I run nosetests -v An OperationalError: (OperationalError) near "(": syntax error…
LuEn
  • 11
  • 2
1 2
3
10 11