doesn't something like:
class TopTagsNodeUser(template.Node):
    """ what is the root of this application """
    def render(self, context):
        user = context.get('user', None)
        if user.is_anonymous():
            return ""
        return "<div class='panel'><h4>User Prefs</h4><ul><li>"+str(user)+"</li>
</ul></div>"

work?

On 2/15/06, limodou <[EMAIL PROTECTED]> wrote:
>
> Say I have a tag, it could take some parameter, just like:
>
> {% calendar 2006 2 %}
>
> But in above code, the parameter is a fixed value. But if I have a
> year and a month variable, and I want to pass them to calender tag, so
> how to deal with that. It seems that:
>
> {% calendar year month %}
>
> can not work.
>
> --
> I like python!
> My Blog: http://www.donews.net/limodou
> NewEdit Maillist: http://groups.google.com/group/NewEdit
>


--
[EMAIL PROTECTED] -- blog: http://feh.holsman.net/ -- PH: ++61-3-9877-0909

If everything seems under control, you're not going fast enough. -
Mario Andretti

Reply via email to