[Zope-dev] Zope 2.3.3 back-downgrade

2002-02-14 Thread Dario Lopez-Kästen

Hi!

If I use PythonScripts, are there any serious problems with downgrading a
Zope-2.4.3/2.4.4 to 2.3.3?

I cant remember if 2.3.3 had pythonscripts, but i recall that there was a
product that later became officially pythonscripts...

Are there any other incomaptibilities that anyone knows about?

Thanks.

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services



___
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.4 to Zope 2.3.3 downgrade - is it to ask for trouble?

2002-02-14 Thread Dario Lopez-Kästen

Hi!

If I use PythonScripts, are there any serious problems with downgrading a
Zope-2.4.3/2.4.4 to 2.3.3?

I cant remember if 2.3.3 had pythonscripts, but i recall that there was a
product that later became officially pythonscripts...

Are there any other incomaptibilities that anyone knows about and I should
be aware of?

Thanks.

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services




___
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] Oops! Sorry!

2002-02-14 Thread Dario Lopez-Kästen

Apologies for the repeated messages, and for using a crappy mail client like
Outlook Express.

/dario - beating Outlook to death...


___
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] FileSystem based products markup.

2002-02-14 Thread Romain Slootmaekers

Yo,

We have a file system based product, and some dtml-methods are defined the
usual way

 myMethod=DTMLFile('myMethod',globals())

We want our webbies to be able to add some eye-candy. But how would they
go about if they want to add some images ?

Remember: THEY ARE WEBBIES, so it has to be really easy and simple and
changeable, so no 
  
  myImage=ImageFile(..)

  solutions are possible.


Ideas appreciated
Sloot.


___
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] FileSystem based products markup.

2002-02-14 Thread Casey Duncan

On Thursday 14 February 2002 08:13 am, Romain Slootmaekers allegedly wrote:
 Yo,

 We have a file system based product, and some dtml-methods are defined the
 usual way

  myMethod=DTMLFile('myMethod',globals())

 We want our webbies to be able to add some eye-candy. But how would they
 go about if they want to add some images ?

 Remember: THEY ARE WEBBIES, so it has to be really easy and simple and
 changeable, so no

   myImage=ImageFile(..)

   solutions are possible.


 Ideas appreciated
 Sloot.

FYI: This list is for messages concerning development of Zope itself, not 
developing with Zope.

Anyway, to answer your question, If the classes that your product defines 
support acquisition (the subclass Acquisition.Implicit or some other base 
class that does, such as SimpleItem.Item) then you can put the Images in the 
ZODB anywhere you like, so long as they can be acquired by the instances of 
your product class(es).

Another idea would be to make your instances ObjectManagers (just subclass 
OFS.ObjectManager.ObjectManager) and the webbies can put the images 
directly in the instances. They would need to know what ids to use so that 
the dtml could pick them up properly.

To make the dtml work without the images you can sprinkle in missing 
attributes so they fail gracefully if the image is not found:

dtml-var name=some_image missing

Yet another idea (if the images are global to all instances of the product) 
would be to create a filesystem directory in the product (or anywhere on the 
server readable from Zope) that the webbies can save their image files 
directly into. You could then code the product so that it scans the directory 
and loads each image using the ImageFile method. The id could be based on the 
file name. Or, just make it pull them from the directory on the fly by 
defining a getImage method or somesuch that takes a file name, and loads it 
on demand. That way no code changes would be necessary to add new images to 
the product.

hth,
/---\
  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] Document Library Question

2002-02-14 Thread Miguel Rodríguez




I have 
modifiedthe DocumentStore.py file.
After making the 
necessary corrections, I have noticed that when I use the DocumentLibrary, the 
modificationsstill have not beencorrected.
what I´m doing wrong?.
Perhaps somebody had implemented what I´m trying to do: 
to make DocumentLibrary able to upload multiple files ( not only one by one), in 
this case please send me an email back. All new ideas will be 
welcomed!!
Thanks you.

 
 
