[Zope-dev] STX and underline symbology

2001-10-19 Thread Alastair Burt

In the current version of STX, the underline symbology is not very good for
documenting Python. In the string python_function1 does this, and
python_function2 does that, function1 does this, and python gets
underlined. I think it would be better if either:

  1) there are no spaces in strings to underline, only more '_'
 (_this_is_an_example_), or

  2) the final _ should be followed by whitespace or punctuation.

--- Alastair


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



Re: [Zope-dev] STX and underline symbology

2001-10-19 Thread Andreas Jung

I checked in some fixes to underline handling into the trunk
and the 2.4 branch. Please check this out. If the problems
persist, please send me a small testcase.

Andreas
- Original Message -
From: Alastair Burt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 06:25
Subject: [Zope-dev] STX and underline symbology


 In the current version of STX, the underline symbology is not very good
for
 documenting Python. In the string python_function1 does this, and
 python_function2 does that, function1 does this, and python gets
 underlined. I think it would be better if either:

   1) there are no spaces in strings to underline, only more '_'
  (_this_is_an_example_), or

   2) the final _ should be followed by whitespace or punctuation.

 --- Alastair


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



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



Re: [Zope-dev] STX and underline symbology

2001-10-19 Thread Alastair Burt

Andreas Jung [EMAIL PROTECTED] writes:

 I checked in some fixes to underline handling into the trunk
 and the 2.4 branch. Please check this out. If the problems
 persist, please send me a small testcase.

I don't really know my way around CVS. The version I checked out has the
following in DocumentClass.py: 

def doc_underline(self,
  s,
  #expr=re.compile(r\_([a-zA-Z0-9\s\.,\?]+)\_).search, # old 
expr, inconsistent punc, failed to cross newlines
  expr=re.compile(r'_([%s%s%s\s]+)_' % (letters, digits, 
under_punc)).search):

result = expr(s)
if result:
if result.group(1)[:1] == '_':
   return None # no double unders
start,end = result.span(1)
st,e = result.span()
return (StructuredTextUnderline(s[start:end]),st,e)
else:
return None

And this does what I said in my message:

  python_function1 does this, and python_function2 does that

becomes:

 ppythonufunction1 does this, and python/ufunction2 does that/p

--- Alastair

P.S. The following would support alternative 2 in my original message:


def doc_underline(self,
  s,
  #expr=re.compile(r\_([a-zA-Z0-9\s\.,\?]+)\_).search, # old 
expr, inconsistent punc, failed to cross newlines
  expr=re.compile(r'_([%s%s%s\s]+)_[\s%s]' % (letters, digits, 
under_punc, phrase_delimiters)).search):
result = expr(s)
if result:
if result.group(1)[:1] == '_':
   return None # no double unders
start,end = result.span(1)
return (StructuredTextUnderline(s[start:end]), start-1, end+1)
else:
return None



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



[Zope-dev] Zope server hanging

2001-10-19 Thread Stefane Fermigier


Hi,

I've sent this message yesterday to the EuroZope list but got not 
conclusive answer:

The eurozope.org Zope instance was down again this morning due to the
same recurring problem as last week:

2001-10-18T02:32:52 ERROR(200) ZServer uncaptured python exception,
closing channel select-trigger (pipe) at 81e28c4
(exceptions.OSError:[Errno 11] Resource temporarily unavailable
[/home/eurozope/Zope-2.4.1-linux2-x86/lib/python2.1/asyncore.py|poll|95]
[/home/eurozope/Zope-2.4.1-linux2-x86/lib/python2.1/asyncore.py|handle_read_event|383]
[/home/eurozope/Zope-2.4.1-linux2-x86/ZServer/medusa/thread/select_trigger.py|handle_read|77]
[/home/eurozope/Zope-2.4.1-linux2-x86/lib/python2.1/asyncore.py|recv|335]
[/home/eurozope/Zope-2.4.1-linux2-x86/lib/python2.1/asyncore.py|recv|517])

Notes:

OS = Linux 2.2.19.

start file = 

