#558: Teaching sqlobject inheritance to CatWalk
---------------------------------------------+------------------------------
 Reporter:  victor.kryukov                   |        Owner:  anonymous
     Type:  defect                           |       Status:  closed   
 Priority:  normal                           |    Milestone:  1.x      
Component:  Toolbox.Catwalk                  |      Version:  1.0      
 Severity:  minor                            |   Resolution:  wontfix  
 Keywords:  catwalk, sqlobject, inheritance  |  
---------------------------------------------+------------------------------
Changes (by Chris Arndt):

  * keywords:  => catwalk, sqlobject, inheritance
  * status:  new => closed
  * version:  => 1.0
  * resolution:  => wontfix

Old description:

> 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.
>
> 2. I've modified my existing Account class, so now it look like that:
>
> class Account(TG_User):
>     tasks = MultipleJoin('Task')
>     <... various model-specific methods ...>
>
> 3. 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.
>
> 4. 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.
>
> 5. 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.
>
> 6. 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.

New description:

 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.

 2. I've modified my existing Account class, so now it look like that:

 {{{
 class Account(TG_User):
     tasks = MultipleJoin('Task')
     <... various model-specific methods ...>
 }}}

 3. 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.
 }}}

 4. 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.

 5. 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`.

 6. 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.

Comment:

 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.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/558#comment:5>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to