WIP: Start cleaning up CMS to work with new field format

This commit is contained in:
Calen Pennington
2012-12-21 13:22:53 -05:00
parent 16d5a769d2
commit fa75245e8a
10 changed files with 79 additions and 104 deletions

View File

@@ -1,5 +1,5 @@
from xmodule.model import Namespace, Boolean, Scope, String, List
from xmodule.fields import Date
from xmodule.fields import Date, Timedelta
class StringyBoolean(Boolean):
@@ -39,3 +39,4 @@ class LmsNamespace(Namespace):
giturl = String(help="DO NOT USE", scope=Scope.settings, default='https://github.com/MITx')
xqa_key = String(help="DO NOT USE", scope=Scope.settings)
ispublic = Boolean(help="Whether this course is open to the public, or only to admins", scope=Scope.settings)
graceperiod = Timedelta(help="Amount of time after the due date that submissions will be accepted", scope=Scope.settings)