Re: [Zope] DTML-In with date/time filter

2006-05-04 Thread Chris Withers
Dieter Maurer wrote: Martin Koekenberg wrote at 2006-5-3 14:47 +0200: I use this code in a Python script and call this script within a DTML-IN statement. What I need is a script to get only items with a date in the future, today or in the past. The objects are DTML Documents with a date

Re: [Zope] about Zope 2.8.6

2006-05-04 Thread Chris Withers
[EMAIL PROTECTED] wrote: Hello! I have a question about Zope. No, you have a question about Plone. Ask on a Plone list. Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist

Re: [Zope] HTTP PUT

2006-05-04 Thread Chris Withers
David wrote: I have a user messing with a site using HTTP PUT to upload files. The user has access privileges to use a simple CMS (although for the time being now, they're revoked). Will switching off the permission for WebDAV access prevent any successful PUT or do we need to take further

Re: [Zope] Questions on ZODB BTrees versus bsddb BTrees

2006-05-04 Thread Chris Withers
Terry Jones wrote: I've just read the ZODB/ZEO Programming Guide (Release 3.6.0, A.M. Kuchling, January 5, 2006) and I'd like to ask a few questions. Are the following all correct? You may have more joy with these questions on the zodb-dev@zope.org mailing list... - The BTrees supported

Re: [Zope] Re: Zeo as a Zeo Client

2006-05-04 Thread Chris Withers
Gerhard Schmidt wrote: If I had the Time I whould do it. My ToDo List goes around up to the moon an back twice. About the funding I have to talk to my superior when he is back from his vacation. Bear in mind that you will need serious amounts of cash to get this implemented. This is a

[Zope] problem opening pdf-files with firefox in LocalFS folders on Zope

2006-05-04 Thread Marinussen, M.J. (Ria)
Hi, I've got Zope 2.8.5 installed with LocalFS version LocalFS-1-3-andreas on Solaris (SunOs 5.8, I'm not sure which version number of solaris that is...) When I place pdf-files in the LocalFS directories, sometimes they open correctly, but most of the time they open as text-file when using

Re: [Zope] Questions on ZODB BTrees versus bsddb BTrees

2006-05-04 Thread Terry Jones
Hi Chris Chris == Chris Withers [EMAIL PROTECTED] writes: You may Chris have more joy with these questions on the zodb-dev@zope.org mailing Chris list... Thanks, I've re-sent. Thanks for the other comments pointers too. Regards Terry. - ZODB BTrees do not allow you to set up secondary keys

Re: [Zope] Questions on ZODB BTrees versus bsddb BTrees

2006-05-04 Thread Jonathan
From the Berkeley DB docs: Usually you find database records by means of the record's key. However, the key that you use for your record will not always contain the information required to provide you with rapid access to the data that you want to retrieve. For example, suppose

Re: [Zope] Questions on ZODB BTrees versus bsddb BTrees

2006-05-04 Thread Terry Jones
Hi Jonathan Jonathan == Jonathan [EMAIL PROTECTED] writes: Jonathan This usage scenario can easily be implemented using ZCatalog (as Jonathan Chris mentioned) - check the ZopeBook for info. Thanks, that sounds good. Without meaning to whine, I hope it's easier to use than it is to actually

Re: [Zope] Questions on ZODB BTrees versus bsddb BTrees

2006-05-04 Thread Chris Withers
Terry Jones wrote: I've just spent 20 minutes trying to do this, without success. So if someone has a URL for a ZCatalog download, I'd be happy to receive it. ZCatalog ships as a standard part of Zope, no need to download. It's covered extensively in the zope book on Plope.org... Not

Re: [Zope] Questions on ZODB BTrees versus bsddb BTrees

2006-05-04 Thread Terry Jones
Chris == Chris Withers [EMAIL PROTECTED] writes: Chris ZCatalog ships as a standard part of Zope, no need to download. Chris It's covered extensively in the zope book on Plope.org... Chris Not everything is as hard as some people manage to make it ;-) OK, thanks. I hope you'll agree though that

[Zope] Re: Questions on ZODB BTrees versus bsddb BTrees

2006-05-04 Thread Max M
Terry Jones wrote: Chris == Chris Withers [EMAIL PROTECTED] writes: Chris ZCatalog ships as a standard part of Zope, no need to download. Chris It's covered extensively in the zope book on Plope.org... Chris Not everything is as hard as some people manage to make it ;-) OK, thanks. I hope

[Zope] about restricting addable types in Plone

