[Zope] Re: Zope Digest, Vol 8, Issue 16
Tim Couper
drtimcouper at yahoo.co.uk
Fri Mar 12 09:07:37 EST 2004
--- zope-request at zope.org wrote: > Send Zope mailing
list submissions to
> zope at zope.org
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
> http://mail.zope.org/mailman/listinfo/zope
> or, via email, send a message with subject or body
> 'help' to
> zope-request at zope.org
>
> You can reach the person managing the list at
> zope-owner at zope.org
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of Zope digest..."
>
>
> Today's Topics:
>
> 1. Re: Acquiring A subfoldere'd item (Chris
> Beaven)
> 2. Re: ZClass syntax question... (Andreas Jung)
> 3. Re: Question about possible Data.fs corruption
> (Troy Farrell)
> 4. Automated reply, your mail regarding "hello"
> (Jonas)
> 5. RE: Zope html progress result generate (FLORAC
> Thierry)
> 6. Zope products and DTML (Stephen Rudd)
> 7. How to implement system.multicall in zope
> (xml-rpc)
> (Geir Arne Evjen)
> 8. Re: Howto test if macro evaluates to nothing
> (Lennart Regebro)
> 9. Re: Multiple Zope instances (John Poltorak)
> 10. Re: Zope products and DTML (Peter Bengtsson)
> 11. Re: Moving objects via ZMI (John Poltorak)
> 12. Re: Zope startup msgs (Chris Withers)
> 13. Re: Acquisition from a DTML method in a
> subdirectory
> (Chris Withers)
> 14. Re: problem calling a Python external method
> in a folder from
> a DTML method (Chris Withers)
> 15. Re: Zope html progress result generate (Chris
> Withers)
> 16. Re: Multiple Zope instances (Chris Withers)
> 17. Re: Wrong roles returned? (Christoph Landwehr)
> 18. Re: Re: Folder permissions (Chris Withers)
> 19. Re: Moving objects via ZMI (Chris Withers)
> 20. Re: context bound to PythonScript even when
> not specified ??
> (Chris Withers)
> 21. Re: ZClass syntax question... (Chris Withers)
> 22. Re: Plone Macro Madness (Chris Withers)
> 23. Re: .HTC (dhtml "behavior") files in Zope -
> problem and
> solution (Chris Withers)
> 24. Re: How do you start and stop zope in windows
> (Chris Withers)
> 25. Re: Zope startup msgs (John Poltorak)
> 26. Re: Zope products and DTML (Chris Withers)
> 27. Re: Multiple Zope instances (John Poltorak)
> 28. [ANN] mxmDynamicPage 2.0, Plone content type
> for dynamic
> lists released (Max M)
> 29. Re: Howto test if macro evaluates to nothing
> (Paul Winkler)
> 30. Re: Howto test if macro evaluates to nothing
> (Paul Winkler)
> 31. Re: problem calling a Python external method
> in a folder from
> a DTML method (Jim Anderson)
> 32. Re: Howto test if macro evaluates to nothing
> (Florian Schulze)
>
>
>
----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 11 Mar 2004 18:25:23 +1300
> From: Chris Beaven <chris at d-designz.co.nz>
> Subject: Re: [Zope] Acquiring A subfoldere'd item
> To: Roy Rapoport <r.rapoport at fi.com>
> Cc: zope at zope.org
> Message-ID: <404FF843.2060104 at d-designz.co.nz>
> Content-Type: text/plain; format=flowed;
> charset=us-ascii
>
>
> Small Business Services wrote:
>
> >From: "Roy Rapoport" <r.rapoport at fi.com>
> >
> >
> >>Unfortunately, context['foo/bar.pt'] doesn't quite
> seem to do it.
> >>
> >>
> >
> >how about: restrictedTraverse('/foo/bar.pt') ?
> >
> >
> >
> Or: context['foo']['bar.pt']
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 11 Mar 2004 07:03:22 +0100
> From: Andreas Jung <andreas at andreas-jung.com>
> Subject: Re: [Zope] ZClass syntax question...
> To: Russell Fine <MisterFine at fineline-services.com>,
> Zope at zope.org
> Message-ID: <2147483647.1078988602@[192.168.0.102]>
> Content-Type: text/plain; charset=iso-8859-1;
> format=flowed
>
> ZClasses are obsolete and bad by-implementation.
> DON'T USE THEM.
>
> -aj
>
> --On Mittwoch, 10. März 2004 16:48 Uhr -0600 Russell
> Fine
> <MisterFine at fineline-services.com> wrote:
>
> > I'm new to developing Zope products and I'm trying
> to understand how
> > I can add funcitonality to a ZClass.
> Specifically, What is the
> > syntax to :
> >
> > 1. During intialization add an additional member
> to the ZClass (not
> > a property, a member). For example, I'd like:
> > instance.mymember=1
> >
> > 2. If the ZClass is an Object Manager, how would I
> create instance
> > objects during construction (I'd like there to be
> default objects) ?
> >
> > Thanks
> >
> > Russell Fine
> >
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 11 Mar 2004 00:18:29 -0600
> From: Troy Farrell <troy at entheossoft.com>
> Subject: Re: [Zope] Question about possible Data.fs
> corruption
> To: Ira Sher <ira at angel.net>
> Cc: zope at zope.org
> Message-ID: <405004B5.9000707 at entheossoft.com>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> You weren't around to hear everyone rejoicing at the
> arrival of the
> Python script. It was a beautiful day.
>
> Troy
>
> Ira Sher wrote:
> > ...Didn't know
> > there was such a strong feeling about using dtml
> request (having worked
> > with zope/python for all of a month).
> > regards,
> > ira
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 11 Mar 2004 03:27:06 -0500 (EST)
> From: Jonas <jonas at boyfestival.com>
> Subject: [Zope] Automated reply, your mail regarding
> "hello"
> To: zope at zope.org
> Message-ID:
>
<200403110827.i2B8R6Y29380 at cyber2.madhatterhosting.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi,
> Thanks for your email.
> We will answer you as fast as possible.
> We try to do this within 48 hours.
> Best regards,
> Bart and Jonas, webmasters
>
> Hi,
> Merci de votre email.
> Nous essayerons de le répondre le plus vite
> possible.
> Donnez-nous maximum 48 heures le temps
> Bien à vous,
> Bart et Jonas, Webmasters
>
> Hi,
> Bedankt voor je email.
> We proberen deze zo snel mogelijk te beantwoorden.
> Normaal lukt dat binnen de 48 uur.
> Beste groeten,
> Bart en Jonas, webmasters
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 11 Mar 2004 10:08:15 +0100
> From: "FLORAC Thierry" <thierry.florac at onf.fr>
> Subject: RE: [Zope] Zope html progress result
> generate
> To: zope at netchan.cotse.net
> Cc: gal.laszlo at peto.hu, zope at zope.org
> Message-ID:
> <1078996095.3663.2.camel at m22241.6220.onf.fr>
> Content-Type: text/plain; charset="us-ascii"
>
> On Wed, 2004-03-10 at 16:18, zope at netchan.cotse.net
> wrote:
>
> > RESPONSE.write(text)
> > RESPONSE.flush()
>
>
> I use Zope behind Apache with mod_rewrite and
> mod_proxy.
> This method doesn't seems to work in this
> configuration...
> It only works when you have a direct access to Zope.
>
> Thierry
>
>
>
> > > -----Original Message-----
> > > From: zope-bounces at zope.org
> [mailto:zope-bounces at zope.org] On
> > > Behalf Of fowlertrainer at anonym.hu
> > > Sent: Wednesday, March 10, 2004 1:56 AM
> > > To: zope at zope.org
> > > Cc: gal.laszlo at peto.hu
> > > Subject: [Zope] Zope html progress result
> generate
> > >
> > >
> > > Hello !
> > >
> > > In mod_python I can send the result to the
> browser with
> > > o.write(Msg) command immediately (o is the
> object of the connection).
> > >
> > > So I can show the progress of the long operation
> like this:
> > >
> > > o.content_type="html"
> > > o.write("Long process with progress")
> > > for i in range(1,101):
> > > o.write(str(i)+"% processed");
> > > sleep(100)
> > > o.write("Finished...")
> > >
> > > So I can see the whole progress in the browser.
> > >
> > > I want to create same function in zope.
> > > Can I do it ?
> > >
> > > Thanx for every help !
> > >
> > > --
> > > Best regards,
> > > fowlertrainer
> mailto:fowlertrainer at anonym.hu
> > >
> > >
> > > _______________________________________________
> > > Zope maillist - Zope at 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 maillist - Zope at 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 )
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
>
http://mail.zope.org/pipermail/zope/attachments/20040311/2789d829/attachment-0001.html
>
> ------------------------------
>
> Message: 6
> Date: Thu, 11 Mar 2004 10:36:46 +0100
> From: "Stephen Rudd" <stephen.rudd at btk.utu.fi>
> Subject: [Zope] Zope products and DTML
> To: <zope at zope.org>
> Message-ID: <008101c4074c$62137dd0$f745e882 at sheep>
> Content-Type: text/plain; charset="us-ascii"
>
> It's me again - and still having problems. I have a
> Zope product. It
> generates a load of useful information, but I wish
> to insert some DTML
> tags into the data that is output. I have no problem
> inserting these
> tags, but they will not render. Please could someone
> please explain how
> to encourage DTML to be parsed from the returned
> text.
>
> Thanks in hope and anticipation
>
> Stephen
>
> -----------------------------------------
> Dr Stephen Rudd - genome astronomer
> Bioinformatics group
> Turku Centre for Biotechnology
> Tel. +358 2 333 8611
> Fax. +358 2 333 8000
> ------------------------------------------
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Thu, 11 Mar 2004 10:42:55 +0100
> From: "Geir Arne Evjen" <g-evjen at online.no>
> Subject: [Zope] How to implement system.multicall in
> zope (xml-rpc)
> To: <zope at zope.org>
> Message-ID:
> <OFEHLCLPMELKKGCBPPLHKEMACAAA.g-evjen at online.no>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
> How can I implement the multicall (many xmlrpc calls
> at once) functionallity
> in Zope. Has anybody done it?
>
>
> Cheers,
> Geir Arne Evjen
>
>
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Thu, 11 Mar 2004 11:23:19 +0100
> From: Lennart Regebro <regebro at nuxeo.com>
> Subject: Re: [Zope] Howto test if macro evaluates to
> nothing
> To: Florian Schulze <florian.proff.schulze at gmx.net>
> Cc: zope at zope.org
> Message-ID: <40503E17.2050202 at nuxeo.com>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> >But the macro returns a tree of lists and tuples.
>
> That sounds like something you shoul use pyhon for,
> not ZPT.
>
>
>
> ------------------------------
>
> Message: 9
> Date: Thu, 11 Mar 2004 10:29:45 +0000
> From: John Poltorak <jp at warpix.org>
> Subject: Re: [Zope] Multiple Zope instances
> To: zope at zope.org
> Message-ID: <20040311102945.T9727 at warpix.org>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, Mar 10, 2004 at 10:36:58PM +0100, Dieter
> Maurer wrote:
> > John Poltorak wrote at 2004-3-10 14:59 +0000:
>
> > >
> > >I want to have a production Zope and one for
> testing/learning on the same
> > >machine.
> > >
> > >I can't visualise how this would work. As I see
> it you only need one lot
> > >of software but two databases. If that is the
> case I don't know how you
> > >would add the second.
> >
> > Read Evan's "INSTANCE_HOME" HowTo.
>
> I couldn't locate such a 'HowTo', but did manage to
> work out how to setup
> INSTANCE_HOME and it seems like just the thing I was
> looking for, although
> I'm not exactly sure how to change inituser for the
> second instance.
>
>
> > --
> > Dieter
>
>
> --
> John
>
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Thu, 11 Mar 2004 10:54:51 +0000
> From: Peter Bengtsson <mail at peterbe.com>
> Subject: Re: [Zope] Zope products and DTML
> To: Stephen Rudd <stephen.rudd at btk.utu.fi>
> Cc: zope at zope.org
> Message-ID: <4050457B.9010003 at peterbe.com>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Make your class subclass the DTMLMethod class. Then
> you get the rendering.
>
> Stephen Rudd wrote:
>
> > It's me again - and still having problems. I have
> a Zope product. It
> > generates a load of useful information, but I wish
> to insert some DTML
> > tags into the data that is output. I have no
> problem inserting these
> > tags, but they will not render. Please could
> someone please explain how
> > to encourage DTML to be parsed from the returned
> text.
> >
> > Thanks in hope and anticipation
> >
> > Stephen
> >
> > -----------------------------------------
> > Dr Stephen Rudd - genome astronomer
> > Bioinformatics group
> > Turku Centre for Biotechnology
> > Tel. +358 2 333 8611
> > Fax. +358 2 333 8000
> > ------------------------------------------
> >
> >
> >
> >
> >
> > _______________________________________________
> > Zope maillist - Zope at 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 )
> >
> > .
> >
>
> --
> Peter Bengtsson, http://www.peterbe.com
>
>
>
> ------------------------------
>
> Message: 11
> Date: Thu, 11 Mar 2004 10:58:17 +0000
> From: John Poltorak <jp at warpix.org>
> Subject: Re: [Zope] Moving objects via ZMI
> To: zope at zope.org
> Message-ID: <20040311105817.V9727 at warpix.org>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, Mar 10, 2004 at 07:16:34PM -0500, Paul
> Winkler wrote:
> > On Wed, Mar 10, 2004 at 08:57:37PM +0000, John
> Poltorak wrote:
> > >
> > >
> > > Is it possible to move objects to a folder using
> the ZMI?
> > >
> > > I'm sure it must be doable, but it isn't
> immediately obvious how you can
> > > do it.
> >
> > move them from where?
>
> >From the site's root.
>
> > If not from another folder, I don't know what you
> mean.
> >
> > If you want to move objects from another folder,
> > it works a lot like many webmail programs...
> > note the checkboxes next to each object in the
> ZMI.
> > Check one or more, click on the "cut" button near
> the bottom
> > of the page, browse to another folder, click on
> "paste"
> > button near bottom of page.
>
> I see. Never associated 'CUT' with 'MOVE'.
>
> What I did find was that EVENT objects could be
> moved, but LINK objects
> couldn't. This error came up:-
>
> Site error
>
> This site encountered an error trying to fulfill
> your request. The errors
> were:
>
> Error Type
> Copy Error
> Error Message
>
> !
>
>
> The object 020.link does not support this
> operation.
>
> I wonder if this has something to do with the way
> this object type is set
> up within Plone...
>
>
> >
> > --
> >
> > Paul Winkler
> > http://www.slinkp.com
> > Look! Up in the sky! It's OIL BARON 9000!
> > (random hero from isometric.spaceninja.com)
>
> --
> John
>
>
>
>
>
>
> ------------------------------
>
> Message: 12
> Date: Thu, 11 Mar 2004 11:19:20 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] Zope startup msgs
> To: John Poltorak <jp at warpix.org>
> Cc: zope at zope.org
> Message-ID: <40504B38.4000903 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> John Poltorak wrote:
>
> > NAME=Zope
> > MAJOR_VERSION=2.7
> > MINOR_VERSION=0
> > RELEASE_TAG=b3
>
> Looks like you only have Beta 3, have you tried the
> final source release?
>
> > PYTHON="U:\USR\BIN\PYTHON.EXE"
>
> Oh boy, that's gotta be OS/2 specific ;-)
>
> > RM=rm -f
> > RMRF=rm -rf
> > FIND=find
> > XARGS=xargs
> > CD=cd
> > LN=ln -sfn
> > CP=cp
> > TAR=tar
> > MKDIR=mkdir -p
>
> Do all of the above utilities exist and work?
>
> > # build: Do whatever 'setup.py build'
> implies
> > build:
> > ${PYTHON} "${BASE_DIR}/setup.py" \
> > ${DISTUTILS_OPTS} build ${BUILD_FLAGS}
>
> I'd guessing ${PYTHON} is causing issues here. Does
> U:\USR\BIN\PYTHON.EXE work
> at a command prompt?
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 13
> Date: Thu, 11 Mar 2004 11:20:34 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] Acquisition from a DTML method
> in a subdirectory
> To: Paul Winkler <pw_lists at slinkp.com>
> Cc: zope at zope.org
> Message-ID: <40504B82.9000104 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Paul Winkler wrote:
>
> > Sure there are. ZPT is XML-centric and not
> everything wants
> > to be XML (or a python script).
> > Examples are dynamic stylesheets a la Plone, and Z
> SQL methods.
>
> It's easy enough to generate non-xml stuff using
> ZPT. There are some rough
> edges, but nothing a mode for a 'text/plain' content
> type wouldn't solve...
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 14
> Date: Thu, 11 Mar 2004 11:26:29 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] problem calling a Python
> external method in a
> folder from a DTML method
> To: Paul Winkler <pw_lists at slinkp.com>
> Cc: zope at zope.org
> Message-ID: <40504CE5.8000901 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Paul Winkler wrote:
>
> >
> > Ahh - good clue, but your interpretation is a bit
> off.
> > Zope definitely looked for M, but it very likely
> found something other
> > than what you expect. If this were not the case,
> you would
> > have got an error that M was not found.
> >
> > OK, that's good to know.
> > That is another strong indication that your DTML
> > is finding the wrong thing named M.
> >
>
> These are pretty strong reasosn for using ZPT
> instead of DTML...
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 15
> Date: Thu, 11 Mar 2004 11:27:47 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] Zope html progress result
> generate
> To: FLORAC Thierry <thierry.florac at onf.fr>
> Cc: gal.laszlo at peto.hu, zope at zope.org
> Message-ID: <40504D33.2040704 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> FLORAC Thierry wrote:
> > On Wed, 2004-03-10 at 16:18,
> zope at netchan.cotse.net wrote:
> >
> >>/RESPONSE.write(text)
> >>RESPONSE.flush() /
> >>
> > I use Zope behind Apache with mod_rewrite and
> mod_proxy.
> > This method doesn't seems to work in this
> configuration...
>
> Yeah, I expect you'd have to do some stuff in Apache
> too..
>
> > It only works when you have a direct access to
> Zope.
>
> ...which I wouldn't recommend in production...
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 16
> Date: Thu, 11 Mar 2004 11:28:50 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] Multiple Zope instances
> To: Dieter Maurer <dieter at handshake.de>
> Cc: zope at zope.org
> Message-ID: <40504D72.9080802 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Dieter Maurer wrote:
>
> >>I can't visualise how this would work. As I see it
> you only need one lot
> >>of software but two databases. If that is the case
> I don't know how you
> >>would add the second.
> >
> > Read Evan's "INSTANCE_HOME" HowTo.
>
> ...just fiddle with zope.conf once you get 2.7.0 up
> and running...
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 17
> Date: Thu, 11 Mar 2004 12:30:57 +0100
> From: Christoph Landwehr <chris-zopemailing at gmx.de>
> Subject: Re: [Zope] Wrong roles returned?
> To: zope at zope.org
> Message-ID: <40504DF1.7020904 at gmx.de>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Hi Stefan,
>
> unfortunately it is not that easy. If I log in as a
> "some_role" user, Zope
> behaves like I discribed. However when I log into
> the /manage screen as manager
> and than go back to type A document (no
> authentication necessary) I am still
> authenticated.
>
> Does that mean that for the management interface a
> cookie authentication is
> used? Just trying to understand ..
>
> Regards
> Christoph
>
>
> Stefan H. Holek wrote:
>
> > It is very likely that your browser only sends
> basic auth info when
> challenged by a 401. Use cookie auth
> (CookieCrumbler) to get around this.
> >
> > Stefan
>
>
>
>
>
>
> ------------------------------
>
> Message: 18
> Date: Thu, 11 Mar 2004 11:35:16 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] Re: Folder permissions
> To: John Poltorak <jp at warpix.org>
> Cc: zope at zope.org
> Message-ID: <40504EF4.3090607 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> John Poltorak wrote:
>
> > There is no problem uploading to the parent
> directory - the root of the
> > plone site.
>
> I'd ask on the Plone list, sounds Plone specific...
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 19
> Date: Thu, 11 Mar 2004 11:37:18 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] Moving objects via ZMI
> To: John Poltorak <jp at warpix.org>
> Cc: zope at zope.org
> Message-ID: <40504F6E.8040101 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> John Poltorak wrote:
>
> > Error Type
> > Copy Error
> > Error Message
> >
> > !
> >
> >
> > The object 020.link does not support this
> operation.
>
> Yeah, that's a particularly unhelpful error message
> since it masks the real
> exception type and value that are causing the
> problem.
>
> > I wonder if this has something to do with the way
> this object type is set
> > up within Plone...
>
> Yup, again, the plone lists is gonna be able to help
> more...
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 20
> Date: Thu, 11 Mar 2004 11:38:24 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] context bound to PythonScript
> even when not
> specified ??
> To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca
> Cc: zope at zope.org
> Message-ID: <40504FB0.9030802 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Jean-Francois.Doyon at CCRS.NRCan.gc.ca wrote:
>
> > Note the absence of ##bind ...
> >
> > So how come "context" still works if it isn't
> bound ?
>
> In the absence of a ##bind, the default binding will
> be set up.
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 21
> Date: Thu, 11 Mar 2004 11:38:58 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] ZClass syntax question...
> To: Russell Fine <MisterFine at fineline-services.com>
> Cc: Zope at zope.org
> Message-ID: <40504FD2.3070508 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Russell Fine wrote:
>
> > I'm new to developing Zope products and I'm trying
> to understand how
> > I can add funcitonality to a ZClass.
>
> Don't use ZClassses!
>
> Just write a normal python product instead...
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 22
> Date: Thu, 11 Mar 2004 11:41:05 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] Plone Macro Madness
> To: "D. Bickle" <dbickle at uvic.ca>
> Cc: zope at zope.org
> Message-ID: <40505051.3000903 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> D. Bickle wrote:
>
> > The code looks something like this:
> > print '<html
>
metal:use-macro="here/dialup_template/macros/dialup"></html>'
> >
> > Then some more dynamic HTML in Python....
> >
> > print '<div class="footer"
> >
>
metal:use-macro="here/footer/macros/portal_footer">Footer</div>'
> > return printed
>
> Not sure what you're expecting to have happen
> here...
>
> the statement:
>
> print '<div class="footer"
>
>
metal:use-macro="here/footer/macros/portal_footer">Footer</div>'
>
> ...is not going to invoke the ZPT parser, compiler
> or renderer.
>
> Why are you trying to assemble stuff like this in a
> python script?
>
> I'd turn your python script into a ZPT and just do
> the substitutions there as
> normal...
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 23
> Date: Thu, 11 Mar 2004 11:41:57 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] .HTC (dhtml "behavior") files in
> Zope - problem
> and solution
> To: Paul Winkler <pw_lists at slinkp.com>
> Cc: zope at zope.org
> Message-ID: <40505085.1070009 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Paul Winkler wrote:
>
> > I should have thought of this hours ago... the
> issue
> > was content-type. You must arrange for the
> > .htc file to be served from zope with a content
> type
> > of text/x-component.
> > text/plain works too.
> > text/html does NOT work.
>
> *tries not to chuckle*
>
> I've been there and done that many times similarly
> ;-)
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 24
> Date: Thu, 11 Mar 2004 11:44:05 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] How do you start and stop zope
> in windows
> To: Andy McKay <andy at clearwind.ca>
> Cc: zope at zope.org, Chris McDonough
> <chrism at plope.com>, Peter Millar
> <peter.millar at parasyn.com.au>
> Message-ID: <40505105.2010606 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Andy McKay wrote:
>
> > By the way I've never had any problems with
> corrupted Zope or ZODB by
> > killing the DOS prompt, so long as this isnt a
> production life or death
> > box, dont worry about it ;)
>
> Likewise, and I'm pretty mean to Zope sometimes, and
> yet it's still been fine...
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 25
> Date: Thu, 11 Mar 2004 11:44:29 +0000
> From: John Poltorak <jp at warpix.org>
> Subject: Re: [Zope] Zope startup msgs
> To: zope at zope.org
> Message-ID: <20040311114429.X9727 at warpix.org>
> Content-Type: text/plain; charset=us-ascii
>
> On Thu, Mar 11, 2004 at 11:19:20AM +0000, Chris
> Withers wrote:
> > John Poltorak wrote:
> >
> > > NAME=Zope
> > > MAJOR_VERSION=2.7
> > > MINOR_VERSION=0
> > > RELEASE_TAG=b3
> >
> > Looks like you only have Beta 3, have you tried
> the final source release?
>
> AFAIK I am using:-
>
> http://zope.org/Products/Zope/2.7.0/Zope-2.7.0.tgz
>
> Where, in the archive, is the realease tag
> information held?
>
>
> > > PYTHON="U:\USR\BIN\PYTHON.EXE"
>
> > Oh boy, that's gotta be OS/2 specific ;-)
>
> That's what comes up in my makefile when I build
> using
>
> '--with-python=/usr/bin/python'
>
> It _appears_ to work...
>
> AFAICT it's 'make install' which has failed.
>
> How do I tell whether make has actually worked
> correctly?
>
>
> > > RM=rm -f
> > > RMRF=rm -rf
> > > FIND=find
> > > XARGS=xargs
> > > CD=cd
> > > LN=ln -sfn
> > > CP=cp
> > > TAR=tar
> > > MKDIR=mkdir -p
> >
> > Do all of the above utilities exist and work?
>
> I don't currently have FIND or XARGS. I'll grab them
> and see if it makes a
> difference.
>
> >
> > > # build: Do whatever 'setup.py build'
> implies
> > > build:
> > > ${PYTHON} "${BASE_DIR}/setup.py" \
> > > ${DISTUTILS_OPTS} build
> ${BUILD_FLAGS}
> >
> > I'd guessing ${PYTHON} is causing issues here.
> Does U:\USR\BIN\PYTHON.EXE work
> > at a command prompt?
>
> Well it produces a
>
> >>>
>
> command prompt.
>
> I'm using v2.3.3 and it seems to run Zope 2.6.4
> without any problems.
>
> > cheers,
> >
> > Chris
> >
> > --
> > Simplistix - Content Management, Zope & Python
> Consulting
> > - http://www.simplistix.co.uk
> >
>
> --
> John
>
>
>
>
>
>
> ------------------------------
>
> Message: 26
> Date: Thu, 11 Mar 2004 11:45:46 +0000
> From: Chris Withers <lists at simplistix.co.uk>
> Subject: Re: [Zope] Zope products and DTML
> To: Stephen Rudd <stephen.rudd at btk.utu.fi>
> Cc: zope at zope.org
> Message-ID: <4050516A.6090803 at simplistix.co.uk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> Stephen Rudd wrote:
>
> > It's me again - and still having problems. I have
> a Zope product. It
> > generates a load of useful information, but I wish
> to insert some DTML
> > tags into the data that is output. I have no
> problem inserting these
> > tags, but they will not render. Please could
> someone please explain how
> > to encourage DTML to be parsed from the returned
> text.
>
> DTML only works if it's rendered.
>
> Your DTML probably wants to live in a DTMLFile
> object that is an attribute of
> your product class.
>
> Of course, I'd recommend ZPT instead of DTML, but on
> your head be it ;-)
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python
> Consulting
> - http://www.simplistix.co.uk
>
>
>
>
> ------------------------------
>
> Message: 27
> Date: Thu, 11 Mar 2004 12:22:22 +0000
> From: John Poltorak <jp at warpix.org>
> Subject: Re: [Zope] Multiple Zope instances
> To: zope at zope.org
> Message-ID: <20040311122222.A9727 at warpix.org>
> Content-Type: text/plain; charset=us-ascii
>
> On Thu, Mar 11, 2004 at 11:28:50AM +0000, Chris
> Withers wrote:
> > Dieter Maurer wrote:
> >
> > >>I can't visualise how this would work. As I see
> it you only need one lot
> > >>of software but two databases. If that is the
> case I don't know how you
> > >>would add the second.
> > >
> > > Read Evan's "INSTANCE_HOME" HowTo.
> >
> > ...just fiddle with zope.conf once you get 2.7.0
> up and running...
>
> It works fine with 2.6.4 now that I know how
> INSTANCE_HOME works.
>
>
> > cheers,
> >
> > Chris
> >
> > --
> > Simplistix - Content Management, Zope & Python
> Consulting
> > - http://www.simplistix.co.uk
> >
>
>
> --
> John
>
>
>
>
>
>
> ------------------------------
>
> Message: 28
> Date: Thu, 11 Mar 2004 15:43:56 +0100
> From: Max M <maxm at mxm.dk>
> Subject: [Zope] [ANN] mxmDynamicPage 2.0, Plone
> content type for
> dynamic lists released
> To: plone <plone-users at lists.sourceforge.net>, Zope
> <zope at zope.org>
> Message-ID: <40507B2C.2010004 at mxm.dk>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
> The mxm Dynamic Page product for Plone makes it easy
> for end-users to
> make dynamic pages that aggregates lists of content
> from a part of a
> Plone site.
>
> In short, it makes it easy to add dynamic lists to a
> document.
>
> It is especially usefull as an "index_html" in a
> member folder, where
> the member then has the option to make dynamic lists
> of his content.
>
> But it can also be used to make custom versions of
> the common "news"
> page, or pages similar to that.
>
> It does nothing that Topics and ZPT cannot do, but
> that approach is
> far to difficult for end users.
>
> I also found the current products that creates
> dynamic pages too
> complex and difficult for end users. I have tried to
> find the sweet
> spot between power and ease of use.
>
> Previous versions has been used in production for
> allmost a year, with
> good end-user satisfaction.
>
>
> More info at
> http://www.mxm.dk/products/public/mxmDynamicPage/
>
> --
>
> hilsen/regards Max M, Denmark
>
> http://www.mxm.dk/
> IT's Mad Science
>
>
>
> ------------------------------
>
> Message: 29
> Date: Thu, 11 Mar 2004 10:34:28 -0500
> From: Paul Winkler <pw_lists at slinkp.com>
> Subject: Re: [Zope] Howto test if macro evaluates to
> nothing
> To: zope at zope.org
> Message-ID: <20040311153428.GA1747 at slinkp.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, Mar 10, 2004 at 09:54:07PM +0100, Dieter
> Maurer wrote:
> > Florian Schulze wrote at 2004-3-9 11:44 +0100:
> > >I would like to know wether there is a way to
> test if a macro evaluates to
> > >nothing.
> > >
> > >I tried the following:
> > ><div
> tal:condition="here/my_macros/macros/macro_name"
> > >
> metal:use-macro="here/my_macros/macros/macro_name">
> > ></div>
> > >
> > >But the macro returns a tree of lists and tuples.
> >
> > Sure, this is the macro code. It is unlikely to be
> empty...
> >
> > When you want to check, whether the result of
> macro rendering
> > is empty, then you must render the macro and look
> at the result.
> > In the trivial case (the macro is independent of
> arguments defined
> > in the caller),
> > you can wrap your macro use in a PageTemplate,
> call this template
> > and check its result. When your macro needs
> arguments, you
> > must pass them to the template.
>
> But the macro is unlikely to produce literally
> nothing...
> usually there will be at least a bunch of whitespace
>
> and/or some empty tags. At the least you will have
> to
> write the macro so that all its tags are replaced
> with a blank
> value when appropriate, call the macro in a wrapper
> template as
> Dieter suggests, and then in the final template that
> calls the wrapper,
> strip() the result.
>
> I have to wonder if there's a cleaner design that
> will get the
> end result you want. Remember that macros are
> evaluated
> before TAL. I think you could set a global variable
> in the macro
> and check it in the calling template... but I
> haven't tried.
> Or maybe the variables needed by the macro could be
> retrieved
> by the template that uses the macro, e.g. from a
> python script.
>
> --
>
> Paul Winkler
> http://www.slinkp.com
> Look! Up in the sky! It's THE SPOOGE!
> (random hero from isometric.spaceninja.com)
>
>
>
> ------------------------------
>
> Message: 30
> Date: Thu, 11 Mar 2004 10:34:53 -0500
> From: Paul Winkler <pw_lists at slinkp.com>
> Subject: Re: [Zope] Howto test if macro evaluates to
> nothing
> To: zope at zope.org
> Message-ID: <20040311153453.GB1747 at slinkp.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Thu, Mar 11, 2004 at 11:23:19AM +0100, Lennart
> Regebro wrote:
> > >But the macro returns a tree of lists and tuples.
> >
> > That sounds like something you shoul use pyhon
> for, not ZPT.
>
> I think you misunderstood the original message.
> These "lists and tuples" ARE the macro.
>
> --
>
> Paul Winkler
> http://www.slinkp.com
> Look! Up in the sky! It's SUPERLATIVE SENSEI!
> (random hero from isometric.spaceninja.com)
>
>
>
> ------------------------------
>
> Message: 31
> Date: Thu, 11 Mar 2004 11:44:09 -0500
> From: Jim Anderson <ezjab at ieee.org>
> Subject: Re: [Zope] problem calling a Python
> external method in a
> folder from a DTML method
> To: Chris Withers <lists at simplistix.co.uk>
> Cc: Paul Winkler <pw_lists at slinkp.com>,
> zope at zope.org
> Message-ID: <40509759.70006 at ieee.org>
> Content-Type: text/plain; charset=us-ascii;
> format=flowed
>
>
> Chris and Paul,
>
> Well I start using ZPT yesterday and what a
> difference. In a few hours I had
> my experimental web pages working and that includes
> the time reading about
> ZPT. The error messages pretty well pointed me to my
> mistakes. I still have
> a lot to learn about ZPT, but it looks very
> promising. Thanks again for
> your previous advice.
>
> As a general policy, I do believe that Zope.org
> should make a statement
> that DTML should NOT be used for new web pages and
> then list
> exceptions, if any. This would save new users a lot
> of time and it would
> reduce the overhead in this mailing list.
>
> Jim
>
> Chris Withers wrote:
>
> > Paul Winkler wrote:
> >
> >>
> >> Ahh - good clue, but your interpretation is a bit
> off.
> >> Zope definitely looked for M, but it very likely
> found something other
> >> than what you expect. If this were not the case,
> you would
> >> have got an error that M was not found.
> >>
> >> OK, that's good to know. That is another strong
> indication that your
> >> DTML is finding the wrong thing named M.
> >>
> >
> > These are pretty strong reasosn for using ZPT
> instead of DTML...
> >
> > Chris
> >
>
>
>
>
>
>
> ------------------------------
>
> Message: 32
> Date: Thu, 11 Mar 2004 17:47:00 +0100
> From: Florian Schulze
> <florian.proff.schulze at gmx.net>
> Subject: [Zope] Re: Howto test if macro evaluates to
> nothing
> To: zope at zope.org
> Message-ID: <opr4ph8m0bttxc4i at news.gmane.org>
> Content-Type: text/plain; format=flowed;
> charset=iso-8859-15
>
> On Thu, 11 Mar 2004 10:34:28 -0500, Paul Winkler
> <pw_lists at slinkp.com>
> wrote:
>
> > On Wed, Mar 10, 2004 at 09:54:07PM +0100, Dieter
> Maurer wrote:
> >> Florian Schulze wrote at 2004-3-9 11:44 +0100:
> >> >I would like to know wether there is a way to
> test if a macro
> >> evaluates to
> >> >nothing.
> >> >
> >> >I tried the following:
> >> ><div
> tal:condition="here/my_macros/macros/macro_name"
> >> >
> metal:use-macro="here/my_macros/macros/macro_name">
> >> ></div>
> >> >
> >> >But the macro returns a tree of lists and
> tuples.
> >>
> >> Sure, this is the macro code. It is unlikely to
> be empty...
> >>
> >> When you want to check, whether the result of
> macro rendering
> >> is empty, then you must render the macro and look
> at the result.
> >> In the trivial case (the macro is independent of
> arguments defined
> >> in the caller),
> >> you can wrap your macro use in a PageTemplate,
> call this template
> >> and check its result. When your macro needs
> arguments, you
> >> must pass them to the template.
> >
> > But the macro is unlikely to produce literally
> nothing...
> > usually there will be at least a bunch of
> whitespace
> > and/or some empty tags. At the least you will
> have to
> > write the macro so that all its tags are replaced
> with a blank
> > value when appropriate, call the macro in a
> wrapper template as
> > Dieter suggests, and then in the final template
> that calls the wrapper,
> > strip() the result.
>
> I did it like that. A simple pagetemplate as a
> wrapper and the result is
> striped. This works.
>
> > I have to wonder if there's a cleaner design that
> will get the
> > end result you want. Remember that macros are
> evaluated
> > before TAL. I think you could set a global
> variable in the macro
> > and check it in the calling template... but I
> haven't tried.
> > Or maybe the variables needed by the macro could
> be retrieved
> > by the template that uses the macro, e.g. from a
> python script.
>
> The problem is, that I don't know which portlets
> will be rendered and
> which not, so the above solution is enough in this
> case and it doesn't
> seem like the additional page template call slows
> this down too much. The
> call result is saved in a define and then used in
> the condition and the
> rendering.
>
> Florian
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Zope maillist - Zope at zope.org
>
>
>
> End of Zope Digest, Vol 8, Issue 16
> ***********************************
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
More information about the Zope
mailing list