equal
deleted
inserted
replaced
78 modified_by = db.ReferenceProperty(reference_class=soc.models.user.User, |
78 modified_by = db.ReferenceProperty(reference_class=soc.models.user.User, |
79 required=True, |
79 required=True, |
80 collection_name="modified_documents", |
80 collection_name="modified_documents", |
81 verbose_name=ugettext('Modified by')) |
81 verbose_name=ugettext('Modified by')) |
82 |
82 |
83 # TODO: some sort of access control preferences are needed at this basic |
|
84 # level. Works need to be restrict-able to: |
|
85 # * the authors only |
|
86 # * the administrators of the Groups that the authors are in |
|
87 # * any member of the authors' Groups |
|
88 # * logged-in User with a profile |
|
89 # * logged-in Users, but no profile is necessary |
|
90 # * anyone, even those not logged in |
|
91 # (and possibly others) |
|
92 |
|
93 def name(self): |
83 def name(self): |
94 """Alias 'title' Property as 'name' for use in common templates. |
84 """Alias 'title' Property as 'name' for use in common templates. |
95 """ |
85 """ |
96 return self.title |
86 return self.title |
97 |
87 |