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

How to access a static file in controller in turbogears

I have an XML file in /my_project/public/xml/file.xml, that I want to read and parse it in one method in controller. The file can be easily accessed through a template, but I have no experience with accessing files in controller.
narengi
  • 1,345
  • 3
  • 17
  • 38
0
votes
0 answers

Turbogears configuration

installed Turbogears and cannot seem to configure it, with its test file from the site. After the installation i am running the command: python myapp.py, but i get the error tg module doesnt exist. I have installed tg with pip. In the Pythonpath is…
Alex Pat
  • 1
  • 1
0
votes
1 answer

Mixing cython and turbogears 2.1

Is it possible to integrate Cython and TG2? I have one computation (written in python) which is heavily numerical and would largly benefit from rewriting into C or cython.
Maciej Piechotka
  • 7,028
  • 6
  • 39
  • 61
0
votes
1 answer

How to paginate when page using POST requests, in turbogers?

I've been trying to paginate a search results page. Which uses POST requests to submit my search form. I just included the parameters in the pager function and it uses GET method as default. "
0
votes
2 answers

Which Version of TurboGears should I use for a new project?

I'm planing a new project and I want to use TurboGears. The problem is: I'm not sure which version to choose. There are three choices: Turbogears 1.0.8 (stable) Turbogears 1.1 (beta 3) Turbogears 2.0 (beta 4) As this is a new project I dont want to…
theomega
  • 31,591
  • 21
  • 89
  • 127
0
votes
1 answer

TurboGear framework python 3.7 doesnt work quickstart

I have a problem with my programming environment, after many tries to use turbogears library in my project (I need the DataGrid method) I left it and try another project. I think I make some kind of mistake because I cannot create a project with…
Piotr
  • 1
0
votes
1 answer

Use JWT with TurboGears2

I'm currently stopped in my work because of some authentication work on a project. I set up a REST API, which needs to have a JWT authentication system. Some work was already done and I overrode it. So the library used was Python's TurboGears2, and…
0
votes
1 answer

Selecting a row from HTML table and edit/delete it

I have created a html table (using TG2.1 with mako) for a file from MySQL db. Now I would like to provide for "Edit / Delete" a particular row (record), by selecting that row in table. Note that I am not using SQLAlchemy, since I am more comfortable…
0
votes
1 answer

jQuery encodes my data in a different way on server than on localhost?

I've a function like this: function flush_changes() { jQuery('#save-changes').replaceWith('Saving..'); var changes = new Array(); for (var i=0; i
0
votes
3 answers

sqlautocode : primary key required in tables?

This relates to primary key constraint in SQLAlchemy & sqlautocode. I have SA 0.5.1 & sqlautocode 0.6b1 I have a MySQL table without primary key. sqlautocode spits traceback that "could not assemble any primary key columns". Can I rectify this with…
0
votes
1 answer

Using kajiki in TG2.1

the recently released turbogears 2.1 mentioned about the support of kajiki, a genshi-like templating engine, but i cant find any resource on how to get started to use tg2.1 with kajiki. any ideas?
phlaccide
  • 1
  • 1
0
votes
1 answer

Turbogears 2.3.10 error kajiki template with pluggable application

I used turbogears 2.3.10 with kajiki template, I created applicantion name samples and created pluggable application name plugapp. (I see in http://turbogears.readthedocs.io/en/latest/turbogears/Pluggable/index.html?highlight=plugin) I created…
padungrat
  • 1
  • 2
0
votes
1 answer

Turbogears2 and py.test

I'm switching our testing environment from Nose to py.test for testing a Turbogears2 web application. Currently, when Nose runs it gathers information from a testing configuration file (test.ini) that holds all the testing variables the application…
alfredodeza
  • 5,058
  • 4
  • 35
  • 44
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

Using sqlalchemy dburi with Oracle using External Password Store?

I am trying to get a oracle sqlalchemy dburi working with an external password store (Oracle Wallet) I have tried using the standard sqlplus syntax for a external password store with no luck.. sqlalchemy.dburi="oracle:///@PROD" I can connect…
emvee
  • 304
  • 4
  • 17