Re: [Zope3-Users] Access to request in content object and object path in doctests

2007-01-25 Thread Maciej Wisniowski
InterfaceClass zope.traversing.interfaces.IPhysicallyLocatable) Ehm...? Ideas? OK, I forgot about: setup.setUpTraversal() Now it works with: from zope.app.folder import rootFolder from zope.traversing.api import getPath root = rootFolder() root['test_content'] = DBCrudContent()

Re: [Zope3-Users] view vs page confused

2007-01-25 Thread Alex Furlong
On Wed, Jan 24, 2007 at 08:31:52PM +0100, Dominique Lederer wrote: can someone explain me please when to use browser:view and when browser:page? As far as I understand, the intended use of browser:page is to define views that are accessible to browsers by using URLs. The intended use of

[Zope3-Users] Filtered Container

2007-01-25 Thread Alek Kowalczyk
Hi, I am looking for some filtering adapter for containers. You know, the object which can adapt an IMyContainer to another IMyFilteredContainer, listing only items which fall into some filter criteria. I thought it may be quite common pattern, but couldn't find any generic, already done solution

Re: [Zope3-Users] Access to request in content object and object path in doctests

2007-01-25 Thread Maciej Wisniowski
line 154, in getPath raise TypeError(Not enough context to determine location root) TypeError: Not enough context to determine location root I've added Contained as the base class of my content and it works now... uff... -- Maciej Wisniowski

Re: [Zope3-Users] Using formlib schema.Choice with zc.table FieldColumn

2007-01-25 Thread ksmith93940-dev
Whoa, really bad line breaks, here is the pastbin link http://zope3.pastebin.com/867518 David, zc.table makes rendering html tables more programmatic. --- [EMAIL PROTECTED] wrote: Thanks for the direction, Gary. :) Getting a Choice field working in doctests was quite a challenge. It