Пример #1
0
 def setParams(self):
     sLang = self.request.getLang()
     self.response.setHeader('cache-control', 'no-cache')
     self.response.setExpiration(1200)
     
     self.params = resources.getLocale(sLang).copy()
     self.params['ID'] = self.item.id
Пример #2
0
 def setParams(self):
     self.response.setHeader('cache-control', 'no-cache')
     sLang = self.request.getLang()
     
     self.params = resources.getLocale(sLang).copy()
     if self.session.user.settings.value['TASK_BAR_POS'] == 'bottom':
         self.params['CHECKED_TOP'] = 'false'
         self.params['CHECKED_BOTTOM'] = 'true'
     else:
         self.params['CHECKED_TOP'] = 'true'
         self.params['CHECKED_BOTTOM'] = 'false'