RE: [Zope] PageTemplate API Question

2007-09-20 Thread Doyon, Jean-Francois
] On Behalf Of Andreas Jung Sent: September 20, 2007 00:50 To: Doyon, Jean-Francois; zope@zope.org Subject: Re: [Zope] PageTemplate API Question huh --On 19. September 2007 17:00:03 -0400 Doyon, Jean-Francois [EMAIL PROTECTED] wrote: If I have an object that is represented like this: FSPageTemplate

RE: [Zope] PageTemplate API Question

2007-09-20 Thread Doyon, Jean-Francois
with this object: MapTopicText at /atlas/maps.mtp/environment.mtp/seaice.mtp/break-up.thm/1.mtx I want to get to the object the template is being applied TO. J.F. -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: September 20, 2007 08:57 To: Doyon, Jean-Francois

RE: [Zope] PageTemplate API Question

2007-09-20 Thread Doyon, Jean-Francois
To: Doyon, Jean-Francois; Andreas Jung; zope@zope.org Subject: RE: [Zope] PageTemplate API Question --On 20. September 2007 09:42:50 -0400 Doyon, Jean-Francois [EMAIL PROTECTED] wrote: obj = request['PUBLISHED'] print repr(obj) FSPageTemplate at /atlas/maptext_view used for /atlas

RE: [Zope] PageTemplate API Question

2007-09-20 Thread Doyon, Jean-Francois
] [mailto:[EMAIL PROTECTED] On Behalf Of Doyon, Jean-Francois Sent: September 20, 2007 10:09 To: Andreas Jung; zope@zope.org Subject: RE: [Zope] PageTemplate API Question Well I just looked at Using Zope Page Templates and Advanced Page Templates and Appendix C, and although context is mentionned many

[Zope] PageTemplate API Question

2007-09-19 Thread Doyon, Jean-Francois
If I have an object that is represented like this: FSPageTemplate at /atlas/maptext_view used for /atlas/maps.mtp/environment.mtp/seaice.mtp/break-up.thm/1.mtx How do I get to the object the template is being applied to (i.e. 1.mtx)? Thanks :) Jean-François Doyon Data Dissemination Division |

RE: [Zope] utf-8 over xmlrpc with zope2.9

2007-09-12 Thread Doyon, Jean-Francois
Subject: Re: [Zope] utf-8 over xmlrpc with zope2.9 Doyon, Jean-Francois wrote: To be more explicit. The problem is that the strings received by XML-RPC where the encoding is utf-8 end up internally as unicode u'' strings. Other strings you're working with internally might not be however

RE: [Zope] How to upgrade Python in older Zope?

2007-09-11 Thread Doyon, Jean-Francois
Alternatively, possibly, you could split your storage into multiple Data.fs files? I'm not sure how you'd migrate the object reliably (never done it myself), but it should be doable one would think? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [Zope] utf-8 over xmlrpc with zope2.9

2007-09-11 Thread Doyon, Jean-Francois
Should work, I use XML-RPC pretty heavily with utf-8 without much problems. This error might be occurring because you're mixing unicode and non-unicode strings on the same page. Send the full traceback and we'll know more ... J.F. -Original Message- From: [EMAIL PROTECTED]

RE: [Zope] utf-8 over xmlrpc with zope2.9

2007-09-11 Thread Doyon, Jean-Francois
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doyon, Jean-Francois Sent: September 11, 2007 14:01 To: Kevin; zope@zope.org Subject: RE: [Zope] utf-8 over xmlrpc with zope2.9 Should work, I use XML-RPC pretty heavily with utf-8 without much problems. This error might be occurring

RE: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-09-04 Thread Doyon, Jean-Francois
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Withers Sent: September 3, 2007 02:55 To: Doyon, Jean-Francois Cc: zope@zope.org Subject: Re: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :) Doyon, Jean-Francois wrote: 'user': SpecialUser

