[Zope-dev] Zope Tests: 9 OK

2006-11-02 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Wed Nov  1 11:00:02 2006 UTC to Thu Nov  2 11:00:02 2006 UTC.
There were 9 messages: 9 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.6 Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Wed Nov  1 21:24:40 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006449.html

Subject: OK : Zope-2.6 Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Wed Nov  1 21:26:10 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006450.html

Subject: OK : Zope-2.7 Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Wed Nov  1 21:27:40 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006451.html

Subject: OK : Zope-2.7 Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Wed Nov  1 21:29:10 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006452.html

Subject: OK : Zope-2.8 Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Wed Nov  1 21:30:40 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006453.html

Subject: OK : Zope-2.8 Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Wed Nov  1 21:32:11 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006454.html

Subject: OK : Zope-2.9 Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Wed Nov  1 21:33:41 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006455.html

Subject: OK : Zope-2.10 Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Wed Nov  1 21:35:11 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006456.html

Subject: OK : Zope-trunk Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Wed Nov  1 21:36:41 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006457.html

___
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] Maintainer of Zope 2 Windows builds?

2006-11-02 Thread Chris Withers

Christian Steinhauer wrote:
since month there is no new windows build of the zope2 releases. It would be nice if someone can make a decision who can take care of the build for the windows version. 


No one can force someone to do this, we need a volunteer. I was happy 
doing it but I don't have access to the toolset anymore.


I believe Sidnei @ Enfold was on the verge of beginning to do this but 
seems to have gone quiet of late :-S


Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
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] External Method = Slow; Shell Script = Fast

2006-11-02 Thread Maciej Wisniowski




ZopeProfiler seems to come with no instructions to install. Can you 
advise?


I haven't installed it for years, but i seem to remember that it 
installed just like a normal product (ie. install in the Products 
directory, restart zope, it shows up automagically - in linux that is, 
i don't do windows). Wasn't there a README when you unpacked the tarball?


Maybe someone else on the list has more recent experience...
AFAIK profiling is integrated into Zope right now. Take a look at 
zope.conf and you'll find proper section. Although I'm not sure how it 
works. I've used ZopeProfiler product.


To install ZopeProfiler product you have to copy it to Products/ folder 
of your zope instance, restart your Zope and go to ControlPanel in ZMI. 
You should see new link there: Zope Profiler. When you want to start 
profiling you hit Enable, do your things and then hit Disable and watch 
results.


--
Maciej Wisniowski
___
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: Re: [Zope] Mime type for PDB files

2006-11-02 Thread Alan

Hi Andreas,

That's solve my problem.

Cheers,
Alan

On 01/11/06, Andreas Jung [EMAIL PROTECTED] wrote:



--On 1. November 2006 04:56:28 + Alan [EMAIL PROTECTED] wrote:

 Hi List!

 I have some lines in a ZPT file creating a link to PDB files in a
 LocalFS folder:

 span tal:repeat=item python: options.get('pdbsw','null')
 trtd
 a tal:attributes=href python:
 container.JOBS.absolute_url()+'/'+item+'.pdb' tal:content=python:
 item+'.pdb'get file/a
 /tdtd
 /span

 It works fine expect for one thing. When clicking at the link, my
 browser (Safari), thinks my PDB file has mime type text.

 Is it possible to define the mime type (chemical/x-pdb) for my linked
 files in Zope?


For 'File' instances you can set the 'content_type' property within the ZMI.

-aj





--
Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.

http://www.bio.cam.ac.uk/~awd28

___
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] External Method = Slow; Shell Script = Fast

2006-11-02 Thread Edward Pollard
On 11/2/06 6:52 AM, Maciej Wisniowski [EMAIL PROTECTED]
wrote:

 To install ZopeProfiler product you have to copy it to Products/ folder
 of your zope instance, restart your Zope and go to ControlPanel in ZMI.
 You should see new link there: Zope Profiler. When you want to start
 profiling you hit Enable, do your things and then hit Disable and watch
 results.

I was aware the built-in profiling existed but I've never found it very easy
to work with. However, when I installed ZopeProfiler it complained the
built-in profiling was enabled, which was news to me.

I turned it off and my problem dissolved.

And then I called our server team and gave them a stern talking to. :-)

---
Edward J. Pollard, B.Sc
Webmaster, University of Lethbridge
Ext. 1828

___
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] External Method = Slow; Shell Script = Fast

2006-11-02 Thread Andrew Milton
+---[ Edward Pollard ]--
| 
| I was aware the built-in profiling existed but I've never found it very easy
| to work with. However, when I installed ZopeProfiler it complained the
| built-in profiling was enabled, which was news to me.
| 
| I turned it off and my problem dissolved.
| 
| And then I called our server team and gave them a stern talking to. :-)

And can you sell off 3/4 of your hardware now too? d8)

-- 
Andrew Milton
[EMAIL PROTECTED]
___
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] External Method = Slow; Shell Script = Fast

2006-11-02 Thread Andreas Jung



--On 2. November 2006 09:08:13 -0600 Edward Pollard 
[EMAIL PROTECTED] wrote:



On 11/2/06 6:52 AM, Maciej Wisniowski
[EMAIL PROTECTED] wrote:


To install ZopeProfiler product you have to copy it to Products/ folder
of your zope instance, restart your Zope and go to ControlPanel in ZMI.
You should see new link there: Zope Profiler. When you want to start
profiling you hit Enable, do your things and then hit Disable and watch
results.


I was aware the built-in profiling existed but I've never found it very
easy to work with. However, when I installed ZopeProfiler it complained
the built-in profiling was enabled, which was news to me.


The profiler is *never* enabled by default.  *You* must have enabled it 
somehow :-)


-aj



pgpBSz9T4322u.pgp
Description: PGP signature
___
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] Preserve HTML tags, such as P, not into lt; Pgt; in python code for Zope 2.9.4

2006-11-02 Thread Zhi-Wei Lu

Hi Zope Gurus,

During the server upgrade from Zope 2.7.4 to 2.9.4, I encountered
a problem for the following simple python script:

text = container.research[name].research_description_html
text = str(text)
return text[0:400] + '...'

This code suppose to return the first 400 characters of an
abstract, the abstract is in HTML.

However, this will return HTML tags such as P into
lt;Pgt;  in the calling routine. (Zope 2.7.4 doesn't do that)

But if I simply have the following code:

text = container.research[name].research_description_html
return text

It preserves the HTML tages such as P for zope 2.9.4.

I will be very glad to receive tips fix my problem.  I posted an
email a few weeks ago, I didn't quite grasp the problem (confused)
then.

Thank you very much for your help.

Zhi-Wei Lu
Institue for Data Analysis and Visualization (IDAV)
UC Davis Phone:(530) 752-0494
Davis, CA 95616Fax: (530) 752-8894


___
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] Preserve HTML tags, such as P, not into lt; Pgt; in python code for Zope 2.9.4

2006-11-02 Thread Andreas Jung



--On 2. November 2006 11:59:34 -0800 Zhi-Wei Lu [EMAIL PROTECTED] wrote:


Hi Zope Gurus,

During the server upgrade from Zope 2.7.4 to 2.9.4, I encountered
a problem for the following simple python script:

text = container.research[name].research_description_html
text = str(text)
return text[0:400] + '...'

This code suppose to return the first 400 characters of an
abstract, the abstract is in HTML.



what is 'research[name]' for a type? Same for 'research_description_html'?
How can this be reproduced.

You must provide some reasonable information in order to get help.

-aj

pgp2egqVE3Vmy.pgp
Description: PGP signature
___
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 )