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 #558 (closed defect: wontfix)

Opened 13 years ago

Last modified 10 years ago

Teaching sqlobject inheritance to CatWalk

Reported by: victor.kryukov Owned by: anonymous
Priority: normal Milestone: 1.x
Component: Toolbox.Catwalk Version: 1.0
Severity: minor Keywords: catwalk, sqlobject, inheritance
Cc:

Description (last modified by Chris Arndt) (diff)

Summary:

  1. _inheritance=False should be added to your own class to avoid CatWalk crashing on your inherited user/group/permission table.
  2. CatWalk does not understand sqlobject inheritance.

Details:

I'm trying to integrate identity into my existing project. I've successfully followed the wiki (http://trac.turbogears.org/turbogears/wiki/IdentityManagement) with idtest project and are now customizing identity model for my app:

  1. I've added
identity.soprovider.model.user="letsmeet.model.Account"

to the letsmeet\config.py as suggested.

  1. I've modified my existing Account class, so now it look like that:
class Account(TG_User):
    tasks = MultipleJoin('Task')
    <... various model-specific methods ...>
  1. Now, if I would try to select Account in the CatWalk, I'm receiving the following error message:
Fail to load object instance: column account.child_name does not exist.
  1. As explained here  http://sqlobject.org/Inheritance.html, one should add _inheritance=False at the inherited class in order to avoid child_name automatic creation.
  1. Now, CatWalk works - but doesn't show anything interesting when selecting Account model; in particular, you cannot use CatWalk to create new account and should use old good tg-admin shell.
  1. It would be fun to have CatWalk that understands sqlobject inheritance some day, though I'm sure it shouldn't be expected before 1.1 given all existing priority tasks.

Change History

comment:1 Changed 13 years ago by jorge.vargas

  • Priority changed from low to normal
  • Component changed from Toolbox to Toolbox.Catwalk
  • Milestone set to 1.0b4

comment:2 Changed 12 years ago by alberto

  • Milestone changed from 1.0b4 to 1.1

comment:3 Changed 12 years ago by alberto

  • Milestone changed from 1.1 to __unclassified__

Batch moved into unclassified from 1.1 to properly track progress on the later

comment:4 Changed 10 years ago by jorge.vargas

  • Milestone changed from __unclassified__ to 1.x

comment:5 Changed 10 years ago by Chris Arndt

  • Status changed from new to closed
  • Keywords catwalk, sqlobject, inheritance added
  • Version set to 1.0
  • Resolution set to wontfix
  • Description modified (diff)

Cruft ticket. though I can still reproduce the described problem, CatWalk is not actively maintained any more and won't grow any new features. Closing as wontfix.

Note: See TracTickets for help on using tickets.