[Zope] RE: Zope digest, Vol 1 #2206 - 52 msgs

"Echeverria Rabi, Cristián" cecheverria@transelec.cl
Thu, 11 Jul 2002 13:42:03 -0400


-----Mensaje original-----
De: zope-request@zope.org [mailto:zope-request@zope.org] 
Enviado el: Jueves, 11 de Julio de 2002 10:32
Para: zope@zope.org
Asunto: Zope digest, Vol 1 #2206 - 52 msgs

Send Zope mailing list submissions to
	zope@zope.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
	zope-request@zope.org

You can reach the person managing the list at
	zope-admin@zope.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Zope digest..."


Today's Topics:

   1. RE: grrr! (zope)
   2. Re: DTML, Zope and Regex (Paul Winkler)
   3. ange-ftp to zope 8021 in emacs 21 (John Hunter)
   4. Re: grrr! (Ben Avery)
   5. Re: ange-ftp to zope 8021 in emacs 21 (Jason Earl)
   6. Re: ange-ftp to zope 8021 in emacs 21 (John Hunter)
   7. URLs, objects, and <dtml- (Dennis Allison)
   8. Re: DTML, Zope and Regex (Chris Withers)
   9. Re: DTML, Zope and Regex (Chris Withers)
  10. Re: Bug in structured text? (Jaroslav Lukesh)
  11. RE: DTML-comment (was DTML, Zope and Regex) (Charlie Reiman)
  12. Re: grrr! (Chris Withers)
  13. Re: Newbie:  Ownership confusion (Chris Withers)
  14. How to get name of calling DTML or script.. (Kevin Carlson)
  15. Re: dtml-in mapping, and sessions (Chris Withers)
  16. Re: Editing (was Re: [Zope] dtml-in mapping, and sessions) (Chris
Withers)
  17. Re: How to get name of calling DTML or script.. (Jason Bush)
  18. New MySQLdb/ZMySQLDA releases pending (Andy Dustman)
  19. Re: dtml-in mapping, and sessions (Thomas B. Passin)
  20. Re: How to get name of calling DTML or script.. (Dennis Allison)
  21. Re: New MySQLdb/ZMySQLDA releases pending (Dennis Allison)
  22. Re: unexpected hangs and how to troubleshoot (Ed Colmar)
  23. Re: array module and pickleing ques (Aseem Mohanty)
  24. RE: array module and pickleing ques (Charlie Reiman)
  25. Groupware - worldpilot (Heimo Laukkanen)
  26. REQUEST.zzz or REQUEST['zzz'] (Hans-Dieter Stich)
  27. Re: REQUEST.zzz or REQUEST['zzz'] (Uwe Schuerkamp)
  28. Re: REQUEST.zzz or REQUEST['zzz'] (Hans-Dieter Stich)
  29. Weird error? (Chris Withers)
  30. Re: Persistent login (Thierry Florac)
  31. Re: How to get name of calling DTML or script..
(=?ISO-8859-15?B?R2VpciBC5mtob2x0?=)
  32. Re: DTML, Zope and Regex (Bo M. Maryniuck)
  33. Jython & Zope (Bo M. Maryniuck)
  34. I don't want WebDav (douwe@oberon.nl)
  35. Re: WebDAV Functionality Question (matt carey)
  36. Zope+Photo Product (Ashish Gautam)
  37. Re: BTreeFolder (Toby Dickenson)
  38. Re: Zope+Photo Product (Magnus Heino)
  39. debug question (Dirk Datzert)
  40. CMFlocalizer ? (=?ISO-8859-1?B?R2VpciBC5mtob2x0?=)
  41. Re: Weird error? (Jens Vagelpohl)
  42. Re: Weird error? (Magnus Heino)
  43. Newbie:  Python:Path Troubles (Rebecca.R.Hepper@seagate.com)
  44. Re: RAMCacheManager invalidate (=?koi8-r?B?4c7E0sXKIPDV3snO?=)
  45. Re: REQUEST.zzz or REQUEST['zzz'] (Robert Rottermann)
  46. XForms (Bo M. Maryniuck)
  47. Worldpilot on W2k (eric.n.dunn@bankofamerica.com)
  48. dtml-let (Alejandro Fernandez)
  49. Interesting RE problem (Jason Bush)
  50. Re: BTreeFolder (Shane Hathaway)
  51. Re: I don't want WebDav (Mike Renfro)
  52. Re: Interesting RE problem (Chris McDonough)

--__--__--

Message: 1
From: "zope" <zope@tinorb.com>
To: "Ben Avery" <ben@thesite.org>,
	<zope@zope.org>
Subject: RE: [Zope] grrr!
Date: Wed, 10 Jul 2002 12:20:20 -0700

This is a multi-part message in MIME format.

------=_NextPart_000_0014_01C2280C.28562CD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I find that if i open up the offending script in the ZMI and 'test' it, it
usually gives more error information.
-m
  -----Original Message-----
  From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ben
Avery
  Sent: Wednesday, July 10, 2002 11:56 AM
  To: zope@zope.org
  Subject: [Zope] grrr!


  Is there any way to get meaningful error messages for python scripts?
  Error Type: RuntimeError
  Error Value: Script (Python) calendar_view_handler has errors.

  doesn't exactly help me track down the error. there's nothing useful in
the backtrace  >: (



------=_NextPart_000_0014_01C2280C.28562CD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=3D984331919-10072002><FONT face=3DArial color=3D#0000ff =
size=3D2>I find=20
that if i open up the offending script in the ZMI and 'test' it, it =
usually=20
gives more error information.</FONT></SPAN></DIV>
<DIV><SPAN class=3D984331919-10072002><FONT face=3DArial color=3D#0000ff =

size=3D2>-m</FONT></SPAN></DIV></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
  size=3D2>-----Original Message-----<BR><B>From:</B> =
zope-admin@zope.org=20
  [mailto:zope-admin@zope.org]<B>On Behalf Of</B> Ben =
Avery<BR><B>Sent:</B>=20
  Wednesday, July 10, 2002 11:56 AM<BR><B>To:</B>=20
  zope@zope.org<BR><B>Subject:</B> [Zope] grrr!<BR><BR></FONT></DIV>Is =
there any=20
  way to get meaningful error messages for python scripts?=20
  <P><STRONG>Error Type: RuntimeError</STRONG><BR><STRONG>Error Value: =
Script=20
  (Python) calendar_view_handler has errors.</STRONG></P>
  <P>doesn't exactly help me track down the error. there's nothing =
useful in the=20
  backtrace &nbsp;&gt;: (<BR></P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0014_01C2280C.28562CD0--




--__--__--

Message: 2
Date: Wed, 10 Jul 2002 14:16:57 -0400
From: Paul Winkler <pw_lists@slinkp.com>
To: zope@zope.org
Subject: Re: [Zope] DTML, Zope and Regex

On Wed, Jul 10, 2002 at 01:58:39PM -0400, Jorge O. Martinez wrote:
> >For one thing, they live on the filesystem. If somebody has read/write 
> >access
> >to your filesystem, you have much bigger problems than what th
> >can do to your external methods. e.g. rm -f var/Data.fs.
> 
> I understand your concern with a situation like the above, but that is not

> exactly what I had in mind, I was thinking about matching/replacing 
> strings, and take actions based on matches, not executing commands at the 
> system level.

I know that. I was responding to the mistaken assertion that external
methods have no security at all. They have much more security than
python scripts.

-- 

Paul Winkler
home:  http://www.slinkp.com
"Muppet Labs, where the future is made - today!"



--__--__--

Message: 3
To: Zope Users <zope@zope.org>
From: John Hunter <jdhunter@ace.bsd.uchicago.edu>
Date: Wed, 10 Jul 2002 14:05:16 -0500
Subject: [Zope] ange-ftp to zope 8021 in emacs 21


Is anyone having success with ange-ftp in emacs 21 using the zope ftp
server?  It worked fine for me in emacs 20.7, but in 21.2, when I try
save-buffer, I get the error:

  byte-code: Keyboard macro terminated by a command ringing the bell

I have successfully edited and saved files via ange-ftp with other ftp
servers, so it seems to be some combination of the recent version of
ange-ftp/emacs with the zope ftp server (and perhaps others).

I posted to gnu.emacs.bug, but am wondering if anyone else has
encountered success or failure with this combination, and more
important, has any suggestions for how to fix it.

Thanks,
John Hunter

GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
Zope 2.5.1b1 (source release, python 2.1, linux2), python 2.1.3, linux2)



--__--__--

Message: 4
Date: Wed, 10 Jul 2002 20:36:43 +0100
From: Ben Avery <ben@thesite.org>
To: zope <zope@tinorb.com>
CC: zope@zope.org
Subject: Re: [Zope] grrr!


--------------060508070206020405040207
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

excellent, that helps a lot :)

The ZMI view of the script gives errors and warnings, without even 
having to test the script. This is very useful, although the messages 
don't give you line numbers, which would have been excellent.

I'd been using ExternalEditor, so didn't see the messages when saving in 
the ZMI.

