[Zope] context in fs product

2006-02-20 Thread Roman Klesel
Hello, from doing TTW I'm used to call methods on the object that is passed in by the context variable. I'm just writing my first fs based product and was wondering how I can get context from within a method? Of course I can try to construct it from self.REQUEST, but ... is this _THE_ way to

Re: [Zope] context in fs product

2006-02-20 Thread Andreas Jung
--On 20. Februar 2006 09:36:25 +0100 Roman Klesel [EMAIL PROTECTED] wrote: Of course I can try to construct it from self.REQUEST, but ... is this _THE_ way to do it? 'self' inside the a Zope product is the _same_ as 'context' or 'here' within ZPT or PythonScripts. -aj pgp0N2XZfxmVw.pgp

Re: [Zope] context in fs product

2006-02-20 Thread Roman Klesel
Lennart Regebro schrieb: It's usually called self... hmmm ... strange ... in a class: class Controller(Implicit,ObjectManager, SimpleItem): asfd I have a method: def testspace(self,REQUEST=None): tests req = self.absolute_url(self) return req and on whatever URL I call

Re: [Zope] context in fs product

2006-02-20 Thread Andrew Milton
+---[ Roman Klesel ]-- | Lennart Regebro schrieb: | It's usually called self... | I missed the start of this thread... | hmmm ... strange ... | | in a class: | | | class Controller(Implicit,ObjectManager, SimpleItem): | asfd | | I have a method: | | def

[Zope] image processing site quidance...

2006-02-20 Thread Nicolas Georgakopoulos
Hello Zopistas, I need a little guidance for a site that must make image processing on the fly. Users should be able to upload image files and after some pixels manipulation they should see the image preview after the changes and download it. I have installed PIL successfully for that reason

Re: [Zope] context in fs product

2006-02-20 Thread Roman Klesel
Hello, Andrew Milton schrieb: | Thanks so far! Is it set inside the ZODB yet? *bling* yes, that kicked me out of the mental loop. As you suggested this test class is not in ZODB and therefore the aquisition does not work. Therefore my testcase is useless and I've to investigate my

Re: [Zope] context in fs product

2006-02-20 Thread Lennart Regebro
On 2/20/06, Roman Klesel [EMAIL PROTECTED] wrote: Therefore my testcase is useless and I've to investigate my problem in a different way. Ah. Read this: http://www.catb.org/~esr/faqs/smart-questions.html Especially: Be precise and informative about your problem and Describe the problem's

Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'

2006-02-20 Thread Roman Klesel
Chris Withers schrieb: for id in self.manage_targets.keys(): title = self.manage_targets[id]['name'] self.tgt_folder=Folder() This is dangerous... Why is that? self._setObject(id,self.tgt_folder)

Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'

