Re: [Zope] Second Request:: Where Is This Module???

2006-08-09 Thread Patrick Decat

Check in zope\lib\python\App, it is there : Management.py

On 8/9/06, beno [EMAIL PROTECTED] wrote:

Hi;
I've got an error in my error log, but I can't figure out where
App.Management lives:

Traceback (innermost last):
 Module ZPublisher.Publish, line 101, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module App.Management, line 85, in manage_workspace
Redirect: http://202.71.106.119:7080/error_log/manage_main

Please advise.
TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Nested dtml tags

2006-06-20 Thread Patrick Decat

Hi, no need for nested dtml :

select name=MODLEVEL size=1
option value=1dtml-if expr=MODLEVEL == '1' selected/dtml-if1/option
option value=2dtml-if expr=MODLEVEL == '2' selected/dtml-if2/option
/select

On 6/20/06, Jonathan Bowlas [EMAIL PROTECTED] wrote:

Hi All,

How can I do this with dtml?

select name=MODLEVEL size=1
dtml-if expr=dtml-var name=MODLEVEL == 1 #I need an
alternative to this.
option value=1 selected=selected1/option
option value=22/option
Etc, etc.

Hope someone can help.

Jon


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


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] reading cookies from external methods

2006-03-31 Thread Patrick Decat
Hi,

that's well documented in the Zope Book :
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/view

Short answer :
request = context.REQUEST
response = request.RESPONSE

Regards,
Patrick.

On 3/31/06, Jed Parsons [EMAIL PROTECTED] wrote:

 Oh, cool.  That's kind of magical. :)

 It looks like I can't get the RESPONSE that way, so if I want to do a
 RESPONSE.setCookie(...) somewhere, I have to pass REQUEST and RESPONSE
 as before, yes?

 Thanks much,
 j

 Jonathan wrote:
 
  - Original Message - From: Jed Parsons [EMAIL PROTECTED]
  To: zope@zope.org
  Sent: Friday, March 31, 2006 2:04 PM
  Subject: [Zope] reading cookies from external methods
 
 
 
  This is probably a silly question, but how does one read cookies from
  an external method without passing REQUEST to the method?
 
  The method should be callable both from dtml and from other external
  methods.
 
  I know I can do this:
 
  def foo(REQUEST):
  cookie = REQUEST.get('some_cookie')
  return cookie
 
 
  You just need to access REQUEST from within your external method, eg:
 
  def foo(self, otherparms...)
 