RE: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-08-30 Thread Doyon, Jean-Francois
, Jean-Francois Cc: zope@zope.org Subject: Re: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :) Doyon, Jean-Francois wrote: So I see this: Error Type: TypeError Error Value: 'unicode' object is not callable Usual comments, full traceback please. This doesn't look like a normal encoding

RE: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-08-30 Thread Doyon, Jean-Francois
:[EMAIL PROTECTED] Sent: August 30, 2007 08:49 To: Doyon, Jean-Francois Cc: Chris Withers; zope@zope.org Subject: Re: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :) As for subversion, I took great care to make sure everything was utf-8 on the FS, during development, and I know Subersion

[Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-08-29 Thread Doyon, Jean-Francois
G'day, So I've been working on this project for some time, and all is well. Now for the first time I migreate my product code to a brand new Zope installation on the production systems. Development and production systems are as identical as they can be. In this case, they both have the same

RE: [Zope] utf-8 problem in Zope when using Localizer

2007-08-24 Thread Doyon, Jean-Francois
If you can, I would strongly recommend using the Zope3/Five way of doing translations and i18n in general! See here: http://worldcookery.com/files/fivei18n/ http://codespeak.net/z3/five/i18n.html I've made my site fully internationalized, localized and utf-8 using this method without resorting

RE: [Zope] How Do I Structure This?

2007-08-15 Thread Doyon, Jean-Francois
Why would you put HTML inside an HREF? Sounds to me like you want html tal:replace=structure python: here.a_script(str(x)) / or something like that. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: August 15, 2007 10:45 To:

RE: [Zope] security assertion needed for dictionary?

2007-06-18 Thread Doyon, Jean-Francois
Forgetting plone (which I know nothing about), dictionaries definitely do NOT need security assertions (like lists, strings, integers and all basic types). Are you SURE it's a dictionary? Most likely it just LOOKS like one when represented as a string. Try: div tal:content=python:repr(myFeed)

RE: [Zope] RE: security assertion needed for dictionary?

2007-06-18 Thread Doyon, Jean-Francois
': u'Ubuntu: Linux For Human Beings', 'summary_detail': {'base': 'http://www.modscape.com/blog/rss.xml', 'type': 'text/html', 'value': u'ubuntu.jpg\n\nTom wrote: Doyon, Jean-Francois-2 wrote: Forgetting plone (which I know nothing about), dictionaries definitely do NOT need security assertions (like

RE: [Zope] zope cgi

2007-06-08 Thread Doyon, Jean-Francois
If what you mean is you want to be able to execute HTTP requests to other CGI's or run system commands, then this isn't Zope specific. Look in the Python standard library chapter 6.1.5 Process Management, or 11.5 urllib2 extensible library for opening URLs. Beyond that, you WILL need to write

RE: [Zope] zope cgi

2007-06-08 Thread Doyon, Jean-Francois
: June 8, 2007 15:11 To: Doyon, Jean-Francois Cc: zope@zope.org Subject: RE: [Zope] zope cgi Hello, I am trying execute binary programs from zope. Once I achieve it, I will can execute binary programs for send jobs into the Grid throght DRMAA binary programs that it tie with GridWay. After

RE: [Zope] Windows binary releases

2007-04-17 Thread Doyon, Jean-Francois
Go here: http://www.zope.org/Products/Zope/swpackage_releases 2.10.2 has a windows build ... Looks like 2.10.3 doesn't have one yet though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sullivan Sent: April 17, 2007 16:19 To: Zope Users

RE: [Zope] How do people work with html-designers?

2007-03-16 Thread Doyon, Jean-Francois
We use the design first approach, which has worked extremely well with us. We have an extensive UI development process for the web, which is itself iterative, includes user feedback and testing and so on. Experience has show us on many occasions that developpers/programmers should NOT design

RE: [Zope] zope replication

2007-01-29 Thread Doyon, Jean-Francois
I use ZRS ... I can't report much since it seems to have worked fairly transparently so far (A good thing!). 1 Master + 1 Slave ... When one of the boxes goes down for a reboot/maintenance, service is uninterrupted, since it supports a 99% read web site, I haven't had to work too hard on

RE: [Zope] pool_size

2007-01-17 Thread Doyon, Jean-Francois
This information is also available in the Control Panel's debug section. You can see which thread is busy doing what ... Depending on exactly how locked up it is, you can try going there, see what the current requests are pending, and in which thread. That panel also shows you cache information,

RE: [Zope] Re: pool_size

2007-01-16 Thread Doyon, Jean-Francois
Here's what I think I know (though I could be wrong): - The pool size is the number of ZODB connections maintained. - It should be at least as high as the number of zserver threads + 1 I think? - I use zserver threads 6 and pool_size 10, works fine. - zserver threads is basically a measure of how

RE: [Zope] Re: pool_size

2007-01-16 Thread Doyon, Jean-Francois
Users Subject: Re: [Zope] Re: pool_size On 1/16/07, Doyon, Jean-Francois [EMAIL PROTECTED] wrote: Here's what I think I know (though I could be wrong): - The pool size is the number of ZODB connections maintained. - It should be at least as high as the number of zserver threads + 1 I think? - I

RE: [Zope] Zope, setlocale(), requests and traversal

2006-12-18 Thread Doyon, Jean-Francois
, Jean-Francois Cc: Chris Withers; zope@zope.org Subject: RE: [Zope] Zope, setlocale(), requests and traversal Doyon, Jean-Francois wrote at 2006-12-15 08:38 -0500: setlocale() is a python thing. It wraps a C library, and that function setups an application wide environment (A bit like

[Zope] Zope, setlocale(), requests and traversal

2006-12-14 Thread Doyon, Jean-Francois
Hello, I know there is a locale setting in etc/zope.conf, and I make use of it. The problem now, is that I have a multilingual site that I would like to have support multiple locales, per request: One request could be for the french site and content, using the fr_CA locale in my case, but

A Solution to: [Zope] Zope, setlocale(), requests and traversal

2006-12-14 Thread Doyon, Jean-Francois
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doyon, Jean-Francois Sent: December 14, 2006 9:23 AM To: zope@zope.org Subject: [Zope] Zope, setlocale(), requests and traversal Hello, I know there is a locale setting in etc/zope.conf, and I make use of it. The problem now, is that I have

RE: [Zope] Zope 2.9 vs Zope 2.10 and Unicode problems

2006-10-20 Thread Doyon, Jean-Francois
it :( J.F. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eXt Sent: October 19, 2006 4:35 PM To: zope@zope.org Subject: Re: [Zope] Zope 2.9 vs Zope 2.10 and Unicode problems On Thursday 19 October 2006 14:55, Doyon, Jean-Francois wrote: Any ideas? http

RE: [Zope] Zope and Log File Analysis

2006-10-19 Thread Doyon, Jean-Francois
Doyon, Jean-Francois: The big problem I have is determining file types without having file extensions, since many objects are name with a simple id that doesn't contain a typical file extension. This makes it supremely difficult to determine viewing statistics based on content type

RE: [Zope] Zope and Log File Analysis

2006-10-19 Thread Doyon, Jean-Francois
: Re: [Zope] Zope and Log File Analysis --On 19. Oktober 2006 12:34:28 +0200 Sascha Ottolski [EMAIL PROTECTED] wrote: Am Mittwoch, 18. Oktober 2006 22:03 schrieb Doyon, Jean-Francois: The big problem I have is determining file types without having file extensions, since many objects are name

RE: [Zope] Zope and Log File Analysis

2006-10-19 Thread Doyon, Jean-Francois
To: Doyon, Jean-Francois; zope@zope.org Subject: RE: [Zope] Zope and Log File Analysis --On 19. Oktober 2006 08:07:37 -0400 Doyon, Jean-Francois [EMAIL PROTECTED] wrote: H, but said headers wouldn't be sufficient, unless I set custom ones for each (CMF, in my case) content type. Why

[Zope] Zope 2.9 vs Zope 2.10 and Unicode problems

2006-10-19 Thread Doyon, Jean-Francois
Hello, I just upgraded from Zope 2.9.4 to Zope 2.10 and am running into the common type of error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 295: ordinal not in range(128) I've tracked it down to the fact that in Zope 2.10 it looks like the result of tag:replace

[Zope] Zope and Log File Analysis

2006-10-18 Thread Doyon, Jean-Francois
Hello, So I've been struggling for years now to try and provide thorough log analysis for my Zope based web site. The big problem I have is determining file types without having file extensions, since many objects are name with a simple id that doesn't contain a typical file extension. This

RE: [Zope] Changing class of objects in the ZODB

2006-06-12 Thread Doyon, Jean-Francois
Assuming you're not changing attribute values, but *just* the class, I've had success with doing an XML export, a find/replace of the class name, and a re-import. The XML is fairly readable, you can just look for example for Products.MyProduct.OldClass and replace it with

RE: [Zope] REQUEST within a property() getter/setter

2006-06-08 Thread Doyon, Jean-Francois
I was afraid of this ... :( Back to using get_request() then! J.F. -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED] Sent: June 8, 2006 12:50 PM To: Doyon, Jean-Francois Cc: 'zope@zope.org' Subject: Re: [Zope] REQUEST within a property() getter/setter Doyon, Jean

[Zope] REQUEST within a property() getter/setter

2006-06-07 Thread Doyon, Jean-Francois
Hello, When executing code within a property getter/setter, I can't seem to get to the REQUEST object. self.REQUEST always seems to return Special Object Used to Force Acquisition ... Anyway around this? Jean-François Doyon Internet Service Development and Systems Support / Spécialiste de

[Zope] overrides.zcml and localization in Zope 2.9

2006-06-06 Thread Doyon, Jean-Francois
Hello, I'm trying to override Zope's localization mechanism with my own, as documented here: http://codespeak.net/z3/five/i18n.html And am not having any luck. configure xmlns=http://namespaces.zope.org/zope; xmlns:i18n=http://namespaces.zope.org/i18n; i18n:registerTranslations

[Zope] Metal:fill-slot *always* returns a span?

2006-05-05 Thread Doyon, Jean-Francois
Hi there, I have a master template with a slot definition like this: !-- Main Content Area is HERE -- div metal:define-slot=main/div !-- Main Content Area ends HERE -- And another template which attempts to fill it with something like: div

RE: [Zope] zope and nagios

2006-03-31 Thread Doyon, Jean-Francois
:[EMAIL PROTECTED] Sent: March 31, 2006 2:47 AM To: robert rottermann Cc: Doyon, Jean-Francois; zope Subject: Re: [Zope] zope and nagios robert rottermann wrote: When you have zope running on top of zeo and stop zeo you still can ask for a page and it will be returned correctly. We have a zeoup

RE: [Zope] zope and nagios

2006-03-30 Thread Doyon, Jean-Francois
Actually to detect whether it is *running* fetching a page will do the trick. That's what we do here and it works fine. That will NOT detect however if Zope is running, but errors are occuring. I sthat what you really want? Why would looking up a page not do the trick? J.F. -Original

RE: [Zope] Re: Ape

2006-03-14 Thread Doyon, Jean-Francois
This might be of interest to you: http://www.zope.org/Members/jdoyon/svnapezope Doesn't fix the issue of Ape only working with 2.7 however, obviously :( J.F. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Kratz Sent: March 13, 2006 3:07 PM To:

RE: [Zope] Can one nest macros with slots?

2006-01-26 Thread Doyon, Jean-Francois
this to be recursive ... Ah well :( Thanks! J.F. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of J Cameron Cooper Sent: January 26, 2006 12:52 AM To: Doyon, Jean-Francois Cc: zope@zope.org Subject: Re: [Zope] Can one nest macros with slots? Doyon, Jean-Francois wrote: I

[Zope] Can one nest macros with slots?

2006-01-25 Thread Doyon, Jean-Francois
I can't seem to do this: use-macro fill-slot define-macro ... Some html ... define-slot/define-slot ... Some html ... /define-macro /fill-slot /use-macro Allowing me to nest multiple reusable templates? I have objects with common interfaces which could easily share

RE: [Zope] Zope Version

2005-11-28 Thread Doyon, Jean-Francois
Just look in the Management Interface, in the Control Panel ... J.F. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Asad Habib Sent: November 28, 2005 3:54 PM To: zope@zope.org Subject: [Zope] Zope Version How do I determine which version of Plone/Zope

RE: [Zope] Zope Version

2005-11-28 Thread Doyon, Jean-Francois
installation, see if it's in there somewhere? I believe there is a VERSION.txt file, but it probably is the containing the bad version identifier. J.F. -Original Message- From: Asad Habib [mailto:[EMAIL PROTECTED] Sent: November 28, 2005 4:03 PM To: Doyon, Jean-Francois Cc: zope@zope.org

RE: [Zope] Revision Control / CVS / SVN integration with ZODB?

2005-11-07 Thread Doyon, Jean-Francois
You may be interested in: http://www.zope.org/Members/jdoyon/svnapezope/Caesar This was a one man thing I did ... I ran into some big hurdles, and gave up on it for now. I still think the idea is excellent mind you, but some of the ZODB/APE paradigms didn't translate well into the SVN world.

RE: [Zope] Zope 2.8 or 3.1?

2005-10-26 Thread Doyon, Jean-Francois
I'm using Zope 2.7.x on RHEL 3.x without trouble ... Though I should be upgrading to CentOS 4.x fairly soon ... what problems have you heard of? As for Zope, if you're not sure, then you probably want 2.8.x ... 3.1 is stable, but for lower level development ... also depends what features

RE: [Zope] Zope 2.8 or 3.1?

2005-10-26 Thread Doyon, Jean-Francois
pretty straight-forward mind you. J.F. From: HaraldFinnås [mailto:[EMAIL PROTECTED] Sent: October 26, 2005 4:55 PMTo: zope@zope.orgCc: Doyon, Jean-FrancoisSubject: RE: [Zope] Zope 2.8 or 3.1? "Doyon, Jean-Francois" [EMAIL PROTECTED] wrote on 26.10.2005 22:40:09: I'm using

[Zope] Re: Problem with hasattr() and Zope 2.8.1

2005-10-05 Thread Doyon, Jean-Francois
of metaclasses might be a cause for the different behavior?? Either that, or there's something buggy with zope's versions of get/set/has/delattr ... Even though I've gotten around it, I'll keep looking, it's driving me nuts :) J.F. On Friday 30 September 2005 12:49 pm, Doyon, Jean-Francois wrote: Hello

RE: [Zope] Re: Problem with hasattr() and Zope 2.8.1

2005-10-05 Thread Doyon, Jean-Francois
Your example shows my problem, or what I see as a problem anyways: def __init__(self): self.__blech = 1 def do(self): print hasattr(self, __blech) x = Foo() x.do() False False? Really? hasattr() is used within the context of the class itself, so

[Zope] Problem with hasattr() and Zope 2.8.1

2005-09-30 Thread Doyon, Jean-Francois
Hello, I'm using new-style classes and properties to implement multilingual support in my objects. I might therefore have something like: mything = property(__get_mything) def __get_mything: return self.__mything_en (Extremely simplified!) This works fine. Now however I'm discovering

[Zope] Using Singletons

2005-09-28 Thread Doyon, Jean-Francois
Hello, 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. I find myself wanting to use these in several instances, notably when I create a class/object that acts as a gateway to an