--
#! /bin/sh
reldir=`dirname $0`
INST_HOME=`cd $reldir; pwd`
export INST_HOME
STUPID_LOG_FILE=$INST_HOME/var/stupid_log_file.log
export STUPID_LOG_FILE
exec /home/eurozope/Zope-2.4.1-linux2-x86/bin/python \
 $INST_HOME/z2.py \
 -l /dev/null -P8400 $@
--

(The bug happens even without '-l /dev/null').

Apache config =

--
ServerName www.eurozope.org
ServerAlias eurozope.org
ServerAlias eurozope.com
ServerAlias www.eurozope.com
CustomLog logs/eurozope.org-access_log combined

RewriteEngine On
RewriteRule ^/(.*) http://localhost:8480/eurozope.org/$1 [P,l]
--

Of course, the bug doesn't happen when I'm stressing the server with
Apache Bench or a similar tool. It just happens *sometimes* (not once in
6 months, then twice in one week) on the live server.

Does anyone here know what's going on ? It seems to me that this bug
has been around for more than a year.

Regards,

  S.

-- 
Stéfane Fermigier, Tel: +33 (0)6 63 04 12 77 (mobile).
http://nuxeo.com/  http://portalux.com/  http://aful.org/

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



RE: [Zope-dev] Zope Cygwin

2001-10-19 Thread Norman Vine

Andreas Jung writes:

I think its in ZServer/HTTPResponse.py

- Original Message -
From: Norman Vine [EMAIL PROTECTED]
To: 'Chris McDonough' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, October 18, 2001 20:18
Subject: RE: [Zope-dev] Zope  Cygwin

 If you can tell me where the code is in Zope that is determining the
 Content-Length I will look into the Python  Cygwin 'C code that
 is being called.

Thanks, I found it

However let me show off my ignorance here

=
$ wget -S http://localhost:8080
--21:12:56--  http://localhost:8080/
   = `index.html'
Connecting to localhost:8080... connected!
HTTP request sent, awaiting response...
200 OK
2 Server: Zope/(Zope 2.4.1 (source release, python 2.1, linux2), python
2.1.1, cygwin) ZServer/1.1b1
3 Date: Fri, 19 Oct 2001 01:12:56 GMT
4 Connection: close
5 Content-Type: text/html
6 Content-Length: 3022
7

0K - ..WGET HANGS HERE  

509 Zope-2.4.1-src
$ ./stop
[1]+  Terminated  ./start

510 Zope-2.4.1-src
$ wc index.html
105 3623022 index.html
==

Note that after Ctrl-C'ing out of wget
index.html has been recieved
and that its length is 3022 bytes !!

I know I am missing something obvious here, but 
why was Chris getting 194 bytes with a VC++ compiled Zope ??
and what does this 194 bytes represent.
My guess is that it is the length of the response's header
but I do not see where this is determined.
FWIW - I have traced the Zope code back into
Zpublisher.BaseResponse

=== snipped from earlier msg ===
Here's a session with a VC++-built Zope:

$ wget -S http://localhost:8080/
--22:17:20--  http://localhost:8080/
   = `index.html'
Connecting to localhost:8080... connected!
HTTP request sent, awaiting response... 200 OK
2 Server: Zope/(unreleased version, python 2.1.0, win32) ZServer/1.1b1
3 Date: Wed, 17 Oct 2001 02:17:20 GMT
4 Connection: close
5 Content-Type: text/html
6 Content-Length: 194
7

0K -[100%]
===

Cheers

Norman


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



Re: [Zope-dev] nasty persistence problem

2001-10-19 Thread Chris Withers

Michel Pelletier wrote:
 
 Tim McLaughlin wrote:
 
  Thanks Chris, I'll hold on to that for a rainier day.  I just worked
  this one out in a very roundabout way ;)
 
  A product had gotten copied in that moved a Product class from one
  module to another even though everything else was the same.  It seems
  that ZODB doesn't like that.
 
 It sure doesn't.  When it pickles an object, it says, here's a big
 binary blob that is the state of the object.  The code for the object
 can be found in Products.MyProduct.MyModule.MyClass.  When you move the
 code, ZODB understandably barfs.