REQUEST = self.REQUEST
cookie = REQUEST.get('some_cookie')
 
 
  That should do it!
 
  HTH
 
  Jonathan
 
 
 

 --
 Jed Parsons   Industrial Light + Magic  (415) 746-2974

 grep(do{for(ord){(!$_print$s\n)||(($O+=(($_-1)%6+1)and
 grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6}},(split(//,
 ++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0.  What!?)));
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

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


[Zope-dev] Patch that makes the 'MS-Author-Via' header configurable in zope.conf

2006-03-27 Thread Patrick Decat
Hi all,

two weeks ago, I submitted a patch against Zope-2.9.1 that makes the
'MS-Author-Via' header configurable in zope.conf (
http://www.zope.org/Collectors/Zope/1441 ) but I did not hear a single
comment about it, so I'm guessing nobody noticed it.

As the original collector entry referred to Zope 2.7.2, should I
submit it in its own collector entry for it to be taken into account?

The patch :
http://www.zope.org/Collectors/Zope/1441/diff-Zope-2.9.1-Zope-2.9.1-patch-webdav-msoffice.txt/view

It is documented as following :

Set this directive to 'on' to enable WebDAV compatibility for Microsoft
software. Microsoft implementation of WebDAV uses the non-standard
'MS-Author-Via' header to determine if it should use WebDAV.
This is disabled by default since it makes a lot of standards-compliant
things unhappy AND it tricks Microsoft Office into trying to edit Office
files stored in Zope via WebDAV even when the user isn't allowed to edit
them and is only trying to download them.
Check this collector entry for more information:
http://www.zope.org/Collectors/Zope/1441

Regards,
Patrick.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] change objects id

2006-03-27 Thread Patrick Decat
container.manage_renameObject(old_id, new_id)

On 3/27/06, George [EMAIL PROTECTED] wrote:
 How can I change an objects id from a python script? Sorry if it's sth
 obvious, can't figute it out...

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



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


Re: [Zope] Upgrading to Zope 2.9.1

2006-03-09 Thread Patrick Decat
Attached is is screenshot of the error message.

There is no error in the event log.

Steps to reproduce :
- Create a Python Script on the file system with Windows style line-endings
- Go to http://localhost:8080/manage
- Click the drop down list to add a Python Script
- Enter test_eol in the id field
- Click Browse to find and select your script on the filesystem
- Click Add
- Error : invalid syntax (Script (Python), line 2)
- Click Save changes - the error is gone.

System information :
- Windows 2000 SP4 (client and server)
- Zope 2.9.1 (fresh install with
http://www.zope.org/Products/Zope/2.9.1/Zope-2.9.1-win32.exe
installer)
- Only product installed : ExternalEditor 0.9.1

# Zope version: (Zope 2.9.1, python 2.4.2, win32)
# Python version: 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]
# System Platform: win32
# SOFTWARE_HOME: C:\Program Files\Zope-2.9.1\lib\python
# INSTANCE_HOME: D:\Zope-Instance
# CLIENT_HOME: D:\Zope-Instance\var
# Process ID: 1080 (1460)
# Running for: 14 min 14 sec
# sys.path:
  D:\Zope-Instance\lib\python
  D:\Zope-Instance\lib\python
  C:\Program Files\Zope-2.9.1\lib\python\Zope2\Startup
  C:\Program Files\Zope-2.9.1\lib\python
  C:\Program Files\Zope-2.9.1\lib\python
  C:\Program Files\Zope-2.9.1\bin\python24.zip
  C:\Program Files\Zope-2.9.1\bin\DLLs
  C:\Program Files\Zope-2.9.1\bin\lib
  C:\Program Files\Zope-2.9.1\bin\lib\plat-win
  C:\Program Files\Zope-2.9.1\bin\lib\lib-tk
  C:\Program Files\Zope-2.9.1\bin
  C:\Program Files\Zope-2.9.1\bin\lib\site-packages
  C:\Program Files\Zope-2.9.1\bin\lib\site-packages\win32
  C:\Program Files\Zope-2.9.1\bin\lib\site-packages\win32\lib
  C:\Program Files\Zope-2.9.1\bin\lib\site-packages\Pythonwin
On 3/10/06, Brian Sullivan [EMAIL PROTECTED] wrote:

 Something like:

 invalid syntax (Script (Python), line 3)

 (in a pink box when the script was opened for editing via the ZMI)

 Since I saved the script and the problem went away I can't be totally sure.
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )



zope-2.9.1-windows-eol.png
Description: PNG image
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrading to Zope 2.9.1

2006-03-08 Thread Patrick Decat
Hi,

On 3/8/06, Brian Sullivan [EMAIL PROTECTED] wrote:
 I am in the process of testing an upgrade from a Zope 2.8.4 system  to
 a Zope 2.9.1 system.

 The process I used:

 1) Install 2.9.1 on a Win2003 system (it happens to be the same one
 that the 2.8.4 system is running but I changed the config so the ports
 don't conflict). The installation is successful

 2) Copy the Product directory from my functioning 2.8.4 system
 instance to the 2.9.1 instance

 3) copy the ZODB from the functioning 2.8.4 system to the 2.9.1 system

 All appears to go well -- the 2.9.1 system appears to be running
 everything from the 2.8.4 system correctly. A deeper check though
 shows that a few Python scripts in the ZODB (this in a system that has
 20 or 30 scripts) fail. Examining the scripts indicates an error at
 line 3 -- but no such error can be found, however saving the script
 with no changes eliminates the error and also causes the script to now
 function.

 After finding and correcting these scripts everything seems to be working 
 well.

 Any idea what happened during the upgrade to cause this strange
 behaviour and how can I avoid it?

 I will have to go through a similar upgrade at a customer's site and
 would like to avoid hand checking every script if I can avoid it.

I had the same problem : Windows CR/LF line endings are not supported
anymore for PythonScripts.
According to Dieter Maurer, it has to do with Python 2.4 rather than Zope 2.9.

Regards,
Patrick.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: (microsoft) webdav and zope 2.8.4

