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

sqlalchemy UnicodeDecodeError: 'utf8' codec can't decode byte 0xe7 when trying to select all from msssql 2005 table

I'm building an application that works with the db of another application, using mssql 2005 (I can't change that or change the existing table definition). w the mssql table collate is: "hebrew bin", and the application shows perfect hebrew from the…
alonisser
  • 11,542
  • 21
  • 85
  • 139
0
votes
1 answer

Integrating webpages and turbogears application

I am working on a Turbo Gears 2 application. The application directs a user through a set of questions. I like the templating system of TG2 (which of course is the idea) so I want to integrate the static web pages with TG2 also. This will allow me…
0
votes
1 answer

paster quickstart not an option

I am just installing TurboGears2 on Windows 7 running a virtual environment (python 2.7). I am not seeing the paster quickstart option when I run paster --help Instead, here's that output: (VirtualEnv_1) C:\VirtualEnv_1\Scripts>paster…
Jon Mitten
  • 1,965
  • 4
  • 25
  • 53
0
votes
1 answer

sorting by a related item with ming on mongodb

setup A TurboGears2 project using ming as an ORM for mongodb. I'm used to working with relational databases and the Django ORM. question Ming claims to let to interact with mongodb like it's a relational database and a common thing to do in a…
rennat
  • 2,529
  • 3
  • 26
  • 30
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,345
  • 3
  • 17
  • 38
0
votes
1 answer

Turbogears 2 / Pylons

I am really confused i have a directory structure as follows. /foo/bar/project/ under project is the python environment via virtualenv. I have two additional folders live, and beta. Live is served via apache wsgi and beta is served using…
Ominus
  • 5,501
  • 8
  • 40
  • 44
0
votes
2 answers

Turbogears 2 - validating forms to the same url

I have a controller for a contact page similar to the following: @expose('project.templates.contacts') def contact(self, **kw): return dict( form=contact_form ) Upon submission the form is validated using the following controller…
ttran
  • 1
  • 1
0
votes
1 answer

TurboGears2: TypeError: redirect() got an unexpected keyword argument 'pagename'

This error occurs when following the TG2 wiki20. I could not see an easy answer on here that was related to TG2, and this issue could be quite confusing, as it occurs during the official tutorial. The problem is when using the tg.redirect method, as…
nihilok
  • 1,325
  • 8
  • 12
0
votes
1 answer

Turbogears: duplicate controller method for filtered objects

If you have a controller method like so: @expose('example.templates.example.index') def index(self, *args, **kw): fruits=session.query(model.Fruit).all() # some code working on fruits return dict(fruits=fruits) How can I duplicate the…
Admed
  • 51
  • 1
  • 4
0
votes
1 answer

Mixing cython and turbogears 2.1

Is it possible to integrate Cython and TG2? I have one computation (written in python) which is heavily numerical and would largly benefit from rewriting into C or cython.
Maciej Piechotka
  • 7,028
  • 6
  • 39
  • 61
0
votes
1 answer

How one define name of fixture in fixtures other then by class name

I'd like to use multiple fixtures in the same test suite to test SQLAlchemy model in various situations. What is the easiest way?
Maciej Piechotka
  • 7,028
  • 6
  • 39
  • 61
0
votes
1 answer

How to paginate when page using POST requests, in turbogers?

I've been trying to paginate a search results page. Which uses POST requests to submit my search form. I just included the parameters in the pager function and it uses GET method as default. "
0
votes
1 answer

Turbogears2 with MySQL db not update tables in multi threads

I am using turbogears2 with MySQL db. With the same code, single thread case can update/write to the tables. But thread thread has no error, however, no write is successful. Outside turbogears2, multi threads can write to the tables no problems. No…
0
votes
2 answers

turbogears2 multiply price and cost from rows of query

I know this question has been asked already, but i couldn't really grasp the idea behind the answers as i am a beginner in programming and pretty much everything seems new to me. I am trying to multiply the price of each ingredient with its quantity…
Cami
  • 15
  • 7
0
votes
1 answer

How to get rid of the __actions__ entry in the CrudRestController's response?

I'm subclassing the CrudRestController to implement an REST interface. It works fine, but the response dict contains an __actions__ entry which contains some html code that I really don't want in my response. According to the TableFiller class'…
cvk
  • 940
  • 6
  • 14