Changeset 8ccd88f for asadb/groups


Ignore:
Timestamp:
Jun 3, 2013, 5:33:53 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
cfde3dc
Parents:
cbd22b4
git-author:
Alex Dehnert <adehnert@…> (06/03/13 05:33:53)
git-committer:
Alex Dehnert <adehnert@…> (06/03/13 05:33:53)
Message:

Add help text about Athena lockername selection

As mentioned in ASA-#234, some people starting groups pick excessively long
locker names. This adds help text to try to alleviate that tendency (and also
to reduce the number of invalid characters people submit).

Unfortunately, enforcing this well seems difficult --- we want the SQL database
to support longer lockernames (some groups have org lockers instead of activity
lockers, and can therefore have longer names, for one), but have the frontend
(sometimes) reject it. It's not clear how to do this in Django.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/views.py

    rcbd22b4 r8ccd88f  
    631631        self.fields['constitution_url'].help_text = "Please put a copy of your finalized constitution on a publicly-accessible website (e.g. your group's, or your own, Public folder), and link to it in the box above."
    632632        self.fields['athena_locker'].required = True
     633        self.fields['athena_locker'].help_text = "In general, this is limited to twelve characters. You should stick to letters, numbers, and hyphens. (Underscores and dots are also acceptable, but may cause problems in some situations.)"
     634
     635        # Specifically, if the group ends up wanting to use scripts.mit.edu,
     636        # they will currently be assigned locker.scripts.mit.edu. If they try
     637        # to use foo.bar, then https://foo.bar.scripts.mit.edu/ will produce a
     638        # certificate name mismatch. Officially, underscores are not allowed in
     639        # hostnames, so foo_.scripts.mit.edu may fail with some software.
    633640
    634641    class Meta(GroupCreateForm.Meta):
Note: See TracChangeset for help on using the changeset viewer.