Shane's latest atch help here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/zodbex/zodbex/

- ChangeModules will let you change the module and name of persisted 
class instances.  This could be very beneficial when you have to change 
the name of a product.

cheers,

Chris

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



RE: [Zope-dev] Proposal: have install_product detect __init__.pyo too

2001-10-19 Thread Brian Lloyd

 I'd like to run python in its optimised mode (to try to squeeze 
 that extra 
 1-5% of performance out of it ;). The only real barrier to doing 
 this is that 
 install_product doesn't check for __init__.pyo (just .py and .pyc).
 
 Would there be serious problems if it was modified to detect the 
 .pyo as well?

No, there shouldn't be problems. I've updated Application.py to 
do the right thing when there is only a .pyo file in the product 
directory for 2.5.

Thanks!


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.361.1716   
Zope Corporation   http://www.zope.com



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



[Zope-dev] Small ZMI enhancement

2001-10-19 Thread Casey Duncan

When working in versions, it is currently a pain to get to the current version you 
are working in. Since the ZMI displays the path to the current version at the top, 
I thought, why now make this a link to the version so that you can get there in 
one click and manage it?

Here is the patch to lib/python/App/dtml/manage_tabs.dtml:

*** manage_tabs.dtml~   Fri Oct 19 11:34:11 2001
--- manage_tabs.dtmlFri Oct 19 11:37:48 2001
***
*** 161,167 

  dtml-if Zope-Version
  div class=system-msg
! emYou are currently working in version dtml-var Zope-Version html_quote/em
  /div
  /dtml-if
  /dtml-unless
--- 161,167 

  dtml-if Zope-Version
  div class=system-msg
! emYou are currently working in version a 
href=dtml-SERVER_URL;dtml-Zope-Version;/manage_maindtml-var Zope-Version 
html_quote/a/em
  /div
  /dtml-if
  /dtml-unless

Anyone object to putting this in the core?

Enjoy.

/---\
  Casey Duncan, Sr. Web Developer
  National Legal Aid and Defender Association
  [EMAIL PROTECTED]
\---/

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



RE: [Zope-dev] standard_error_message and displaying non-html content.

2001-10-19 Thread Noel Duffy


I have now put the first (rough) draft of a proposal up on
dev.zope.org.  Please feel free to comment/modify/add suggestions. If
anyone has a specific problem with standard_error_message which my
proposal does not address, please feel free to contact me.

I will be away from the office for the next two weeks, and
won't be reading email very often, so I won't be able to
contribute much for a while.

Trevor Toenjes writes:
  I wanted to throw 2 cents in to this thread from my previous
  problems/questions about error_message.
  I think they are slightly related.
  Maybe someone can filter my newbie-isms and use some of this in the Dogbowl.
  I would like to have more control over the standard_error_message
  auto-rendering of error_message and error_tb.  These should be treated more
  like typical methods in Zope to be consistent with everything else.  (like
  standard_html_header)  ;)
  -Trevor
  
   What is error_message?
   Where does the autoformatting come from, and how do I alter it?
   Can I modify it to just grab the error and not all the other Zope stuff?
  
You can't, as far as I can see. I have included in my proposal that
the traceback information should be html free.

   Why is this so stealthy compared to the rest of Zope?
I don't think it's stealthy. The problem is that it is assumed
you will be targetting web browsers.

   Why should I have to turn off debugging for tracebacks to be commented
  out
   in the HTML? With my Zope understanding so far...if it is an object, then
  I can include it or not in my
   standard_error_message.  So why is it hardcoded in Zope?
   Example: If I have error_tb in my standard_error_message, then it renders,
  if
   not - it's hidden.  Current Zope renders it anyway.
   Why isn't it treated like an object like the rest of Zope?
  
