[Zope] Efficiency of "Script (Python)" versus External Method

2006-06-15 Thread Andrew Hedges
Is there a difference in the efficiency of a function as a "Script (Python)" Zope object versus an External Method? The use case is that I need to run a fairly simple function (an implementation of the Levenshtein distance algorithm) over a result set in the range of 30-40k records. Are t

Re: [Zope] Render DTML inslide ZPT slot

2006-06-15 Thread Dieter Maurer
Jonathan Bowlas wrote at 2006-6-15 14:05 +0100: > ... >Is it possible to render DTML methods inside a slot of a ZPT? If so, how >would I achieve this? -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope *

[Zope] Re: Render DTML inslide ZPT slot

2006-06-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan Bowlas wrote: > Hi All, > > > > Is it possible to render DTML methods inside a slot of a ZPT? If so, how > would I achieve this? > My DTML's render forms to submit/edit data in a MySQL database something > which cannot be done as e

Re: Re: [Zope] allow access to fileobject depending on role

2006-06-15 Thread leandros van den berg
Jonathan wrote: > Try something like: fileObj = context.restrictedTraverse('/folderA/folderB/printsbestand.pdf') fileData = context.printsbestand() fileObj.update_data(fileData, content_type='application/pdf', size=len(fileData) ) Warning: untested! Look in the ZopeBook for more info. hth

[Zope] Render DTML inslide ZPT slot

2006-06-15 Thread Jonathan Bowlas
Hi All,   Is it possible to render DTML methods inside a slot of a ZPT?  If so, how would I achieve this?   My DTML’s render forms to submit/edit data in a MySQL database something which cannot be done as easily in ZPT, I believe. Correct me if I’m wrong.   Jon _

Re: [Zope] debug with ipython

2006-06-15 Thread Jean Jordaan
Hi Martijn I've added your script to http://zopewiki.org/DebuggingWithIPythonAndOtherTips I hope that's OK. Regards, -- jean ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Re

Re: [Zope] debug with ipython

2006-06-15 Thread Jean Jordaan
Hi thomas > is it possible to use zopectl debug with ipython ? http://zopewiki.org/DebuggingWithIPythonAndOtherTips -- jean ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Relat

Re: [Zope] ERROR Zope Could not import Products.ZMySQLDA [SOLVED]

2006-06-15 Thread Chris Withers
Jeremiah Foster wrote: /usr/local/lib/python2.4/site-packages/MySQLdb/sets.py* And you still think you're using python2.3? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist

Re: [Zope] Re: filter messages at startup

2006-06-15 Thread Chris Withers
Chris McDonough wrote: It's just not possible to upgrade components of every configuration. Sometimes you just need to live with some specific configuration for a while. It's not really a bad thing to have a known-working configuration, even if it's a little old. +sys.maxint If we turned t

Re: [Zope] ERROR Zope Could not import Products.ZMySQLDA

2006-06-15 Thread Chris Withers
Jonathan wrote: /usr/local/www/zopeserver/bin/runzope -X debug-mode=on 2006-06-14 16:14:53 INFO ZServer HTTP server started at Wed Jun 14 16:14:53 2006 Hostname: 0.0.0.0 Port: 8080 The hostname looked a little strange (localhost is usually 127.0.0.1) Not in later versions of Zope