[Zope-Coders] Zope tests: 7 OK, 1 Failed

2005-08-12 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Thu Aug 11 11:01:01 2005 UTC to Fri Aug 12 11:01:01 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Test failures - Subject: FAILED (errors=1) : Zope-2_8-branch Python-2.4.1 : Linux From: Zope Unit Tests Date: Thu

[Zope-dev] BTrees.Length conflict resolution

2005-08-12 Thread Martijn Pieters
Did the conflict resolution code for BTrees.Length ever work? Because as it stands now the code will fail as it assumes that integers are passed in, instead of state dictionaries: def _p_resolveConflict(self, old, s1, s2): return s1 + s2 - old As there are no tests for this that I can see

Re: [Zope-dev] BTrees.Length conflict resolution

2005-08-12 Thread Tim Peters
[Martijn Pieters] Did the conflict resolution code for BTrees.Length ever work? Because as it stands now the code will fail You haven't seen this fail, you're _deducing_ that it must fail, right? as it assumes that integers are passed in, instead of state dictionaries: def

[Zope-dev] Re: BTrees.Length conflict resolution

2005-08-12 Thread Martijn Pieters
Tim Peters wrote: You haven't seen this fail, you're _deducing_ that it must fail, right? Deducing indeed... Don't overlook this other Length method: def __getstate__(self): return self.value That is, when a Length instance is asked for its state, it returns an integer.

Re: [Zope] Aquisition

2005-08-12 Thread Timur Izhbulatov
Date: Fri, 12 Aug 2005 10:48:44 +0400 From: Timur Izhbulatov [EMAIL PROTECTED] To: Dieter Maurer [EMAIL PROTECTED] Subject: Re: [Zope] Aquisition No, I don't forget to set the id. All objects which my product contains do have an id: # in __init__ self._setObject(add.id, add)

[Zope] FS based product and image replacement

2005-08-12 Thread Nicholas Wieland
Hi *, I'm trying to use image replacement in a FS product, but unfortunately I'm not able to catch the image on the FS (a simple gif). The image is inside 'myproduct/images', what I've tried is to create an ImageFile and use it inside the background-image directive inside the stylesheet, but also

Re: [Zope] FS based product and image replacement

2005-08-12 Thread David Pratt
Hi Nicholas. You want to put your images, templates, script pythons etc that you want to be available in a skin folder for your product. Then you make skin folder a DirectoryView as part of your product development and install so that the DirectoryView is installed with portal skins. Once you

[Zope] Creating an application using zope and plone

2005-08-12 Thread Saura Ramachandran
Hi all, I am very new to zope and plone. Now I have to make a blogging kind of site with user management based on roles. I want to have different classes for different type of users. Please tell me where to find good documentation to get started. And also some pointers to similar example

Re: [Zope] FS based product and image replacement

2005-08-12 Thread David Pratt
Well I think for plain zope there is a skinned folder (or similar named) implementation to apply the same approach except no CMF overhead. I think you could find it on zope.org or google around for it. Regards, David On Friday, August 12, 2005, at 10:13 AM, Nicholas Wieland wrote: Sorry, but

RE: [Zope] REQUEST.setHeader doesn't seem to work?

2005-08-12 Thread Aaron Bauman
Have you played w/ the capitalization of content-type in your call to setHeader? - Aaron Bauman http://www.gaycenter.org -Original Message- From: Yuan HOng [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 1:57 PM To: Zope@zope.org Subject: [Zope] REQUEST.setHeader doesn't seem

Re: [Zope] Creating an application using zope and plone

2005-08-12 Thread Dave Hall
On Fri, Aug 12, 2005 at 08:26:35PM +0530, Saura Ramachandran wrote: Hi all, I am very new to zope and plone. Now I have to make a blogging kind of site with user management based on roles. I want to have different classes for different type of users. Please tell me where to find good

Re: [Zope] Creating an application using zope and plone

2005-08-12 Thread Dave Kuhlman
On Fri, Aug 12, 2005 at 08:26:35PM +0530, Saura Ramachandran wrote: Hi all, I am very new to zope and plone. Now I have to make a blogging kind of site with user management based on roles. I want to have different classes for different type of users. Please tell me where to find good

Re: [Zope] Re: dtml-var variable from REQUEST not shown in input tag if it has spaces??

2005-08-12 Thread J Cameron Cooper
Josef Meile wrote: Hi Thomas, When i just use it as dtml-var sSQL everything is ok. When i use it like : input type=text value=dtml-var sSQL, i get everything until the first space. For example from select * from mytable i get select. I'm not sure, but don't you need to enclose it with

Re: [Zope] Creating an application using zope and plone

2005-08-12 Thread Dieter Maurer
Saura Ramachandran wrote at 2005-8-12 20:26 +0530: ... Please tell me where to find good documentation to get started. And also some pointers to similar example solutions. You read: * the Zope Book (2.7 edition, online) * the Zope developper guide * one of the Plone books *

Re: [Zope] REQUEST.setHeader doesn't seem to work?

2005-08-12 Thread Dieter Maurer
Yuan HOng wrote at 2005-8-12 01:57 +0800: I have a dtml file on FSDV which should return a file in text/plain format. The dtml method starts with: dtml-call expr=RESPONSE.setHeader('content-type', 'text/plain') ... some content ... We use setHeader to set the content-type to text/css -- and this

Re: [Zope] FS based product and image replacement

2005-08-12 Thread Dieter Maurer
Nicholas Wieland wrote at 2005-8-12 11:45 +0200: The image is inside 'myproduct/images', what I've tried is to create an ImageFile and use it inside the background-image directive inside the stylesheet, but also url(images/foo.gif) with and without the absolute url. ImageFile works. You must do

[Zope] Re: ZSyncer and Zope-2.8.0

2005-08-12 Thread Simon Michael
In my, similar, situation it is:: 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 Products.ZSyncer.ZSyncer, line 1199, in call_ Unauthorized: You are not

[Zope] Re: Creating an application using zope and plone

2005-08-12 Thread Alexander Limi
On Fri, 12 Aug 2005 18:37:00 +0200, Dave Kuhlman [EMAIL PROTECTED] wrote: On Fri, Aug 12, 2005 at 08:26:35PM +0530, Saura Ramachandran wrote: Hi all, I am very new to zope and plone. Now I have to make a blogging kind of site with user management based on roles. I want to have different