Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #372 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

Display Join Values in Catwalk has an exception

Reported by: florian Owned by: anonymous
Priority: normal Milestone: 0.9
Component: Toolbox Version:
Severity: major Keywords:
Cc:

Description

Here on r471. I use debian and postgres 8.4. When browsing a record in catwalk, and trying to display a MultipleJoin? or RelatedJoin? field, the following exception occurs and no data is folded up. This problem must've been added since r441.

2006/01/08 02:09:43 HTTP INFO 192.168.1.16 - GET /catwalk/joins?objectName=table2&id=2&join=threes&joinType=SOMultipleJoin&joinObjectName=table3&start=0 HTTP/1.1
2006-01-08 02:09:43,677 turbogears.identity DEBUG Identity is not enabled. Setting current identity to None
2006/01/08 02:09:43  INFO Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py", line 271, in run
    main()
  File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py", line 502, in main
    body = page_handler(*args, **cherrypy.request.paramMap)
  File "/projects/turbogears/turbogears/controllers.py", line 240, in newfunc
    html, fragment, *args, **kw)
  File "turbogears/database.py", line 189, in run_with_transaction
  File "/projects/turbogears/turbogears/controllers.py", line 257, in _execute_func
    output = func(self, *args, **kw)
TypeError: joins() got an unexpected keyword argument 'start'

My model

from sqlobject import *
from turbogears.database import PackageHub

hub = PackageHub("demo")
__connection__ = hub

class table1(SQLObject):
    name = StringCol()
    ones = RelatedJoin('table2')

class table2(SQLObject):
    name = StringCol()
    threes = MultipleJoin('table3')

class table3(SQLObject):
    two  = ForeignKey('table2')

class catwalk_state_table(SQLObject):
    state = BLOBCol()

Change History

comment:1 Changed 13 years ago by bbockelm@…

Downgrade for right now. That's happening because half of my patch got accidently put in a commit for r460, but the rest of it was not. There's no way CatWalk is going to work with joins until that's backed out or the rest is put in. However, the patch has been completed, so don't bother to debug it.

comment:2 Changed 13 years ago by ronald@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.