(to anyone that uses the ZMI through a windows-based browser: using 
ExternalEditor and Gvim is fantastic - colour syntax highlighting modes 
for DTML and Python :)

zope wrote:

> I find that if i open up the offending script in the ZMI and 'test' 
> it, it usually gives more error information.
> -m
>
>     -----Original Message-----
>     *From:* zope-admin@zope.org [mailto:zope-admin@zope.org]*On Behalf
>     Of* Ben Avery
>     *Sent:* Wednesday, July 10, 2002 11:56 AM
>     *To:* zope@zope.org
>     *Subject:* [Zope] grrr!
>
>     Is there any way to get meaningful error messages for python scripts?
>
>     *Error Type: RuntimeError*
>     *Error Value: Script (Python) calendar_view_handler has errors.*
>
>     doesn't exactly help me track down the error. there's nothing
>     useful in the backtrace  >: (
>


--------------060508070206020405040207
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
excellent, that helps a lot :) <br>
<br>
The ZMI view of the script gives errors and warnings, without even having
to test the script. This is very useful, although the messages don't give
you line numbers, which would have been excellent.<br>
<br>
I'd been using ExternalEditor, so didn't see the messages when saving in
the ZMI.<br>
<br>
(to anyone that uses the ZMI through a windows-based browser: using
ExternalEditor
and Gvim is fantastic - colour syntax highlighting modes for DTML and Python
:)<br>
<br>
zope wrote:<br>
<blockquote type="cite" cite="mid001301c22846$d4b504d0$0201a8c0@lala">
  <title></title>
   
  <meta content="MSHTML 5.50.4807.2300" name="GENERATOR">
 
  <div> 
  <div><span class="984331919-10072002"><font face="Arial"
 color="#0000ff" size="2">I find  that if i open up the offending script
in the ZMI and 'test' it, it usually  gives more error
information.</font></span></div>
 
  <div><span class="984331919-10072002"><font face="Arial"
 color="#0000ff" size="2">-m</font></span></div>
  </div>
 
  <blockquote dir="ltr"
 style="border-left: 2px solid rgb(0,0,255); padding-left: 5px; margin-left:
5px; margin-right: 0px;"> 
  
    <div class="OutlookMessageHeader"><font face="Times New Roman"
 size="2">-----Original Message-----<br>
    <b>From:</b> <a class="moz-txt-link-abbreviated"
href="mailto:zope-admin@zope.org">zope-admin@zope.org</a>    [<a
class="moz-txt-link-freetext"
href="mailto:zope-admin@zope.org">mailto:zope-admin@zope.org</a>]<b>On
Behalf Of</b> Ben Avery<br>
    <b>Sent:</b>    Wednesday, July 10, 2002 11:56 AM<br>
    <b>To:</b>    <a class="moz-txt-link-abbreviated"
href="mailto:zope@zope.org">zope@zope.org</a><br>
    <b>Subject:</b> [Zope] grrr!<br>
    <br>
    </font></div>
Is there any    way to get meaningful error messages for python scripts?
   
    <p><strong>Error Type: RuntimeError</strong><br>
    <strong>Error Value: Script    (Python) calendar_view_handler has
errors.</strong></p>
   
    <p>doesn't exactly help me track down the error. there's nothing useful
in the    backtrace &nbsp;&gt;: (<br>
    </p>
  </blockquote>
</blockquote>
<br>
</body>
</html>

--------------060508070206020405040207--




--__--__--

Message: 5
To: John Hunter <jdhunter@ace.bsd.uchicago.edu>
CC: Zope Users <zope@zope.org>
Subject: Re: [Zope] ange-ftp to zope 8021 in emacs 21
From: Jason Earl <jason.earl@simplot.com>
Date: 10 Jul 2002 13:50:09 -0600

John Hunter <jdhunter@ace.bsd.uchicago.edu> writes:

> Is anyone having success with ange-ftp in emacs 21 using the zope ftp
> server?  It worked fine for me in emacs 20.7, but in 21.2, when I try
> save-buffer, I get the error:
> 
>   byte-code: Keyboard macro terminated by a command ringing the bell
> 
> I have successfully edited and saved files via ange-ftp with other ftp
> servers, so it seems to be some combination of the recent version of
> ange-ftp/emacs with the zope ftp server (and perhaps others).
> 
> I posted to gnu.emacs.bug, but am wondering if anyone else has
> encountered success or failure with this combination, and more
> important, has any suggestions for how to fix it.
> 
> Thanks,
> John Hunter
> 
> GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
> Zope 2.5.1b1 (source release, python 2.1, linux2), python 2.1.3, linux2)

jearl@npa01zz001:~$ emacs --version
GNU Emacs 21.2.1
Copyright (C) 2001 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

 Zope Version
(Zope 2.5.1 (source release, python 2.1, linux2), python 2.1.3, linux2)

It seems to work here just fine.  Are you sure you are not firing up
one of your own keyboard macro?

Jason



--__--__--

Message: 6
To: Jason Earl <jason.earl@simplot.com>
Cc: Zope Users <zope@zope.org>
Subject: Re: [Zope] ange-ftp to zope 8021 in emacs 21
From: John Hunter <jdhunter@ace.bsd.uchicago.edu>
Date: Wed, 10 Jul 2002 14:49:35 -0500

>>>>> "Jason" == Jason Earl <jason.earl@simplot.com> writes:

    Jason>  Zope Version (Zope 2.5.1 (source release, python 2.1,
    Jason> linux2), python 2.1.3, linux2)

    Jason> It seems to work here just fine.  Are you sure you are not
    Jason> firing up one of your own keyboard macro?

It's interesting that it works on your platform, which is very close
to mine.  I launched emacs with 
 > /usr/local/bin/emacs-21.2 -q --no-site-file

so I don't think it's one of my keyboard macros.  And I checked the
binding of C-x C-s to make sure it was running save-buffer.  I'm not
the first to bump into this problem:

http://groups.google.com/groups?hl=en&lr=&ie=ISO-8859-1&q=byte-code%3A+Keybo
ard+macro+terminated+by+a+command+ringing+the+bell&btnG=Google+Search

but I haven't found the solution yet.  I wonder what could explain the
differences in your platform and mine.  The emacs version numbers are
identical; the only difference in the zope version numbers is that I
have Zope 2.5.1b1 and you have Zope 2.5.1.  We're bit running python
2.1.3 on linux.  Weird.



--__--__--

Message: 7
Date: Wed, 10 Jul 2002 13:20:23 -0700
From: Dennis Allison <allison@sumeru.stanford.EDU>
To: zope@zope.org
Subject: [Zope] URLs, objects, and <dtml-

I am pretty sure there are some clever techniques I have missed.

When I first started using Zope accessing objects at different places in
the object hiearchy was a problem.  I found some workarounds and learned
to cope, but I am now revisiting the issue.

For specificity, consider the following folder hiearchy:

R
   A1
       B1
	  D1
       C1
   A2
       B2
       C2
          D2

URLs would reference the somepage object in  D2 using the 
URL R/A2/C2/D2/somepage.    


Now, DTML, for example, <dtml-var >, specifies an object which is located
the current namespace by one of a variety of rules including acqusition.

Control over the namespace is provided using <dtml-with> but using it can
be cumbersome.  To reference an object in the folder D2 from D1 would
require wrapping the referencing <dtml-var> in a next of <dtml-with>
statements which make the namespace of A2, C2, and D2 available.  For a
site with a deep and complicated hiearchy, this is a mess. Hard to write,
hard to maintain, and very error prone.  The tendancy is to make all
scripts look like central mechanism wrapped in multiple with's to setup
the right namespace.

A better approach might be to access all nonlocal objects through a Python
Script that traverses a URL parameter and returns the specified object.
In this case, referencing the object foo in D2 above would be accomplished
by

  <dtml-var name="traverse_to_object('R/A2/C2/D2/foo')">

and so forth.  

This should work, but it kneecaps Zopes namespace management features
because 
it returns an object, not a name to be resolved to an object in context
through
bobo_traverse, acqusition, and so forth.

So, finally, the question:  How does one manage in an efficient and
compact fashion accesses to objects stored outside of the acquisition
path?


There are a couple of other notational issues that are a bit confusing.
If I have a folder (call it scripts) at my site root, I can reference 
the individual scripts by the names 'scripts.script1()'.  When does 
this notation extend to objects stored in nested folders?

One the defining notions of Zope is the equivalence of a page as specified
by a URL and an object.  What's the reason that something like 

   <dtml-var name="R/A2/C2/D2/foo">

does not resolve to the name foo in the container reachable by traversing
"R/A2/C2/D2" when accessed from within Zope.  It does work from the Web.

-dra








--__--__--

Message: 8
Date: Wed, 10 Jul 2002 21:25:37 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Kirk Lowery <klowery@wts.edu>
CC: zope@zope.org
Subject: Re: [Zope] DTML, Zope and Regex