2006-03-07 Thread Patrick Decat
On 3/2/06, Patrick Decat [EMAIL PROTECTED] wrote:

 PS: Just noticed Tres' comment about comming up with a patch which
 makes the header
 addition configurable. I'll try do that on my next Zope upgrade.

 Regards,
 Patrick.

I just upgraded from Zope 2.9.0 to Zope 2.9.1 and submitted a patch (
http://www.zope.org/Collectors/Zope/1441 ) that makes the
'MS-Author-Via' header configurable.

Regards,
Patrick.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: (microsoft) webdav and zope 2.8.4

2006-03-03 Thread Patrick Decat
You're right, I've copied/pasted the same patch twice, sorry !

I use both the Ressource.py and Collection.py patches to make O2K3 happy.

Regards,
Patrick.

On 3/3/06, Einar Næss Jensen [EMAIL PROTECTED] wrote:
 -- Forwarded message --
 From: Einar Næss Jensen [EMAIL PROTECTED]
 Date: Mar 3, 2006 9:10 AM
 Subject: Re: [Zope] Re: (microsoft) webdav and zope 2.8.4
 To: Patrick Decat [EMAIL PROTECTED]


 On 3/2/06, Patrick Decat [EMAIL PROTECTED] wrote:

 
  Then the following to Resource.py :
 
  bash-3.00$ diff -c Resource.py Resource.py-patched
  *** Resource.py Thu Mar  2 16:37:27 2006
  --- Resource.py-patched Thu Mar  2 16:37:25 2006
  ***
  *** 71,76 
  --- 71,77 
if not hasattr(response, '_server_version'):
response.setHeader('Connection', 'close')
response.setHeader('Date', rfc1123_date(), 1)
  + response.setHeader('MS-Author-Via', 'DAV')
 
# HTTP Range support
if HTTPRangeInterface.isImplementedBy(self):
 
  Works for me with Office 2003 products.

 I think the correct is collection.py, and the missing line is line nr47.
 at least it worked for me after that.



 --
 --
 Einar Næss Jensen
 http://einar.nidelven-it.no/einarblog
 http://www.homemade.no
 tlf: +47 90990249
 (\__/)
 (='.'=)This is Bunny. Copy and paste bunny into your
 ()_()signature to help him gain world domination.


 --
 --
 Einar Næss Jensen
 http://einar.nidelven-it.no/einarblog
 http://www.homemade.no
 tlf: +47 90990249
 (\__/)
 (='.'=)This is Bunny. Copy and paste bunny into your
 ()_()signature to help him gain world domination.
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

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


Re: [Zope] Re: (microsoft) webdav and zope 2.8.4

2006-03-02 Thread Patrick Decat
On 3/2/06, Einar Næss Jensen [EMAIL PROTECTED] wrote:
 On 3/2/06, Einar Næss Jensen [EMAIL PROTECTED] wrote:
  I'm trying to access a zope site via webdav on port 8181. Dreamweaver
  works ok, but the client in winXP do not want to connect with error:
  The folder you entered does not seem to be valid. Please choose another.


 And the question is: What may I do to enable microsoft client to talk
 to my zope server?
 I want to transfer a large amount of images into the zodb, and need an
 easy way of doing this (from windows).

Check this http://www.zope.org/Collectors/Zope/1441

Then apply the following patches to Zope/lib/python/webdav/Resource.py :

diff -c Resource.py Resource.py-patched
*** Resource.py Thu Mar  2 16:37:27 2006
--- Resource.py-patched Thu Mar  2 16:37:25 2006
***
*** 71,76 
--- 71,77 
  if not hasattr(response, '_server_version'):
  response.setHeader('Connection', 'close')
  response.setHeader('Date', rfc1123_date(), 1)
+ response.setHeader('MS-Author-Via', 'DAV')

  # HTTP Range support
  if HTTPRangeInterface.isImplementedBy(self):

Then the following to Resource.py :

bash-3.00$ diff -c Resource.py Resource.py-patched
*** Resource.py Thu Mar  2 16:37:27 2006
--- Resource.py-patched Thu Mar  2 16:37:25 2006
***
*** 71,76 
--- 71,77 
  if not hasattr(response, '_server_version'):
  response.setHeader('Connection', 'close')
  response.setHeader('Date', rfc1123_date(), 1)
+ response.setHeader('MS-Author-Via', 'DAV')

  # HTTP Range support
  if HTTPRangeInterface.isImplementedBy(self):

Works for me with Office 2003 products.

PS: Just noticed Tres' comment about comming up with a patch which
makes the header
addition configurable. I'll try do that on my next Zope upgrade.

Regards,
Patrick.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Using ParsedXML from Python script

2006-02-10 Thread Patrick Decat
Hi Brian,

unless it is mandatory for you to use ParsedXML for your XML needs,
you might want to check out Uche Ogbuji's Amara Toolkit (
http://uche.ogbuji.net/tech/4suite/amara/ ).
It provides a much more pythonic way of dealing with XML.

Regards,
Patrick.

On 2/10/06, Brian Sullivan [EMAIL PROTECTED] wrote:
 On 2/10/06, Sascha Welter [EMAIL PROTECTED] wrote:
 
  Is that the kind of thing you were looking for?
 

 Better than what I have now -- it might get me over the initial hump -- 
 thanks.
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

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


Re: [Zope] Using ParsedXML from Python script

2006-02-10 Thread Patrick Decat
I use it with Zope and Zope/CMF Content (Documents, Files,
ExternalFiles) from a custom filesystem product.

Regards,
Patrick.

On 2/10/06, Brian Sullivan [EMAIL PROTECTED] wrote:
 On 2/10/06, Patrick Decat [EMAIL PROTECTED] wrote:
  Hi Brian,
 
  unless it is mandatory for you to use ParsedXML for your XML needs,
  you might want to check out Uche Ogbuji's Amara Toolkit (
  http://uche.ogbuji.net/tech/4suite/amara/ ).
  It provides a much more pythonic way of dealing with XML.
 

 Well maybe more pythonic -- but seemingly not zopic?

 My Python use is in Zope. Or am I missing something?
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

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


Re: [Zope] No more CR/LF support in PythonScripts with Zope 2.9.0

2006-01-13 Thread Patrick Decat
On 1/13/06, Dieter Maurer [EMAIL PROTECTED] wrote:
 Patrick DECAT wrote at 2006-1-10 15:41 +0100:
 I just upgraded my application from Zope 2.8.5 to Zope 2.9.0 and
 noticed that PythonScript doesn't support CR/LF line endings anymore
 (a la Windows).
 Converting my scripts to the Unix format fixes the problem.
 
 Is this new behaviour intented ?

 I know that this behaviour occurs when you use Python 2.4.x.

 Did you switch the Python version as well?

Yes, I did.

Thanks for the information.

Best regards,
Patrick.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] cannot create an external method with zope-2.9.0

