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

slqlachemy joined load by variable declaration

Suppose I got two models. Account and Question. class Account(DeclarativeBase): __tablename__ = 'accounts' id = Column(Integer, primary_key=True) user_name = Column(Unicode(255), unique=True, nullable=False) and my Question model be…
Amin Etesamian
  • 3,363
  • 5
  • 27
  • 50
0
votes
1 answer

Require JS and running a command in the baseUrl

So I have narrowed down my problem and was wondering if there was a solution to this or a way to get around it. The code I have been working on in HTML uses a web frame work called turbogears. To grab the files in turbogears it uses this command…
Suliman Sharif
  • 607
  • 1
  • 9
  • 26
0
votes
1 answer

Turbogears integration with Require JS

So I have never used turbogears before but the company I am interning at has turbogears to run their JS files. I am trying to integrate my new JS code into their files but running into repeated errors just calling the scripts and was wondering if…
Suliman Sharif
  • 607
  • 1
  • 9
  • 26
0
votes
1 answer

How to use mod_passenger for Turbogears 2?

What do I put in passenger_wsgi.py for a Turbogears2 site? Since it's possible for Django to use mod_passenger, I'm trying to use mod_passenger with Turbogears2. So far, I've found a passenger_wsgi.py for Turbogears1, but I don't know where to…
Lionel
  • 3,188
  • 5
  • 27
  • 40
0
votes
2 answers

Unique ID in html for generating Buttons

sorry if the title is misleading. I'm having the following problem. I am creating multiple rows in HTML using Genshi. For each row I have a button at the end of the row for delete purposes. The code looks like this:
Ron
  • 165
  • 1
  • 1
  • 9
0
votes
1 answer

redirect is throwing a "Resource was found at " exception in turbogears 2.3

When a user is accessing a certain controller and if a condition is met, then i want to redirect user to some other page but when I'am trying that it throwing "Resource was found at exception". Below is the code which I'm…
neeraj
  • 89
  • 2
  • 8
0
votes
1 answer

ToscaWidgets2 Capture Data from GrowingGridLayout

Currently working on a project with TurboGears2 and ToscaWidgets2. I have a form setup with a few static fields, name, date, and point of contact information. Inside this form I have added a sub form where the user can dynamically add numerous…
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

Disabling tgscheduler while running nosetests

I have a TurboGears 2.3.6 project that I've been working on for quite some time. In my project I'm using tgscheduler. I want to learn how to use tests, and I have some difficulties starting. When I run nosetests –v I get this error for all of the…
A-Palgy
  • 1,291
  • 2
  • 14
  • 30
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
  • 10,220
  • 11
  • 43
  • 56
0
votes
1 answer

How to transfer url parameters to repoze custom predicate checkers

I would like to create a repoze custom predicate checker that is capable to access url parameters and validate something. But I would like to use allow_only to set this permission checker in all the controller's scope. Something like: class…
bluefoot
  • 10,220
  • 11
  • 43
  • 56
0
votes
2 answers

Formencode OneOf validator with dynamic list to test against

I'm using formencode 1.3.0a1 (and turbogeras 2.3.4) and run into a problem with the validator OneOf. I want to validate some input according to a list in the Database. Here is my validation schema and the method for getting the list: from formencode…
A-Palgy
  • 1,291
  • 2
  • 14
  • 30
0
votes
1 answer

ToscaWidgets - customize form

I'm using https://pypi.python.org/pypi/tgapp-resetpassword/0.1.5 which allows you to override the template used for the reset password page. Unfortunately, the actual form itself is included as a 'black box':
EoghanM
  • 25,161
  • 23
  • 90
  • 123
0
votes
1 answer

stroller (turbogears) not working

I'am trying to build an e-commerce website using turbogears. Initially I modified the tgapp-photos to make the items come on the page properly. But then I find it difficult to make cart from the scratch and hence thought to use stroller. However,…
0
votes
1 answer

Turbogears with gevent-socketio: request Key Error

I try to use gevent.socketio with my TurboGears 2 Website: in the ini-file i use [server:main] use = egg:gevent-socketio#paster transports = xhr-multipart, xhr-polling, websocket host = 0.0.0.0 port = 8080 when i try to access the controller in…
Doomsel
  • 1
  • 3