Kirk Lowery wrote:
> 
> Ben, would you mind expanding on this? What dangers are there? Regexes
> are so handy, and if I turn them on I'd like to know what the risks are...

A badly written regex can easily run in an infinite loop, hanging a thread
of
your Zope server. Once the number of people who cause this regex to execute
is
equal to the number of threads on your Zope server, you have a hung server
;-)

cheers,

Chris



--__--__--

Message: 9
Date: Wed, 10 Jul 2002 21:26:44 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Chris McDonough <chrism@zope.com>
CC: b.maryniuk@forbis.lt,
 	"Jorge O. Martinez" <jmartinez@eMediaMillWorks.com>,
 	zope@zope.org
Subject: Re: [Zope] DTML, Zope and Regex



Chris McDonough wrote:
> 
> Just to clarify: DTML is not "gone".  This scares people when they
> hear it.  DTML will be around probably forever.

joy!

cheers,

Chris - (c) all of the above (for those who were at EP ;-)



--__--__--

Message: 10
Reply-To: <lsh@wo.cz>
From: "Jaroslav Lukesh" <lukesh@k-net.cz>
To: <zope@zope.org>
Subject: Re: [Zope] Bug in structured text?
Date: Wed, 10 Jul 2002 22:27:12 +0200

463 is my bug report, but I dont know what I can post solution.

| Odes=EDlatel: Dieter Maurer <dieter@handshake.de>
| Maybe a missing "locale" startup option for Zope.
| Run "python z2.py -help". Watch out for the "-L" option.

Thats working: In z2.py set

LOCALE_ID=3D"cz"

for ISO-8859-2.

I dont know scandinavian charset (iso-8859-1?), but you should be inspire=
d
with linux/unix locales. Eg., for czech lang is locale cs_CZ, but under
Win32 it is CZ only. I have Zope on Win32.

These documents at zope website should help you (I have saved locally, do=
nt
have URL):

How to use non-ascii charactersets together with Strucutured Text
HowToDoI18nAndL10nForZope3 of ComponentArchitecture
InstallLocale of SkinnableAndLocalizableObjects
SkinnableAndLocalizableObjects - InstallLocale
SkinnableAndLocalizableObjects
Tips for multilingual websites, using DTML and Localizer
ZCatalogs with Umlauts
zopectl documentation


Bug 463 is reported by me, but I dont know to report solution.

Regards

	J. Lukesh

----------
Odes=EDlatel: Heimo Laukkanen <huima@fountainpark.org>
I'm using Zope 2.5.1 and CMF 1.3b2 and noticed that while using=20
scandinavian characters =E4 and =F6 ( if you don't see it is a and o with=
=20
dots on top of them ) there was problems for example in creating links.

"Tutoriaalit l=F6yd=E4t":http://the_url
Would be rendered as it is written.


There seems to be other same kind of bugs:
http://collector.zope.org/Zope/463
http://collector.zope.org/Zope/461





--__--__--

Message: 11
From: "Charlie Reiman" <creiman@kefta.com>
To: "Jorge O. Martinez" <jmartinez@eMediaMillWorks.com>,
	"Chris McDonough" <chrism@zope.com>
Cc: "Jim Penny" <jpenny@universal-fasteners.com>, <zope@zope.org>
Subject: RE: [Zope] DTML-comment (was DTML, Zope and Regex)
Date: Wed, 10 Jul 2002 13:21:24 -0700

You can, more or less. DTML will disregard unknown tags, as will most HTML
rendering engines (XML is another matter).

So go ahead and changed <dtml-if> to <xdtml-if> and watch it get ignored.
Note that this is not a true dtml-comment, as the code between tags will
still appear in your output, but it's a handy trick for finding logic
problems.

But I would like to have a smaller alias for dtml-comment, too. Truthfully,
what I would really like is a 'Comments' tab in the ZMI for every object
allowing me to store adminstrative docs in the objects. And it would be
really great if I had a chocolate ice cream cone right about now,
preferrably in a waffle cone.

There. Now we are well and truly off-topic.

> -----Original Message-----
> From: Jorge O. Martinez [mailto:jmartinez@eMediaMillWorks.com]
> Sent: Wednesday, July 10, 2002 11:31 AM
> To: Chris McDonough
> Cc: Jim Penny; Charlie Reiman; zope@zope.org
> Subject: Re: [Zope] DTML, Zope and Regex
>
>
> Chris McDonough wrote:
> >>Looks like the security issue  may be stepping on the usability
> >
> > issue's toes,
> >
> >>which ultimately may interfere into wider adoption as developers
> >
> > with access to
> >
> >>their own boxes will be more likely to go for Zope than developer
> >
> > relying on
> >
> >>ISP's.
> >
> >
> > I think the problem is not having anybody with a determination to
> > focus on TTW scripting usability and lobby for some cohesive
> > proposal on dev.zope.org that would make it better for some future
> > revision of Zope.  Regexes aren't the only thing that are annoying
> > to not have in TTW scripts, and thought needs to be given to what
> > gets included by default, and someobody needs to drive that effort.
> > "Not it!" ;-)
>
> On a different subject, but still with the usability issue for
> developers, I
> was thinking it would be nice to have some easier to use comment
> system for
> DTML code, for example for:
>
> <dtml-if foo>
> something here
> </dtml-if>
>
> now you have to use the rather long <dtml-comment>
> </dtml-comment>, it would
> probably nice if you only had to do:
>
> <//dtml-if foo>
> or
> <#dtml-if foo>
>
> And that would comment out all the code within that dtml tag. We
> could still
> use the <dtml-comment> tag for multi-tag commenting out.
>
> Anyhow, I know I am off the topic here, I just brought it up
> before I forget.
> Thanks to all who replied; sure helps enhance ZopeZen ;-)
>
> Regards,
>
> Jorge M.
>
> >
> > - C
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > 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 )
> >
>
>
>
> --
> Jorge O. Martinez
> MIS Senior Associate
> FDCH-eMedia Inc.
> 2400 Forbes Blvd., Suite 200
> Lanham, MD 20706
> E-mail  => jmartinez@eMediaMillWorks.com
> Phone   => (301)731-1228 ext. 105
> Fax     => (301)731-0937
>
>




--__--__--

Message: 12
Date: Wed, 10 Jul 2002 21:38:43 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Ben Avery <ben@thesite.org>
CC: zope@zope.org
Subject: Re: [Zope] grrr!

> Ben Avery wrote:
> 
> Is there any way to get meaningful error messages for python scripts?
> 
> Error Type: RuntimeError
> Error Value: Script (Python) calendar_view_handler has errors.

When you see this, try looking at the console Zope is running in or in your
STUPID_LOG_FILE, the exact nature of the error is usually reported there...

cheers,

Chris



--__--__--

Message: 13
Date: Wed, 10 Jul 2002 21:54:02 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Rebecca.R.Hepper@seagate.com
CC: zope@zope.org
Subject: Re: [Zope] Newbie:  Ownership confusion

Rebecca.R.Hepper@seagate.com wrote:
> 
> I apologize for not mentioning the CMF.  Thank you very much for the
> assistance - this fixed my problem!!  

Great :-)

> Where would I find documentation that
> explains contentValues, Portal Folder objects etc?  

Not much, I'm afraid :-S

> After reading your
> e-mail, Chris, I did some searching on the CMF Dogbowl site but haven't
> found anything too useful yet.

indeed...

cheers,

Chris



--__--__--

Message: 14
From: "Kevin Carlson" <khcarlso@bellsouth.net>
To: "zope group" <zope@zope.org>
Date: Wed, 10 Jul 2002 16:44:56 -0400
Subject: [Zope] How to get name of calling DTML or script..

I have a python script which needs to redirect the browser to the page that
called the script.  In other words, if I am on the a page called "test" and
I call a script named "blah", I want the blah script to do the following
(among other things):

...
context.request.RESPONSE.redirect(x)


where x is the name or URL of the page that called the script.  Make sense?
Any ideas?

Kevin




--__--__--

Message: 15
Date: Wed, 10 Jul 2002 21:59:31 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: "Thomas B. Passin" <tpassin@mitretek.org>
CC: zope@zope.org
Subject: Re: [Zope] dtml-in mapping, and sessions

"Thomas B. Passin" wrote:
> 
> Nope:
> 
> <dtml-if "_['sequence-item']">

bzzzzt... wrong.

That will call sequence-item if it is callable, which is often not what you
want
;-)

cheers,

Chris



--__--__--

Message: 16
Date: Wed, 10 Jul 2002 21:59:57 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Alejandro Fernandez <ale@e-group.org>
CC: zope@zope.org
Subject: Re: Editing (was Re: [Zope] dtml-in mapping, and sessions)

Alejandro Fernandez wrote:
> 
> Thanks very much, now all set up using ExternalEditor, aterm -x vim, and I
> added dtml syntax highlighting in ~/vim/myfiletypes.vim... That's really
> speeded things up!! :)

Great :-)

Chris



--__--__--

