#2194: Turbogears overrides controller return values for templates
------------------------+---------------------------------------------------
Reporter: kikidonk | Owner: faide
Type: defect | Status: new
Priority: highest | Milestone: 2.0b6
Component: TurboGears | Version: trunk
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by faide):
We should get to a decision quickly here. Kiki is right, in the fact that
if a user returns a variable from a controller he expects to find it on
the other side (template).
I think we should namespace all our provided variables and functions in
tg.* to make sure the user cannot overwrite accidentally something. And we
should protect the tg.* namespace by inspecting the returned dict from the
user and raising an execption if the user returned a varible named 'tg'.
I prefer to break API quickly before b6 on this important issue if we need
to.
--
Ticket URL: <http://trac.turbogears.org/ticket/2194#comment:7>
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
-~----------~----~----~----~------~----~------~--~---