Re: [Zope-dev] TALES idea: tuple unpacking

2003-07-23 Thread Gilles Lenfant
Yes, this would be more comfortable, some of my templates would be cleaner with this feature. You may work this around like this... stuff tal:define=packed python: someScript(stuff, foo, bar); item1 python: packed[0]; item2 python: packed[1] with someScript ending with... return foo, bar I'm

[Zope-dev] TALES wish : the thistemplate variable

2003-07-23 Thread Gilles Lenfant
What's behind this ? Actually, we get the template variable available in the TALES namespace. template, when used in a macro, refers to the template that uses the macro, and not to the template that contains the macro. The future (if you wish it with me) thistemplate variable will refer to the

[Zope-dev] Documenting products with epydoc

2003-03-27 Thread Gilles Lenfant
Hi, I use to document my (non Zope) python packages using epydoc that's (IMHO) the best python documentation tool (javadoc like great features). http://epydoc.sourceforge.net/ Unfortunately, this does not work with Zope products (usual pydoc doesn't too). How can I make a fixure to get it

Re: [Zope-dev] Documenting products with epydoc

2003-03-27 Thread Gilles Lenfant
- Original Message - From: Encolpe DEGOUTE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 4:57 PM Subject: Re: [Zope-dev] Documenting products with epydoc On Thu, 27 Mar 2003 16:40:49 +0100 Gilles Lenfant [EMAIL PROTECTED] wrote: Hi, I use to document my (non

[Zope-dev] zope

2003-02-16 Thread Gilles Lenfant
Hi, I'm pretty familiar with the usual unittest package I use successfully with my non-Zope python projects, but I haven't get enough enlightenment for playing unit tests on my Zope products. * The tips from the Zope developer guide don't work (did I miss something ?) * I did'nt understand how

Re: [Zope-dev] Making private documents viewable by members in CMF

2003-02-06 Thread Gilles Lenfant
. Associate this workflow to the appropriate content types. HTH --Gilles Lenfant - Original Message - From: David Cain [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 7:53 PM Subject: [Zope-dev] Making private documents viewable by members in CMF | CMF comes

[Zope-dev] XMLRPC client and Zope 2.6.0

2003-01-24 Thread Gilles Lenfant
Hi, Is there something wrong with XML-RPC client and Zope 2.6.0 ? Things that worked perfectly with Zope 2.5.1 don't work any more ! Even when I make a hello world Python script handler like ## Script (Python) xtest ##bind container=container ##bind context=context ##bind namespace= ##bind

[Zope-dev] Getting Zope root object without object context.

2002-11-05 Thread Gilles Lenfant
Hi, I know I can get the root object using self.getPhysicalRoot() But I'm in a situation where I can't get that self or any other Zope object. Any hint ? Thanks in advance. --Gilles ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Using Zope from a console script

2002-11-05 Thread Gilles Lenfant
I tried (successfully) to play with Zope objects with console scripts using the hints in $ZOPEROOT/doc/ZODB.txt Unfortunately, it works only if the Zope server is down. I need to run this script on a running server, and I'd prefer not using xmlrpc stuffs for a better efficiency. Any hint, config,

Re: [Zope-dev] Using Zope from a console script

2002-11-05 Thread Gilles Lenfant
- Original Message - From: Leonardo Rochael Almeida [EMAIL PROTECTED] To: Gilles Lenfant [EMAIL PROTECTED] Cc: Zope Developers list [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 8:34 PM Subject: Re: [Zope-dev] Using Zope from a console script On Tue, 2002-11-05 at 17:27, Gilles

Re: [Zope-dev] Using Zope from a console script

2002-11-05 Thread Gilles Lenfant
- Original Message - From: Jerome Alet [EMAIL PROTECTED] To: Gilles Lenfant [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 10:21 PM Subject: Re: [Zope-dev] Using Zope from a console script On Tue, Nov 05, 2002 at 10:25:23PM +0100, Gilles Lenfant wrote

Re: [Zope-dev] Using Zope from a console script

2002-11-05 Thread Gilles Lenfant
Leonardo, Thanks for that fast answer. But it's buggy for me (Zope 2.5.1/Python 2.1.3/FreeBSD) : bash-2.05a$ python ZServer/medusa/monitor_client.py localhost 8099 /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub()

[Zope-dev] Calling a Python script from a

2002-08-02 Thread Gilles Lenfant
Hi, I'm searching a way to execute a ZODB untrusted python script with parameters and appropriate bindings (context, container...) from a file system Zope product. Where can I find some examples ? Thanks in advance. --Gilles ___ Zope-Dev

[Zope-dev] Removing the acquisition wrapper from an object (Python script)

2002-08-01 Thread Gilles Lenfant
Hi, aq_base(someObject) doesn't work in a python script. I need to get an object without its acquisition wrapper. Any hint ? Many thanks in advance --Gilles ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Removing the acquisition wrapper from an object (Python script)

2002-08-01 Thread Gilles Lenfant
- Original Message - From: Toby Dickenson [EMAIL PROTECTED] To: Gilles Lenfant [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 1:46 PM Subject: Re: [Zope-dev] Removing the acquisition wrapper from an object (Python script) On Thursday 01 Aug 2002 12:49 pm, Gilles

Re: [Zope-dev] Removing the acquisition wrapper from an object (Python script)

2002-08-01 Thread Gilles Lenfant
- Original Message - From: Toby Dickenson [EMAIL PROTECTED] To: Gilles Lenfant [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 3:51 PM Subject: Re: [Zope-dev] Removing the acquisition wrapper from an object (Python script) On Thursday 01 Aug 2002 2:44 pm, Gilles

Re: [Zope-dev] Removing the acquisition wrapper from an object (Python script)

2002-08-01 Thread Gilles Lenfant
- Original Message - From: Chris Withers [EMAIL PROTECTED] To: Gilles Lenfant [EMAIL PROTECTED] Cc: Toby Dickenson [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 6:18 PM Subject: Re: [Zope-dev] Removing the acquisition wrapper from an object (Python script

Re: [Zope-dev] Removing the acquisition wrapper from an object(Python script)

2002-08-01 Thread Gilles Lenfant
- Original Message - From: Leonardo Rochael Almeida [EMAIL PROTECTED] To: Zope Developers list [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 11:37 PM Subject: Re: [Zope-dev] Removing the acquisition wrapper from an object(Python script) On Thu, 2002-08-01 at 14:38, Gilles Lenfant

[Zope-dev] Uploading an object's content via FTP

2002-07-05 Thread Gilles Lenfant
Hi, I made a CMF portal_type class based on python product. This contains a Photoshop file and some dedicated related services. Users may upload Photoshop files via HTTP. This works with small files but when a user uploads a big file (8 Mb and more) through HTTP, this stalls the server. So I

[Zope-dev] Zope developer guide (up to Zope 2.3.3)

2002-05-28 Thread Gilles Lenfant
Hi, It seems that the Zope developer guide at http://www.zope.org/Documentation/ZDG is suited for Zope 2.4.x +. I need the one that's suited to Zope 2.3.3 and did not find it. Any clue ? Thanks in advance --Gilles ___ Zope-Dev maillist -

Re: [Zope-dev] Zope-2.3.3 Python 2.1.3 ? possible or mission impossible

2002-04-25 Thread Gilles Lenfant
Hi, It worked perfectly for me. I just got a couple of deprecation warnings when starting zope (should use re and not - unmaintained - regexp module). As far as I can follow the traceback, the BTree problem is off topic for your issue. I suspect you did not install Python 2.1.3 from source, or

Re: [Zope-dev] problem adding ZClass instances via DTML

2002-02-26 Thread Gilles Lenfant
Mark, It seems you forget the id of your new object !! I use do do it in Python script (easier for testing initial data from request). But you can translate in DTML if you prefer... # Test initial data from REQUEST and redirect somewhere if required ... # Create the new ZClass based object

Re: [Zope-dev] Re: Zope vs. Cocoon

2002-02-25 Thread Gilles Lenfant
I agree, I've been lookin for a Zope site design guidelines like chapter in Zope site when I was a newbie but did not find consistent and comprehensive information. You can only find various Howto in that matter. Please correct me if I'm wrong. So I made some spaghetti sites in my first 2