ryansb / ofCourse

Python courseware leveraging Flask and OpenShift
Apache License 2.0
12 stars 14 forks source link

Use a Student class to provide calculated properties #2

Open ryansb opened 10 years ago

ryansb commented 10 years ago

There are a few places now where we execute some logic and add properties to students. It'd be better if we could do something like this.

class Student(object):
    @property
    def participant_page(self):
        return "/blogs/{year}/{term}/{uname}".format(......)

This will require a fair amount of changes to existing code, so before doing this we should work on decause/hflossk#419

migrated from decause/hflossk#420