#2122: [PATCH] catwalk (in sprox.saormprovider) fails when including user in
group
creation
---------------------------+------------------------------------------------
Reporter: clemens | Owner: faide
Type: defect | Status: new
Priority: normal | Milestone: 2.0b2
Component: TurboGears | Version: trunk
Severity: normal | Resolution:
Keywords: catwalk sprox |
---------------------------+------------------------------------------------
Changes (by clemens):
* summary: catwalk (in sprox.saormprovider) fails when including user in
group creation => [PATCH] catwalk (in
sprox.saormprovider) fails when including user
in group creation
Comment:
catwalk gets the relation object via the mapper using various ways. Some
of the properties returned by the mapper have arguments that can be
queried directly, others return a function that must be called. After
finding 3 different objects returned (Mapper, return_cls function and a
third I've forgotten), I gave up enumerating them. The patch above just
tests if we have a function and calls it. It works around the problem,
but is probably optimistic and somewhat fragile. I also haven't yet
delved into how to write a test for this error. (It also doesn't address
#2123)
--
Ticket URL: <http://trac.turbogears.org/ticket/2122#comment:4>
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
-~----------~----~----~----~------~----~------~--~---