Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 3
0
Arquivo: sql.py Projeto: 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
Exemplo n.º 4
0
 def manage_editProperties(self, REQUEST):
     """Change properties from ZMI"""
     result = PropertyManager.manage_editProperties(self, REQUEST)
     self.reindex_object()
     return result
Exemplo n.º 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