Re: [Zope3-Users] Zope 3 vs Zope 2

2006-01-10 Thread Lennart Regebro
On 1/10/06, David Johnson [EMAIL PROTECTED] wrote:
 We're producing a new application, and wondering, should we use Zope 3 or
 Zope 2?

Well, maybe this can help:
http://blogs.nuxeo.com/sections/blogs/lennart_regebro/2005_10_04_zope2-vs-zope3-faq

 Is Zope 3 ready for a production environment?

Yes.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Specialized URL traversal.. Best way?

2006-01-10 Thread Marius Gedminas
On Tue, Jan 03, 2006 at 05:37:30PM -0500, Wade Leftwich wrote:
 Marius Gedminas wrote:
  On Thu, Dec 29, 2005 at 11:22:28PM -0700, Jeff Shell wrote:
 Again, this is to have URLs like:
 
 myapp/@@tags/zope/viewlet
 
 How about this? It gives
 zope.app.publication.publicationtraverse.PublicationTraverse.traverseName()
 some extra work, but it doesn't mess with the request and leaves
 request.URL reflecting the entire path.
 
 ###
 class BrowserViewStopTraversal(BrowserView):
 implements(IPublishTraverse)

 def __init__(self, context, request):
 self.context = context
 self.request = request
 self.traverse_subpath = []
 
 def publishTraverse(self, request, name):
 self.traverse_subpath.append(name)
 return self
 
 def __call__(self):
 Just for example
 return (traverse_subpath = %s\nrequest.URL = %s %
 (self.traverse_subpath, self.request.URL))

I like it.
 
Marius Gedminas
-- 
The advertisement is the most truthful part of a newspaper.
-- Thomas Jefferson


signature.asc
Description: Digital signature
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users