hi there,
I am building a website with a complex template, in the 'master.html'
which every template files are included, there are several variables:
[code]
<li class="xos"> <a id="xlf" class="xns" href="help/">Welcome back $
{username}</a> </li>
...
<li class="xbp" py:for="phone in phonelist">
...
[/code]
For show my templates correctly, I have to make a very complex
'return' stances for every exposed functions:
[code]
return dict(page = 'rename',
username = self.user.user_name,
phoneinfo = self.phoneInfo,
phonelist = PhoneInfo.GetPhoneList(self.user),
codeleft = GetCodeLeft(self.user),
phonename = PhoneInfo.GetPhoneName(user = self.user, imei =
self.phoneInfo.IMEI)
)
[/ciode]
In the example above, most of the parametered are common, such as
'username', 'codeleft' and 'phonelist'. Is there anyway for me to
shorten my return line? Thanks.-- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

