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

Using Kajiki & Jinja together in Turbogears doesn't work

I've configured Jinja ( base_config.renderers.append('jinja') ) and used in a controller as follows @expose('jinja:a.b.c.templates.y') def action(self): I've two master layouts "abc.xhtml" and "abc.jinja" Now Kajiki being the default renderer,…
5r33naDh
  • 43
  • 8
0
votes
1 answer

jqgrid with turbogears 2

I have been recently trying out crudRESTController in TG2.1. Overall, I found that-- 1] The community is helpful. 2] But, it is hard to find a help topic or docs, if I get stuck-up with a particular issue. e.g. The name of instance of…
0
votes
1 answer

How to create edit forms in Turbogear

How to create edit forms. For url edit?id=1121 I want to display pre-filled data EditForm(twf.Form): class child(twf.TableLayout): name= twf.TextField(name="name",value=DBSession.query(student.name).filter(student.id ==
user2764578
  • 61
  • 3
  • 10
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
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

Turbogears 2.1 with mako - extensive tutorial

I am a python programmer. For web-based solutions, I have started learning TG 2.1 By and large, the documentation on TG 2.1 official site is a work-in-process. As regards to the templates, it tells how to go about Genshi. I wish to go with…
0
votes
1 answer

Turbogears Toscawidget not working

I searched in this guide and this guide, and I followed the examples. This is my controller in controllers/root.py: @expose('rubrica.templates.submitForm') def add(self, *args, **kw): return dict(page='submitForm',…
JungleFever
  • 47
  • 2
  • 11
0
votes
0 answers

Internal Server Error 500 on my server due to DistributionNotFound who_ldap>=3.2.2

I'm trying to run a Turbogears2 application on WSGI mod under Apache 2.4.25: My virtualhost seems to be ok: /etc/apache2/sites-available/site.conf ServerName www.site.com #ServerAdmin "Charlie ROOT" #…
Dimitri
  • 33
  • 8
0
votes
1 answer

Python with Turbogears2 : ValueError: invalid literal for int() with base 10: 'DONE'

I'm installing a project. I run theses commands but the 4th always give me this error... python setup.py develop python setup.py bdist_egg (create .egg) paster setup-app development.ini (create devdata.db) paster shell development.ini (tg2)…
Dimitri
  • 33
  • 8
0
votes
1 answer

How to call foreign relation model Pluggable to other model Pluggable in turbogears 2.3.11?

I used Turbogears 2.3.11. I have 1 application and 2 Pluggable Applications with TurboGears. In Pluggable Applications have own models. How to call model in one Pluggable Application from two Pluggable Application? In example: - mainapp -- model …
padungrat
  • 1
  • 2
0
votes
1 answer

dukpy build fails while trying to build container

I am trying to build docker container with following in Dockerfile FROM python:3.5-slim WORKDIR /opt COPY requirements.txt /opt/requirements.txt RUN pip install -r /opt/requirements.txt and…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
1 answer

Optimizing POSTs-per-second in Turbogears2

In a web game built on Turbogears v2.1.5, logged-in users POST a 16-byte message periodically. The server CPU reaches 100% when the POST rate is 60 POSTs-per-second. (For testing, we have removed all work such as updating the DB with each post--…
0
votes
1 answer

Turbogears2 session management

In theory i did what i'm supposed to do in order to store some data in session variables but my controllers can't reach them. Here's the code: @expose('') @require(predicates.not_anonymous()) def savecustomer(self, customer=None, **kw): …
eeeee
  • 3
  • 4
0
votes
1 answer

problematic dot in url

I got a url parameter which contains 3 dots named token. suppose it is 'boo.foo.joo'. my controller's method which is supposed to handle request only takes the first two parts ('boo.foo'). however I can see the remaining part in my…
Amin Etesamian
  • 3,363
  • 5
  • 27
  • 50
0
votes
1 answer

How to consume api rest using TurboGears2?

I want to show the data in the view r = requests.get('https://jsonplaceholder.typicode.com/posts') print(r) print(r.headers) print(r.encoding) data = r.json() log.debug(data) log.debug(r) for post in data: s = format(post["id"],post['title']) Any…
Alex
  • 615
  • 8
  • 26