This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MultiLinkColumn(Column): | |
def render(self, value): | |
s = "" | |
for m in Machine.objects.all(): | |
s += '<a href="list/{}" />Edit {}</a><br/>'.format(m.id, m.id) | |
return format_html(s) | |
class MachineTable(tables.Table): | |
status = LinkColumn('edit', args=[A('pk')], empty_values=()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
''' | |
author: nochn_kellerkind | |
some magic from mencoder done in this script. | |
Examples of whats possible: http://www.wiki.csoft.at/index.php/MEncoder_Scripts | |
''' | |
import sys |