Part of the problem here is that Zope has to handle the case where
standard_error_message raises an exception. If that happens, where
does Zope get it's error response. To handle this case, ZPublisher/HTTPResponse.py
contains a copy of the standard Zope traceback, and uses this if
an error occurs during standard_error_message.

   Is there a library of these error messages that can be modified to provide
   better information for users to find what they are looking for.  They come
   from somewhere?
Not sure that there is a library as such. At least some of them
are defined in ZPublisher/HTTPResponse.py, but others come from
whatever traceback occurred.

   Formulator allows you to customize your error messages. It would be great
  if Zope_Error handling were that friendly.
  
Can't comment on Formulator - never used it.
  
Please look at my proposal on dev.zope.org and see if it addresses
your particular case - if not, please add a comment or email me.

  
   Steve Alexander writes:
 seb bacon wrote:

  I don't believe there is a clean way.  I've changed the source not to
  display its own html at all.  It's not nice, but I suppose that's the
  benefit of OSS.


 Is there a FishBowl proposal on remedying this? If not, there
   should be one.

 Perhaps someone who has this itch to scratch can get the ball rolling?

   First, thanks for the quick response.
  
   Secondly, I would be willing to start this process, but my
   knowledge of Zope internals is patchy at best, so I might not
   be the best person for this. Still, if no-one else wants to,
   I will give it a go.
  
   Just to clarify, I am only concerned at present with the code in
   HTTPResponse that, in the case of an exception, scans for
   !doctype html or html, and wraps them in html if these are
   not found. (Seb, does this cover the problems you experienced?)
  
   I think there is a more general problem of making Zope
   content-neutral, but that is a proposal for another time.
  
   Regards,
  
   Noel Duffy.
  
  

Cheers,

Noel.


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



Re: [Zope-dev] Small ZMI enhancement

2001-10-19 Thread Andreas Jung

It's in the CVS now.

Thanks,
Andreas
- Original Message -
From: Casey Duncan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 11:45
Subject: [Zope-dev] Small ZMI enhancement


 When working in versions, it is currently a pain to get to the current
version you
 are working in. Since the ZMI displays the path to the current version at
the top,
 I thought, why now make this a link to the version so that you can get
there in
 one click and manage it?

 Here is the patch to lib/python/App/dtml/manage_tabs.dtml:

 *** manage_tabs.dtml~ Fri Oct 19 11:34:11 2001
 --- manage_tabs.dtml Fri Oct 19 11:37:48 2001
 ***
 *** 161,167 

   dtml-if Zope-Version
   div class=system-msg
 ! emYou are currently working in version dtml-var Zope-Version
html_quote/em
   /div
   /dtml-if
   /dtml-unless
 --- 161,167 

   dtml-if Zope-Version
   div class=system-msg
 ! emYou are currently working in version a
href=dtml-SERVER_URL;dtml-Zope-Version;/manage_maindtml-var
Zope-Version html_quote/a/em
   /div
   /dtml-if
   /dtml-unless

 Anyone object to putting this in the core?

 Enjoy.

 /---\
   Casey Duncan, Sr. Web Developer
   National Legal Aid and Defender Association
   [EMAIL PROTECTED]
 \---/

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



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



[Zope-dev] Anyone know how to add a property to a Zope Product (not its instances)?

2001-10-19 Thread Craeg K. Strong

I am developing a new Zope product in python.  Normally one adds 
properties to a product like so:

class newProduct(SimpleItem, etc):

meta_type 'NewProduct'

_properties = (
 {'id': 'title', 'type':'string'},
 { 'id':'description','type':'string'},
 {'id':'foobar' , 'type':'string'},
)

   . . .

This defines properties for instances of the new Product.   But I want 
to add properties for the product itself.
These properties would show up in the property sheet of the PRODUCT, not 
its instances-- ie in
Root Folder/Control_Panel/Products/NewProduct on the Properties tab.

By default, Zope adds the title and version properties, for which it 
gets the value from version.txt and meta_type,
but does anyone know a way to add more?

Thanks in advance,

--Craeg


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



[Zope-dev] Zope 2.4.2 Error

2001-10-19 Thread E. Seifert

Hi list,

