[Zope-dev] [ANNOUNCE] emacs html helper mode with dtml support

2002-09-03 Thread de ZORZI Frederic

http://www.zope.org/Members/fredz/html-helper-mode

Here you can find a modified version of html-helper-mode.el (3.0.4jolly) 
for emacs who supports dtml tags :

- Auto-indentation (with a little help :))
- Shortcuts / Completion
- Tag regions

I'd be pleased to receive feedback

Fredz.


___
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] Flush memory from product

2002-03-20 Thread de ZORZI Frederic

Hello zopers, I'm writing a product with a relational database mapping.
When I launch loading procedures, the product creates ~ 5 instances. 
I regulary do a get_transaction().commit(), but memory still increase 
constantly (more than 300 megs for python processes)

How can I flush memory ?

Tested with :
gnu/linux debian potato, zope 2.3.3
gnu/linux debian woody, zope 2.5.0


___
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] Flush memory from product

2002-03-20 Thread de ZORZI Frederic

de ZORZI Frederic wrote:
 Hello zopers, I'm writing a product with a relational database mapping.
 When I launch loading procedures, the product creates ~ 5 instances. 
 I regulary do a get_transaction().commit(), but memory still increase 
 constantly (more than 300 megs for python processes)
 
 How can I flush memory ?
 
 Tested with :
 gnu/linux debian potato, zope 2.3.3
 gnu/linux debian woody, zope 2.5.0
 

Oops; in fact, after the loading process, even with flush cache from the 
control panel, python process still take 320M of memory (20M after zope 
restart).
Any idea ?



___
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] Using psycopg cursor in a product

2002-02-08 Thread de ZORZI Frederic

 Hi all,
 Is it possible to use cursors and their functions (dictfetchall, 
 fetchone...)  with zpsycopg connection ?
 

Easy stupid :) :

conn = getattr(self, self.connection_id)
db = conn().db

curs = db.cursor()
curs.execute(select * from support limit 2)
return %s % curs.dictfetchall()


Now, how about managing transactions ?


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