Questions tagged [turbogears]

TurboGears, another open source MVC-style Web application framework based on Python.

It is made up of several pre-existing sub-projects glued together,

  • CherryPy: Base Web framework
  • MochKit: JavaScript library
  • Kid: Templating language
  • SQLObject: Object-relational mapper (ORM)
111 questions
2
votes
2 answers

Example Facebook Application using TurboGears -- pyFacebook

I have a TurboGears application I'd like to run through Facebook, and am looking for an example TurboGears project using pyFacebook or minifb.py. pyFacebook is Django-centric, and I can probably figure it out, but this is, after all, the lazy web.
Mickey Hadick
1
vote
2 answers

twitter-bootstrap based toscawidget

Is there any project that use twitter-bootstrap in toscawidget templates? imo turbogears project really can benefit from twitter-bootstrap to create a high quality interface
John Doe
  • 90
  • 5
1
vote
0 answers

Exposing an HTTP proxy through a Turbogears controller

I have a webapp implemented in TurboGears 1.1 that's kind of a front-end for a REST API. I'm trying to expose a URL path on my webapp that's a proxy to the original REST API, so I can access "http://MY_APP/rest_api/foo" and have it work the same as…
Mu Mind
  • 9,952
  • 4
  • 33
  • 64
1
vote
1 answer

How to set the 'value' parameter for a hidden field in runtime in Turbogears

In order to set the value for a HiddenField in toscawidget, the only parameter I've found useful is 'default' (surprisingly, parameter 'value' in toscawidgets doesn't represent 'value' in html). However, the only way I could get it working is at the…
narengi
  • 1,131
  • 2
  • 13
  • 34
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,121
  • 3
  • 11
  • 20
1
vote
2 answers

How can i use TurboMail 3 together with TurboGears 2

Hy, I want to use TurboMail3 (website) together with a TurboGears 2(website) project. Which files to I have to modify to include TurboMail into my TurboGears project? Everything I find on the web is for TurboMail2 and TurboGears1. The TurboMail…
theomega
  • 29,902
  • 21
  • 83
  • 125
1
vote
1 answer

How best to pass database objects to a turbogears WidgetList?

I am trying to set up form widgets for adding some objects to the database but I'm getting stuck because it seems impossible to pass any arguments to Widgets contained within a WidgetList. To clarify that, here is my WidgetList: class…
William Roe
  • 409
  • 5
  • 13
1
vote
1 answer

How to create a controller method in Turbogears that can be called from within the controller, or rendered with a template

If you have a controller method like so: @expose("json") def artists(self, action="view",artist_id=None): artists=session.query(model.Artist).all() return dict(artists=artists) How can you call that method from within your controller class,…
William Roe
  • 409
  • 5
  • 13
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
  • 604
  • 1
  • 5
  • 15
1
vote
1 answer

How to let actions support more parameters?

I'm using pylons, and my action of controller is: class UserController(BaseController): def create(self): name = request.POST['name'] email = request.POST['email'] password = request.POST['password'] …
Freewind
  • 177,284
  • 143
  • 381
  • 649
1
vote
4 answers

Can I use Turbogears to develop mobile sites?

Is it possible to develop mobile versions of webpages using Turbogears? Can someone please show me an example and how it is done?
sam
  • 11
  • 1
1
vote
1 answer

Any good client-server data sync frameworks available for iPhone?

I'm just getting into the client-server data sync stage of my iPhone app project, and have managed to get my CoreData data model loading on both the iPhone client and my TurboGears server (which is good). I'm now beginning to tackle the problem of…
glenc
  • 2,992
  • 2
  • 23
  • 39
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
  • 9,184
  • 11
  • 40
  • 54
1
vote
2 answers

Does anyone know of a python based web ui for snmp monitoring?

Comparable to cacti or mrtg.
Alexander Fairley
1
vote
4 answers

How to update turbogears application production database

I am having a postgres production database in production (which contains a lot of Data). now I need to modify the model of the tg-app to add couple of new tables to the database. How do i do this? I am using sqlAlchemy.
Mohit Ranka
  • 3,655
  • 12
  • 39
  • 40