Message: 17
Date: Wed, 10 Jul 2002 16:02:24 -0500
From: Jason Bush <jason@nol.org>
Organization: Nebraska Online
To: Kevin Carlson <khcarlso@bellsouth.net>
CC: zope group <zope@zope.org>
Subject: Re: [Zope] How to get name of calling DTML or script..


--------------53CD8C1E63E49DDCD2764F47
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

x = request.HTTP_REFERER

so, RESPONSE.redirect(request.HTTP_REFERER)

will reload the page that called the script...

Kevin Carlson wrote:

> I have a python script which needs to redirect the browser to the page
that
> called the script.  In other words, if I am on the a page called "test"
and
> I call a script named "blah", I want the blah script to do the following
> (among other things):
>
> ...
> context.request.RESPONSE.redirect(x)
>
> where x is the name or URL of the page that called the script.  Make
sense?
> Any ideas?
>
> Kevin
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )

--
Jason Bush  ---    jason@nol.org
Nebraska Online    http://www.nol.org



--------------53CD8C1E63E49DDCD2764F47
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
x = request.HTTP_REFERER
<p>so, RESPONSE.redirect(request.HTTP_REFERER)
<p>will reload the page that called the script...
<p>Kevin Carlson wrote:
<blockquote TYPE=CITE>I have a python script which needs to redirect the
browser to the page that
<br>called the script.&nbsp; In other words, if I am on the a page called
"test" and
<br>I call a script named "blah", I want the blah script to do the following
<br>(among other things):
<p>...
<br>context.request.RESPONSE.redirect(x)
<p>where x is the name or URL of the page that called the script.&nbsp;
Make sense?
<br>Any ideas?
<p>Kevin
<p>_______________________________________________
<br>Zope maillist&nbsp; -&nbsp; Zope@zope.org
<br><a
href="http://lists.zope.org/mailman/listinfo/zope">http://lists.zope.org/mai
lman/listinfo/zope</a>
<br>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp; **
<br>(Related lists -
<br>&nbsp;<a
href="http://lists.zope.org/mailman/listinfo/zope-announce">http://lists.zop
e.org/mailman/listinfo/zope-announce</a>
<br>&nbsp;<a
href="http://lists.zope.org/mailman/listinfo/zope-dev">http://lists.zope.org
/mailman/listinfo/zope-dev</a>
)</blockquote>

<pre>--&nbsp;
Jason Bush&nbsp; ---&nbsp;&nbsp;&nbsp; jason@nol.org
Nebraska Online&nbsp;&nbsp;&nbsp; <A
HREF="http://www.nol.org">http://www.nol.org</A></pre>
&nbsp;</html>

--------------53CD8C1E63E49DDCD2764F47--




--__--__--

Message: 18
From: Andy Dustman <andy@dustman.net>
To: zope@zope.org
Date: 10 Jul 2002 17:32:15 -0400
Subject: [Zope] New MySQLdb/ZMySQLDA releases pending

The (hopefully) final release candidate for MySQL-python (MySQLdb) is
out:

	http://sourceforge.net/project/showfiles.php?group_id=22307

(mysql-python-test 0.9.2c3)

ZMySQLDA is still on 2.0.9b2. That seemed to help prevent some crashing
problems, although it seemed a lot of those crashes were fixed by
Python-2.1.3. So I'd like some feedback on this: Did you try
ZMySQLDA-2.0.9b2 to fix problems that you were having with 2.0.8? If so,
what was the effect?

Zope notes: MySQLdb-0.9.2 plays nicely with Python-2.2.1; not sure if
2.6 is targeting Python-2.2 or 2.1. If you are using Python-2.2 or
newer, _mysql.connection and .result are sub-classable types. There's
also more support for Unicode now; not sure what the current SOTA is for
Unicode in Zope. ZMySQLDA doesn't do anything with Unicode currently,
but could very easily.

-- 
Andy Dustman         PGP: 0x930B8AB6
    @       .net     http://dustman.net/andy
"Cogito, ergo sum." -- Rene Descartes
"I yam what I yam and that's all what I yam." -- Popeye



--__--__--

Message: 19
From: "Thomas B. Passin" <tpassin@mitretek.org>
To: <zope@zope.org>
Subject: Re: [Zope] dtml-in mapping, and sessions
Date: Wed, 10 Jul 2002 17:53:50 -0400

[Chris Withers]

> "Thomas B. Passin" wrote:
> >
> > Nope:
> >
> > <dtml-if "_['sequence-item']">
>
> bzzzzt... wrong.
>
> That will call sequence-item if it is callable, which is often not what
you want
> ;-)
>

bzzzt...right.  The original poster was asking about reserved words used
with standard dtml-xx statements, like sequence-item, and it is right for
them though not in general (as you said).

Cheers,

Tom P




--__--__--

Message: 20
Date: Wed, 10 Jul 2002 15:02:17 -0700
From: Dennis Allison <allison@sumeru.stanford.EDU>
To: khcarlso@bellsouth.net, zope@zope.org
Subject: Re: [Zope] How to get name of calling DTML or script..

Take a look at the contents of the REQUEST object.  You'll probably find 
what you need there :-)

To view the REQUEST Object contents, make a Python Script 

request = container.REQUEST
for k in request.keys():
   print k, '=', request[k]
print
return printed




--__--__--

Message: 21
Date: Wed, 10 Jul 2002 15:14:31 -0700
From: Dennis Allison <allison@sumeru.stanford.EDU>
To: andy@dustman.net, zope@zope.org
Subject: Re: [Zope] New MySQLdb/ZMySQLDA releases pending

Andy --
I have been running  ZMySQLDA-2.0.8 and MySQL-python-0.9.1 in 
a RH7.3 configuration with Zope 2.5.1 without any problems.
Traffic is still low as we are in development not live.

I'll probably upgrade to 0.9.2b2 or later sometime soon.

-d



--__--__--

Message: 22
Date: Wed, 10 Jul 2002 08:33:01 -0700 (PDT)
To: "Matthew T. Kromer" <matt@zope.com>
Cc: zope@zope.org
Subject: Re: [Zope] unexpected hangs and how to troubleshoot
From: Ed Colmar <ed@greengraphics.net>


Greetings Matt, and zope crew!

I just installed 2.5.1 and the same thing happened...  After about 4-6 
hours zope just stops.

Any other ideas as to how to start troubleshooting this?  Is this a system 
issue, or a zope issue?

One thing I notice that might be affecting it is that for some reason 
after starting zope in my terminal window with "./start &" I am unable to 
properly disconnect from the server.  I have to close the window, and 
me ssh client asks me if I want to disconnect.

Could this be affecting it?

-e-

On Tue, 9 Jul 2002, Matthew T. Kromer wrote:

> Ed Colmar wrote:
> 
> >Hi all
> >
> >I've got a zope 2.4.3 running on linux.  It has been running flawlessly 
> >for 6 months, but now is starting to act up.
> >
> >Every 6 hours or so the process stops.  I checked the logs each time, and

> >do not see any correlation between pages served and this problem.
> >
> >I was going to just upgrade to 2.5.1, but since it has been working 
> >alright so far I would just wait for the 2.6 stable.
> >
> >Are there any resources for troubleshooting this kind of problem?  I went

> >through the archives a bit, but god, yahoo groups just sucks.  Are there 
> >any other list archives?
> >
> >Thanks for any ideas.
> >
> >-ed-
> >
> >
> >
> >  
> >
> Hi Ed,
> 
> There are known issues (problems) with some of the restricted python 
> support (e.g. python scripts, DTML, and page templates) with Zope 2.4.3 
> that are resolved with the combination of Zope 2.4.4 and Python 2.1.3. 
>  I suspect if you upgrade you'll find your problems go away.
> 
> 

-- 
Green Graphics   :::   Print and Web Design   :::   510.923.0000 




--__--__--

Message: 23
Date: Wed, 10 Jul 2002 05:26:21 -0700
From: Aseem Mohanty <aseem@neurobehavioralsystems.com>
Subject: Re: [Zope] array module and pickleing ques
Cc: zope@zope.org

That seems to be the answer. However I tried Charlie's suggestions and 
made the data members as lists (not strings as he suggested, seemed to 
work equally well and I didnt have to switch back and forth between 
functions calls) instead of arrrays and only instantiated arrays where I 
needed to use them (only inside of functions) as local variables.

Well it doesnt work. Everytime that function (that has an array 
declaration inside) is called I get another UnpickleableError.
I am at my wit's end... how do I get around it or force it through...

any help would greatly appreciated.

one function that raises that error:
 
def _reverse_hex(self,s):
        x=array.array('c',s) ## causes the error .... no problems if I 
remove it
        for i in range(0,len(s),4):
            a=x[i]
            b=x[i+1]
            c=x[i+2]
            d=x[i+3]

            x[i]=c
            x[i+1]=d
            x[i+2]=a
            x[i+3]=b
        return x.tostring()

TIA
AM

Dieter Maurer wrote:

