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

TurboGears2 - how to customize layout for new user form?

I am currently using this for my new user form: class UserForm(AdminPage): entity = Model.User title = 'User' class child(ListForm): css_class = 'form-horizontal' buttons = [SaveButton(),CancelButton()] ... …
0
votes
2 answers

ipython 0.10.2 crashes with turbogears paster shell

turbogears has intergrated paster shell with Ipython. for this to work you have to use version 0.10.2 (or less) so in the virtualenv I did: pip install ipython=0.10.2 when I run paster shell I get: Oops, IPython crashed. We do our best to make it…
alonisser
  • 11,542
  • 21
  • 85
  • 139
0
votes
1 answer

How to configure ToscaWidgets 2 on a TurboGears 2.2 with mount Proxy deploy

I have a working turbo gears 2.2 website, deployed as a mount reverse-proxy, exp: https://Some-Domain.com/mySite I know how to configure the webserver to work as a mounted site, but I don't know how to do that for ToscaWidgets. Tw2 is looking for…
A-Palgy
  • 1,291
  • 2
  • 14
  • 30
0
votes
1 answer

sqlalchemy failing to commit somewhere (but fails silently) when trying to update data

Like all CRUD goes, I need to write some data to a table. when I write new data to the table, everything works like charm. the problem starts when I need to write data already existing in the table (actually updating some data with the same primary…
alonisser
  • 11,542
  • 21
  • 85
  • 139
0
votes
3 answers

Turbogears: Can not start paster after updateing to mac osx 10.6

After updateing to mac osx 10.6 I had to switch back to python 2.5 in order to make virtual env work. But still I can not start my turbogears project. Paster is giving this : Traceback (most recent call last): File ".../tg2env/bin/paster", line 5,…
user185844
0
votes
3 answers

How to initialize global variables in TurboGears 2 with values from a table

I need a global variable that I can call from the templates. I edited app_globals.py in lib directory to declare PATH_TO_IMAGES like this class Globals(object): """Container for objects available throughout the life of the application. One…
Juparave
  • 706
  • 5
  • 11
0
votes
1 answer

How to pass raw image data in turbogears to mako template for scr=data:image/jpg

I would like to pass raw image data in TurboGears2 to the mako template to use in an img tag (ie., scr=data:image/jpg,base64,${imagedata}). The image is retrieved from sql server image format I have been struggling to do this as everything passed…
stuartz
  • 121
  • 4
  • 9
0
votes
1 answer

TurboGears2.2.0 install/run error when nosetests and paster setup-app development.ini

I encountered a problem after I finished all process of installing TurboGear2 on my OS X 10.8.2. Using Python2.7, TurboGear2.2.0 The installing process was based on tutorial of official website:…
0
votes
1 answer

How to remove the white space from a ToscaWidgets2 - twc.forms SingleSelect

I'm using Tosca Widgets 2 on a TurboGears 2 Project, Does anyone know how to remove the ‘prompt_text’ attribute while instancing a twf.SingleSelectField? year = twf.SingleSelectField(label="choose a year",options = range(now.year-35,now.year)) What…
A-Palgy
  • 1,291
  • 2
  • 14
  • 30
0
votes
0 answers

Serving resources with turbogears using RestController

I'm having a problem understanding how to serve my data best. I have 2 models, one is record and the other is log, they have a 1 to many relationship respectively. I'd like to serve this using tg's RestController so I can do…
Ruben Quinones
  • 2,442
  • 8
  • 26
  • 30
0
votes
1 answer

Using GridFS with Ming ODM in Turbogears

Ming supports GridFS start from 0.3 version, and i've used it in several Turbogears apps so far, but can't find any documentation of how to use GridFS with Ming, This is what i've done so far, in my model store.py module : #import…
panjiesw
  • 156
  • 1
  • 12
0
votes
1 answer

How to use database in app_globals.py in turbogears2?

Possibly related topic, but from which I could not solve the problem: How to initialize global variables in TurboGears 2 with values from a table The issue is that I'm trying to read some config parameters from the database when initializing some of…
Atra Azami
  • 2,215
  • 1
  • 14
  • 12
0
votes
1 answer

Handling controller missing controller parameters in turbogears 2

Suppose I have a controller method like so: @expose() def search(self, title): return dict() Going to http://site/search/ will cause an exception to be thrown: TypeError: search() takes exactly 2 arguments (1 given). The error is logical, but…
Dan
  • 3,665
  • 1
  • 31
  • 39
-1
votes
1 answer

raise sa_exc.ArgumentError( sqlalchemy.exc.ArgumentError: Mapper mapped class car->car could not assemble any primary key columns for mapped table

I am busy with learning turbogears, which i find a very good and easy to work framework in compare with Django, that gave me many problems with the imports. i have a .py file which i wrote a code, but doesn't seem to be able to assemble any primary…
Alex_Pat
  • 11
  • 2
-1
votes
1 answer

TurboGears2: gearbox --reload function not working

I've been working on a TG2 application for a while now, and whenever I use gearbox --serve --reload --debug, it works perfectly fine (read: whenever I make an edit in one of the python scripts I have, the application automatically restarts itself to…
user2877578
1 2 3
10
11