I just installed the 2.4.2 update over my Linux Zope 2.4.1 and I get the
following traceback:

Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in
publish_module
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in
zpublisher_exception_hook
(Object: de)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: index_html)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: index_html)
  File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 199, in __call__
(Object: index_html)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
in __call__
(Object: index_html)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 188, in __call__
(Object: standard_html_header)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
in __call__
(Object: standard_html_header)
  File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
17, in __str__
(Object: standard_site_menue)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in __call__
(Object: render)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
in __call__
(Object: render)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770, in
renderwob
(Object: objectValues(['SimpleNav Element']))
  File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
17, in __str__
(Object: ab)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in __call__
(Object: render)
KeyError: validate

Is there someone who can help me?

TIA
Erich


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



[Zope-dev] Python 2.2a1

2001-10-19 Thread Andy McKay

Is out and:

Large file support is now enabled on Win32 and Win64 platforms, and
automatically configured (at least on Linux and Solaris).

Cool, that will mean there will be less worries about Zope users hitting the
2 gig limit.

Cheers.
--
  Andy McKay.




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



RE: [Zope-dev] Zope 2.4.2 Error

2001-10-19 Thread E. Seifert

Oh, I forgot to mention that I also get the following message after starting
Zope up the first time:

snippet
/usr/local/zope/lib/python/SearchIndex/__init__.py:9
1: DeprecationWarning: The usage of the SearchIndex package is deprecated
since
Zope 2.4.
This package is only kept for backwards compatibility for a while
and will go away in a future release.

Please use instead the re-factored modules in Products/PluginIndexes.

  warnings.warn(The usage of the SearchIndex package is deprecated since \
/snippet

Erich


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
 Of E. Seifert
 Sent: Friday, October 19, 2001 11:01 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope-dev] Zope 2.4.2 Error


 Hi list,

 I just installed the 2.4.2 update over my Linux Zope 2.4.1 and I get the
 following traceback:

 Traceback (innermost last):
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in
 publish_module
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in
 publish
   File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in
 zpublisher_exception_hook
 (Object: de)
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in
 publish
   File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160,
 in mapply
 (Object: index_html)
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in
 call_object
 (Object: index_html)
   File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 199,
 in __call__
 (Object: index_html)
   File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
 in __call__
 (Object: index_html)
   File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 188, in __call__
 (Object: standard_html_header)
   File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
 in __call__
 (Object: standard_html_header)
   File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
 17, in __str__
 (Object: standard_site_menue)
   File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in __call__
 (Object: render)
   File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546,
 in __call__
 (Object: render)
   File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770, in
 renderwob
 (Object: objectValues(['SimpleNav Element']))
   File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line
 17, in __str__
 (Object: ab)
   File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in __call__
 (Object: render)
 KeyError: validate

 Is there someone who can help me?

 TIA
 Erich


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



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



Re: [Zope-dev] Zope 2.4.2 Error

2001-10-19 Thread Andreas Jung

Jup, I assume you are using some 3rd party products that
still use the old SearchIndex stuff. Nothing to worry about
-just a warning.

Andreas
- Original Message -
From: E. Seifert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 17:31
Subject: RE: [Zope-dev] Zope 2.4.2 Error


 Oh, I forgot to mention that I also get the following message after
