Esempio n. 1
0
    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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
    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)
Esempio n. 5
0
 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()
Esempio n. 6
0
 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()
Esempio n. 7
0
 def __init__(self):
     RHAbstractSubmissionBase.__init__(self)
     AbstractParam.__init__(self)
Esempio n. 8
0
 def __init__(self, req):
     RHAbstractModifBase.__init__(self, req)
     AbstractParam.__init__(self)
Esempio n. 9
0
 def __init__(self, req):
     RHAbstractModifBase.__init__(self, req)
     AbstractParam.__init__(self)
Esempio n. 10
0
 def __init__(self):
     RHAbstractSubmissionBase.__init__(self)
     AbstractParam.__init__(self)