~ubuntu-branches/ubuntu/precise/trac/precise

« back to all changes in this revision

Viewing changes to trac/wiki/model.py

  • Committer: Bazaar Package Importer
  • Author(s): W. Martin Borgert
  • Date: 2009-09-15 21:43:38 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20090915214338-q3ecy6qxwxfzf9y8
Tags: 0.11.5-2
* Set exec bit for *_frontends (Closes: #510441), thanks to Torsten
  Landschoff for the patch.
* Move python-psycopg2 and python-mysql from Suggests to Depends as
  alternative to python-psqlite2 (Closes: #513117).
* Use debhelper 7 (Closes: #497862).
* Don't compress *-hook files and don't install MS-Windows *.cmd
  files (Closes: #526142), thanks to Jan Dittberner for the patch.
* Add README.source to point to dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
#
3
 
# Copyright (C) 2003-2008 Edgewall Software
 
3
# Copyright (C) 2003-2009 Edgewall Software
4
4
# Copyright (C) 2003-2005 Jonas Borgström <jonas@edgewall.com>
5
5
# Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de>
6
6
# All rights reserved.
138
138
                                      to_timestamp(t), author, remote_addr,
139
139
                                      self.text, comment, self.readonly))
140
140
            self.version += 1
 
141
            self.resource = self.resource(version=self.version)
141
142
        elif self.readonly != self.old_readonly:
142
143
            cursor = db.cursor()
143
144
            cursor.execute("UPDATE wiki SET readonly=%s WHERE name=%s",