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

Cannot insert an image into HTML document

I know this is a very basic question, but it is driving me crazy. I am trying to insert an image ("logo_footer.png") in an HTML document that I am working on. It is a Python web app and I am using the TurboGears 2 Framework. I have tried several…
Xar
  • 7,572
  • 19
  • 56
  • 80
0
votes
1 answer

Comparing GWT and Turbo Gears

Anyone know of any tutorials implemented across multiple web application frameworks? For example, I'm starting to implement GWT's Stock Watcher tutorial in Turbo Gears 2 to see how difficult it will be to do in Turbo Gears 2. Likewise, I'll be…
sechastain
  • 656
  • 3
  • 5
0
votes
1 answer

Data is missing after using @validate with Schema

I'm working on validating my webapp, which is using Turbogears 2.3.3 and formencode 1.3 I want to validate a dynamic form that the user has created through a form creation process. I'm sending the form fields from the client to the server using json…
A-Palgy
  • 1,291
  • 2
  • 14
  • 30
0
votes
1 answer

Turbogears response - sending a utf-8 filename

I'm working on a webapp using Turbogears 2.3.3 In my app the users will get a set of directions and they will need to download some files accordingly. It is important that they will be able to download the files with their original name, which…
A-Palgy
  • 1,291
  • 2
  • 14
  • 30
0
votes
1 answer

turbogears querying the database for file

I am using the Turbogears-2.3 framework and now I know how to upload the files in the database using the tgext.datahelpers. I understand that the file gets uploaded in the disk and in the database the metadata gets stored in the JSON format. Now I…
neeraj
  • 89
  • 2
  • 8
0
votes
1 answer

TurboGears 2.3 @validte in two steps

I'm using TurboGears 2.3 and working on validating forms with formencode and need some guidance I have a form which covers 2 different objects. They are a almost the same, but with some difference When i submit my form, I want to validate 2…
A-Palgy
  • 1,291
  • 2
  • 14
  • 30
0
votes
1 answer

How to print variable number of items using turbogears templates

Hello I've been tasked to work on a turbogears project not knowing anything about the webstack. :) Anyways, I've been going through some turbogears tutorials and I had a question about printing a variable number of items in turbogears. So, let's say…
Bitdiot
  • 1,506
  • 2
  • 16
  • 30
0
votes
1 answer

Adding widget (dynamic) CSS in Genshi (TurboGears 2)

I'm trying to figure out how to add CSS in Genshi to some markup which is dynamically generated. I'm trying to avoid inline CSS, and ideally the rules would appear in the tag of the parent document. I'm working with existing code that looks…
Yuval
  • 3,207
  • 32
  • 45
0
votes
1 answer

How to capture update event of Select2SingleSelectField in Turbogears?

There are two SingleSelectFields in a form, say Select2SingleSelectField1 and Select2SingleSelectField2. The values of both fields are retrieved from DB. The content of Select2SingleSelectField2 depends on the selected value of…
wei
  • 213
  • 4
  • 13
0
votes
1 answer

How to set the default option value in SingleSelectField?

I'm new to Turbogears 2.3.3 and Toscawidgets 2. Could anyone tell me how to set the default value based on the id? URL: .../view?id=2 FormWidget: FruitForm(twf.Form): class child(twf.TableLayout): …
wei
  • 213
  • 4
  • 13
0
votes
1 answer

How to register tg app_globals on a worker thread?

I have a turbogears app that makes extensive use of app_globals. It uses common code that does "from tg import app_globals" and then uses the object. Until now, this common code was only called in the context of an incoming request. however, I now…
feroze
  • 7,380
  • 7
  • 40
  • 57
0
votes
2 answers

python unpack a dict from json

I've been searching around, but I cannot find an answer, my guess is that my question is not defined very well, so i hope to get some guidance I'm using turbogears2.2 I'm sending from the client view a JavaScript object through $.post(), On the…
A-Palgy
  • 1,291
  • 2
  • 14
  • 30
0
votes
2 answers

How to use very simple http-auth based authentication in turbogears2?

After disabling the default configuration of repoze.who by removing all the base_config.sa_auth... and base_config.auth_backend from config/app_.cfg.pyit should be possible to configure repoze.who as middleware in config/middleware.py. so i created…
Sunday
  • 631
  • 1
  • 7
  • 14
0
votes
1 answer

hierarchical unordered list from 'flat' dictionary of folder structure

On the backend, i am getting a folder structure from an API. I recursively iterate over this structure to get all folders. These are then all stored in a 'flat' ordered dictionary. Each folder is stored with some properties to define the structure,…
0
votes
1 answer

turbogear kid template for loop

i have inherited a project built in TurboGears that uses kid as the templating and wanted to find out what would be a better way to re-organize the following code:
khinester
  • 3,398
  • 9
  • 45
  • 88