2006-02-20 Thread Sascha Welter
(Thu, Feb 16, 2006 at 12:00:05PM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse: From: Roman Klesel [EMAIL PROTECTED] Still I can't get what I want. when I now do: system.manage_addProduct['OFSP'].manage_addFile(fid, title='', file=cpu_load,

[Zope] Poskey Errors and BTreeFolder

2006-02-20 Thread Anton Stonor
Hi there, After five years with plenty of Zope/Plone sites running we are now facing our first ZODB problems: Poskey Errors popping up here and there. And it seems that they are all related to BTreeFolder based objects, e.g. * The CMF/Plone Member Folder * portal_memberdata (the CMFMember

Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'

2006-02-20 Thread Roman Klesel
Hello Sascha, Sascha Welter schrieb: manage_addFile (and some others like manage_addFolder, ...) work directly without xy.manage_addProduct[...]. That part is in the Zope book. The syntax with manage_addProduct[... is used for filesystem based products (like the stuff you have in your

Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'

2006-02-20 Thread Sascha Welter
(Mon, Feb 20, 2006 at 03:45:31PM +0100) Roman Klesel wrote/schrieb/egrapse: Sascha Welter schrieb: manage_addFile (and some others like manage_addFolder, ...) work directly without xy.manage_addProduct[...]. That part is in the Zope book. The syntax with manage_addProduct[... is

Re: [Zope] image processing site quidance...

2006-02-20 Thread Tino Wildenhain
Nicolas Georgakopoulos schrieb: Hello Zopistas, I need a little guidance for a site that must make image processing on the fly. Users should be able to upload image files and after some pixels manipulation they should see the image preview after the changes and download it. You should be

[Zope] help

2006-02-20 Thread adeline nombre
hi to all. I wanted to install zope on my debian system but I noticed there is a /usr/lib/zope directory. so I concluded zopehas already beeninstalled with my debian system. so what to do now? I'm just beginning. tanx Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs

Re: [Zope] unbuffered response.write through Apache 2.0 reverse proxy?

2006-02-20 Thread Christoph Berendes
Chris McDonough wrote: Apache does its own buffering IIRC. Look for ProxyReceiveBufferSize/ ProxyIOBufferSize. Thanks. AFAICT (http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxyiobuffersize), though, the buffer size settings have to be fairly large (512 or more, or 0 for the

Re: [Zope] Zope 2.9 and SSL

2006-02-20 Thread Chris Withers
Ron Bickers wrote: Except that I don't have Apache installed anymore. :-) I know at one time it did not report Zope, but that may have been way back before I was using mod_proxy. I see that the ozzope.org Plone site reports Apache. So they must not be using mod_proxy, yes? Porbably both

Re: [Zope] Granting access by reading http headers (Consulting opportunity)

2006-02-20 Thread Chris Withers
Marc Schnapp wrote: Google Mini can do http basic auth, right? If so, you're fine, just put in the basic auth details and define a user in acl_users. Provided the mini presents the credentials without first being challenged by a 401, you'll be fine... Marc responds: 1) The Google Mini does

Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'

2006-02-20 Thread Chris Withers
Roman Klesel wrote: Chris Withers schrieb: for id in self.manage_targets.keys(): title = self.manage_targets[id]['name'] self.tgt_folder=Folder() This is dangerous... Why is that? 'cos arbitarilly assigning

Re: [Zope] Poskey Errors and BTreeFolder

2006-02-20 Thread Chris Withers
Anton Stonor wrote: Any ideas of how to hunt down what's causing this? And are BTreeFolders particular fragile? How about some tracebacks/zope version/plohn version/more information? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

[Zope] [JOB] Python/Zope Dev, Rockville, MD | 60-100k | Relo OK

2006-02-20 Thread Beau Gould
Python/Zope Dev, Rockville, MD | 60-100k | Relo OK Job Description: The main part of our development will take place in our Rockville, MD office. We are looking for a developer who will work from this office. The envisioned services are web applications and thorough knowledge and expertise in

Re: [Zope] help

2006-02-20 Thread Andreas Pakulat
On 15.12.05 20:14:51, adeline nombre wrote: I wanted to install zope on my debian system but I noticed there is a /usr/lib/zope directory. so I concluded zope has already been installed with my debian system. so what to do now? I'm just beginning. You can find out about packages that are

[Zope] Double quote in ZSQL Method

2006-02-20 Thread Jason C. Leach
Hi, In a ZSQL Method, I have tablename.dtml-sqlvar species type=string and I get tablename.'species_value', what I need is tablename.species_value. Any idea how I can get Zope/ZSQL to not put in the single quotes (or use double quotes)? Thanks, Jason. --

Re: [Zope] Double quote in ZSQL Method

2006-02-20 Thread jpenny
tablename.dtml-var species sql_quote should work. Be sure that you check that species is valid before this call. sql_quote should protect you from SQL injection, but it is better to be safe. jim [EMAIL PROTECTED] wrote on 02/20/2006 05:46:49 PM: Hi, In a ZSQL Method, I have

Re: [Zope] Double quote in ZSQL Method

2006-02-20 Thread Andrew Milton
+---[ Jason C. Leach ]-- | Hi, | | In a ZSQL Method, I have tablename.dtml-sqlvar species type=string | and I get tablename.'species_value', what I need is | tablename.species_value. Any idea how I can get Zope/ZSQL to not | put in the single quotes (or use double

[Zope] LocalFS problem

2006-02-20 Thread Fernando Martins
Hi, I'm using LocalFS 1.7rc? and Zope 2.8.? in a Suse system. More importantly for this case, zope is behind Apache 1.39 with module NTLM, through FastCGI, and users folder is a RemoteUserFolder. mod_rewrite and Virtual Host Monster is being used do do some URL rewriting. When I access a file in

Re: [Zope] The Zope Software Certification Program and Common Repository Proposal

2006-02-20 Thread Andrew Milton
+---[ Stephan Richter ]-- | Hello everyone, | | With the development of Zope 3, the Zope developers committed to a new | development process and higher software quality guidelines. With the adoption | of Zope 3 technologies in the wider Zope community, we should also

[Zope] creating multiple mountpoints in zope.conf

2006-02-20 Thread robert rottermann
Hi there, I would like to create a site that includes the Data.fs of other sites as mount points. What I would like to do is the following: Site A with using : Data.fs (which is private) Data.fs.pub (which is public) Site B: mounts Site A's Data.fs.pub as /shared/site_a How

[Zope] Re: The Zope Software Certification Program and Common Repository Proposal

2006-02-20 Thread Philipp von Weitershausen
Andrew Milton wrote: +---[ Stephan Richter ]-- | Hello everyone, | | With the development of Zope 3, the Zope developers committed to a new | development process and higher software quality guidelines. With the adoption | of Zope 3 technologies in the wider Zope

Re: [Zope] Re: The Zope Software Certification Program and Common Repository Proposal

2006-02-20 Thread Andrew Milton
+---[ Philipp von Weitershausen ]-- | Andrew Milton wrote: | +---[ Stephan Richter ]-- | | Hello everyone, | | | | With the development of Zope 3, the Zope developers committed to a new | | development process and higher software quality

Re: [Zope] creating multiple mountpoints in zope.conf

2006-02-20 Thread robert rottermann
robert rottermann wrote: Hi there, I would like to create a site that includes the Data.fs of other sites as mount points. What I would like to do is the following: Site A with using : Data.fs (which is private) Data.fs.pub (which is public) Site B: mounts Site A's Data.fs.pub as

Re: [Zope] creating multiple mountpoints in zope.conf

2006-02-20 Thread robert rottermann
robert rottermann wrote: robert rottermann wrote: Hi there, I would like to create a site that includes the Data.fs of other sites as mount points. What I would like to do is the following: Site A with using : Data.fs (which is private) Data.fs.pub (which is public) Site B: mounts

[Zope] Re: Poskey Errors and BTreeFolder

2006-02-20 Thread Anton Stonor
Chris Withers wrote: Any ideas of how to hunt down what's causing this? And are BTreeFolders particular fragile? How about some tracebacks/zope version/plohn version/more information? Right, I just thought that made little sence when it came to Poskey Errors. Zope 2.7.8, Plone 2.0.5.

[Zope-dev] already have current data for oid

2006-02-20 Thread Peter Zechmeister
Hi, I am experimenting with ZEO. Sometimes I get this Error: ValueError: already have current data for oid (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: already have current data for oid) It starts with one

[Zope-dev] Re: The Zope Software Certification Program and Common Repository Proposal

2006-02-20 Thread Martin Aspeli
On Mon, 20 Feb 2006 21:28:09 -, Stephan Richter [EMAIL PROTECTED] wrote: I have spent the last two weeks working on a proposal that defines a Zope Software Certification Program (ZSCP) and a Common Repository that implements this process. The proposal is attached to this mail. I welcome

[Zope-dev] Re: The Zope Software Certification Program and Common Repository Proposal

2006-02-20 Thread Philipp von Weitershausen
Andrew Milton wrote: +---[ Stephan Richter ]-- | Hello everyone, | | With the development of Zope 3, the Zope developers committed to a new | development process and higher software quality guidelines. With the adoption | of Zope 3 technologies in the wider Zope

Re: [Zope-dev] Zope 2.8.6 and 2.9.1 schedule

2006-02-20 Thread robert rottermann
Andreas Jung wrote: --On 23. Januar 2006 21:37:10 +0100 Andreas Jung [EMAIL PROTECTED] wrote: I am plan to release Zope 2.8.6 and 2.9.1 in the middle of February (around Feb, 15th). Unfortunately I am currently too busy to do any releases right now. There are also some bug reports

[Zope-DB] Accessing ZSQL Method properties

2006-02-20 Thread Philip Kilner
Hi All, I'd like to throw a warning in my application when a record-set is truncated (e.g. if the ZSQL Method has a Maximum Rows to Retrieve value lower than the size of the record-set). In a Script(Python), what is the syntax to access this value? FWIW, I've been trying to work this out from