>Aseem Mohanty writes:
> > why does a call to array.array() cause an unpickleable error??
>Probably, because it is not a standard Python class but implemented
>in "C" and the author did not provide "setstate/getstate" methods.
>
>Pickling means serializing. Apparently, the pickle modules does
>not know how to serialize "array"s.
>
>
>Dieter
>
>.
>

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================

 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
================================================================== 






--__--__--

Message: 24
From: "Charlie Reiman" <creiman@kefta.com>
To: "Aseem Mohanty" <aseem@neurobehavioralsystems.com>
Cc: <zope@zope.org>
Subject: RE: [Zope] array module and pickleing ques
Date: Wed, 10 Jul 2002 17:50:22 -0700

Two suggestions come to mind but I doubt either will help.

1) Change your last line to:
  # Clean up.
  y=x.tostring()
  x=None
  return y

2) Rename 'x' to something longer. If you have a module variable named x,
the array will stick around after returning. It still shouldn't be
serialized, as it isn't part of your object, but I don't really have any
other suggestions.

Neither of these should matter but it's worth a shot.

Also, double check your indentation on the for loop. Make sure that return
is not inside the loop. That shouldn't matter either though...

Oh, wait, one more suggestion. Don't write this as a method. Stick it in a
python script or an external method. Your class should not even import array
that way.

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Aseem
> Mohanty
> Sent: Wednesday, July 10, 2002 5:26 AM
> Cc: zope@zope.org
> Subject: Re: [Zope] array module and pickleing ques
>
>
> That seems to be the answer. However I tried Charlie's suggestions and
> made the data members as lists (not strings as he suggested, seemed to
> work equally well and I didnt have to switch back and forth between
> functions calls) instead of arrrays and only instantiated arrays where I
> needed to use them (only inside of functions) as local variables.
>
> Well it doesnt work. Everytime that function (that has an array
> declaration inside) is called I get another UnpickleableError.
> I am at my wit's end... how do I get around it or force it through...
>
> any help would greatly appreciated.
>
> one function that raises that error:
>
> def _reverse_hex(self,s):
>         x=array.array('c',s) ## causes the error .... no problems if I
> remove it
>         for i in range(0,len(s),4):
>             a=x[i]
>             b=x[i+1]
>             c=x[i+2]
>             d=x[i+3]
>
>             x[i]=c
>             x[i+1]=d
>             x[i+2]=a
>             x[i+3]=b
>         return x.tostring()
>
> TIA
> AM
>
> Dieter Maurer wrote:
>
> >Aseem Mohanty writes:
> > > why does a call to array.array() cause an unpickleable error??
> >Probably, because it is not a standard Python class but implemented
> >in "C" and the author did not provide "setstate/getstate" methods.
> >
> >Pickling means serializing. Apparently, the pickle modules does
> >not know how to serialize "array"s.
> >
> >
> >Dieter
> >
> >.
> >
>
> --
> ==================================================================
>  Aseem Mohanty
>  Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706
>  (R) 510 7696011 (M) 510 3014871 (O) 510 5279231
> ============================================================
> ======
>  "I saw `cout' being shifted "Hello world" times to the left and
>   stopped right there!!"                        -- Steve Gonedes
> ==================================================================
>
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>




--__--__--

Message: 25
Date: Thu, 11 Jul 2002 06:08:05 +0300
From: Heimo Laukkanen <huima@fountainpark.org>
To: zope@zope.org
Subject: [Zope] Groupware - worldpilot

Hi all,

just tested again Worldpilot and got it to work with Zope 2.5.1 and 
python 2.1.3. Only one adjustment had to be made to WPUtils.py. ( See 
end of message ). Now my question is:

- Is there anyone using worldpilot?
- Is there anyone developing it anymore?
- Would someone be interested to continue developing it onward and 
possibly make it more zopish, and or make it as a CMF-product?

What else pieces you people use as a products for groupware? For 
email, calendar etc. ? Are there any good Zope-products that could be 
used in combination better?

I'm been building our intranet with CMF and only things now missiong 
is just the PIM functionality. Calendar and webmail are php programs 
as well as the meeting room booking system. Now if there were great 
components to do all this again in Zope it would be great...


Adjustent was to:

import imaplib
was: from imaplib import *

and to:

mon = imaplib.Mon2num[mo.group('mon')]
was: mon = Mon2num[mo.group('mon')]

-huima




--__--__--

Message: 26
From: Hans-Dieter Stich <hdstich@hdstich.com>
To: zope@zope.org
Date: Thu, 11 Jul 2002 09:14:22 +0200
Subject: [Zope] REQUEST.zzz or REQUEST['zzz']

hi Zope gurus,

which of the following ways to access the attribute 'zzz' of a form request
is 
the right one and why:

<dtml-var "REQUEST.zzz">

or

<dtml-var "REQUEST['zzz']">

TIA!

/hd



--__--__--

Message: 27
Date: Thu, 11 Jul 2002 09:16:21 +0200
From: Uwe Schuerkamp <uwe@schuerkamp.de>
To: Hans-Dieter Stich <hdstich@hdstich.com>
Cc: zope@zope.org
Subject: Re: [Zope] REQUEST.zzz or REQUEST['zzz']
Organization: Nionex

On Thu, Jul 11, 2002 at 09:14:22AM +0200, Hans-Dieter Stich wrote:
> hi Zope gurus,
> 
> which of the following ways to access the attribute 'zzz' of a form
request is 
> the right one and why:
> 
> <dtml-var "REQUEST.zzz">
> 
> or
> 
> <dtml-var "REQUEST['zzz']">
> 
> TIA!

shouldn't 

<dtml-var zzz>

work? 

HTH,

uwe 


-- 
Uwe Schuerkamp               Tel: +49 (0)5241 / 80 10 66, FAX: / 806 23 38
Uwe.Schuerkamp@nionex.net       Nionex GmbH, IWN5  (http://www.nionex.de/)
GnuPG KeyID: 5887047D                 Avenwedder Str. 55, 33311 Guetersloh
GnuPG Fingerprint:         2E 13 20 22 9A 3F 63 7F 67 6F E9 B1 A8 36 A4 61



--__--__--

Message: 28
From: Hans-Dieter Stich <hdstich@hdstich.com>
To: zope@zope.org
Subject: Re: [Zope] REQUEST.zzz or REQUEST['zzz']
Date: Thu, 11 Jul 2002 09:48:57 +0200

On Thu, 11 Jul 2002 09:16:21 +0200, you wrote:
>> 
>> which of the following ways to access the attribute 'zzz' of a form
request 
is 
>> the right one and why:
>> 
>> <dtml-var "REQUEST.zzz">
>> 
>> or
>> 
>> <dtml-var "REQUEST['zzz']">
>> 
>
>shouldn't 
>
><dtml-var zzz>
>
>work? 

oops, I didn't mention that the DTML method which wants to access this 
attribute is called from the inside of a instance of my GoogleWebAPI
Product, 
which in turn is called from a form in a DTML document:

<dtml-var "google.doGoogleSearch( zzz, render_method 
= 'doGoogleSearch_html' )">

and in 'doGoogleSearch_html' is:

<dtml-var "REQUEST.zzz">

/hd




--__--__--

Message: 29
Date: Thu, 11 Jul 2002 08:53:20 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: zope@zope.org
Subject: [Zope] Weird error?

Just started seeing these happen intermittently on squishdot.org, does
anyone know
whatthey might be?

cheers,

Chris

webmaster@squishdot.org wrote:
> 
> ------
> 2002-07-11T00:36:47 ERROR(200) ZServer uncaptured python exception,
closing channel <zhttp_channel connected 194.193.44.4:4267 at 9478264
channel#: 52393 requests:> (socket.error:(32, 'Broken pipe')
[/usr/local/zope/2.4.0_base/ZServer/medusa/asynchat.py|handle_read|83]
[/usr/local/zope/2.4.0_base/ZServer/medusa/http_server.py|recv|420]
[/usr/local/lib/python2.1/asyncore.py|recv|349])



--__--__--

Message: 30
Subject: Re: [Zope] Persistent login
From: "Thierry Florac" <thierry.florac@onf.fr>
To: Dieter Maurer <dieter@handshake.de>
Cc: zope@zope.org
Date: 11 Jul 2002 09:58:13 +0200

On Wed, 2002-07-10 at 18:47, Dieter Maurer wrote:
> Thierry Florac writes:
>  > > ...
>  > > "request['AUTHENTICATED_USER']" is a complex object which cannot
>  > > be stored inside ZODB.
>  > ...
>  > I've finally decided to try the ZSession product, which can store
>  > complex objects like AuthenticatedUser. It seems to work as specified
>  > above...
> Be very careful, when you store persistent objects in any cache (a
> session belongs to this type)!
> 
>   They have an implicit reference to a ZODB connection.
>   This reference is valid only during the current request.
>   You may get all sorts of weird errors when the object later
>   tries to use this reference.
> 
> I spend days to locate such an error. It appears as if Zope
> were non-deterministically crashing, telling me that
> "None" does not have attributes, oid being invalid
> and objects being referenced from outside a connection...
> 

