#4: Quills should not move posts into archive folders

Contents
  1. Motivation
  2. Assumptions
  3. Proposal
  4. Implementation
  5. Deliverables
  6. Risks
  7. Progress log
  8. Participants
by Justin Ryan last modified Jan 22, 2010 06:27 AM

Proposed by
bitmonk
Seconded by
tvon
Proposal type
Architecture
Assigned to release
Repository branch
tvon-traversal-based-weblog-views-branch
State
being-discussed

Motivation

  • Quills uses a custom workflow solely for the sake of moving entries on publish.
  • Privatizing Quills post does not work. 
  • It has been said that every time you move an object in a workflow change, God Kills a Kitten.

Assumptions

It should be possible to preserve existing date-based urls for content which lives in the root of the Weblog / Folder using acquisition or somesuch.

Proposal

Code for moving objects on workflow change should be removed and some method of preserving date-based urls, esp for existing posts, should be devised.

Implementation

All code related to archive / date-based urls should be removed. Someone once suggested that compat. urls could be done with an Acquisition wrapper.

Deliverables

A working branch of Quills with no archive folder and some migration to fix existing blogs.

Risks

It could be a PITA to migrate.

Progress log

tvon

  • Switched Weblog to BTreeFolder based content
  • Commented out workflow installation so we use default Plone workflow states
  • Now to figure out how to actually do what this branch is supposed to do...

bitmonk:

  • There is a test of new workflow based on existing workflow in branches/bitmonk-post-1.5 of svn.
  • Need migration for workflow


Participants

tvon

Comments (2)

Justin Ryan Aug 20, 2006 01:38 AM
I think it's important to develop a strategy for this which is cache-friendly, esp where each post has One True URL(tm) so that it is not generated and cached multiple times. I don't think the OTURL has to be location-based, i.e. the posts can still live in a BTree and be traversed to, and available at multiple URLs, but should always redirect to one place. It's also OK if the policy for which of a post's URLs is configurable and/or even changes.
Justin Ryan Jan 09, 2007 03:18 AM
I committed a band-aid for this to trunk today. If you don't want to use archive folders, it's easiest in a new blog, but can be done in an existing instance if you move all the posts into the root of the weblog.

to enable this optional functionality, edit your quills_workflow's transitions, disable the moveToArchive and moveToRoot workflow methods, and delete the 'archive' object from your weblog.

Existing code should continue to work fine, but you can't, with this code, have new posts show up in the root and keep your archive, though that would be possible, if desirable.

Cheers!