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... with someScript ending with... return foo, bar I'm interrested into adding some other wishes for the next ZPT versions. Where could those wishes be posted ? Che

[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

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 mont

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 newob

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 y

[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 - [EMA

[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 ne

[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] http://lists.zope.org/mailman/listinfo/zope-

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 scri

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 scr

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] R

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

2002-08-01 Thread Gilles Lenfant
> On Thu, 2002-08-01 at 14:38, Gilles Lenfant wrote: > > [...] > > Now I'm always looking for an alternate way to get rid of the acquisition wrapper >and access only the objects own props. > > To access an object's own props (and get an error if it doesn't find &

[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 maillist

[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] http://lists.zope.

[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 fr

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: "Leonardo Rochael Almeida" <[EMAIL PROTECTED]>; "Zope Developers list" <[EMAIL PROTECTED]> Sent: Tuesday, November 05

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,

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; ple

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

2002-11-06 Thread Gilles Lenfant
> Gilles Lenfant wrote: > > > > 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. > > Sounds like a very strange situation, tell us more about

[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 sc

Re: [Zope-dev] XMLRPC client and Zope 2.6.0

2003-01-24 Thread Gilles Lenfant
- Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: "Gilles Lenfant" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 6:20 PM Subject: Re: [Zope-dev] XMLRPC client and Zope 2.6.0 > >>>>s = Ser

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

2003-02-06 Thread Gilles Lenfant
"View" permission to Members. 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

[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 to

[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 worki

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 PRO