[quills-dev] WeblogArchive [was: 1.5 final?]
Tim Hicks tim at sitefusion.co.ukWed Nov 1 22:39:55 UTC 2006
- Previous message: [quills-dev] WeblogArchive [was: 1.5 final?]
- Next message: [quills-dev] WeblogArchive [was: 1.5 final?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Maurits van Rees wrote: > Tim Hicks, on 2006-10-31: >> Reinout van Rees wrote: >>> One thing, from the top of my head, *is* a quills problem: the >>> permissions to create the on-the-fly 2006/10/31-like folders. Not sure >>> if that's right. >> My recollection is that a cut-and-paste operation is performed that >> moves the entry from the weblog root to the new archive home. Unless >> I'm mistaken, this cut/paste needs to give the user the delete >> permission, and so allows them to delete all other weblog entries in the >> weblog root. >> >> Getting rid of the cut/paste operation (by faking traversal) means we >> wouldn't need to grant the delete permission, which should make life >> marginally better for Michael, I think. > > I'm thinking about putting some time in here, but I have no idea where > to start. Is there another product that fakes traversal? A working > example is always useful. Quills already does this for the [weblog]/topics/* hierarchy. See <http://dev.plone.org/collective/browser/Quills/trunk/traversal.py> and associated zcml. I've done my best to comment it heavily and make the code as clear as possible. > The last I found on improving this part of > Quills is from tvon in April this year: > > http://dev.plone.org/collective/log/Quills/branches/tvon-flat-btree-weblog > > But that only removes some code and doesn't yet do anything > traversal-like. > > > Personally, I want to move my own ZMI-made Zope 2.7 blog to Quills. I > would like to keep using weblog/year/month/entry-title instead of > weblog/archive/year/month/day/entry-title. Maybe I'll just throw in > an Apache rewrite rule to redirect weblog/200x to weblog/archive/200x > and solve half my problem. If you implement the traversal faking, then you won't need the rewrite rule as you can just do it in the traversal adapter. > For the other half of the problem: I'm thinking about monkey patching > createPath in WeblogArchive.py to not create the 'day' archive folder. > Are there better ideas? I have a much better idea :). WeblogArchive should disappear as a persistent content type. It should be constructed on the fly for each request, in the same manner as the Topic and AuthorTopic classes are now in traversal.py. There should probably be a well-defined IWeblogArchive interface, though - and it may even have similar methods to the current persistent implementation. I'm away from tomorrow morning until Monday, but would be glad to provide pointers for what I have been thinking/planning on this front after that. Andrey Fedoseev (aka cornelius on plone.org) has a good grasp of how things should be done, I think. He was talking about working on this a while back, but I guess he never had the time. Tim
- Previous message: [quills-dev] WeblogArchive [was: 1.5 final?]
- Next message: [quills-dev] WeblogArchive [was: 1.5 final?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list