On 7月3日, 上午1時32分, Ben Bangert <[EMAIL PROTECTED]> wrote:
> On Jul 2, 12:22 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > 1. unknown links didn't dispatch to 'default' method
> > 2. pylons 'c', 'g' params need to be returned implicitly (return
> > dict(c=c, g=g))
> > 3. need implement tg_flash
>
> I've looked into implementing this as well. I'm not sure what the
> reason was for calling it tg_flash (surely its obvious its from tg if
> you just import it there?), but I'd like to have a flash function as
> well.


We have three way to setup a flash info in TG 1.x, based on the
tg_flash parameter.

1.
'flash("infos)' in method, the expose decorator append the tg_flash
parameter depends on the content of the flash() method.

2.
'return dict(tg_flash="infos")' in method

3.
implicitly pass as uri param: 'href='index?tg_flash="infos" '


that's why I call it tg_flash.


Looking forward to better flash support :D

ex:

flash.alert()
flash.warn()
flash.info()

--
Fred


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to