DISCLAIMER **This message is intended 
exclusively for the named person. It may contain confidential, propietary or 
legally privileged information. No confidentiality or privilege is waived or 
lost by any mistransmission. If you receive this message in error, please 
immediately delete it and all copies of it from your system, destroy any hard 
copies of it an notify the sender. Your must not, directly or indirectly, use, 
disclose, distribute, print, or copy any part of this message if you are not the 
intended recipient. Any views expressed in this message are those of the 
individual sender, except where the message states otherwise and the sender is 
authorised to state them to be the views of 'CÁTENON'. Please note that internet 
e-mail neither guarantees the confidentiality nor the proper receipt of the 
message sent. If the addressee of this message does not consent to the use of 
internet e-mail, please communicate it to us 
immediately. 
*** 
AVISO LEGAL *Este mensaje es solamente para la 
persona a la que va dirigido. Puede contener información confidencial o 
legalmente protegida. No hay renuncia a la confidencialidad o privilegio por 
cualquier transmisión mala/ errónea. Si usted ha recibido este mensaje por 
error, le rogamos que borre de su sistema inmediatamente el mensaje así como 
todas sus copias, destruya todas las copias del mismo de su disco duro y 
notifique al remitente. No debe, directa o indirectamente, usar, revelar, 
distribuir, imprimir o copiar ninguna de las partes de este mensaje si no es 
usted el destinatario. Cualquier opinión expresada en este mensaje proviene del 
remitente, excepto cuando el mensaje establezca lo contrario y el remitente esté 
autorizado para establecer que dichas opiniones provienen de 'CÁTENON'. Nótese 
que el correo electrónico vía Internet no permite asegurar ni la 
confidencialidad de los mensajes que se transmiten ni la correcta recepción de 
los mismos. En el caso de que el destinatario de este mensaje no consintiera la 
utilización del correo electrónico vía Internet, rogamos lo ponga en nuestro 
conocimiento de manera 
inmediata. 






Re: [Zope-dev] Zope builds (new Intel C++ compiler)

2002-02-14 Thread Morten W. Petersen

On Tue, Feb 12, 2002 at 12:17:28PM +, seb bacon wrote:
  However, I do build Python with gcc 3.1 (cvs) and Python 2.1.2 and with 
  various compile options can get a 17% speedup.  
 
 Could you share the compile options with us?

BTW seb, I tried compiling Python with the pgcc compiler [1] and that
gave a perfomance increase of 15% on the pystones test.

[1] http://www.goof.com/pcg/

-Morten



msg09402/pgp0.pgp
Description: PGP signature


Re: [Zope-dev] Zope 2.4.4b1 dumps core

2002-02-14 Thread Jeremy Hylton

 AJ == Andreas Jung [EMAIL PROTECTED] writes:

  AJ Does this problem persist when you remove the 3rd-party products
  AJ ?  Are you running Zope with enabled garbage collector ?

Just a reminder that you *should* be running with the garbage
collector enabled.  We are aware of no current bugs in the garbage
collector, which has been in use since Python 2.0.

If you see a crash and the gdb stack trace points to the garbage
collector, it is almost surely a sign of memory corruption caused by
bugs elsewhere in Python or in a C extension.  You can prevent those
crashes by disabling the garbage collector, but you are more likely to
get bizarre errors or storage corruptions since the interpreter memory
is corrupted.

Jeremy



___
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.4b1 dumps core

2002-02-14 Thread Jeremy Hylton

Python 2.1.2 has some extra safety checks that will immediately detect
the stack overflow bugs that caused problems with PythonScripts before
2.4.4.  The fact that you're seeing crashes in the garbage collector
and not assertion failures in Python/ceval.c makes me think the
problem isn't with the PythonScripts.  I wouldn't rule it out
completely, but it seems unlikely.

Does the community have any Zen about how to narrow down bugs like
this?  It seems a daunting task, in general, because it's not obvious
what particular request exercises the bug, and the error report
doesn't come until long after the bug occurs.

I wonder if you could crank up the garbage collection frequency --
either use gc.set_threshold() to see the threshold very low or add an
explicit call to gc.collect() after each request.  If you're lucky,
this would cause the bug to be detect -- like right after the request
that exercised the bug.

Where exactly would you put the gc.collect() call to make this work?

Jeremy




___
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] Document Library Question

2002-02-14 Thread Chris Withers

This is not a question about development OF zope, why are you mailing the
zope-dev list?

Why are you mailing in HTML when explicitly requested not to?

Chris

PS: I can't help with DocumentLibrary, why don't you mail the product's author?

___
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 )