Perhaps I'm wrong, but I think that ZSession keep sessions properties in
memory, and don't store them in ZODB.
These sessions are cleared from memory after a given timeout (20 minutes
by default).

Should that be enough to prevent me from the problem you specify above
??

Thierry





--__--__--

Message: 31
Date: Thu, 11 Jul 2002 10:11:49 +0200
From: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= <geirh@funcom.com>
Reply-To: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= <geirh@funcom.com>
Organization: funcom
To: "Jason Bush on the zope-list" <jason@nol.org>
CC: Kevin Carlson <khcarlso@bellsouth.net>, zope group <zope@zope.org>
Subject: Re: [Zope] How to get name of calling DTML or script..

Hello Jason, 

Wednesday, July 10, 2002, 11:02:24 PM, you wrote:

JB> x = request.HTTP_REFERER
JB> so, RESPONSE.redirect(request.HTTP_REFERER)
JB> will reload the page that called the script...

..most of the time..

HTTP_REFERER is an *optional* HTTP-HEADER that most clients/browsers
send with the request , but they are not required to do so. I know
that at least in Opera there is an option to turn it off for those
concerned with privacy..

- Just so that no one relies on it for important stuff...





-- 
Geir Bækholt                       web-developer
geirh@funcom.com             funcom oslo | webdev-team




--__--__--

Message: 32
From: "Bo M. Maryniuck" <b.maryniuk@forbis.lt>
Reply-To: b.maryniuk@forbis.lt
To: Chris Withers <chrisw@nipltd.com>,
 Chris McDonough <chrism@zope.com>,
 zope@zope.org
Subject: Re: [Zope] DTML, Zope and Regex
Date: Thu, 11 Jul 2002 10:11:57 +0200

On Wednesday 10 July 2002 22:26, Chris Withers wrote:
> Chris McDonough wrote:
> > Just to clarify: DTML is not "gone".  This scares people when they
> > hear it.  DTML will be around probably forever.
>
> joy!

It's not a joy. It's SLOW.

--=20
Sincerely yours, Bogdan M. Maryniuck

In most countries selling harmful things like drugs is punishable.
Then howcome people can sell Microsoft software and go unpunished?
(By hasku@rost.abo.fi, Hasse Skrifvars)




--__--__--

Message: 33
From: "Bo M. Maryniuck" <b.maryniuk@forbis.lt>
Reply-To: b.maryniuk@forbis.lt
To: zope@zope.org
Date: Thu, 11 Jul 2002 10:18:33 +0200
Subject: [Zope] Jython & Zope

Hello, all.

Somebody know how to "connect" Jython stuff and Zope? Actiually, I need J=
ava=20
Classes in Zope. Or it's impossible?

--=20
Sincerely yours, Bogdan M. Maryniuck

We are using Linux daily to UP our productivity - so UP yours!
(Adapted from Pat Paulsen by Joe Sloan)




--__--__--

Message: 34
From: <douwe@oberon.nl>
To: "Zope" <zope@zope.org>
Date: Thu, 11 Jul 2002 10:21:25 +0200
Subject: [Zope] I don't want WebDav

Hi,

Is there a way to disable WebDav when downloading word documents? I have a
script that generates a word document and lets the user then view it/save
it. However, when I serve the document, MsWord and Zope will find that they
can communicate through WebDAV and Word will (sometimes) offer the user to
save the document on Zope, which won't work because it is generated.

Douwe




--__--__--

Message: 35
Date: Thu, 11 Jul 2002 09:48:31 +0100
From: matt carey <matt@textmatters.com>
To: zope@zope.org
Subject: [Zope] Re: WebDAV Functionality Question


On Wednesday, July 10, 2002, at 08:15 PM, zope-request@zope.org wrote:

> Message: 11
> [snip]
>
> Hello,
>
> I have Zope (2.5.1) installed and have the WebDAV server set up 
> ( -W 8088)
> and working.  I am using win2k web folders to connect to the 
> webdav server.
> I can connect and browse just fine, but I get an error when I try 
> copy a
> file from my win2k box to the server.  Has anyone found a way 
> around this.
> Thanks.
>
> Patrick
>


remember to check what port you are connecting to, as you can't use 
the same port as what zope uses to serve. i.e. if we have a site 
running off port 11000, we webdav to 11001.

we have webdav connecting on win2k and it works fine. don't get me 
started on mac os 10.1 and its webdav implementation...

oh all right then! we had problems with copying a file (using 
webdav) to the machines hard disc, doing an edit (in bbedit), then 
copying it back. the file was a dtml method, but when it copies 
back it becomes a standard file -- it looses its zope-ness. this 
was using the built in mac 10.1 webdav. if we use goliath (a mac 
webdav client which is free from www.webdav.org), it works! sort it 
out apple!!

cheers


--------------------------------
Matt Carey
Text Matters
37 Upper Redlands Road,            Information design:
Reading RG1 5JE, UK                We help explain things using
phone +44 (0)118 986 8313                .language
fax   +44 (0)118 931 3743                .design
email matt@textmatters.com               .systems
web   http://www.textmatters.com         .process




--__--__--

Message: 36
From: Ashish Gautam <AshishG@lambenttek.com>
To: "'zope@zope.org'" <zope@zope.org>
Date: Thu, 11 Jul 2002 14:51:01 +0530
Subject: [Zope] Zope+Photo Product

Hello everybody,
I have installed Zope and Photo Product.I have CMF installed in zope.
Photo requires ImageMagick,which i had installed.
I am using Linux OS.
I am using Photo Product inside CMF Site.
Through 'Manager' Role i am able to upload a photo.
But i am not quite sure as to how to use this Photo product.
Lets say,I want to build an Image Galary with 'Manager' Role, then how will
i let 'Member' User see it.
If there is some example of building Photo gallary,please let me know.

Thanking you in advance,
Ashish.




--__--__--

Message: 37
From: Toby Dickenson <tdickenson@geminidataloggers.com>
To: Dieter Maurer <dieter@handshake.de>,
        Eric Seidel <Eric.C.Seidel@lawrence.edu>
Date: Thu, 11 Jul 2002 10:46:27 +0100
Cc: zope@zope.org, zope-db@zope.org, Shane Hathaway <shane@zope.com>
Subject: [Zope] Re: BTreeFolder

(cc Shane too)

On Wednesday 10 Jul 2002 7:01 pm, Dieter Maurer wrote:

>  > How
>  > many items can I have in a folder?
>
> Normal folders store their content in a tuple.
> If you access the folder, the complete tuple is fetched into memory.

Hmm, not quite. it stores the sub-objects in the folder's __dict__. It do=
es=20
have a tuple which stores the objects "id"s (so it can know which attribu=
tes=20
are ObjectManager-managed, and which are not) and a cached copy of the=20
meta-type.

> You do not want this for large numbers of items.
> Use a BTreeFolder in this case. As the name tells, it uses
> a tree structure to store the content. Access is far more fine
> grained than with standard Folders.

BTreeFolder was definitely a huge advantage before Zope 2.6, because the =
old=20
ZODB cache did not cope well with the fact that the __dict__ loaded all=20
40,000 sub-objects into memory as ghosts.

Zope 2.6 has a different cache manager that does not panic when it is giv=
en=20
huge numbers of ghosts. As a rough guess each ghost adds 100 bytes, so=20
BTreeFolder is saving you 4M of ram (per worker thread). Not bad, but may=
be=20
not enough to justify installing a seperate product. BTreeFolder does giv=
e=20
you are more scalable user interface as standard, but with that many you=20
still might want to think about replacing it with something customised to=
=20
your data.

>  > I'm looking to be able to handle at least 40,000 user objects and a
>  > similar number of other larger data objects of various sizes (2k -
>  > 20k+).  Users could be pushed off to an ldap server or some other
>  > environment via the LoginManager Mod etc, however I would still have
>  > 40,000 user folders in a single folder.
>
> With a BTreeFolder, I would not be worried with this number.

BTreeFolder has a problem that it doesnt store *all* of its data in the B=
Tree.=20
It still has the tuple caching id and meta-type, thanks to it ObjectManag=
er=20
base class. In this case it is a 40,000 element tuple. That would be enou=
gh=20
to get me worried.

(ps; I worry easily)




--__--__--

Message: 38
Date: Thu, 11 Jul 2002 11:48:12 +0200
From: Magnus Heino <magnus.heino@pleon.sigma.se>
To: Ashish Gautam <AshishG@lambenttek.com>
CC: "'zope@zope.org'" <zope@zope.org>
Subject: Re: [Zope] Zope+Photo Product


> I have installed Zope and Photo Product.I have CMF installed in zope.
> Photo requires ImageMagick,which i had installed.
> I am using Linux OS.
> I am using Photo Product inside CMF Site.
> Through 'Manager' Role i am able to upload a photo.
> But i am not quite sure as to how to use this Photo product.
> Lets say,I want to build an Image Galary with 'Manager' Role, then how
will
> i let 'Member' User see it.
> If there is some example of building Photo gallary,please let me know.

CMFPhoto, http://www.zope.org/Members/magnus/CMFPhoto is a CMF wrapper 
object for the Photo product. The included skins are for plone, but 
there is nothing stopping you from writing own skins for it.

CMFPhoto is now hosted at CMF Collective, 
http://sourceforge.net/projects/collective/, where I am in the process 
of rewriting the whole thing. The new CMFPhoto is based on 
CMFDefault.Image, and does not use the Photo product. Scaled images are 
stored in a OOBTree.

It still uses ImageMagick. New feature include image rotation and 
slideshow. I plan enable more. (you can do quite a but with imagemagick).

You can get current shapshot from here; 
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/collective/CMFPhoto/

It's a moving target at the moment, but it's working. The skins need a 
bit of refactoring before they are finnished.

I plan to release it within the next days. The included skin is for plone.

/Magnus Heino




--__--__--

Message: 39
From: "Dirk Datzert" <dirk.datzert@tks-rasselstein.thyssenkrupp.com>
To: <zope@zope.org>
Date: Thu, 11 Jul 2002 11:56:40 +0200
Organization: Rasselstein Hoesch GmbH
Subject: [Zope] debug question

This is a multi-part message in MIME format.

------=_NextPart_000_0063_01C228D2.04B92180
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

how can I debug python/zope. I need to find out where a special =
user-object came from and which contents it has.

Regards,
Dirk

------=_NextPart_000_0063_01C228D2.04B92180
Content-Type: text/x-vcard;
	name="Dirk Datzert.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Dirk Datzert.vcf"

BEGIN:VCARD
VERSION:2.1
N:Datzert;Dirk
FN:Dirk Datzert
ORG:;Andernach
TEL;WORK;VOICE:+49 2631 81 4595
TEL;WORK;FAX:+49 2631 81 15 4595
ADR;WORK:;;Andernach
LABEL;WORK:Andernach
KEY;X509;ENCODING=3DBASE64:
    =
MIIDVTCCAr6gAwIBAgIPAM2aAAAAAkJs9V5JP7ynMA0GCSqGSIb3DQEBBAUAMIG8MQswCQYD
    =
VQQGEwJERTEQMA4GA1UECBMHSGFtYnVyZzEQMA4GA1UEBxMHSGFtYnVyZzE6MDgGA1UEChMx
    =
VEMgVHJ1c3RDZW50ZXIgZm9yIFNlY3VyaXR5IGluIERhdGEgTmV0d29ya3MgR21iSDEiMCAG
    =
A1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMSBDQTEpMCcGCSqGSIb3DQEJARYaY2VydGlm
    =
aWNhdGVAdHJ1c3RjZW50ZXIuZGUwHhcNMDExMTEyMTIwMTM1WhcNMDMwMTAyMTIwMTM1WjBp
    =
MQswCQYDVQQGEwJERTEQMA4GA1UEBxMHTmV1d2llZDEVMBMGA1UEAxMMRGlyayBEYXR6ZXJ0
    =
MTEwLwYJKoZIhvcNAQkBFiJEaXJrLkRhdHplcnRAcmFzc2Vsc3RlaW4taG9lc2NoLmRlMIGf
    =
MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCog/5TyCRdMjACIM/U23qq0n0LUEeb+X3WpIn5
    =
2UHosqQMDdLDEtlUOMSKTrqcsp3lHTOQWwj65/T3cI85brb7PkJDtbCI57MVTtMIKByd946g
    =
uIOe6xti0H+lJAscIO1a6FqFjjJLhudWpDqaWgW95qGaFVT1me2xPEaoiampxQIDAQABo4Gq
    =
MIGnMDMGCWCGSAGG+EIBCAQmFiRodHRwOi8vd3d3LnRydXN0Y2VudGVyLmRlL2d1aWRlbGlu
    =
ZXMwEQYJYIZIAYb4QgEBBAQDAgWgMF0GCWCGSAGG+EIBAwRQFk5odHRwczovL3d3dy50cnVz
    =
dGNlbnRlci5kZS9jZ2ktYmluL2NoZWNrLXJldi5jZ2kvQ0Q5QTAwMDAwMDAyNDI2Q0Y1NUU0
    =
OTNGQkNBNz8wDQYJKoZIhvcNAQEEBQADgYEAOHB5sq4AdTAwizcmGPgdnfPo9btBu1d/PRNO
    =
D/xoIhXlI4A0ehRZCBGuOup0L78YBj+DZUMDOK3H6+5M8rOfCazkcYlcfdxZ9LeNRkMy+RRx
    PbmXelKB7UjM6IfJyZiQzm/jTwxFle3L+W8TMSPwmAdTJOo0YkikHCAlxNLMn4w=3D


EMAIL;PREF;INTERNET:Dirk.Datzert@rasselstein-hoesch.de
REV:20020711T095640Z
END:VCARD

------=_NextPart_000_0063_01C228D2.04B92180--




--__--__--

Message: 40
Date: Thu, 11 Jul 2002 12:21:11 +0200
From: =?ISO-8859-1?B?R2VpciBC5mtob2x0?= <geirh@funcom.com>
Reply-To: =?ISO-8859-1?B?R2VpciBC5mtob2x0?= <geirh@funcom.com>
Organization: funcom
To: zope@zope.org
CC: fafhrd@datacom.kz
Subject: [Zope] CMFlocalizer ?

zope,

I just noticed the CMFlocalizer product.. Can it be used for
ZPT-localization without CMF installed ?


-- 
Geir Bækholt                       web-developer
geirh@funcom.com             funcom oslo | webdev-team




--__--__--

Message: 41
Date: Thu, 11 Jul 2002 07:56:41 -0400
Subject: Re: [Zope] Weird error?
Cc: zope@zope.org
To: Chris Withers <chrisw@nipltd.com>
From: Jens Vagelpohl <jens@zope.com>

someone hit the "stop" button on their browser?

jens

On Thursday, July 11, 2002, at 03:53 , Chris Withers wrote:

> Just started seeing these happen intermittently on squishdot.org, does 
> anyone know
> whatthey might be?
>
> cheers,
>
> Chris
>
> webmaster@squishdot.org wrote:
>>
>> ------
>> 2002-07-11T00:36:47 ERROR(200) ZServer uncaptured python exception, 
>> closing channel <zhttp_channel connected 194.193.44.4:4267 at 9478264 
>> channel#: 52393 requests:> (socket.error:(32, 'Broken pipe') [/usr/local/
>> zope/2.4.0_base/ZServer/medusa/asynchat.py|handle_read|83] 
>> [/usr/local/zope/2.4.0_base/ZServer/medusa/http_server.py|recv|420]
[/usr/
>> local/lib/python2.1/asyncore.py|recv|349])
>
>




--__--__--

Message: 42
Date: Thu, 11 Jul 2002 14:18:44 +0200
From: Magnus Heino <magnus.heino@pleon.sigma.se>
To: Chris Withers <chrisw@nipltd.com>
CC: zope@zope.org
Subject: Re: [Zope] Weird error?


> Just started seeing these happen intermittently on squishdot.org, does
anyone know
> whatthey might be?


OS, Zope version?

http://mail.python.org/pipermail/zope-collector-monitor/2002-January/000016.
html

/Magnus




--__--__--

Message: 43
To: zope@zope.org
From: Rebecca.R.Hepper@seagate.com
Date: Thu, 11 Jul 2002 07:32:15 -0500
Subject: [Zope] Newbie:  Python:Path Troubles

Hello All,

I am using Zope 2-5-1 and CMF-1.2.

I am trying to use python:path in a html form to get a path name which I
will pass to a python script and use the setDescription function on.  I am
not getting the python:path statement to work.  If I print my python:path
statement into a table header I get something like:  "<PortalFolder
instance at 90a24a0>"   What I am doing wrong?  I have pasted portions of
my code below.  I also attempted to use 'nocall' but didn't get that to
work for me either.

Thanks in advance!


<table tal:define="myhere root/MyPortal/folderA">
<tr valign="top" align="left"
     tal:repeat="folders python:myhere.contentValues(filter
={'Type':'Folder'})">
<span tal:define="folderID folders/id">
<th tal:content="folders/title">Title</th>
<td><input type="radio" name="folderTitle"
     value="folders"
     tal:attributes="value folders/title"></td>

<!--    <th tal:content="python:path('root/MyPortal/folderA/%s' %
folderID)"></th>  -->
<td><input type="hidden" name="folderPath"
    value="folderPath"
    tal:attributes="value python:path('root/MyPortal/folderA/%s' %
folderID)"></td>

</span>
</tr>

Then in the python script:
folderPath.setDescription("This is my new description")




--__--__--

Message: 44
Date: Thu, 11 Jul 2002 16:50:52 +0400
From: =?koi8-r?B?4c7E0sXKIPDV3snO?= <nash@garant.ru>
Reply-To: =?koi8-r?B?4c7E0sXKIPDV3snO?= <nash@garant.ru>
To: zope-admin@zope.org
CC: zope@zope.org
Subject: Re: [Zope] RAMCacheManager invalidate

