xtfc / pyboard

A simple submission system that I use for my class
1 stars 0 forks source link

Add a User class to process a user info file #18

Closed scizzorz closed 11 years ago

scizzorz commented 11 years ago

No more arrays of lines in a file, and no more passing username and info into the template! I also added an admin group instead of having an admins file. Administrators now have a different navbar with 'grades' and 'submit' replaced with 'admin'. /emails has been renamed /users, although this is pretty superficial and could easily be reverted.

philipdexter commented 11 years ago

Wow, awesome. I'll check this out in detail in the morning.

scizzorz commented 11 years ago

Looking back, I'm not sure you even ever had a user file for the admins... That might have just been something I had to do when I was testing stuff. Hmm. Feel free to reject this and I'll rework the admin part back to the way it was. Either way, migration instructions since I forgot them in the PR:

  1. Move emails to users
  2. For each user in the admins file, create a file in users with their email and admin as their section
  3. Delete the admins file

Should cover it.

philipdexter commented 11 years ago

I didn't, but that doesn't matter, this way is easier and would also auto email announcements to the admins as well, which is desired.

philipdexter commented 11 years ago

f593935bef9c96fa7df4042f2060bdffe7062c71 2e293c08cfac508bfa604e8a59d65a9572d8a1fc 2953b0f67eb0fc4e041dc0831548fc5105eecb01 ffb50e0808d3b2297dea329661fa86c412dc9454