コード例 #1
0
    def __init__(self):
        redirectURL = None
        if SESSINFO.getSessionInfo().getStatus() < 100:
            redirectURL = UTIL.getURL('inbox')
        WW.InputFrame.__init__(self,WN.getWidgetIdEditProfile(),
                                  UTIL.getURL('editpersonal'),
                                  redirectURL)
        global _gDataGroup
        _gDataGroup = self._readData()
        
        self.add(HeaderTag('RELEGIOUS_INFO'))
        self.add(EditReligiousInfo())
        
        self.add(HeaderTag('PERMENANT_ADDRESS'))
        self.add(EditAddressInfo(0))
        
        self.add(HeaderTag('PRESENT_ADDRESS'))
        self.add(EditAddressInfo(1))

        self.add(HeaderTag('PERSONAL_INFO'))
        self.add(EditPersonalInfo())
        
        self.add(HeaderTag('EDUCATION_JOB'))
        self.add(EditJobInfo())
        
        self.add(HeaderTag('ABOUT'))
        self.add(EditAboutInfo())
        
        
        self.add(ButtonSaveContinue())
コード例 #2
0
ファイル: inbox.py プロジェクト: anoopms/WebServer
def _processRequest():

    ret = SESSINFO.initSession()
    if ret == False:
        SESSINFO.redirectPage(UTIL.getURL("login"))
    form = cgi.FieldStorage()
    sessInfo = SESSINFO.getSessionInfo()

    rowcol = CONST.getAllowedRowCol(form.getvalue("row"), form.getvalue("col"), sessInfo.getStatus())

    _sendReply(rowcol[0], rowcol[1])
コード例 #3
0
   def __init__(self):
       WW.DivFrame.__init__(self)
       self.setClass('buttonSectionStyle')
       
       if SESSINFO.getSessionInfo().getStatus() < 100:
           textKey = 'SAVE_CONTINUE'
       else:
           textKey = 'SAVE'
 
       bButton = NW.BusyTableButton(WN.getWidgetIdEditProfile()+'Button',UTIL.getText('SAVE_CONTINUE'))
       self.add(bButton)
コード例 #4
0
 def _readData(self):
     
     tableName = SESSINFO.getSessionInfo().getDBName()
     group = DBINT.DBFieldGroup('DB1', tableName)
     
     DBINT.setDBReadGroup(group,'height','weight','maritalstatus','physicalstatus','complexion',
      'religion','caste','countryperm','stateperm','districtperm','placeperm',
      'pinperm','countrytemp','statetemp','districttemp','placetemp','pintemp',
      'education','occupationtype','occupation','company','companyemail','writtenby','aboutme')
     
     qGroup = DBINT.getDBTrustedQGroupAnd(id=SESSINFO.getSessionInfo().getId())
     group.setQueryGroup(qGroup)
     
     if tableName == None:
         '''
         Make all the groups and returns if the table name is none.
         '''
         return group
     
     group.read()
     return group
コード例 #5
0
ファイル: inboxdata.py プロジェクト: anoopms/WebServer
 def __init__(self, row, col):
     
     sessinfo = SESSINFO.getSessionInfo();
     regStatus = sessinfo.getStatus()
     
     WW.HTMLBody.__init__(self)
    
     hCtrl = NW.HeaderControlls(True)
     self.add(hCtrl)
     self.nl()
     btable = BorderTable(row,col)
     self.add(btable)
     self.add(UTIL.getCopyrightLabel())
     self.addData()
コード例 #6
0
ファイル: inboxdata.py プロジェクト: anoopms/WebServer
 def addData(self):
     sessinfo = SESSINFO.getSessionInfo()
     status = sessinfo.getStatus()
     t1 = WW.Textbox('iDataStatus', status)
     t1.hide()
     self.add(t1)
     t1 = WW.Textbox('iDataAccessMsg', UTIL.getText('INBOX_ACCESS_ERROR1'))
     t1.hide()
     self.add(t1)
     
     rItems = CONST.getRowItems()
     for i in range(len(rItems)):
         cItems = CONST.getColumnItems(i)
         for j, val in enumerate(cItems):
             t1 = WW.Textbox('iDataMenuLabel%s%s'%(i,j), UTIL.getText(val))
             t1.hide()
             self.add(t1)
コード例 #7
0
ファイル: inboxajax.py プロジェクト: anoopms/WebServer
def _processRequest():
    ret = SESSINFO.initSession()
    if ret != True:
        _sendError()
        return

    form = SESSINFO.getForm()
    row = UTIL.toInt(form.getvalue("row"))
    col = UTIL.toInt(form.getvalue("col"))
    status = SESSINFO.getSessionInfo().getStatus()

    rowcol = CONST.getAllowedRowCol(row, col, status)

    if row != rowcol[0] or col != rowcol[1]:
        _sendError()
        return
    msg = inboxdata.getInboxBodyObj(row, col)
    _sendReply(msg)
コード例 #8
0
ファイル: niswidgets.py プロジェクト: anoopms/WebServer
 def __addLinks2(self, comp, showLogout):
     sessInfo = SESSINFO.getSessionInfo()
     # Need to clean the following 2 lines of code
     if sessInfo != None and sessInfo.getName() != None:
         comp.add("<b>" + sessInfo.getName() + "</b>")
     comp.sp(2)
     hl = WW.Hyperlink(UTIL.getURL("help"), UTIL.getText("HELP"))
     hl.setBlank()
     comp.add(hl)
     comp.sp(2)
     hl = WW.Hyperlink(UTIL.getURL("settings"), UTIL.getText("SETTINGS"))
     hl.setBlank()
     comp.add(hl)
     comp.sp(2)
     if showLogout:
         hl = WW.Hyperlink(UTIL.getURL("signout"), UTIL.getText("LOGOUT"))
         comp.add(hl)
         comp.sp(2)
コード例 #9
0
ファイル: nisdbutils.py プロジェクト: anoopms/WebServer
def getDropdownValue(tableName):
    
    
    dbGroup = DBINT.DBFieldGroup('DB1',tableName)
    
    fieldName = SESSINFO.getLangId()
    
    idItem = DBINT.DBFieldItem('id')
    idItem.setSortItem()
    dbGroup.addItem(idItem)
    
    langItem = DBINT.DBFieldItem(fieldName)
    dbGroup.addItem(langItem)
    
    dbGroup.read()
    
    idList = dbGroup.getItem(0).getAllValues()
    
    valList = dbGroup.getItem(1).getAllValues()
    
#    model = NM.NisDropdownModelImpl(valList,idList)
    model = NisDropDownGenderModel(valList,idList, SESSINFO.getSessionInfo().getSex())
    return model