How to add a new __action__ to Sprox Table

14 views
Skip to first unread message

Mike Driscoll

unread,
Feb 2, 2012, 10:27:22 AM2/2/12
to turbo...@googlegroups.com
Hi,

I am trying to figure out how to add another link to the Sprox Table's __action__ column in each row. It says I can override it in my TableFiller class. Is there a way to just add a link or do I basically need to copy and paste the code in fillerbase.py into my own subclass and add a new div?

Thanks,
Mike

Alessandro Molina

unread,
Feb 2, 2012, 12:17:38 PM2/2/12
to turbo...@googlegroups.com
http://packages.python.org/sprox/modules/sprox.fillerbase.html#sprox.fillerbase.TableFiller

You should be able to override them just by providing a different
__actions__ method to the TableFiller subclass.

> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/i3amlYT0MgYJ.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.

Mike Driscoll

unread,
Feb 2, 2012, 1:46:31 PM2/2/12
to turbo...@googlegroups.com
I ended up just copying the code out of the base class and pasting it into my own. Then I added another line and it works. Seems like kind of a waste to just copy and paste, but whatever. Thanks!

- Mike
Reply all
Reply to author
Forward
0 new messages