[Zope] Re: Zope 2.9.5 -> 2.9.6 DateTime Change

2006-12-14 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Brinegar wrote: > Today I started testing Zope 2.9.6. After the upgrade I noticed that > some calendar data generated from Oracle was wrong. After some > investigation I found that Zope 2.9.6 seems to assign a timezone of > GMT+0 when none is spe

[Zope] Zope 2.9.5 -> 2.9.6 DateTime Change

2006-12-14 Thread Brian Brinegar
Today I started testing Zope 2.9.6. After the upgrade I noticed that some calendar data generated from Oracle was wrong. After some investigation I found that Zope 2.9.6 seems to assign a timezone of GMT+0 when none is specified rather than using the server's timezone. For example, the following S

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

2006-12-14 Thread Doyon, Jean-Francois
Hello, OK, I found out the issues, and came up with a solution, if any one cares :) Requirements: - A get_request patch - A REQUEST object that will have the necessary information to locaize from (language code, etc ...) How I do it: - Copy Python lib's locale.py to your product - import Glob

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

[Zope] Questions about demostorage

2006-12-14 Thread Duncan Booth
Can someone explain to me what is and is not safe to do with demostorage? Say I have a zope setup involving a zeo server and clients, and I create another zope instance with wrapped around both mounts (the catalogs are mounted separately from the rest of the content). The main zope setup remai

Re: [Zope] acquisition

2006-12-14 Thread Peter Bengtsson
Dennis Schulz wrote: I found no example how to define it in the class generally for all instances i would like to access the supplier container under a different name inside one instance of Purchase Requisition. class PurchaseRequisition( SimpleItem, Implicit ): suppliers = proper

Re: [Zope] if object does not exist in python

2006-12-14 Thread Chris Withers
Garito wrote: Checks for named object inside the container that the script is in. hasattr(container, 'id') NO! This is bad for two reasons: 1. It'll acquire id from other places 2. It'll swallow any exceptions found in trying to get hold of 'id', inlcuding ConflictErrors, which is "bad"