2006-01-11 Thread Patrick Decat
Hi,

I have no problems creating external methods in Zope 2.9.0.

Can you please confirm that your extensions directory is named
Extensions and not Extension?

Regards,
Patrick.

On 1/11/06, Joachim Schmitz [EMAIL PROTECTED] wrote:
 when I try to create an external method under 2.9.0 this fails with
 This is an install method in the Extension directory of the product
 WAeUP. The product is not broken, and this works under Zope-2.8.2.

 Traceback (innermost last):
Module ZPublisher.Publish, line 113, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 40, in call_object
Module Products.ExternalMethod.ExternalMethod, line 59, in
 manage_addExternalMethod
Module Products.ExternalMethod.ExternalMethod, line 111, in __init__
Module Products.ExternalMethod.ExternalMethod, line 134, in manage_edit
Module Products.ExternalMethod.ExternalMethod, line 141, in getFunction
Module App.Extensions, line 120, in getObject
 NotFound: The specified module, emWAeUP.install/em, couldn't be found.

 --
 Mit freundlichen GrüßenJoachim Schmitz
 ..
 AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
 Hüsgenstr. 33a .d-52457 Aldenhoven .f: +49-2464-905163


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

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


Re: [Zope] cannot create an external method with zope-2.9.0

2006-01-11 Thread Patrick Decat
On 1/11/06, joachim [EMAIL PROTECTED] wrote:
 Yes it is called Extensions, but is in the Product. As I said, the same
 works with the same Product on the same machine under Zope-2.8.2.

Like you, I put my extensions in my product rather than in the global
Extensions directory.

Can't see what going on with yours, sorry.

Regards,
Patrick.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] No more CR/LF support in PythonScripts with Zope 2.9.0

