Allow using value from preferences in args #35

Closed
opened 2022-01-02 00:16:53 +01:00 by nik · 4 comments
nik commented 2022-01-02 00:16:53 +01:00 (Migrated from edugit.org)

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}`
nik commented 2022-01-02 00:17:22 +01:00 (Migrated from edugit.org)

mentioned in merge request !139

mentioned in merge request !139
nik commented 2022-01-29 23:46:07 +01:00 (Migrated from edugit.org)

created merge request !165 to address this issue

created merge request !165 to address this issue
nik commented 2022-01-29 23:46:08 +01:00 (Migrated from edugit.org)

mentioned in merge request !165

mentioned in merge request !165
hansegucker (Migrated from edugit.org) closed this issue 2022-01-31 18:27:01 +01:00
hansegucker commented 2022-01-31 18:27:02 +01:00 (Migrated from edugit.org)

mentioned in commit b0bee3d29f

mentioned in commit b0bee3d29f36728b35bb0e4475042d193b84fe72
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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.