xtfc / pyboard

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

Anonymous feedback form #26

Open scizzorz opened 11 years ago

scizzorz commented 11 years ago

You know, for anonymous feedback. Could just send email to all the admins instead of recording it as a file.

philipdexter commented 11 years ago

Anonymous feedback for the class? Or pyboard in general?

scizzorz commented 11 years ago

Uhh, my original intent was for the class, but I guess Pyboard feedback wouldn't be bad? Although they could pretty easily leave anon feedback on GitHub by just making a throwaway account and opening an issue... I'd say just do it for the class.

Might want an option to disable this, though. Some teachers may not like feedback...

philipdexter commented 11 years ago

True. Good idea

scizzorz commented 11 years ago
app.config['FEEDBACK'] = True|False

Simple enough. Or whatever the syntax is in serverconfig.py, I forgot.

scizzorz commented 11 years ago

This issue should actually be really trivial to implement. Grab the /email/to endpoint from a previous commit and change the yous to the admins and the from to app.config['EMAIL_FROM'] or whatever, with a hardcoded subject of 'Anonymous feedback for ' + app.config['COURSE_NAME']. Admins can probably be grabbed with a list comprehension like admins = [User(x) for x in os.listdir('users')] and then admins = [x.email for x in admins if x.section == 'admin'].