[Zope] context in fs product
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 do it? Greetings Roman ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] context in fs product
--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 Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] context in fs product
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 it , it returns the base URL of the product instance ... All classes in the product subclass form Acquisition.Implicit. What am I missing here? Thanks so far! Roman ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] context in fs product
+---[ 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 testspace(self,REQUEST=None): |"""tests""" |req = self.absolute_url(self) |return req self.absolute_url() You shouldn't need to pass self in. | and on whatever URL I call it , it returns the base URL of the product instance ... | | All classes in the product subclass form Acquisition.Implicit. What am I missing here? | | Thanks so far! Is it set inside the ZODB yet? -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] image processing site quidance...
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 (thanks to smiley Chris) so I can use it as an external method. I have thought to do this implementation uploading the file to the ZopeDB and change it there or should the file be uploaded in the local file system ? either way , what should I know so I can do that ? thanks in advance. begin:vcard fn:Nicolas Georgakopoulos n:Georgakopoulos;Nicolas email;internet:[EMAIL PROTECTED] tel;work:2810 391945 tel;fax:2810 391937 tel;cell:6945 714 578 version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] context in fs product
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 problem in a different way. Thanks Roman ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] context in fs product
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 symptoms, not your guesses". -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'
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) > > > This is silly... What's silly about persisting the object I just created? > Why not just: > > self.manage_addFolder(id,title) Well, the suggestion I got was to do: self.manage_addProduct['OFSP'].manage_addFolder(... and this runs in the "Error Value: _getProducts" Error. > >> grinder_home = self.manage_targets['gr_sys']['grinder_home'] >> host_name = self.getHostname(grinder_home) > > > Okay, what type of object is 'self' here, where did you take this code > from? I'm proud to say: I wrote this myself. :-) self is supposed to be a foldeish object that is supposed to be the container for all objects I'm about to create in this routine. >> system = self.__getitem__(id) > > why not just: > > system=self[id] Great! Didn't know that! > Also, this will result in system not being acquisition wrapped in some > circumstances, what you really want is: > > system = getattr(self,id) > > ...but it really depends on what 'self' is, I'm not sure you have that > right. This also works. However to me it looks like, it produces the exact same result as __getitem__ and self[id] ... This "being acquisition wrapped" is driving me nuts! I just don't get it. And I belive it's the cause for the problems I'm facing ... Thanks for taking the time analyzing my code! Greetings Roman ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'
(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, > content_type='text/plain', > precondition='') > > I get: > > AttributeError: _getProducts 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 instances "Products" folder). Regards, Sascha ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Poskey Errors and BTreeFolder
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 version) * Archetypes reference_catalog We know how to find (fsrefs.py) and remove them, however new poskey errors are showing up from time to time. Any ideas of how to hunt down what's causing this? And are BTreeFolders particular fragile? /Anton Stonor ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'
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 instances "Products" folder). well, thanks for your consideration, but I'm actually concerned about fs based products. The whole thread is probably totally confusing because I'm totally confused. I found several inconsistnecies in my code. I'm right now doing a total rewright. I'll see it the problems persist. If so, I'll try to be less confused and decribe the problem more clearly. Greetings Roman ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'
(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 used for filesystem based > > products (like the stuff you have in your instances "Products" folder). > > well, thanks for your consideration, but I'm actually concerned about. > fs based products Why be concerned? Don't worry, be happy! - You can use manage_addFile *from* your own fs based product. - You can use manage_addProduct['something']... *from* your own product. - You can use manage_addProduct['something']... to add instances of your own product to folderish objects (and you can do this from TTW code or from fs based code) But you don't use manage_addProduct[... to do manage_addFile, no matter if your code runs in a TTW script or in a fs based product. Regards, Sascha ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] image processing site quidance...
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 much more precise about what "some pixels manipulation" actually means :-) Writing a drawing program is not so easy I think. Maybe with more client side intelligence... > I have installed PIL successfully for that reason (thanks to smiley > Chris) so I can use it as an external method. For more then just a single convert (even then) I'd write a complete external product. Its much easier to test and install and can do more. > I have thought to do this implementation uploading the file to the > ZopeDB and change it there or should the file be uploaded in the local > file system ? Actually depends on what you want to do and what you want to do after the changes. E.g. do you want to save a complete history of the manipulation? Then I'd go ZODB completely. If you dont want to save the image, I'd go tempfiles and pass the handles to them around the SESSION. (see tempfile module) Maybe a combination is apropriate. > either way , what should I know so I can do that ? You should experiment with PIL - maybe outside zope. You should learn how to write a simple python based product. You should read about ZODB programming so not to read whole image objects at once. For the history part, if you want that, look at the implementation of OFS.History. > thanks in advance. Good luck :-) --Tino ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] help
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 zope has already been installed 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 exceptionnels pour appeler la France et l'international. Téléchargez la version beta.___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] unbuffered response.write through Apache 2.0 reverse proxy?
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 "system's default buffer size"). I'm actually writing very short progress messages, e.g. Parsing page 1... Parsing page 2... etc. so I've padded this with blanks to hit the buffer size. Klugey,but works. On Feb 18, 2006, at 3:59 AM, Christoph Berendes wrote: To prevent browser timeout during a long running process, I've got the following code to work nicely,when the browser accesses Zope directly (e.g. http://myzope.net:8080/folder/client001/) context.REQUEST.response.write("progressing...") #do some stuff context.REQUEST.response.write("further...") #do some more stuff context.REQUEST.response.write("done!") However, when browser goes through the Apache reverse proxy, e.g. ServerAlias site1.foobar.com RewriteRule ^/(.*) \ http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/% 1/site001/VirtualHostRoot/$1 [L,P] I get all three writes (progressing..further...done!) at once, at the end of the processing. I'm running Apache 2.0, Zope. 2.7.6, Plone 2.0.5 on Linux From going through Apache docs and discussions (notably http:// www.gossamer-threads.com/lists/apache/dev/305433), it appears that this is an Apache 2.0 problem. Is there any way to get the same behavior (unbuffered writes) even when I go through the Apache reverse proxy? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.9 and SSL
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 using (Fast/P)CGI... yurch! Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Granting access by reading http headers (Consulting opportunity)
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 not accept cookies. Did I ask if it accepted cookie? No, I asked if it accepts http basic auth. Care to answer my question? ;-) 2) Plone barfs if you try tricks like adding a query string to URLs. Plohn barfs a lot, probably best not use it ;-) I don't have to worry about headers being spoofed. The host lives in our dedicated data center behind a VPN concentrator requiring RSA authentication. No one gets to the box unless we already have cleared them through two-phase authentication. Yah, sure... I'd still worry about headers being spoofed *grinz* cheers, Chris PS: If you want to pay me to solve this, contact me off list... -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'
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 objects to attributes without understanding acquisition of the pseudo-interfaces you need to adhere to in Zope will mean this _will_ bite you later... Why not just: self.manage_addFolder(id,title) Well, the suggestion I got was to do: self.manage_addProduct['OFSP'].manage_addFolder(... They're the same thing really... and this runs in the "Error Value: _getProducts" Error. Yes, because, almost certainly, 'self' above was not acquisition wrapped. Okay, what type of object is 'self' here, where did you take this code from? I'm proud to say: I wrote this myself. :-) Well, you did it wrong... show us soem code and we can fix it. system = getattr(self,id) ...but it really depends on what 'self' is, I'm not sure you have that right. This also works. However to me it looks like, it produces the exact same result as __getitem__ and self[id] ... _don't_ count on it... This "being acquisition wrapped" is driving me nuts! I just don't get it. Then go use PHP ;-) And I belive it's the cause for the problems I'm facing ... Yes, stop fighting the framework ;-) Take some existing examples and try and adapt them rather than starting from scratch with everything... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Poskey Errors and BTreeFolder
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 - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] [JOB] Python/Zope Dev, Rockville, MD | 60-100k | Relo OK
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 developing these kinds of applications is essential. We seek core competencies in web application development, both on the client side creating rich internet applications (RIA/AJAX) and on the server side of the application. Fine tuning and scalability expertise is of interest. Next to technical and computer science expertise, the developer should be comfortable in a multi-disciplinary context and should be able to explain technical issues to smart but not-so-technical colleagues. Familiarity with the biomedical domain and language is a plus. Qualifications: Python / Zope / Java / Object Oriented Programming, HTML / CSS / XML / JavaScript / Rich Internet Applications (RIA / AJAX), Linux / Windows. Candidates should be willing to work in the MD, VA, D.C. area and be authorized to work in the USA. Relocation OK. This is an on-site, salaried position in Rockville, MD. Please no offshore or telecommuters. To be considered, please submit your resume, a paragraph highlighting your Python / Zope experience and your salary requirements to [EMAIL PROTECTED] Thank you, Beau J. Gould Open Source Staffing [EMAIL PROTECTED] www.open-source-staffing.com Python, Zope Jobs: http://groups.yahoo.com/group/pythonzopejobs Open Source Jobs: http://groups.yahoo.com/group/opensourcejobs -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 2/17/2006 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] help
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 installed with dpkg -l zope* This should show at least zope-2.7. If that shows up you can find the documentation and how to setup an instance in /usr/share/doc/zope-2.7. Andreas -- You will have domestic happiness and faithful friends. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Double quote in ZSQL Method
Hi, In a ZSQL Method, I have tablename. 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. -- Jason C. Leach PGP Key: 0x62DDDF75 Keyserver: gpg.mit.edu ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Double quote in ZSQL Method
tablename. 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 tablename. > 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. > > -- > > Jason C. Leach > PGP Key: 0x62DDDF75 > Keyserver: gpg.mit.edu > ___ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Double quote in ZSQL Method
+---[ Jason C. Leach ]-- | Hi, | | In a ZSQL Method, I have tablename. | 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)? | tablename. Don't use sqlvar except for things you want quoted.. use dtml-var -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] LocalFS problem
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 a LocalFS folder I get the following info, instead of the pdf file (in this case): . The same file in another folder behind Apache+NTLM works fine. The LocalFS folder accessed in the past through Apache+mod_rewrite without NTLM+RemoteUserFolder used to work fine. The same file in LocalFS accessed through zope directly (another port; no apache) is delivered fine. So, the combination Apache+NTLM+FastCGI+RemoteUserFolder with LocalFS isn't working well. The only clue I have is that I get the file object description rather than the file itself. Any hints? TIA, Fernando ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] The Zope Software Certification Program and Common Repository Proposal
+---[ 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 start | using the process for third party package development. | | 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 any comments | about it! So in order to even get your Open Source package LISTED, you have to sign over the rights of your code to Zope Corp (currently, Zope Foundation later), and then check it into the svn respository. Is this is correct? So you're proposing that the Zope Foundation will not even mention other Open Source code that isn't actually owned and controlled by the Zope Foundation? I think there needs to be some other certification process that doesn't require the code to be owned by someone other than the original authors. Having a standard Zope package format would be far far more useful to the users at large, along with the associated tools (so developers can create compliant zope packages, and users can install packages actually using Zope). Packaging tools can then enforce certain restrictions automatically and create a manifest. If you had that, then that would certainly ease adding 'stuff' to the 'certified' repository, getting to LISTED level would be automatic. You might want to change the word Certification to Compliance. So, a package Complies with the Common Repository Standards, rather than is Certified By Zope Foundation. Certification implies a level of dilligence I don't think is actually being applied by this proposal. -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] creating multiple mountpoints in zope.conf
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 would I do this? Where can I find more documentaion on this? Thanks Robert begin:vcard fn:robert rottermann n:rottermann;robert email;internet:[EMAIL PROTECTED] tel;work:031 333 10 20 tel;fax:031 333 10 23 tel;home:031 333 36 03 x-mozilla-html:FALSE version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: The Zope Software Certification Program and Common Repository Proposal
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 community, we should also start > | using the process for third party package development. > | > | 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 any comments > | about it! > > So in order to even get your Open Source package LISTED, you have to sign > over > the rights of your code to Zope Corp (currently, Zope Foundation later), and > then > check it into the svn respository. > > Is this is correct? No. The common repository under the wings of ZC/ZF is just *a* repository that implements the ZSCP. There can be others, for example the Plone repository, the collective repository (perhaps), etc. I had earlier suggested to Stephan that we should keep the common repository separate from ZSCP and there out of this proposal. IMO there should be a separate proposal for the common repository. I guess he didn't agree. I think both the ZSCP and the common repository (in the context of the ZF) are a great idea. We should try to have as much stuff as possible in the common repository, but we shouldn't make the process dependent on it. I'm therefore still suggesting to divide up the proposal. Philipp ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: The Zope Software Certification Program and Common Repository Proposal
+---[ 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 community, we should also start | > | using the process for third party package development. | > | | > | 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 any comments | > | about it! | > | > So in order to even get your Open Source package LISTED, you have to sign over | > the rights of your code to Zope Corp (currently, Zope Foundation later), and then | > check it into the svn respository. | > | > Is this is correct? | | No. The common repository under the wings of ZC/ZF is just *a* | repository that implements the ZSCP. There can be others, for example | the Plone repository, the collective repository (perhaps), etc. The Common Repository is *not* a replacement for other high-level repositories like Plone's or ECM's. It does not aim at assimilating everything in the wider Zope community. It is merely a place for high-quality packages that are supported by the Zope development team. ^^^ Code in the Common Repository *must* also use the license stated in section 3.5 and developers *must* sign the contributor agreement. The ^ agreement is necessary to ensure that contributions originated from the contributing developer. a) Supported by Zope development team b) Must sign contributor agreement. I don't see why a 'repository' of 3rd party packages needs any agreement signed, unless some kind of indemnity is required which it wouldn't need if it's "just a repository". Any 'infringement' would simply result in the offending code being removed from the repository (which would have to happen anyway in case someone 'lied' about owning it). After all the repository is not claiming ownership of the code is it (unless you have to sign it over) The license for the code should also be irrelevant, since it's just a repository right? Just a convenient one stop shop for packages. So each package should be able to have its own license, no need for a common license. Having to sign the agreement serves no purpose unless there's some other IP issue involved other than simply storing the code. -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] creating multiple mountpoints in zope.conf
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 /shared/site_a How would I do this? Where can I find more documentaion on this? Thanks Robert ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) When I create a Data.fs with some structur I wat to mount and createthe following stanza: mount-point /parent/plone path $INSTANCE/var/parent/Data.fs and then try to mount it I get the following error Time2006/02/21 05:29:43.944 GMT+1 User Name (User Id) admin (admin) Request URL http://localhost:8380/manage_addProduct/ZODBMountPoint/manage_addMounts Exception Type TypeError Exception Value _construct() takes exactly 4 arguments (3 given) 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.ZODBMountPoint.MountedObject, line 297, in manage_addMounts * Module Products.ZODBMountPoint.MountedObject, line 76, in traverseOrConstruct TypeError: _construct() takes exactly 4 arguments (3 given) Display traceback as text REQUEST form paths ['/parent/plone'] submit 'Create selected mount points' begin:vcard fn:robert rottermann n:rottermann;robert email;internet:[EMAIL PROTECTED] tel;work:031 333 10 20 tel;fax:031 333 10 23 tel;home:031 333 36 03 x-mozilla-html:FALSE version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] creating multiple mountpoints in zope.conf
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 Site A's Data.fs.pub as /shared/site_a How would I do this? Where can I find more documentaion on this? Thanks Robert ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) When I create a Data.fs with some structur I wat to mount and createthe following stanza: mount-point /parent/plone path $INSTANCE/var/parent/Data.fs and then try to mount it I get the following error Time2006/02/21 05:29:43.944 GMT+1 User Name (User Id) admin (admin) Request URL http://localhost:8380/manage_addProduct/ZODBMountPoint/manage_addMounts Exception Type TypeError Exception Value _construct() takes exactly 4 arguments (3 given) 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.ZODBMountPoint.MountedObject, line 297, in manage_addMounts * Module Products.ZODBMountPoint.MountedObject, line 76, in traverseOrConstruct TypeError: _construct() takes exactly 4 arguments (3 given) Display traceback as text REQUEST form paths ['/parent/plone'] submit 'Create selected mount points' I investigated the error, and found two solutions: 1: create the folder defined as mountpoins beforehand 2: fix the error in ZODBMountPoint.MountedObject _construct expect a third argument 'final' which is not used at all. it can be removed (I think) (I found an open issue in the tracker.) begin:vcard fn:robert rottermann n:rottermann;robert email;internet:[EMAIL PROTECTED] tel;work:031 333 10 20 tel;fax:031 333 10 23 tel;home:031 333 36 03 x-mozilla-html:FALSE version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Poskey Errors and BTreeFolder
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. Tracebacks such as: 2005-12-09T18:46:04 ERROR(200) ZODB Couldn't load state for 0x04b364 Traceback (most recent call last): File "/var/www/zope/2.7.8/lib/python/ZODB/Connection.py", line 597, in setstate p, serial = self._storage.load(oid, self._version) File "/var/www/zope/2.7.8/lib/python/ZEO/ClientStorage.py", line 757, in load p, s, v, pv, sv = self._server.zeoLoad(oid) File "/var/www/zope/2.7.8/lib/python/ZEO/ServerStub.py", line 82, in zeoLoad return self.rpc.call('zeoLoad', oid) File "/var/www/zope/2.7.8/lib/python/ZEO/zrpc/connection.py", line 489, in call raise inst # error raised by server POSKeyError: 0x04b364 /Anton ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )