Re: [Zope-dev] Any thoughts on when Zope 2.7 beta1 might be available?

2003-03-21 Thread Guido van Rossum
 I am using multiple third party Python libraries with Zope, and they
 are no longer supporting Python 2.1.X at all.  I am forced to
 upgrade to Python 2.2.X
 
 As I see it, my options are:
 
 1- try to recompile Zope 2.6.1 from source using Python 2.2.2 (and cross 
 my fingers)

In my experience this works fine.  The reason this isn't officially
supported by Zope Corporation is that we haven't had time to
thoroughly evaluate this combination, so you should indeed cross your
fingers, but I don't expect there's anything that would be a
showstopper for you.  If you find problems, please report them here so
they can be fixed in Zope 2.7!

--Guido van Rossum (home page: http://www.python.org/~guido/)

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


Re: [Zope-dev] Any thoughts on when Zope 2.7 beta1 might beavailable?

2003-03-21 Thread Andreas Jung


--On Freitag, 21. März 2003 2:42 Uhr -0500 Craeg K Strong 
[EMAIL PROTECTED] wrote:

Hello:

I am using multiple third party Python libraries with Zope, and they are
no longer supporting Python 2.1.X at all.  I am forced to upgrade to
Python 2.2.X
As I see it, my options are:

1- try to recompile Zope 2.6.1 from source using Python 2.2.2 (and cross
my fingers) 2- wait for the Zope 2.7
I think Python 2.2.2 support is the most important feature for me in Zope
2.7 -- frankly I wouldn't care if that were its *only* new feature beyond
what 2.6.1 supports
2.7alpha had been planned for February  however there seems to be a delay
(maybe because of the new-install-branch which seems to be a very
important improvement). Feel free to work with the CVS head. And maybe
anyone from ZC should update the 2.7 wiki.
-aj







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


Re: [Zope-dev] Any thoughts on when Zope 2.7 beta1 might beavailable?

2003-03-21 Thread Chris McDonough
Hi Craeg,

2.6.X appears to work great with Python 2.2.  We even removed the
startup warning lately.  I'd go this way were I you as 2.7 is probably
still some time away and you almost certainly don't want to be tracking
the trunk, as its relatively volatile at the moment.

- C
 

On Fri, 2003-03-21 at 02:42, Craeg K Strong wrote:
 Hello:
 
 I am using multiple third party Python libraries with Zope, and they are 
 no longer
 supporting Python 2.1.X at all.  I am forced to upgrade to Python 2.2.X
 
 As I see it, my options are:
 
 1- try to recompile Zope 2.6.1 from source using Python 2.2.2 (and cross 
 my fingers)
 2- wait for the Zope 2.7
 
 I think Python 2.2.2 support is the most important feature for me in 
 Zope 2.7 --
 frankly I wouldn't care if that were its *only* new feature beyond what 
 2.6.1 supports
 
 Can anyone over at ZC give a rough ballpark estimate for when we might 
 see a first beta
 of 2.7?
 
 Thanks,
 
 --Craeg
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )



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


[Zope-dev] Re: Any thoughts on when Zope 2.7 beta1 might be available?

2003-03-21 Thread Maik Jablonski
Chris McDonough wrote:
Hi Craeg,

2.6.X appears to work great with Python 2.2.  We even removed the
startup warning lately.  I'd go this way were I you as 2.7 is probably
still some time away and you almost certainly don't want to be tracking
the trunk, as its relatively volatile at the moment.
Hi Craeg,

I run 2.6.1 with Python 2.2.2 with several additional products without 
any problems. I learnt my lessons from upgrading to early major releases 
of Zope, so I would go for 2.6.1 with Python 2.2.2 instead of waiting 
for a (maybe) buggy release of 2.7.0...

Cheers, Maik



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


[Zope-dev] Using index.htm(l) files like index_html

2003-03-21 Thread David Cain
How can I customize my Zope server to treat index.html and index.htm
files like index_html files?

Thanks

David Cain
Senior Web Developer, Information Systems Department 
Syracuse University Library
Syracuse, New York 13244-2010
(315) 443-5923
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


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


[Zope-dev] Re: Using index.htm(l) files like index_html

2003-03-21 Thread Maik Jablonski
David Cain wrote:
How can I customize my Zope server to treat index.html and index.htm
files like index_html files?
Your question has nothing to do with developing the Zope Application 
Server, but only with developing applications with Zope. So you should 
ask on [EMAIL PROTECTED]

Your question:

Place a DTML-Method into your Zope-Root with:

dtml-var _['index.html']

(you can add some condition tests for index.htm of index.html if you 
want to.)

-mj



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


Re: [Zope-dev] Any thoughts on when Zope 2.7 beta1 might be available?

2003-03-21 Thread Craeg K Strong
Thanks much for the quick response.   And good news, too!

Hum.  In your opinion, what is the best way to do this?   My constraints:

- I use both windows 2000 and Red Hat Linux 8
- I do *not* have a C/C++ compiler on Windows
Do I need to build Zope from source in order to use Python 2.2? 
Or can I simply get rid of $ZOPE/lib/python2.1 and replace it with
$ZOPE/lib/python2.2  (retrofit)?  What are the ramifications of this choice?

Sorry for so many questions; I am trying to get the most stable setup I can,
while doing the least amount of setup work :-)
Thanks very much!

--Craeg

BTW, The answers to these questions should probably be on zope.org
or in a wiki somewhere, do you agree?
Chris McDonough wrote:

Hi Craeg,

2.6.X appears to work great with Python 2.2.  We even removed the
startup warning lately.  I'd go this way were I you as 2.7 is probably
still some time away and you almost certainly don't want to be tracking
the trunk, as its relatively volatile at the moment.
- C

On Fri, 2003-03-21 at 02:42, Craeg K Strong wrote:
 

Hello:

I am using multiple third party Python libraries with Zope, and they are 
no longer
supporting Python 2.1.X at all.  I am forced to upgrade to Python 2.2.X

   

copies -- including electronic copies -- of the original message.



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


Re: [Zope-dev] Any thoughts on when Zope 2.7 beta1 might beavailable?

2003-03-21 Thread Chris McDonough
Craeg -

The safest thing to do is to build Zope from source using Python 2.2.  I
do not recommend replacing the binary distro's Python with Python 2.2
(using C extensions compiled with earlier versions of Python will at
least generate warnings and may actually cause problems).  

This is obviously going to be a problem Windows. I don't have any
answers for you there.  This is one of the reasons that Zope is 'not
officially supported' under Python 2.2.  There are no Py22/Zope2.6.X
binary distros available and no step-by-step upgrade procedures to
retrofit an existing 2.6 binary installation with Python 2.2.

About the best you can hope for is to persuade someone to compile Zope
on Windows under Python 2.2 for you, and even then it's not clear that
Zope will be guaranteed to run as a service (the Wise installer script
ZC uses to make binary Windows releases does all of this magic and is
not distributed with Zope).  Or wait for 2.7.

- C

PS - this is a good excuse to ditch Windows. ;-)

On Fri, 2003-03-21 at 12:23, Craeg K Strong wrote:
 Thanks much for the quick response.   And good news, too!
 
 Hum.  In your opinion, what is the best way to do this?   My constraints:
 
 - I use both windows 2000 and Red Hat Linux 8
 - I do *not* have a C/C++ compiler on Windows
 
 Do I need to build Zope from source in order to use Python 2.2? 
 Or can I simply get rid of $ZOPE/lib/python2.1 and replace it with
 $ZOPE/lib/python2.2  (retrofit)?  What are the ramifications of this choice?
 
 Sorry for so many questions; I am trying to get the most stable setup I can,
 while doing the least amount of setup work :-)
 
 Thanks very much!
 
 --Craeg
 
 BTW, The answers to these questions should probably be on zope.org
 or in a wiki somewhere, do you agree?
 
 Chris McDonough wrote:
 
 Hi Craeg,
 
 2.6.X appears to work great with Python 2.2.  We even removed the
 startup warning lately.  I'd go this way were I you as 2.7 is probably
 still some time away and you almost certainly don't want to be tracking
 the trunk, as its relatively volatile at the moment.
 
 - C
  
 
 On Fri, 2003-03-21 at 02:42, Craeg K Strong wrote:
   
 
 Hello:
 
 I am using multiple third party Python libraries with Zope, and they are 
 no longer
 supporting Python 2.1.X at all.  I am forced to upgrade to Python 2.2.X
 
 
 
 copies -- including electronic copies -- of the original message.
 
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )



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


[Zope-dev] Possible security problem with DTML

2003-03-21 Thread kosh
I am having a problem where DTML is allowing access to an attribute of an 
object that restrictedTraverse and regular . notation denies from a python 
script.

I have a python product and I have the securit.setDefaultAccess('deny') so 
that items inside there without security declarations can't be called and 
this works for url traversal, restrictedTraverse and getting to the object 
via python scripts in that access is denied but dtml can get right in which 
is a problem.

Lets say I have container foo with object bar in an and inside bar an object 
which should not be allowed accessed.

dtml-var foo.bar.shouldnotwork gives the value of shouldnotwork

however

dtml-var restrictedTraverse('foo/bar/shouldnotwork')' gives access denied


and from a python script 

return context.foo.bar.shouldnotwork gives an access denied also which is what 
I expect.

For a ZPT object I get the same result of access being denied for

span tal:replace=here/foo/bar/shouldnotwork/span

Thus I suspect the problem is with DTML somewhere but I am not sure where. 
However I could also be doing something wrong in my python product but 
currently I can no imagine what would allow that dtml to do it but nothing 
else.

The variable shouldnotwork is just a string that is stored in object bar.

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


Re: [Zope-dev] Re: Using index.htm(l) files like index_html

2003-03-21 Thread Brent M Hendricks
On Fri, Mar 21, 2003 at 05:12:37PM +0100, Maik Jablonski wrote:
 David Cain wrote:
  How can I customize my Zope server to treat index.html and index.htm
  files like index_html files?
 
 Your question has nothing to do with developing the Zope Application 
 Server, but only with developing applications with Zope. So you should 
 ask on [EMAIL PROTECTED]
 
 Your question:
 
 Place a DTML-Method into your Zope-Root with:
 
 dtml-var _['index.html']

What ever happened to making this configurable a la:

http://dev.zope.org/Wikis/DevSite/Proposals/ObjectTypeAssociationAndDeathToIndexHtml


--Brent


-

The programmer, like the poet, works only slightly removed from pure
 thought-stuff.  He builds his castles in the air, from air, creating
 by exertion of the imagination.  Few media of creation are so
 flexible, so easy to polish and rework, so readily capable of
 realizing grand conceptual structures.
-- Frederick Brooks, Jr., The Mythical Man Month

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