Commit 29d68905 authored by Louis's avatar Louis
Browse files

More TODOs

parent 525bddad
gitlab:
server: http://framagit.org
default:
gitlab:
server: http://framagit.org
rows:
- color
- homepage
......
# TODO Copyright
import jinja2
class Column:
keyword = None
default = {}
def __init__(self, config):
self.config = config
@jinja2.contextfilter
def __call__(self, context, package, options):
filled = default.copy()
if ('default' in config) and (self.keyword in config['default']):
filled.update(self.config['default'][self.keyword])
filled.update(options)
self.render(context, package, options)
def render(self, context, package, options):
raise NotImplementedError()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment