mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 09:17:16 +00:00
New User registration form
This commit is contained in:
@@ -79,7 +79,8 @@ def troggle_slugify(longname):
|
||||
slug = slug.replace('ä', 'a')
|
||||
slug = slug.replace('&', '') # otherwise just remove the &
|
||||
slug = slug.replace(';', '') # otherwise just remove the ;
|
||||
slug = re.sub(r'<[^>]*>','',slug) # remove <span-lang = "hu">
|
||||
slug = slug.replace("'", "") # otherwise just remove the ', no O'Reilly problem # NEW
|
||||
slug = re.sub(r'<[^>]*>','',slug) # remove <span-lang = "hu"> and any HTML tags
|
||||
slug=slug.strip("-") # remove spare hyphens
|
||||
|
||||
if len(slug) > 40: # slugfield is 50 chars
|
||||
@@ -120,9 +121,11 @@ def load_people_expos():
|
||||
e = Expedition.objects.create(**otherAttribs, **coUniqueAttribs)
|
||||
|
||||
print(" - Loading personexpeditions")
|
||||
|
||||
|
||||
for personline in personreader:
|
||||
# This is all horrible: refactor it.
|
||||
# CSV: Name,Lastname,Guest,VfHO member,Mugshot,..
|
||||
# e.g: Olly Betts (Ol),Betts,,,l/ollybetts.htm,
|
||||
name = personline[header["Name"]]
|
||||
plainname = re.sub(r"<.*?>", "", name) # now in slugify
|
||||
|
||||
|
||||
Reference in New Issue
Block a user