[Zope] Btreefolder: How to fix Keyerror ???

2006-05-04 Thread robert rottermann
Hi there, I have a big problem with an Plone site throwing btreefolder errors. Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module OFS.CopySupport, line 193, in mana

[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] 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 lit

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 Products/

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 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 i

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. > > > > > > > Mo

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 y

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

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 > > [...] > > > Thank you - it is exact what I need, but it does not have rights to make that conversion - see bottom. So only way is now to add this rights

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 binascii.a2b_base64('YWxla2liYW5nb0B6dWcuY3o=

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

2006-05-04 Thread Igor Stroh
Jaroslav Lukesh wrote: > import cStringIO > import mimetools > import binascii [...] Cheers, Igor ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail

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

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

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

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

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

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

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 everythi

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

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 y

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 s

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

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 massive

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 b

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