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
0
votes
1 answer

How to disable Logging when start turbogear2?

I would like to disable the logging in this picture (in the red box): I use turbogears 2.3.7. When I start gearbox server and access my url http://localhost:8778. in log will show access url. For example: 127.0.0.1 - - [11/Mar/2016 16:59:06] "GET…
padungrat
  • 1
  • 2
0
votes
1 answer

Psycopg2 under osx works on commandline but fails in Aptana studio

I have been developing under Python/Snowleopard happily for the part 6 months. I just upgraded Python to 2.6.5 and a whole bunch of libraries, including psycopg2 and Turbogears. I can start up tg-admin and run some queries with no problems.…
dave
  • 1,443
  • 2
  • 21
  • 34
0
votes
1 answer

Saving RAM on Shared Hosting with persistent process web service (e.g. Ruby on Rails, Turbogears, etc.)

I use Turbogears on my shared hosting for one-off applications, but I don't need these applications active all the time. Is there a way to start the service when I request it, and then kill the process when it's idle? For example, Turbogears will…
0
votes
2 answers

How do I Handle Database changes and port my data?

Example, for web applications using Turbogears and SQLAlchemy. Every time I update my data model, I need to delete my database and recreate it. Is there an easy way to update the production database? Do I have to write a custom script that…
Lionel
  • 2,882
  • 4
  • 25
  • 39
0
votes
0 answers

python email sent is not in sequential order

Scenario : 1 : if multiple user are logged in and clicked on "request" button 2 : A user has opened multiple tabs in browser for the same url and click "request" button NOTE: autogrant check will be fetched from database if user has…
Cereal_Killer
  • 264
  • 2
  • 11
0
votes
1 answer

How to validate functions with variable parameters in TurboGears?

For functions with fixed number of parameters validations works fine, Eg: @validate(validators= {'foo': bar }) def func(self, foo=None): pass However I am facing difficulty to validate a function with unknown number of parameters, like for…
0
votes
1 answer

Am I supposed to directly modify User models in auth modules in frameworks?

I am new to using Frameworks for web development and I have noticed that frameworks like django, turbogears etc come with auth packages which contains user models. Am I supposed to directly modify these and use them as my User models or am I…
sasker
  • 2,001
  • 2
  • 18
  • 25
0
votes
1 answer

Log controller requests to syslog in tg2

Is there any built-in automate way to log controller request events to system log?
bluefoot
  • 9,184
  • 11
  • 40
  • 54
0
votes
1 answer

Turbogears abort function automatically escapes HTML code

I would like to use some HTML messages in the turbogears abort function. Although the name does not match exactly (I use the 'tg.abort' function), this is the abort definition I found : abort The code used currently : from tg import…
Azurtree
  • 339
  • 2
  • 10
0
votes
1 answer

How to translate JavaScript string in TurboGears

I can translate strings in python and html files. But When I translate JavaScript strings, I get this error in browser console: Uncaught ReferenceError: _ is not defined My setup.py: message_extractors={'wiki20': [ ('**.py', 'python',…
messah
  • 13
  • 2
0
votes
1 answer

Serving files with Turbogears2

How do I serve files from an arbitrary directory with Turbogears2? I have a database with the local path, e.g. /home/myuser/tg2env/MyProject/myproject/files/somefile.jpg tg.url seems to only be able to serve things from the public directory. Is…
Lionel
  • 2,882
  • 4
  • 25
  • 39
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,378
  • 1
  • 13
  • 27
0
votes
1 answer

how to launch TurboGears after installation on windows7

I tried to install Python TurboGears 2.1 on windows7 with python 3.3 by given instruction on this url (http://www.blog.pythonlibrary.org/2011/08/14/turbogears-2-setting-up-on-windows/) after installation when I used command "paster quickstart…
Vikrant Kumar
  • 23
  • 1
  • 7
0
votes
1 answer

Install TurboGears on windows xp

I've been trying to get TurboGears installed on Windows by following this site. I've installed virtualenv but when I execute the command "virtualenv --no-site-packages testproj", I get the following message: New python executable in…
coder
  • 1
  • 1
0
votes
1 answer

Retrieving many-to-many relation properties using SQLAlchemy

I have a many-to-many relationship in which the relation-table contains more columns than only the primary key. As an example, consider a slide show system in which each image could have it's own timeout, and a different timeout depending on the…
exhuma
  • 15,879
  • 9
  • 76
  • 106