Re: [Zope] Problem with links containing non-ascii characters in StructuredText

2005-09-29 Thread Andreas Jung
You have to configure your locale support in etc/zope.conf properly. -aj --On 30. September 2005 00:26:14 +0200 Maurits van Rees <[EMAIL PROTECTED]> wrote: Hi, I have a problem getting links to function in StructuredText when they have non-ascii characters in the title. - This will render

[Zope] Re: Problem with links containing non-ascii characters in StructuredText

2005-09-29 Thread Chris Beaven
Maurits van Rees wrote: Hi, I have a problem getting links to function in StructuredText when they have non-ascii characters in the title. This can of course be solved by using html entities like 'ö'. But I have just started using utf-8 so I don't have to bother myself with writing html enti

[Zope] Problem with links containing non-ascii characters in StructuredText

2005-09-29 Thread Maurits van Rees
Hi, I have a problem getting links to function in StructuredText when they have non-ascii characters in the title. - This will render as a link: "Zope website":http://zope.org/ - This will render literally: "Zöpe website":http://zope.org/ [Notice the diaeresis in the second case.] This can o

[Zope] Re: External Method Working Directory?

2005-09-29 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jwithers wrote: > Because I need to feed the file to Mailman for evil purposes of my own > (well, fairly mundane purposes of allowing my zope app to manipulate > mailman list memberships, really) that the prototype mailman adapter I > found doesn't me

Re: [Zope] External Method Working Directory?

2005-09-29 Thread jwithers
On Thu, 2005-09-29 at 00:20, Chris Withers wrote: > eep, another one, hope we're not related ;-) > When I saw your posts on newsgroups years ago, I almost gave up python programming altogether Chris, thinking that any given field of endeavor needs only one Withers, but decided to go ahead and chan

Re: [Zope] External Method Working Directory?

2005-09-29 Thread Dieter Maurer
jwithers wrote at 2005-9-28 15:43 -0700: > ... >I have an external method that at this point is made up of nothing but >os.getcwd() and lives in my Extensions directory. When it is run, it >reports the working directory as being one of my Products directories. Some products are broken (they change

Re: [Zope] Aquisition, UserFolder and security

2005-09-29 Thread Dieter Maurer
bruno modulix wrote at 2005-9-29 13:20 +0200: > ... >>>The problem here is that CPS (the portal and all CPMs are CPS instances) >>>uses predefined roles, on which the various workflows relies, so that >>>would mean renaming all roles - differently - on each CPM, and modifying >>>the workflows too.

Re: [Zope] Re: Using the set object within page templates

2005-09-29 Thread Dieter Maurer
Alexander Limi wrote at 2005-9-28 20:40 +0200: >A more interesting question: shouldn't it be available by default? > >It's a basic data strucure along the lines of lists and dicts, right? Or >have I missed a use case for it where it may be scary to use in a Python >Script? :) Paranoic people w

Re: [Zope] Using Singletons

2005-09-29 Thread Dieter Maurer
Doyon, Jean-Francois wrote at 2005-9-28 13:28 -0400: >Is there any support within the framework for singletons? What I call >singletons are objects that are instanciated and persisted only once, or at >least should be. Such objects are often put into "Control_Panel". My "ZopeProfiler" is an examp

Re: [Zope] emergency access problems

2005-09-29 Thread michael nt milne
Yes, the access file was being created in the homeinstance. One thing I didn't do was run the zpasswd.py file when zope was stopped though, as I did with ./zopectl On 9/29/05, J Cameron Cooper <[EMAIL PROTECTED]> wrote: michael nt milne wrote:> Hi>> I appear to be having difficulty logging into the

Re: [Zope] emergency access problems

2005-09-29 Thread J Cameron Cooper
michael nt milne wrote: Hi I appear to be having difficulty logging into the ZMI using the password created on install. I did change some settings to my root login using the Samplex member product etc but didn't change the password, login etc. Anyway I've followed all the instructions in se

[Zope] Re: emergency access problems

2005-09-29 Thread michael nt milne
Just to say that I solved this by using ./zopectl adduser with zope shut down. On 9/29/05, michael nt milne <[EMAIL PROTECTED]> wrote: Hi   I appear to be having difficulty logging into the ZMI using the password created on install. I did change some settings to my root login using the Samplex m

[Zope] emergency access problems

2005-09-29 Thread michael nt milne
Hi   I appear to be having difficulty logging into the ZMI using the password created on install. I did change some settings to my root login using the Samplex member product etc but didn't change the password, login etc.   Anyway I've followed all the instructions in security.txt, telnetting in a

Re: [Zope] Aquisition, UserFolder and security

2005-09-29 Thread bruno modulix
Dieter Maurer wrote: > bruno modulix wrote at 2005-9-28 10:02 +0200: > >>Dieter Maurer wrote: >>... >> >>>Sounds like a permission to role mapping flaw... >>> >>> Apparently, roles controlled by the "Portal" UserFolder (e.g. >>> "Authenticated") are allowed to do things in your CPM that >>> you

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Chris Withers
Lennart Regebro wrote: if not hasattr(pack, '_m'): pack._m=fd.__dict__ fd.debug_compile = debug_compile fd.debug_compile__roles__ = ('Manager',) Ah, but did you need to use zdb's recompile method? Seems to work. I just needed to debug a script, and it worked fine! Great product! Th

[Zope] how to export values from a form to SPSS or Excel format?

2005-09-29 Thread Georgakopoulos Nicolas
I have a page that a client submit a questionnaire (multiply choices) and I want to export the values from the answers to SPSS logistic format so I can send it by mail... Can some one give me the right directions here ? thanks.. ___ Zope maillist

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Peter Bengtsson
For those people who are "porting" code to Zope 2.8, perhaps you want to read this: http://www.peterbe.com/plog/itp-on-zope-2.8.0 2005/9/29, Lennart Regebro <[EMAIL PROTECTED]>: > On 9/29/05, Lennart Regebro <[EMAIL PROTECTED]> wrote: > > This code: > > > > if not hasattr(pack, '_m'): pack._m=

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Lennart Regebro
On 9/29/05, Lennart Regebro <[EMAIL PROTECTED]> wrote: > This code: > > if not hasattr(pack, '_m'): pack._m=fd.__dict__ > fd.debug_compile = debug_compile > fd.debug_compile__roles__ = ('Manager',) Seems to work. I just needed to debug a script, and it worked fine! Great product! _

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Chris Withers
Pascal Peregrina wrote: That solution was given to me by someone on the zope mailing list by the time Zope 2.8.0 was out :) *shrugs* Still a fix for zdb that would have been handy for me to have. Are you using any zodb-based python scripts or are all yours FSPythonScripts? cheers, Chris

RE: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Pascal Peregrina
That solution was given to me by someone on the zope mailing list by the time Zope 2.8.0 was out :) -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED] Sent: 29 September 2005 09:26 To: Pascal Peregrina Cc: Luca Olivetti; [EMAIL PROTECTED]; zope@zope.org Subject: Re: [Zope]

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Lennart Regebro
On 9/29/05, Chris Withers <[EMAIL PROTECTED]> wrote: > *sigh*, looks like some of the project registration machinery has > changed between 2.7 and 2.8. Well, you are using __dict__, which you aren't supposed t odo for new style classes, which FactoryDispatchers now seem to be. This code: if

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Chris Withers
Pascal Peregrina wrote: If what is intended with this code is to monkey patch some class, then I had a similar problem on 2.8.0 and I solved it by using setattr() instead of item assignment (and it works with 2.7.6). It depends, did you try using the recompile method and did it work with your

RE: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Pascal Peregrina
If what is intended with this code is to monkey patch some class, then I had a similar problem on 2.8.0 and I solved it by using setattr() instead of item assignment (and it works with 2.7.6). Pascal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Chris Withers
Luca Olivetti wrote: folder_permissions, raise_exc=debug_mode) File "/usr/local/zope-2.8.1-final/lib/python/OFS/Application.py", line 773, in install_product initmethod(context) File "/home/luca/zopetest/Products/zdb/__init__.py", line 64, in initialize pack._m['debug_compile

Re: [Zope] Re: Output only the first or a particular record using TAL

2005-09-29 Thread Chris Withers
Julian Yap wrote: Another query I had was on the practice of using control flow (ie. if, for, etc.. statements). I guess the best way is to keep your control flow in Python scripts? Is this the common practise? Well, it seems to be that a little bit of python in a tal:condition is quite comm

Re: [Zope] SiteAccess (Enh. VHM) still needed, or merged to Zope?

2005-09-29 Thread Chris Withers
Jeff Kowalczyk wrote: Reportedly last updated 2001-08-19, is SAE really so mature that it has not subsequently needed updates or merited a merge into Zope's own VHM? Use the one that ships with Zope, it's likely to be better maintained... I need to map the incoming URL "http://(*.)foo.com/new

Re: [Zope] External Method Working Directory?

2005-09-29 Thread Chris Withers
jwithers wrote: eep, another one, hope we're not related ;-) Can anyone tell me what the default working directory for an external method is? You can't rely on it being anything. If you're working with files, you need to be very careful... Further, I need this to create a file temporarily

Re: [Zope] Re: Using the set object within page templates

2005-09-29 Thread Chris Withers
Alexander Limi wrote: A more interesting question: shouldn't it be available by default? It's a basic data strucure along the lines of lists and dicts, right? Or have I missed a use case for it where it may be scary to use in a Python Script? :) No, it's just an object type that came along