Re: [Zope] 'showREQUEST' or 'show_REQUEST' ?

2000-09-12 Thread Dieter Maurer

Steve Alexander writes:
  I get an error when I try to add a DTML Method with REQUEST anywhere in 
  the id.
  
  Actually,  the method gets added, but I cannot edit it.
  
  I haven't found out why yet.
The bad code is in "ZPublisher.BaseRequest.traverse":

# Make sure that REQUEST cannot be traversed.
if find(path, 'REQUEST') = 0:
return response.notFoundError(path)

While the comment indicates that "REQUEST" should not be traversed
(probably a good thing to avoid complete confusion inside DTML),
the code is a bit generous to ensure this as it forbids
"REQUEST" to occur anywhere in the path.

Almost surely a case for the Collector.



Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] 'showREQUEST' or 'show_REQUEST' ?

2000-09-11 Thread Steve Alexander

Chris Withers wrote:

 Jason Cunliffe wrote:
  PS. Be warned: 8-()
   if you try put the code above in a DTML methods named 'showREQUEST' or
  'show_REQUEST' it will not work = 'Id already in use'
 
 That's a little weird...
 
 Can anyone shed any light on this?

I get an error when I try to add a DTML Method with REQUEST anywhere in 
the id.

Actually,  the method gets added, but I cannot edit it.

I haven't found out why yet.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] 'showREQUEST' or 'show_REQUEST' ?

2000-09-11 Thread Evan Simpson

From: Steve Alexander [EMAIL PROTECTED]
 I get an error when I try to add a DTML Method with REQUEST anywhere in
 the id.

This is fruit of a needlessly broad restriction on REQUEST traversal, and is
fixed in CVS.

Cheers,

Evan @ digicool  4-am


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] 'showREQUEST' or 'show_REQUEST' ?

2000-09-06 Thread Chris Withers

Jason Cunliffe wrote:
 PS. Be warned: 8-()
  if you try put the code above in a DTML methods named 'showREQUEST' or
 'show_REQUEST' it will not work = 'Id already in use'

That's a little weird...

Can anyone shed any light on this?

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )