You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-...@googlegroups.com
i was going crazy trying to figure out how to standardize a cache priming function for my templates. this should do the trick.
thank you!
Mike Orr
unread,
Jan 17, 2013, 11:43:44 PM1/17/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-...@googlegroups.com
Another idea I accidentally came up with is to put utility methods in
the base view class, which you can call as 'view.foo()'. It's neater
than making an API object in BeforeRender, and it also allows views to
call the exact same code if they need to sometimes.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-discuss
On Jan 17, 11:43 pm, Mike Orr <sluggos...@gmail.com> wrote:
> Another idea I accidentally came up with is to put utility methods in
> the base view class, which you can call as 'view.foo()'. It's neater
> than making an API object in BeforeRender, and it also allows views to
> call the exact same code if they need to sometimes.
That's a good idea.
Can the View class's instance be accessed in the events ? It would be
nice to use both.