Menu

Trac Commit Log


Commit Date  
[r6423] by cboos

WikiRename: add a simple user interface for renaming wiki pages.

The interface was modeled after the one for deleting wiki pages, i.e. with a confirmation page that asks for the additional details.

2008-01-28 21:15:21 Tree
[r6422] by cboos

WikiRename: add a method to the model for renaming a wiki page in-place.

New methods:
- `WikiPage.rename(self, new_name, db=None)`
- `Attachment.reparent_all(cls, env, old_realm, old_id, new_realm, new_id, db)`

Implementation note for `Attachment.reparent_all`: we move files individually instead of the whole folder, because:
1. this will work even if the new resource already exists (e.g. for merges)
2. it's complex when the new resource is a sub-folder if the old one
3. it's simply not possible in the general case (e.g. when the new page doesn'titself exist, but there are already sub-folders)

Note also that it's because of 3. (sub-folders may exists) that we don't remove the old attachment folder after the reparent.

2008-01-28 21:14:53 Tree
[r6421] by cboos

WikiRename: simplify transaction handling in the Wiki model

The !WikiPage public API is not modified. A helper `transaction` function is used to factor out the `handle_ta` business. Its usage is very simple:
- if the function is given a database connection, it will simply execute the callback as part of another transaction,
- if the function has to retrieve a new database connection, it takes responsibility to either `commit` the changes performed by the callback or to `rollback` them, if any exception was raised.

TODO: similar changes could apply to `trac.ticket.model`

2008-01-28 21:14:29 Tree
[r6420] by cboos

Branching WikiRename for implementing #1106

2008-01-28 20:59:29 Tree
[r6419] by cboos

A few clean-ups:
- remove unused variable in wiki/model.py
- typo in wiki_delete.html template

2008-01-28 20:57:56 Tree
[r6418] by osimons

SpamFilter: Fixing a minor glitch with title attributes. Closes #4941.

2008-01-27 23:53:12 Tree
[r6417] by osimons

Small visual fix for label of Inter* links. When used as `[trac🎫1]` it did not show the prefix of 'trac', whereas `trac🎫1` (no brackets) did. Now they both do.

2008-01-25 20:54:13 Tree
[r6416] by cboos

0.10.5dev: ported r6415 (''vc cache fix for postgresql 8.3'')

2008-01-25 17:47:53 Tree
[r6415] by cboos

Adapt version control's cache to PostgreSQL 8.3. A few explicit casts of the revision to a str were missing.

Closes #6274.

2008-01-25 17:43:00 Tree
[r6414] by ecarter

Testing: merge through r6137, except r6120 and r6122. All tests pass.

2008-01-25 13:53:09 Tree
Older >