Re: Component design question

2019-06-20 Thread J. Pic
Damnit, my port was wrong above, here goes, with list for content and dict for attributes as arguments instead of using *args, **kwargs: if not request.user.is_authenticated: content.append( Li( [A([_('Log in')], dict(href=reverse('crudlfap:

Re: Component design question

2019-06-20 Thread J. Pic
Better for perspective to port the first example in second syntax to compare: if not request.user.is_authenticated: content.append( Li( A([_('Log in')], dict(href=reverse('crudlfap:login'))), dict(cls='no-padding'),

Component design question

2019-06-20 Thread J. Pic
Hi all, We're running some experiments replacing templates by Components (which support channels based data-binding amongst other niceties) in Python, i would like to run an opinion survey about two syntaxes before moving on. Syntax 0 is what seems more "pythonic" but requires a less strict call s