def _checkParams( self, params ): RHAbstractSubmissionBase._checkParams(self, params) #if the user is not logged in we return immediately as this form needs # the user to be logged in and therefore all the checking below is not # necessary if self._getUser() is None: return AbstractParam._checkParams(self, params, self._conf, request.content_length)
def _checkParams( self, params ): RHAbstractSubmissionBase._checkParams(self, params) #if the user is not logged in we return immediately as this form needs # the user to be logged in and therefore all the checking below is not # necessary if self._getUser() == None: return headerSize = self._req.headers_in["content-length"] AbstractParam._checkParams(self, params, self._conf, headerSize)
def _checkParams(self, params): RHAbstractSubmissionBase._checkParams(self, params) #if the user is not logged in we return inmediately as this form needs # the user to be logged in and therefore all the checking below is not # necessary if self._getUser() == None: return headerSize = self._req.headers_in["content-length"] AbstractParam._checkParams(self, params, self._conf, headerSize)
def _checkParams(self, params): RHAbstractSubmissionBase._checkParams(self, params) #if the user is not logged in we return immediately as this form needs # the user to be logged in and therefore all the checking below is not # necessary if self._getUser() is None: return AbstractParam._checkParams(self, params, self._conf, request.content_length)
def _checkParams(self, params): RHAbstractModifBase._checkParams(self,params) if self._getUser() is None: return AbstractParam._checkParams(self, params, self._conf, request.content_length) if self._action == "":#First call #TODO: remove this code, this should be handle by AbstractData (not method available # because setAbstractData(abstract) is used when saving, so there are specific actions. afm = self._conf.getAbstractMgr().getAbstractFieldsMgr() self._abstractData.title = self._abstract.getTitle() for f in afm.getFields(): id = f.getId() self._abstractData.setFieldValue(id, self._abstract.getField(id)) self._abstractData.type = self._abstract.getContribType() trackIds = [] for track in self._abstract.getTrackListSorted(): trackIds.append(track.getId()) self._abstractData.tracks = trackIds self._abstractData.comments = self._abstract.getComments()
def __init__(self): RHAbstractSubmissionBase.__init__(self) AbstractParam.__init__(self)
def __init__(self, req): RHAbstractModifBase.__init__(self, req) AbstractParam.__init__(self)