starting
 Zope up the first time:

 snippet
 /usr/local/zope/lib/python/SearchIndex/__init__.py:9
 1: DeprecationWarning: The usage of the SearchIndex package is deprecated
 since
 Zope 2.4.
 This package is only kept for backwards compatibility for a while
 and will go away in a future release.

 Please use instead the re-factored modules in Products/PluginIndexes.

   warnings.warn(The usage of the SearchIndex package is deprecated since
\
 /snippet

 Erich


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
  Of E. Seifert
  Sent: Friday, October 19, 2001 11:01 PM
  To: [EMAIL PROTECTED]
  Subject: [Zope-dev] Zope 2.4.2 Error
 
 
  Hi list,
 
  I just installed the 2.4.2 update over my Linux Zope 2.4.1 and I get the
  following traceback:
 
  Traceback (innermost last):
File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in
  publish_module
File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in
  publish
File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in
  zpublisher_exception_hook
  (Object: de)
File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in
  publish
File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160,
  in mapply
  (Object: index_html)
File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in
  call_object
  (Object: index_html)
File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 199,
  in __call__
  (Object: index_html)
File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
546,
  in __call__
  (Object: index_html)
File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 188, in
__call__
  (Object: standard_html_header)
File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
546,
  in __call__
  (Object: standard_html_header)
File /usr/local/zope/lib/python/Products/Renderable/Renderable.py,
line
  17, in __str__
  (Object: standard_site_menue)
File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in
__call__
  (Object: render)
File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
546,
  in __call__
  (Object: render)
File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770,
in
  renderwob
  (Object: objectValues(['SimpleNav Element']))
File /usr/local/zope/lib/python/Products/Renderable/Renderable.py,
line
  17, in __str__
  (Object: ab)
File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in
__call__
  (Object: render)
  KeyError: validate
 
  Is there someone who can help me?
 
  TIA
  Erich
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 


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




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



Re: [Zope-dev] Python 2.2a1

2001-10-19 Thread Bill Anderson

On Fri, 2001-10-19 at 15:30, Andy McKay wrote:
 Is out and:
 
 Large file support is now enabled on Win32 and Win64 platforms, and
 automatically configured (at least on Linux and Solaris).
 
 Cool, that will mean there will be less worries about Zope users hitting the
 2 gig limit.

As soon as Zope supports Python 2.2 :^)=
It will be nice, though.

Bill




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



Re: [Zope-dev] Small ZMI enhancement

2001-10-19 Thread Chris McDonough

Is the change going to be documented anywhere?

Andreas Jung wrote:
 It's in the CVS now.
 
 Thanks,
 Andreas
 - Original Message -
 From: Casey Duncan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 19, 2001 11:45
 Subject: [Zope-dev] Small ZMI enhancement
 
 
 
When working in versions, it is currently a pain to get to the current

 version you
 
are working in. Since the ZMI displays the path to the current version at

 the top,
 
I thought, why now make this a link to the version so that you can get

 there in
 
one click and manage it?

Here is the patch to lib/python/App/dtml/manage_tabs.dtml:

*** manage_tabs.dtml~ Fri Oct 19 11:34:11 2001
--- manage_tabs.dtml Fri Oct 19 11:37:48 2001
***
*** 161,167 

  dtml-if Zope-Version
  div class=system-msg
! emYou are currently working in version dtml-var Zope-Version

 html_quote/em
 
  /div
  /dtml-if
  /dtml-unless
--- 161,167 

  dtml-if Zope-Version
  div class=system-msg
! emYou are currently working in version a

 href=dtml-SERVER_URL;dtml-Zope-Version;/manage_maindtml-var
 Zope-Version html_quote/a/em
 
  /div
  /dtml-if
  /dtml-unless

Anyone object to putting this in the core?

Enjoy.

/---\
  Casey Duncan, Sr. Web Developer
  National Legal Aid and Defender Association
  [EMAIL PROTECTED]
\---/

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


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


-- 
Chris McDonoughZope Corporation
http://www.zope.org http://www.zope.com
Killing hundreds of birds with thousands of stones


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



Re: [Zope-dev] Zope Cygwin

2001-10-19 Thread Chris McDonough

 Note that after Ctrl-C'ing out of wget
 index.html has been recieved
 and that its length is 3022 bytes !!
 
 I know I am missing something obvious here, but 
 why was Chris getting 194 bytes with a VC++ compiled Zope ??

I was wgetting a very short page... one that was essentially an HTML 
representation of This is the contents of the foobar folder.  OTOH, 
you're probably looking at the QuickStart page or something, which is 
much longer.  The content length is the size of the payload of the 
response (the number of bytes that makes up, in this case, the HTML).

I haven't had a chance to look further at the problem unfortunately.

-- 
Chris McDonoughZope Corporation
http://www.zope.org http://www.zope.com
Killing hundreds of birds with thousands of stones


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