[Zope] returning a macro from a pythonscript

2007-03-02 Thread Gaute Amundsen
I have tried many varieties, but I can't remember ever getting it to work... A few googles shows me nothing either. Any quick hints? Gaute ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] returning a macro from a pythonscript

2007-03-02 Thread Gaute Amundsen
On Friday 02 March 2007 11:20, Andreas Jung wrote: --On 2. März 2007 11:10:57 +0100 Gaute Amundsen [EMAIL PROTECTED] wrote: I have tried many varieties, but I can't remember ever getting it to work... A few googles shows me nothing either. returning a macro? -aj Something like this:

Re: [Zope] returning a macro from a pythonscript

2007-03-02 Thread jerome prudent
What do you want to do with your macro? 2007/3/2, Gaute Amundsen [EMAIL PROTECTED]: On Friday 02 March 2007 11:20, Andreas Jung wrote: --On 2. März 2007 11:10:57 +0100 Gaute Amundsen [EMAIL PROTECTED] wrote: I have tried many varieties, but I can't remember ever getting it to work...

[Zope] Re: returning a macro from a pythonscript

2007-03-02 Thread Tonico Strasser
Gaute Amundsen schrieb: foo = restrictedTraverse('/foo/bar/index.html/macros/mymacro') You can use this macro in a template. div metal:use-macro=foo/ Tonico ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No

Re: [Zope] Re: returning a macro from a pythonscript

2007-03-02 Thread jerome prudent
I never thank I can do that with a macro. I always use the standard way, like Tonico wrote. I learnt something :) 2007/3/2, Tres Seaver [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gaute Amundsen wrote: On Friday 02 March 2007 11:20, Andreas Jung wrote: --On 2. März 2007

[Zope] Are ZEXP files safe?

2007-03-02 Thread Jordan Baker
I seem to recall hearing in the past that unpickling in general was insecure for some reason. I'd like to allow less-priveleged users to upload their ZEXP files on their own and import them into their own Folders. Are there any security issues with ZEXP import? Thanks, -jordan. [EMAIL

Re: [Zope] Are ZEXP files safe?

2007-03-02 Thread Martijn Pieters
On 3/2/07, Jordan Baker [EMAIL PROTECTED] wrote: I seem to recall hearing in the past that unpickling in general was insecure for some reason. I'd like to allow less-priveleged users to upload their ZEXP files on their own and import them into their own Folders. Are there any security issues

[Zope-Annce] Undoer (Zope Undo tool) 1.0 released

2007-03-02 Thread Morten W. Petersen
Hi, Undoer is a product/patch that enables transactions to be undone based on a date. Useful if you or someone else has managed to make a lot of separate changes that would be cumbersome to undo the usual Zope way and no recent (enough) backups are available. See the Undo tab in the Zope

Re: [Zope-dev] difference between OOSet and OOTreeSet?

2007-03-02 Thread Chris Withers
Gary Poster wrote: Okay, so I want a persistent, ordered sequence which is quick to find items in and which doesn't re-store the whole sequence when an item is inserted or removed. What should I be using? Ordered, as in sorted? Or ordered, as in user-determined order? Ordered as in

[Zope-dev] Re: anon http svn access status?

2007-03-02 Thread Reinout van Rees
On Mar 1, 2:50 am, Christian Theune [EMAIL PROTECTED] wrote: the DZUG is working on a read-only mirror that will be accessible via anonymous HTTP. It will likely be available shortly after the upcoming Subversion ugprade. Great news. One question: you mention the upcoming subversion

Re: [Zope-dev] Re: anon http svn access status?

2007-03-02 Thread Wichert Akkerman
Previously Reinout van Rees wrote: On Mar 1, 2:50 am, Christian Theune [EMAIL PROTECTED] wrote: the DZUG is working on a read-only mirror that will be accessible via anonymous HTTP. It will likely be available shortly after the upcoming Subversion ugprade. Great news. One

[Zope-dev] Zope Tests: 7 OK

2007-03-02 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Thu Mar 1 12:00:00 2007 UTC to Fri Mar 2 12:00:00 2007 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Thu Mar 1 21:07:07 EST 2007

Re: [Zope-dev] difference between OOSet and OOTreeSet?

2007-03-02 Thread Gary Poster
On Mar 2, 2007, at 2:42 AM, Chris Withers wrote: Gary Poster wrote: Okay, so I want a persistent, ordered sequence which is quick to find items in and which doesn't re-store the whole sequence when an item is inserted or removed. What should I be using? Ordered, as in sorted? Or