2006-01-10 Thread Patrick DECAT
Hi all,

I just upgraded my application from Zope 2.8.5 to Zope 2.9.0 and
noticed that PythonScript doesn't support CR/LF line endings anymore
(a la Windows).
Converting my scripts to the Unix format fixes the problem.

Is this new behaviour intented ?

Regards,
Patrick.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope-dev] Zope Windows setup

2005-04-14 Thread Patrick DECAT
Hi,

Zope 2.7 uses Innosetup. Check
http://cvs.zope.org/Packages/WinBuilders/README.txt?rev=1.9content-type=text/vnd.viewcvs-markup
for more information.

Regards,
Patrick.

2005/4/13, Manuel Markwort [EMAIL PROTECTED]:
 For my product i want to write my own Installshield setup. To make life
 easier I want to include the Windows setup of Zope 2.7.1 but I can't
 find the setup sources in cvs. I need this to manipulate the original
 Zope setup, as well.
 
 Thanks for advises,
 
 --
 Manuel Markwort (mailto:[EMAIL PROTECTED])
 Software-Development
 
 RATIO Entwicklungen GmbH
 Admiralitaetstrasse 59
 D-20459 Hamburg
 
 Phone: +49-40-369007-73
 Fax:   +49-40-369007-75
 
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 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  -  Zope-Dev@zope.org
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 )


Fwd: [Zope-dev] zope /tmp file usage

2005-03-31 Thread Patrick DECAT
I did not understand why people why replying the same answer as I did:
that simple I did not reply to the mailing list ;)


-- Forwarded message --
From: Patrick DECAT [EMAIL PROTECTED]
Date: Thu, 31 Mar 2005 11:50:56 +0200
Subject: Re: [Zope-dev] zope /tmp file usage
To: Pavel Zaitsev [EMAIL PROTECTED]


Hi Pavel,

when files are uploaded with WebDAV, they are part of an HTTP PUT request.

If the file is larger than LARGE_FILE_THRESHOLD, a temporary file is
created by the zhttp_collector in HTTPServer.py

class zhttp_collector:
def __init__(self, handler, request, size):
from ZServer import LARGE_FILE_THRESHOLD
self.handler = handler
self.request = request
if size  LARGE_FILE_THRESHOLD:
# write large upload data to a file
from tempfile import TemporaryFile
self.data = TemporaryFile('w+b')
else:
self.data = StringIO()
request.channel.set_terminator(size)
request.collector=self

Regards,
Patrick.

On Thu, 31 Mar 2005 01:52:11 -0500, Pavel Zaitsev [EMAIL PROTECTED] wrote:
 Hi,
 I am wondering what code in Zope 2.7.5-final potentially may use /tmp
 directory for temprorary files.
 I am using zope over webdav and sometimes webdav tries to create a tmp
 file, of some sort and some parts of
 the system lock up.  There are xml parsers,mime decoders all of which do
 have binary code bits, so I asking for expert
 advice, if someone knows of what circuimstances zope would use /tmp
 directory to create a file...
 your help will be greatly appreciated.
 Pavel

 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 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  -  Zope-Dev@zope.org
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] zope /tmp file usage

2005-03-31 Thread Patrick DECAT
I did not understand why people was replying the same answer as I did.
That's simple: I did not reply to the mailing list ;)


-- Forwarded message --
From: Patrick DECAT [EMAIL PROTECTED]
Date: Thu, 31 Mar 2005 11:50:56 +0200
Subject: Re: [Zope-dev] zope /tmp file usage
To: Pavel Zaitsev [EMAIL PROTECTED]

Hi Pavel,

when files are uploaded with WebDAV, they are part of an HTTP PUT request.

If the file is larger than LARGE_FILE_THRESHOLD, a temporary file is
created by the zhttp_collector in HTTPServer.py

class zhttp_collector:
def __init__(self, handler, request, size):
from ZServer import LARGE_FILE_THRESHOLD
self.handler = handler
self.request = request
if size  LARGE_FILE_THRESHOLD:
# write large upload data to a file
from tempfile import TemporaryFile
self.data = TemporaryFile('w+b')
else:
self.data = StringIO()
request.channel.set_terminator(size)
request.collector=self

Regards,
Patrick.

On Thu, 31 Mar 2005 01:52:11 -0500, Pavel Zaitsev [EMAIL PROTECTED] wrote:
 Hi,
 I am wondering what code in Zope 2.7.5-final potentially may use /tmp
 directory for temprorary files.
 I am using zope over webdav and sometimes webdav tries to create a tmp
 file, of some sort and some parts of
 the system lock up.  There are xml parsers,mime decoders all of which do
 have binary code bits, so I asking for expert
 advice, if someone knows of what circuimstances zope would use /tmp
 directory to create a file...
 your help will be greatly appreciated.
 Pavel

 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 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  -  Zope-Dev@zope.org
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] Patch: Enable Unicode in ParsedXML

2005-03-24 Thread Patrick DECAT
Hi,

this is my first post to this list so I'm not sure this is proper way
to submit a patch. If it is not, please direct me to the correct
place.

This patch enables Unicode characters in qualified names for XML
documents stored with the ParsedXML product.

Best regards,
Patrick.

[EMAIL PROTECTED] /cygdrive/c/Program
Files/Zope-2.7.2-0/Zope-Instance/Products/ParsedXML/DOM
$ diff -c Core.py.orig Core.py
*** Core.py.origTue Apr 27 16:06:20 2004
--- Core.py Thu Mar 24 12:14:26 2005
***
*** 70,76 
  return None
  return 1  # Indicates passed.
  else:
! _ok_qualified_name = sre.compile('[a-zA-Z_:][\w\.\-_:]*\Z').match
  del sre

  _TupleType = type(())
--- 70,76 
  return None
  return 1  # Indicates passed.
  else:
! _ok_qualified_name =
sre.compile('[a-zA-Z_:][\w\.\-_:]*\Z',sre.UNICODE).match
  del sre

  _TupleType = type(())
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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: Patch: Enable Unicode in ParsedXML

2005-03-24 Thread Patrick DECAT
Perhaps I should have submitted it to the Zope Issue Collector?


On Thu, 24 Mar 2005 12:27:57 +0100, Patrick DECAT [EMAIL PROTECTED] wrote:
 Hi,
 
 this is my first post to this list so I'm not sure this is proper way
 to submit a patch. If it is not, please direct me to the correct
 place.
 
 This patch enables Unicode characters in qualified names for XML
 documents stored with the ParsedXML product.
 
 Best regards,
 Patrick.
 
 [EMAIL PROTECTED] /cygdrive/c/Program
 Files/Zope-2.7.2-0/Zope-Instance/Products/ParsedXML/DOM
 $ diff -c Core.py.orig Core.py
 *** Core.py.origTue Apr 27 16:06:20 2004
 --- Core.py Thu Mar 24 12:14:26 2005
 ***
 *** 70,76 
   return None
   return 1  # Indicates passed.
   else:
 ! _ok_qualified_name = sre.compile('[a-zA-Z_:][\w\.\-_:]*\Z').match
   del sre
 
   _TupleType = type(())
 --- 70,76 
   return None
   return 1  # Indicates passed.
   else:
 ! _ok_qualified_name =
 sre.compile('[a-zA-Z_:][\w\.\-_:]*\Z',sre.UNICODE).match
   del sre
 
   _TupleType = type(())

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Patch: Enable Unicode in ParsedXML

2005-03-24 Thread Patrick DECAT
Hi Clemens,

On Thu, 24 Mar 2005 12:42:04 +0100, Clemens Robbenhaar
[EMAIL PROTECTED] wrote:

  First, thanks for the patch!

You're welcome.

  Second, ParsedXML is not a core Zope product (normally you should have
 to install it separately). zope-dev is not exactly the right list to
 post for add-on products most of the time.

Indeed, but as I've located this product the Zope CVS
(http://cvs.zope.org/Products/ParsedXML/), I thought it could

  Ususally there is a README.txt in such a separate product containing
 contact information for patches, etc.

I admit I forgot to check the README.txt for this information.

  I just checked the ParsedXML README and the information there is quite
 out of date and contains a couple of stale links ... I will bug Martijn
 Faassen as he is the current maintainer ;-)

Thanks. I also thought about bugging him directly, but I eventually
decided to post in this mailing list as I noticed he is subscribed to
it.

  And, no, the zope core collector is no good place for it.

Ok.

 Cheers,
 Clemens

Best regards,
Patrick.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )