[quills-dev] [Collective-checkins] r33381 - Quills/branches/maurits-traversal
quills-dev at lists.etria.com quills-dev at lists.etria.comFri Nov 10 22:03:05 UTC 2006
- Previous message: [quills-dev] [Collective-checkins] r33380 - in Quills/branches/maurits-traversal: . skins/Quills
- Next message: [quills-dev] [Collective-checkins] r33407 - Quills/trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: maurits Date: Fri Nov 10 22:03:04 2006 New Revision: 33381 Added: Quills/branches/maurits-traversal/BRANCH.txt Log: Added BRANCH.txt file to state goal, strategy, status, etc of this branch. Added: Quills/branches/maurits-traversal/BRANCH.txt ============================================================================== --- (empty file) +++ Quills/branches/maurits-traversal/BRANCH.txt Fri Nov 10 22:03:04 2006 @@ -0,0 +1,98 @@ +Goal of branch +============== + +To test traversal without archive folders. + +NOT FOR PRODUCTION USE!!! + + +Base +==== + +I (Maurits van Rees) copied revision 32362 of the Quills trunk. + + +Problem +======= + +When you publish a weblog entry, that entry is moved to +e.g. weblog/archive/2006/11/10/entry-id. It is said that whenever you +move an object during a workflow transition, cats start disappearing +mysteriously. Not good. + +Also, personally I would want that entry to appear as +weblog/2006/11/entry-id, so without 'archive' and without the day. +The last part is pretty doable; it just means changing the +createPath() method in WeblogArchive.py. Before I started throwing +traversal code around, that part seemed to work fine, so if you're +just looking for that, you could monkey patch WeblogArchive in your +own product. + +In general, some more flexibility in those folders would be useful. + + +Strategy +======== + +Several people seems to think it is a good idea to just put all weblog +entries in one BTreeFolder. So we want to get rid of WeblogArchive. +Instead of that we make an archive.py which is used by traversal.py to +fake a temporary folder structure. When you type weblog/2006/11 in +your browser, a catalog query should be done for all weblog entries +that were posted in November 2006. + + + +Status +====== + +- Completely broken! When I add a weblog entry, that entry is made, + but I am never given a chance to edit it. Probably there is + something very wrong with traversal now. + +- At some points I am simply returning an empty list or False or None + as an answer instead of actually trying to come up with a good + answer. + +- When you go to e.g. weblog/2006 you will see a message: "no entries + published yet" or something to that effect. This is good and shows + that traversal is somewhat okay. + + +Plans +===== + +I am hacking and slashing wildly in a product I don't know that well +yet. This doesn't look like something I can pull off on my own. But +at least the code is out in the open now, so others can chip in. The +next step is up to others. + +Feel free to take over this branch. The major files to look at are +traversal.py and archive.py, which is intended as a replacement for +WeblogArchive.py + + +Other approaches +================ + +You may want to look at two other branches that try something similar: + +http://dev.plone.org/collective/browser/Quills/branches/tvon-flat-btree-weblog + +and + +http://dev.plone.org/collective/browser/Quills/branches/tvon-traversal-based-weblog-views-branch + +Also, there is a more general Zope 3 approach which may be a better +path to take: + +svn://svn.zope.org/repos/main/z3c.traverser/trunk + +I don't think Quills is the only product that wants something like +this, so a more general approach may be the best way to get more +developers on board. + + +One unspecified goal of this branch has been met: I had fun coding. :) + +Maurits van Rees <m.van.rees at zestsoftware.nl> ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Collective-checkins mailing list Collective-checkins at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/collective-checkins
- Previous message: [quills-dev] [Collective-checkins] r33380 - in Quills/branches/maurits-traversal: . skins/Quills
- Next message: [quills-dev] [Collective-checkins] r33407 - Quills/trunk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list