Any ideas??

Wednesday, July 10, 2002, 4:30:05 PM:


áð> Hi!

áð> How i can invalidate all RAMCacheManager entries from ZOPE Product??

áð> Thanks,
áð> Andrew



áð> _______________________________________________
áð> Zope maillist  -  Zope@zope.org
áð> 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 )



ó Õ×ÁÖÅÎÉÅÍ,
áÎÄÒÅÊ ðÕÞÉÎ




--__--__--

Message: 45
From: "Robert Rottermann" <robert@redcor.ch>
To: "Hans-Dieter Stich" <hdstich@hdstich.com>,
	<zope@zope.org>
Subject: Re: [Zope] REQUEST.zzz or REQUEST['zzz']
Date: Thu, 11 Jul 2002 15:07:06 +0200

REQUEST[zzz]
and REQUEST.zzz
are ok
Robert
----- Original Message -----
From: "Hans-Dieter Stich" <hdstich@hdstich.com>
To: <zope@zope.org>
Sent: Thursday, July 11, 2002 9:48 AM
Subject: Re: [Zope] REQUEST.zzz or REQUEST['zzz']


> On Thu, 11 Jul 2002 09:16:21 +0200, you wrote:
> >>
> >> which of the following ways to access the attribute 'zzz' of a form
request
> is
> >> the right one and why:
> >>
> >> <dtml-var "REQUEST.zzz">
> >>
> >> or
> >>
> >> <dtml-var "REQUEST['zzz']">
> >>
> >
> >shouldn't
> >
> ><dtml-var zzz>
> >
> >work?
>
> oops, I didn't mention that the DTML method which wants to access this
> attribute is called from the inside of a instance of my GoogleWebAPI
Product,
> which in turn is called from a form in a DTML document:
>
> <dtml-var "google.doGoogleSearch( zzz, render_method
> = 'doGoogleSearch_html' )">
>
> and in 'doGoogleSearch_html' is:
>
> <dtml-var "REQUEST.zzz">
>
> /hd
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>




--__--__--

Message: 46
From: "Bo M. Maryniuck" <b.maryniuk@forbis.lt>
Reply-To: b.maryniuk@forbis.lt
To: <zope@zope.org>
Date: Thu, 11 Jul 2002 15:01:04 +0200
Subject: [Zope] XForms

Hello, all.

Somebody use XForms here?

--=20
Sincerely yours, Bogdan M. Maryniuck

Anyone who thinks UNIX is intuitive should be forced to write 5000 lines =
of=20
code using nothing but vi or emacs. AAAAACK!
(Discussion in comp.os.linux.misc on the intuitiveness of commands, espec=
ially
Emacs.)




--__--__--

Message: 47
Date: Thu, 11 Jul 2002 09:18:46 -0400
From: eric.n.dunn@bankofamerica.com
To: zope@zope.org
Subject: [Zope] Worldpilot on W2k



Has anyone successfully run worldpilot on Zope 2.5x for Windows without
cygwin?





--__--__--

Message: 48
Date: Thu, 11 Jul 2002 15:42:44 +0200
From: Alejandro Fernandez <ale@e-group.org>
To: zope@zope.org
Organization: Electronic Group Interactive
Subject: [Zope] dtml-let

Hi,

I'm trying to output a table using dtml-in, that shows a certain number of
rows in that table, then adds up the rows not shown, and shows an "other
values" row, and finally shows totals for all the data in the table.

So the output would be something like this:

Language  Requests  Uniques Sessions     Percent     Time to Load
   it     92384     293       231         56.1%          3.0   
   fr     51563     65487     21          31.3%          1.0
   de     9834      9648       521         6.0%          3.2

[Other] 1   5416     25163     31          3.3%          0.0   
Total:     164653     101245     354935    100%          1.44


The dtml I'd like to use would be something like this:

dtml-let "set all variables to zero"
   dtml-in the request
       dtml-if sequence-number <= floor
           output a row with data
       dtml-else
           dtml-let "add up "other values" data using variables set at
top"
       dtml-if sequence-end
           output "other values" row
           output "totals" row
       /dtml-let 
   /dtml-in
/dtml-let

But dtml-let is zeroing the variables each iteration. Is there a better
way to do what I'm trying to do?

Thanks,

Ale

-- 
Alejandro Fernandez
Electronic Group Interactive
--+34-65-232-8086--



--__--__--

Message: 49
Date: Thu, 11 Jul 2002 08:44:58 -0500
From: Jason Bush <jason@nol.org>
Organization: Nebraska Online
To: zope@zope.org
Subject: [Zope] Interesting RE problem

Whether or not allowing the re module is safe, I added it

to our test server.  I notice an interesting 'bug?' however

(more likely user error).

I created a simple PythonScript object inside of a TestProduct,

where the PythonScript is the view of the TestProduct(inherits

from DTMLMethod). When I create an instance of my Test object

and save it, then click on the View tab, I get an:

> Unauthorized to access compile in this context error (re.compile(str))

HOWEVER, if I open a new browser window and type in the URL of the

object with no auth (normal web user), it renders fine, without error.

Any enlightenment?

--
Jason Bush  ---    jason@nol.org
Nebraska Online    http://www.nol.org






--__--__--

Message: 50
Date: Thu, 11 Jul 2002 09:50:42 -0400
From: Shane Hathaway <shane@zope.com>
To: Toby Dickenson <tdickenson@geminidataloggers.com>
CC: Dieter Maurer <dieter@handshake.de>,
   Eric Seidel
 <Eric.C.Seidel@lawrence.edu>, zope@zope.org, zope-db@zope.org
Subject: [Zope] Re: BTreeFolder

Toby Dickenson wrote:
> BTreeFolder has a problem that it doesnt store *all* of its data in the
BTree. 
> It still has the tuple caching id and meta-type, thanks to it
ObjectManager 
> base class. In this case it is a 40,000 element tuple. That would be
enough 
> to get me worried.
> 
> (ps; I worry easily)

I've been updating BTreeFolder lately.  The latest code is called 
BTreeFolder2, though the reason I changed the name is now gone and I may 
decide to rename it back to BTreeFolder.  It's available at cvs.zope.org 
under /Products.

The newest code stores *all* subobject data in BTrees; no more giant 
tuple.  That giant tuple turned out to be a bit of a problem for very 
large folders, since every time you add or remove an item, a new 
multi-megabyte pickle is generated, transferred, and appended to a file. 
   That problem is gone now.  The newest code also features unit tests, 
a CMF-friendly version, conflict prevention, and a unique ID generation 
utility.

BTreeFolder is useful where you need something like a big dictionary 
that rarely gets exposed to the user, but you want it to remain 
discoverable and easily manipulated in emergencies.  It doesn't always 
take the place of something customized, but it's definitely more 
scalable than ever.

Shane




--__--__--

Message: 51
Date: Thu, 11 Jul 2002 08:59:47 -0500
From: Mike Renfro <renfro@tntech.edu>
To: douwe@oberon.nl
Cc: Zope <zope@zope.org>
Subject: Re: [Zope] I don't want WebDav

On Thu, Jul 11, 2002 at 10:21:25AM +0200, douwe@oberon.nl wrote:

> Is there a way to disable WebDav when downloading word documents?

It can be disabled in general by using the -W flag (according to the
zope-z2.py I have here)

Adding the flag of "-W -" should disable it. "-W portnumber" would put
WebDAV on portnumber. I don't know of any way to disable it
specifically for Word, though.

-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro@tntech.edu



--__--__--

Message: 52
From: "Chris McDonough" <chrism@zope.com>
To: "Jason Bush" <jason@nol.org>, <zope@zope.org>
Subject: Re: [Zope] Interesting RE problem
Date: Thu, 11 Jul 2002 10:25:59 -0400

I'm not sure about the difference between using test and calling the
method through the web, but this is an example of why the re module
hasn't been considered for inclusion in the default TTW-importable
module list.  Someone will need to wrap the re module to return
things that can be protected with security declarations if it's ever
to be included as a TTW-accessible module.

----- Original Message -----
From: "Jason Bush" <jason@nol.org>
To: <zope@zope.org>
Sent: Thursday, July 11, 2002 9:44 AM
Subject: [Zope] Interesting RE problem


> Whether or not allowing the re module is safe, I added it
>
> to our test server.  I notice an interesting 'bug?' however
>
> (more likely user error).
>
> I created a simple PythonScript object inside of a TestProduct,
>
> where the PythonScript is the view of the TestProduct(inherits
>
> from DTMLMethod). When I create an instance of my Test object
>
> and save it, then click on the View tab, I get an:
>
> > Unauthorized to access compile in this context error
(re.compile(str))
>
> HOWEVER, if I open a new browser window and type in the URL of the
>
> object with no auth (normal web user), it renders fine, without
error.
>
> Any enlightenment?
>
> --
> Jason Bush  ---    jason@nol.org
> Nebraska Online    http://www.nol.org
>
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 maillist  -  Zope@zope.org



End of Zope Digest