Groups

1 view
Skip to first unread message

John Milner

unread,
Feb 8, 2012, 10:10:20 PM2/8/12
to student-worker-relational-database-dev
Evil string of commands to find hardcoded groups:
find -name '*.py' | xargs grep -Fi '.groups.' | sed 's/)/)\n/g' | grep 'name=' | sed "s/^.*name=['\"]\(.*\)['\"].*$/\1/" | sort | uniq

Currently, these are:
company
cwsp
faculty
registrar
students
teacher
viewer

From the master:

3:58 PM Davidfaculty comes from me thinking it meant anyone who works at a school
3:59 PM so anyone who isn't a student nor supervisor
  it might be hard coded

David Burke

unread,
Feb 9, 2012, 8:52:00 PM2/9/12
to student-worker-rela...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages