[Zope] Where is zope.app.workflow now?

2007-07-10 Thread Yuan HOng

Hi,

I am reading the chapter on workflow in Stephan's Zope3 developers'
handbook and would like to try the samples. However the server
wouldn't start due to the missing zope.app.workflow package. This
package seems no longer existing in the latest stable release of
zope3.

What happened to the package? How does zope3 support workflow now?

--
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn
___
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] How to specify caching for ZSQL methods on file system

2006-03-02 Thread Yuan HOng
I have some ZSQL methods written on the file system using FSDV. In ZMI
I can not find the 'Advanced' tab usually available for ZSQL methods
in ZODB for specifying the caching properties of the ZSQL method.

Can anyone give some clues as how to do this for ZSQL on FSDV? I
suppose I might need to write some *.metadata file to specify these
properties using FSDV?

--
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn
___
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] Zope hangs with 'idle in transaction'

2005-10-27 Thread Yuan HOng
Hi, list,

I have a site running with Zope 2.7.6 under Linux. The site access a
PostgreSQL database through ZSQL and psycopg 1.1.18. Only read access
is used, nothing is written to the database.

The one thing that annoys me very much is, with time passing, Zope
will eventually hang and has to be restarted. When I use ps -Af to
view the data connection status, I discovered that whenever Zope
hangs, I can found all zope database connection in the status 'idle in
transaction', like below:

postgres 13605   799  0 16:22 ?00:00:07 postgres: zopeapp
backupdb 127.0.0.1 idle in transaction
postgres 13611   799  0 16:22 ?00:00:06 postgres: zopeapp
backupdb 127.0.0.1 idle in transaction
postgres 13614   799  0 16:22 ?00:00:00 postgres: zopeapp
backupdb 127.0.0.1 idle in transaction
postgres 14078   799  0 16:26 ?00:00:05 postgres: zopeapp
backupdb 127.0.0.1 idle in transaction

It seems zope is initiating some database transactions even though my
site only access the database for reading. And those transaction
somehow get into deadlock status and finally used up the maximun db
connection allowed for zope.

But why? How do I find out what zope is doing and why the connection
are locked up?

Any clue and direction pointing are heartily appreciated.

Regards,

--
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn
___
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] REQUEST.setHeader doesn't seem to work?

2005-08-11 Thread Yuan HOng
Hi,

I have a dtml file on FSDV which should return a file in text/plain
format. The dtml method starts with:


... some content ...

However, when I use 'curl -I' to check which Content-Type header is
returned, I find it is still 'text/html', despite the call to
setHeader.

Where could the problem lie? I am using Zope 2.7.6, with Apache
configured as frontend (with rewrite enabled). Could it be caused by
Apache?

-- 
Hong Yuan

大管家网上建材超市
www.homemaster.cn
___
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 )