2006-05-04 Thread Sergio Gomez
Hi all, I am working with Plone 2.1.2, Zope 2.8.6 and python 2.3.5. I would like to know if there is a way to restrict addable types to a folderish object programmatically. What I need is to allow adding a certain type of items and not otheres depending on the value of one field in my folderish

Re: [Zope] about restricting addable types in Plone

2006-05-04 Thread Martijn Pieters
On 5/4/06, Sergio Gomez [EMAIL PROTECTED] wrote: I am working with Plone 2.1.2, Zope 2.8.6 and python 2.3.5. I would like to know if there is a way to restrict addable types to a folderish object programmatically. What I need is to allow adding a certain type of items and not otheres depending

[Zope] default_zpublisher_encoding not supported

2006-05-04 Thread MIlos Prudek
Zope 2.8.6 is supposed to support default_zpublisher_encoding in zope.conf. But when I uncomment the example in zope.conf, default_zpublisher_encoding utf-8 I cannot launch Zope: Error: 'default_zpublisher_encoding' is not a known key name (line 863 in file:///home/makina/bili/etc/zope.conf)

[Zope] Re: default_zpublisher_encoding not supported

2006-05-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 MIlos Prudek wrote: Zope 2.8.6 is supposed to support default_zpublisher_encoding in zope.conf. But when I uncomment the example in zope.conf, default_zpublisher_encoding utf-8 I cannot launch Zope: Error: 'default_zpublisher_encoding'

[Zope] how to decode base64 in DTML?

2006-05-04 Thread Jaroslav Lukesh
Hi all, Would you like to help me with decoding base64 string, please? I was try many ways (*), but no with success, but import cStringIO import mimetools import binascii binascii.a2b_base64('YWxla2liYW5nb0B6dWcuY3o=\n') in commandline python works OK. (*)here are some examples: dtml-var

Re: [Zope] how to decode base64 in DTML?

2006-05-04 Thread Andreas Jung
--On 4. Mai 2006 20:42:08 +0200 Jaroslav Lukesh [EMAIL PROTECTED] wrote: Hi all, Would you like to help me with decoding base64 string, please? I was try many ways (*), but no with success, but import cStringIO import mimetools import binascii

RE: [Zope] how to decode base64 in DTML?

2006-05-04 Thread Jaroslav Lukesh
[EMAIL PROTECTED] On Behalf Of Igor Stroh Jaroslav Lukesh wrote: import cStringIO import mimetools import binascii [...] dtml-var 'YWxla2liYW5nb0B6dWcuY3o=\n'.decode('base64') Thank you - it is exact what I need, but it does not have rights to make that conversion - see

RE: [Zope] how to decode base64 in DTML?

2006-05-04 Thread Jaroslav Lukesh
From: Andreas Jung [mailto:[EMAIL PROTECTED] import cStringIO import mimetools import binascii binascii.a2b_base64('YWxla2liYW5nb0B6dWcuY3o=\n') in commandline python works OK. Move such code inside a PythonScript..such code does not belong into DTML.. it just bad style. I was

Re: [Zope] Re: default_zpublisher_encoding not supported

2006-05-04 Thread MIlos Prudek
Known bug: the directive is actually spelled (for reasons I didn't agree with when the decision happened, and can't remember now) 'default-publisher-encoding'; the example is wrong (and I think should Thank you for your suggestion. I tried 'default-publisher-encoding' and the error is the

Re: [Zope] Re: default_zpublisher_encoding not supported

2006-05-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 MIlos Prudek wrote: Known bug: the directive is actually spelled (for reasons I didn't agree with when the decision happened, and can't remember now) 'default-publisher-encoding'; the example is wrong (and I think should Thank you for your

Re: [Zope] how to decode base64 in DTML?

2006-05-04 Thread Paul Winkler
On Thu, May 04, 2006 at 10:22:25PM +0200, Jaroslav Lukesh wrote: From: Andreas Jung [mailto:[EMAIL PROTECTED] import cStringIO import mimetools import binascii binascii.a2b_base64('YWxla2liYW5nb0B6dWcuY3o=\n') in commandline python works OK. Move such code inside a

Re: [Zope] how to decode base64 in DTML?

2006-05-04 Thread Tino Wildenhain
Jaroslav Lukesh wrote: From: Andreas Jung [mailto:[EMAIL PROTECTED] import cStringIO import mimetools import binascii binascii.a2b_base64('YWxla2liYW5nb0B6dWcuY3o=\n') in commandline python works OK. Move such code inside a PythonScript..such code does not belong into DTML.. it just bad

Re: [Zope] Questions on ZODB BTrees versus bsddb BTrees

2006-05-04 Thread Terry Jones
[Following up on my original posting, with a summary of resolution.] Thanks for the help pointers to ZCatalog. I actually did find a standalone version of ZCatalog, created by Kevin Dangoor, at http://www.blazingthings.com/dev/zcatalog.html His pulls code out of Zope3, and rewrites some of it.

RE: [Zope] how to decode base64 in DTML?

2006-05-04 Thread Andreas Jung
--On 4. Mai 2006 22:22:25 +0200 Jaroslav Lukesh [EMAIL PROTECTED] wrote: import cStringIO import mimetools from Products.PythonScripts.Utility import allow_module allow_module(base64) Please read carefully. The documentation tells you to put allow_module() inside somewhere in

[Zope] CMS question - Compound Doc

2006-05-04 Thread Aaron Siegel
Hello I am an web administer for a very non-profit organization. We where looking in to hiring someone to develop a CMS for us, We received a proposal from a company that develops their sites using Compound Doc. I just found out today that they will be signing the papers on Tuesday, I am a

[Zope] How to set property from external method or pythonscript?

2006-05-04 Thread Jaroslav Lukesh
HI all, External methods and pythonscripts are fine, but I did not find how to set some property or bulk of properties to use in dtml document after calling this ext.method or pythonscript. The passing variables I was find for pythonscripts only. Many thanks, JL.

[Zope-Annce] Five release fest: 1.2.4, 1.3.5, 1.4c and 1.5b released!

2006-05-04 Thread Philipp von Weitershausen
The Five team is happy to announce the release of two Five bugfix releases, 1.2.4 and 1.3.5, as well as two Five betas, 1.4c and 1.5b today. What is Five Five is a Zope 2 product that allows you to integrate Zope 3 technologies into Zope 2, today. Among others, it allows you to

[Zope-Checkins] SVN: Zope/trunk/lib/python/App/FactoryDispatcher.py Now closing manually opened zodb connections -- thanks Stefan

2006-05-04 Thread Rocky Burt
Log message for revision 67964: Now closing manually opened zodb connections -- thanks Stefan Changed: U Zope/trunk/lib/python/App/FactoryDispatcher.py -=- Modified: Zope/trunk/lib/python/App/FactoryDispatcher.py === ---

[Zope-Checkins] SVN: Products.Five/trunk/ Fixed up an issue where an open zodb connection wasn't geting closed properly ... also reinstated a previously-failing (but no longer) test now that the zodb

2006-05-04 Thread Rocky Burt
Log message for revision 67968: Fixed up an issue where an open zodb connection wasn't geting closed properly ... also reinstated a previously-failing (but no longer) test now that the zodb connection handling is working properly. Changed: U Products.Five/trunk/fiveconfigure.py U

[Zope-Checkins] SVN: Zope/branches/slinkp-1447-httpcache-fix-branch/ making a branch to fix collector 1447,

2006-05-04 Thread Paul Winkler
Log message for revision 67975: making a branch to fix collector 1447, AcceleratedHTTPCacheManager doesn't PURGE correctly for virtual hosts Changed: A Zope/branches/slinkp-1447-httpcache-fix-branch/ -=- Copied: Zope/branches/slinkp-1447-httpcache-fix-branch (from rev 67974,

[Zope-Checkins] SVN: Zope/branches/slinkp-1447-httpcache-fix-branch/lib/python/Products/StandardCacheManagers/ Fixes and unit tests for http://www.zope.org/Collectors/Zope/1447:

2006-05-04 Thread Paul Winkler
Log message for revision 67976: Fixes and unit tests for http://www.zope.org/Collectors/Zope/1447: when editing content on a virtual-hosted zope, changes will purge correctly. Also simplified the test framework (no more need to launch an HTTP server). Changed: U

[Zope-Checkins] SVN: Zope/branches/slinkp-1447-httpcache-fix-branch/doc/CHANGES.txt Noted fix for 1447 in CHANGES.txt.

2006-05-04 Thread Paul Winkler
Log message for revision 67977: Noted fix for 1447 in CHANGES.txt. Changed: U Zope/branches/slinkp-1447-httpcache-fix-branch/doc/CHANGES.txt -=- Modified: Zope/branches/slinkp-1447-httpcache-fix-branch/doc/CHANGES.txt ===

[Zope-Checkins] SVN: Zope/trunk/ Merged slinkp-1447-httpcache-fix-branch, -r 67975:67977.

2006-05-04 Thread Paul Winkler
Log message for revision 67978: Merged slinkp-1447-httpcache-fix-branch, -r 67975:67977. Fixes issue with AcceleratedHTTPCacheManager sending PURGE from a virtual-hosted zope, and adds a bunch of related tests and comments. Changed: U Zope/trunk/doc/CHANGES.txt U

[Zope-Checkins] SVN: Zope/branches/2.9/ Merged slinkp-1447-httpcache-fix-branch, -r 67975:67977.

2006-05-04 Thread Paul Winkler
Log message for revision 67979: Merged slinkp-1447-httpcache-fix-branch, -r 67975:67977. Fixes issue with AcceleratedHTTPCacheManager sending PURGE from a virtual-hosted zope, and adds a bunch of related tests and comments. Changed: U Zope/branches/2.9/doc/CHANGES.txt U

[Zope-Checkins] SVN: Zope/branches/slinkp-httpcache-improvements-branch/lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py added some TODO notes.

2006-05-04 Thread Paul Winkler
Log message for revision 67984: added some TODO notes. Changed: U Zope/branches/slinkp-httpcache-improvements-branch/lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py -=- Modified:

Re: [Zope-dev] Re: Re: Re: favicon.ico for 2.10?

2006-05-04 Thread Chris Withers
Duncan Booth wrote: What may be more significant is that simply retrieving favicon.ico into IE displays garbage. I don't know why; IE seems perfectly capable of displaying it on the address bar or favourites, but in the main browser window it displays a short curved line and nothing else. Is

[Zope-dev] Re: [Checkins] SVN: Zope/trunk/lib/python/App/FactoryDispatcher.py External methods can now live outside of Products based python packages.

2006-05-04 Thread Stefan H. Holek
Note that Zope2.app() opens a new ZODB connection which you need to close at some point. I suggest something along the lines of: app = Zope2.app() try: products = app.Control_Panel.Products ... finally: app._p_jar.close()

[Zope-dev] Re: Twisted in Zope 2.10 ..some issues

2006-05-04 Thread Lennart Regebro
On 5/3/06, Andreas Jung [EMAIL PROTECTED] wrote: I tried to get Zope 2.10 working with Twisted however I ran into some issues: After installing Twisted 2.1.0, Zope fails to start (also with Twisted 2.2.0)...anything I am misssing? Yes, but what? Hmmm. (Oh, btw, 2.2 seems much slower that 2.1

[Zope-dev] Re: [Checkins] SVN: Zope/trunk/lib/python/App/FactoryDispatcher.py External methods can now live outside of Products based python packages.

2006-05-04 Thread Rocky Burt
On Thu, 2006-04-05 at 10:43 +0200, Stefan H. Holek wrote: Note that Zope2.app() opens a new ZODB connection which you need to close at some point. I suggest something along the lines of: app = Zope2.app() try: products = app.Control_Panel.Products

Re: [Zope-dev] Re: Re: Re: favicon.ico for 2.10?

2006-05-04 Thread Lennart Regebro
On 5/4/06, Chris Withers [EMAIL PROTECTED] wrote: Duncan Booth wrote: What may be more significant is that simply retrieving favicon.ico into IE displays garbage. I don't know why; IE seems perfectly capable of displaying it on the address bar or favourites, but in the main browser window it

[Zope-dev] Re: [Checkins] SVN: Zope/trunk/lib/python/App/FactoryDispatcher.py External methods can now live outside of Products based python packages.

2006-05-04 Thread Rocky Burt
On Thu, 2006-04-05 at 08:23 -0230, Rocky Burt wrote: On Thu, 2006-04-05 at 10:43 +0200, Stefan H. Holek wrote: Note that Zope2.app() opens a new ZODB connection which you need to close at some point. I suggest something along the lines of: app = Zope2.app() try:

[Zope-dev] Re: Re: Re: Re: favicon.ico for 2.10?

2006-05-04 Thread Duncan Booth
Chris Withers wrote: Duncan Booth wrote: What may be more significant is that simply retrieving favicon.ico into IE displays garbage. I don't know why; IE seems perfectly capable of displaying it on the address bar or favourites, but in the main browser window it displays a short curved line

[Zope-DB] Error when getting over 20 results

2006-05-04 Thread Jonas Nielsen
I have the following ZSQL method: select * from pmember where project=dtml-sqlvar project type=string The result should be about 60 records. However it only works if I set Maximum rows to retrieve in the advanced tab to a number below 20. If I don't, I get the following error: