made "position" a generic parameter passed to all modules, from courseware.views.index

This commit is contained in:
ichuang
2012-06-01 14:34:26 -04:00
parent 2e2bf13e5c
commit b1b08d2989
4 changed files with 43 additions and 23 deletions

View File

@@ -113,4 +113,8 @@ class Module(XModule):
state = json.loads(state)
if 'position' in state: self.position = int(state['position'])
# if position is specified in system, then use that instead
if system.get('position'):
self.position = int(system.get('position'))
self.rendered = False