Allow using value from preferences in args #35

Closed
opened 2022-01-02 00:16:53 +01:00 by nik · 4 comments
Owner

In the args of a template, we should allow using an arbitrary preference.

For example, for the e-mail field, we probably want to have a preference giving the default mail domain. This is not even specific to the CSV import, such a preference would be useful in AlekSIS globally. But then, we do not want to hard-code the domain in the template, but use the preference instead.

The idea is to allow some kind of formatter in strings, like it is done in DJango's URL route parsing, or in format strings, or… Example: {preference:foo}

In the args of a template, we should allow using an arbitrary preference. For example, for the e-mail field, we probably want to have a preference giving the default mail domain. This is not even specific to the CSV import, such a preference would be useful in AlekSIS globally. But then, we do not want to hard-code the domain in the template, but use the preference instead. The idea is to allow some kind of formatter in strings, like it is done in DJango's URL route parsing, or in format strings, or… Example: `{preference:foo}`
Author
Owner

mentioned in merge request !139

mentioned in merge request !139
Author
Owner

created merge request !165 to address this issue

created merge request !165 to address this issue
Author
Owner

mentioned in merge request !165

mentioned in merge request !165
Owner

mentioned in commit b0bee3d29f

mentioned in commit b0bee3d29f36728b35bb0e4475042d193b84fe72
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-CSVImport#35
No description provided.