Skip to content
Snippets Groups Projects
Commit 50b72440 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

no need to reload templates

parent f3865c7b
No related branches found
No related tags found
No related merge requests found
[% all_attributes = {} %]
[%
attributes_all = {}
attributes_for = {}
%]
[% FOREACH account IN accounts %]
[% id = account.id() %]
[% template = account.profile() _ '.tt2' %]
[% PROCESS $template scope=account.scope() id=account.id() | trim %]
[% all_attributes.import(attributes) %]
[% attributes_all.import(attributes) %]
[% attributes_for.$id = attributes %]
[% END %]
[% attributes_list = all_attributes.keys.sort -%]
[% attributes_list = attributes_all.keys.sort -%]
username,password,profile,[% attributes_list.join(',') %]
[%+ FOREACH account IN accounts %]
[% template = account.profile() _ '.tt2' %]
[% PROCESS $template scope=account.scope() id=account.id() | trim %]
[% id = account.id() %]
[% account.internal_uid() %],
[% account.password() %],
[% account.profile() %],
[% attributes = attributes_for.$id %]
[% FOREACH attribute IN attributes_list %]
[% attributes.$attribute.join(', ').quote('"') %],
[% END %]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment