Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-21 Thread Anders Bruun Olsen
On Thu, Oct 20, 2005 at 09:43:24PM +0200, Dieter Maurer wrote: asonhe is not there, but vitester has a __getitem__ method which executes a PageTemplateFile instance and returns it. I.e. Thus, it returns a string. However, ZPublisher requires that all intermediate traversal steps return an

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-20 Thread Anders Bruun Olsen
On Wed, Oct 19, 2005 at 09:47:50PM +0200, Dieter Maurer wrote: Zope has encountered a problem publishing your object. Cannot locate object at: http://localhost:8080/vitester/asonhe This is a NotFound problem. Zope is unable to locate vitester/asonhe Are you sure, vitester/asonhe is there?

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-19 Thread Anders Bruun Olsen
On Tue, Oct 18, 2005 at 08:47:23PM -0500, J Cameron Cooper wrote: error_log is by default set to ignore three common types of exceptions. You should remove NotFound from the list if you're getting NotFound exceptions and want to see them. Ahhh.. Thanks, now I have a traceback, unfortunately

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-18 Thread Anders Bruun Olsen
On Tue, Oct 18, 2005 at 03:30:42PM -0500, J Cameron Cooper wrote: error_log is by default set to ignore three common types of exceptions. You should remove NotFound from the list if you're getting NotFound exceptions and want to see them. Ahhh.. Thanks, now I have a traceback, unfortunately

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-16 Thread Anders Bruun Olsen
On Sun, Oct 16, 2005 at 06:50:09PM +0200, Dieter Maurer wrote: I am trying to make a product where-in I want to be able to return a page based on the url, think something like /product/username which would return a page with the users details. For this purpose I am using __getitem__, but when

Re: [Zope] Passing args to PageTemplateFile instances

2005-09-23 Thread Anders Bruun Olsen
-8859-1 / meta name=copyright content=copy; 2004 amp; Anders Bruun Olsen lt;anders(AT)bruun-olsen(DOT)net / link rel=stylesheet type=text/css href=css / title tal:content=container/title_or_idTITLE/title /head body div pWelcome to tal:block tal:replace=container

Re: [Zope] Passing args to PageTemplateFile instances

2005-09-23 Thread Anders Bruun Olsen
On Fri, Sep 23, 2005 at 12:39:31PM +0100, Peter Bengtsson wrote: RESULT: --- Welcome to testprod {'args': (TestProd at /test/testprod used for /test/testprod, HTTPRequest, URL=http://localhost:8080/test/testprod/test_testprod), 'something': 'blah'} 0

[Zope] Passing args to PageTemplateFile instances

2005-09-22 Thread Anders Bruun Olsen
Hi, I have read some posts about this before, but the solutions given there does not seem to work for me. The deal is that I would like to make a product where amongst other things there needs to be a search feature. I then make a method that takes input from a form with searchwords but then I

[Zope] Security framework troubles

2005-05-06 Thread Anders Bruun Olsen
Hi, I am attempting to make a zope product (a custom book-database for use by my employer) and of course want to secure it. I have added this code to my class: security = ClassSecurityInfo() security.setDefaultAccess(deny) security.declareProtected(View Bookbase, index_html)