Пример #1
0
    def manage_editProperties(self,first_day_week,REQUEST=None):
        """ Manage the edited values """

        if first_day_week == 'Monday':
            calendar.setfirstweekday(0)
        else:
            calendar.setfirstweekday(6)
        self.ZCacheable_invalidate()
        return PropertyManager.manage_editProperties(self,REQUEST)
Пример #2
0
 def manage_editProperties(self, REQUEST):
     """ re-render the page after changing the properties (encodings!!!) """
     result = PropertyManager.manage_editProperties(self, REQUEST)
     self._clear_cache()
     return result
Пример #3
0
Файл: sql.py Проект: dtgit/dtedu
 def manage_editProperties(self, REQUEST):
     """Ensure the SQL methods get regenerated."""
     self.delSQLQueries()
     res = PropertyManager.manage_editProperties(self, REQUEST)
     self.addSQLQueries()
     return res
Пример #4
0
 def manage_editProperties(self, REQUEST):
     """Change properties from ZMI"""
     result = PropertyManager.manage_editProperties(self, REQUEST)
     self.reindex_object()
     return result
Пример #5
0
 def manage_editProperties(self, REQUEST):
     """ re-render the page after changing the properties (encodings!!!) """
     result = PropertyManager.manage_editProperties(self, REQUEST)        
     self._clear_cache()
     return result