[Zope-dev] Popular software at low low prices
TOP quality software: Special Offer #1: Windows XP Professional+Microsoft Office XP Professional = only $80 Special Offer #2: Adobe - Photoshop 7, Premiere 7, Illustrator 10 = only $120 Special Offer #3: Macromedia Dreamwaver MX 2004 + Flash MX 2004 = only $100 Also: Windows 2003 Server Windows 2000 Workstation Windows 2000 Server Windows 2000 Advanced Server Windows 2000 Datacenter Windows NT 4.0 Windows Millenium Windows 98 Second Edition Windows 95 Office XP Professional Office 2000 Office 97 MS Plus MS SQL Server 2000 Enterprise Edition MS Visual Studio .NET Architect Edition MS Encarta Encyclopedia Delux 2004 MS Project 2003 Professional MS Money 2004 MS Streets and Trips 2004 MS Works 7 MS Picture It Premium 9 MS Exchange 2003 Enterprise Server Adobe Photoshop Adobe PageMaker Adobe Illustrator Adobe Acrobat 6 Professional Adobe Premiere Macromedia Dreamwaver MX 2004 Macromedia Flash MX 2004 Macromedia Fireworks MX 2004 Macromedia Freehand MX 11 Corel Draw Graphics Suite 12 Corel Draw Graphics Suite 11 Corel Photo Painter 8 Corel Word Perfect Office 2002 Norton System Works 2003 Borland Delphi 7 Enterprise Edition Quark Xpress 6 Passport Multilanguage Enter Here___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] authorization and SQL-methods
Hi I'm using the latest cvs-version of Zope and I seem to not be able to acces ZSql-methods, I get the login-box, but I can't login as anyone (I have tried to login as superuser, myself (owner/manager) and not at all, but all I get is not authorized. The methods do work in management-mode, but not in the actual pages (or in he view-tab for index_html). Everything Aquires security from the root-folder, but that doesn't seem to help any (neither does giving everyone full rights...). And yes I checked to see that the root-folder is setting "Use database methods". So if anyone has any ideas to try, I'd be happy ;) My guess is that it has something to do with the new security patches, but I'm not sure. oh, right, and another thing, could you cool developers of Zope please take a quick look through all the management-tabs and make sure that they don't move around alot like they do now ;), this would speed up productivity a little for us users ;). /Peter Toneby, who finds stability boring ;) -- Alpha Test Version: Too buggy to be released to the paying public. Beta Test Version: Still too buggy to be released. Release Version: Alternate pronunciation of "Beta Test Version". ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Broken instances when upgrading from 2.1.6 to 2.2
Hi I had the same problem... I dont know what the problem was but I deleted the imported product (ZClass) and created a new exactly equal product from scratch (of course I saved all the code I had and used copy and paste :). This worked for me. Any1 know why that problem show up in 2.2 ? Peter [EMAIL PROTECTED] skrev: > Hello, > > I create a ZClass which subclasses ZCatalog, in my 2.1.6 zope. > Then I move the Data.fs to a 2.2 and all the instances of mt ZClass show > up as broken > >This object is broken because the unknown product that created it is no >longer installed or is installed incorrectly. (...) > > The ZClass itself is fine, and I have no problem creating new instances > and managing them. > > I tried to export the instances from the 2.1.6, and importing them > into 2.2 > > but alas: > >The object broken does not support this operation > > (traceback follows) > > Does anybody know why this happens? can anyone please help? > Thanks, > Noa > >Traceback (innermost last): > File /hd1/zope/lib/python/ZPublisher/Publish.py, line 222, in >publish_module > File /hd1/zope/lib/python/ZPublisher/Publish.py, line 187, in publish > File /hd1/zope/lib/python/Zope/__init__.py, line 221, in >zpublisher_exception_hook >(Object: ApplicationDefaultPermissions) > File /hd1/zope/lib/python/ZPublisher/Publish.py, line 171, in publish > File /hd1/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply >(Object: manage_importObject) > File /hd1/zope/lib/python/ZPublisher/Publish.py, line 112, in >call_object >(Object: manage_importObject) > File /hd1/zope/lib/python/OFS/ObjectManager.py, line 496, in > manage_importObject > (Object: ApplicationDefaultPermissions) > File /hd1/zope/lib/python/OFS/CopySupport.py, line 402, in > _verifyObjectPaste > (Object: ApplicationDefaultPermissions) >Copy Error: (see above) > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Datebug?
I have encountered a strange and irritating problem. As I live in Sweden we use timezone 'GMT+1'. I have a form like this: And when I press submit I come to this page: The input field are correctly displaying the date (in GMT+1) but when I submit the form and use the "fmt" the date is displayed with a decrease of 24 hours. Like if I write 2000-07-21 in the input-field the next page will display 2000-07-20. I I dont format the date on the second page the same date will be shown. It cant really be a timezone issue because it is decreasing the date by 24 hours and I only live 1 hour from GMT. The date on my computer and the server are correct. Does someone knows why this happens when I use "fmt" or is this a DateTime bug? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Strange local(?) bug in uploading files
I have a major problem with uploading files. I am doing a form to upload PDF-files This is what it looks like (with only the relevant code): pdf_form: Title: PDF: pdf_method: When I run this code in 2.1.6 it almost works. The content_type is wrong but if you edit this property and set it to "application/pdf" it works. (This is another strange problem.. this should be set automaticlly. I doesnt work when I pass content_type='application/pdf' either.) However when I try to run this in Zope 2.2 i get the following error (with traceback): Error Type: AttributeError Error Value: seek Traceback (innermost last): File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: pdf_method) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: pdf_method) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: pdf_method) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: pdf_method) File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 342, in eval (Object: manage_addFile(pdfid, file=pdf, title=titlepdf)) (Info: pdf) File, line 0, in ? File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/OFS/Image.py, line 125, in manage_addFile (Object: ElementWithAttributes) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/OFS/Image.py, line 271, in manage_upload (Object: 965062238) File /usr/local/new.test.version.of.zope.DO.NOT.REMOVE/lib/python/OFS/Image.py, line 304, in _read_data (Object: 965062238) AttributeError: (see above) I tried to look in the python-files for manage_addFile but I didnt see anything wrong there (however I am a python newbie :) Why do I get this error in 2.2? I have tried everything and consulted the irc-channel but noone could help me. Is this a bug in 2.2 or am I doing something wrong? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] RE: [Zope] ZPatterns Question
Hi guys, I'm trying to make a simple guestbook using ZClasses and ZPatterns, I suppose this is somewhat overkill, and would be alot easier to do using SQL, but it's for the sake of knowledge (as is everything I do). So I read the IRC-log and asked a question regarding storing a ZClass in a Specialist/Rack, and I suppose that is what I should do too. Also note that I have not done anything with ZClasses or ZPatterns and take this as an oppotunity to learn booth ;). So I have done the following: I created a product and put 2 ZClasses in it, Guestbook and Guestbook_entry. Guestbook_entry was created with Dataskin as baseclass and holds a propertysheet called entry_data. Guestbook has 2 methods that handles the adding of entries, one is the form, the other is the actual dataadder (the forms action) and it's called entry_addProcessor. I then added a specialist to Guestbook, and told it to store Guestbook_entrys, it's called entry_storage. entry_addProcessor contains the following code: Code is supposed to go here... I just have to figure out how to add the data sent to newobj... But when I try to run this I get "Unauthorized" for newItem, and I don't know what settings to set for anonymous to be able to use it, since I can't seem to get it to work even with my user that has created everything. Now, am I correct to put the properties in the ZClass, or should they go into a PersistentSheet or a PersitentSheetProvider plugin? And if I should put it into PersistenSheets should I change anything in the Sheet_Names and Sheet_Namespaces boxes or just att my properties? And what about the Unauthorized error, should I change something in the define permissions tab? Now, if I could get this little question answered in english (not ZPatternish), I would be very happy, and if you get me to grasp these things I think quite a few others will grasp it too, and you will get less requests for basic dokumentation, and everyone will be happy and live long and prosper forever after. /Peter Toneby, who really should go to bed now. -- Alpha Test Version: Too buggy to be released to the paying public. Beta Test Version: Still too buggy to be released. Release Version: Alternate pronunciation of "Beta Test Version". ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Wrap or not wrap i Zope source
What I want to do is simple. Modify the source of Zope so that one can select either wrap=off or wrap=virtual in the textarea box of the documentEdit.dtml I bet you all recognize these HTML bits (documentEdit.dtml): And I want to add: This submitbutton should trigger the simple following DTML (documentEdit.dtml): WRAP="virtual" WRAP="Off" I have checked the python source, but I'm definitly not a wiz or very good with OOP. The documentEdit.dtml document "actions" the form to manage_edit() found in DTMLDocument.py and DTMLMethod.py: def manage_edit(self,data,title,SUBMIT='Change',dtpref_cols='50', dtpref_rows='20',REQUEST=None): """ Replaces a Documents contents with Data, Title with Title. The SUBMIT parameter is also used to change the size of the editing area on the default Document edit screen. If the value is "Smaller", the rows and columns decrease by 5. If the value is "Bigger", the rows and columns increase by 5. If any other or no value is supplied, the data gets checked for DTML errors and is saved. """ self._validateProxy(REQUEST) if self._size_changes.has_key(SUBMIT): return self._er(data,title,SUBMIT,dtpref_cols,dtpref_rows,REQUEST) self.title=str(title) if type(data) is not type(''): data=data.read() self.munge(data) if REQUEST: message="Content changed." return self.manage_main(self,REQUEST,manage_tabs_message=message) The _er method is found in DTMLMethod.py def _er(self,data,title,SUBMIT,dtpref_cols,dtpref_rows,REQUEST): dr,dc = self._size_changes[SUBMIT] rows=max(1,atoi(dtpref_rows)+dr) cols=max(40,atoi(dtpref_cols)+dc) e=(DateTime('GMT') + 365).rfc822() resp=REQUEST['RESPONSE'] resp.setCookie('dtpref_rows',str(rows),path='/',expires=e) resp.setCookie('dtpref_cols',str(cols),path='/',expires=e) return self.manage_main( self,REQUEST,title=title,__str__=self.quotedHTML(data), dtpref_cols=cols,dtpref_rows=rows) I GUESS that it is in this method I do my changes (together with parameters in manage_edit() [DTMLDocument.py and DTMLMethod.py]) Maybe something like this: if wrap_cookie is 'off': resp.setCookie('wrap_cookie','virtual',path='/',expires=e) newwrap_status='virtual' else: resp.setCookie('wrap_cookie','off',path='/',expires=e) newwrap_status='off' ...and... return self.manage_main( self,REQUEST,title=title,__str__=self.quotedHTML(data), dtpref_cols=cols,dtpref_rows=rows,wrap_or_not=newwrap_status) I don't dare to do anything yet, because I feel a bit unfonfy about changing source at this level. Can you please give me some hints or advice or maybe you already have this done. Peter Bengtsson - bloody good programmer [ do I dare to keep my funny signature after this email? ] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Cache-bug in handling of files
I started this thread on the regular zope mailinglist but now I found a similar posting to my problem in the archives. I have fileobjects where I store pdf-files. If I want to change the pdf-file I use the method "manage_upload". The problem is that if I try to view it it always choose the one that is in the cache. It displays the new one if I open it in a new window or if I save it to disk. The filesize and everything else is for the new file. The thread I found was this: http://zope.nipltd.com/public/lists/zope-archive.nsf/Main/AED89A938194225580256857007679ED?OpenDocument&mode=subject&topic=[Zope]Dumbobjectaliasingquestion This points to a bug report and after serching for it I found it: [754] Zope Bug: Uploaded Images Don't Appear Immediately Category: General Last Updated: Oct 29, 1999 7:05 am Submitted On: Oct 12, 1999 3:58 am Status: Ongoing Reported Version: 2.0.1 Expected/Fixed Version: The strange thing is that this is still Ongoing after almost a year since it was submitted! There was a fix for the problem in the mailinglist thread but 1. I dont know if Image.py is used for all files and 2. I looked in Image.py and didnt fing the code to be similar to the one in the thread. So because I am a newbie in python I want to ask if any1 could take a look at this for me and hopefully make a patch or at least get as much information I need to chunk it in the collector. Peter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Cache-bug in handling of files
Guess noone could help me. I chunked it into the bug collector now. Peter Peter Arvidsson skrev: > > I started this thread on the regular zope mailinglist but now I found a > similar posting to my problem in the archives. > > I have fileobjects where I store pdf-files. If I want to change the > pdf-file I use the method "manage_upload". The problem is that if I try > to view it it always choose the one that is in the cache. It displays > the new one if I open it in a new window or if I save it to disk. The > filesize and everything else is for the new file. The thread I found was > this: > > >http://zope.nipltd.com/public/lists/zope-archive.nsf/Main/AED89A938194225580256857007679ED?OpenDocument&mode=subject&topic=[Zope]Dumbobjectaliasingquestion > > This points to a bug report and after serching for it I found it: > > [754] Zope Bug: Uploaded Images Don't Appear Immediately > Category: General Last Updated: Oct 29, 1999 7:05 am > Submitted On: Oct 12, 1999 3:58 am Status: Ongoing > Reported Version: 2.0.1 Expected/Fixed Version: > > The strange thing is that this is still Ongoing after almost a year > since it was submitted! > > There was a fix for the problem in the mailinglist thread but > 1. I dont know if Image.py is used for all files and > 2. I looked in Image.py and didnt fing the code to be similar to the one > in the thread. > > So because I am a newbie in python I want to ask if any1 could take a > look at this for me and hopefully make a patch or at least get as much > information I need to chunk it in the collector. > > Peter > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Cache-bug in handling of files
> > That sounds very suspicious - what are your IE cache settings? > [...] > > This bug report was related to the fact that the user was > accessing the file through a Squid cache and that at the > time (Zope 2.0.1) there was a legitimate bug in the way > that "If-Modified-Since" headers were handled. Squid was > actually returning the file to him. It should have been > marked completed quite a while ago (I just did that). > > I am using IE 5 (5.00.2314.1003), cache settings set to: > > "Check for newer versions of stored pages: > x Every visit to the page > > ...and I cannot reproduce the problem that you are > describing :( Are these your cache settings? Are you > accessing the server through any kind of proxy? > > Thanks I am using IE 5 (5.00.2919.6307), cache settings set to: "Check for newer versions of stored pages: Automatically Those settings should get the new file if it has changed. I am accessing the server through a proxy.. could that be a problem? I think it would be strange if everyone accessing the website I am building can see the new files.. What do you think? Peter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Cache-bug in handling of files
So there is nothing else I can do but to make my files open in a new window then... But what I dont understand is why IE doesnt send any If-Modified-Since header? Shouldnt it always do that if the settings are not set to never update cached files? Peter Jim Sanford skrev: > > since all the data at my corporate intranet site is pulled from a RDMS, all my >refrence URLS are generated in JavaScript and have a > rnd="a randomly generated number between 1 and a million" to force the browser to >get the current page. > > __ > > Jim Sanford > . Database Engineer > / \ / Accelerated Technology, Inc. > / / 720 Oak Circle Drive East >/ / \Mobile, AL 36609 > / / \ Voice: 334-661-5770 fax: 334-661-5788 > / \ E-Mail: [EMAIL PROTECTED] > Web: http://www.atinucleus.com > > Nucleus. All You NEED in an RTOS. Royalty Free > __ > > ----- Original Message - > From: Brian Lloyd <[EMAIL PROTECTED]> > To: 'Peter Arvidsson' <[EMAIL PROTECTED]>; Brian Lloyd <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, August 11, 2000 10:44 AM > Subject: RE: [Zope-dev] Cache-bug in handling of files > > > I am using IE 5 (5.00.2919.6307), cache settings set to: > > "Check for newer versions of stored pages: > > Automatically > > > > Those settings should get the new file if it has changed. > > > > I am accessing the server through a proxy.. could that be a problem? I > > think it would be strange if everyone accessing the website I am > > building can see the new files.. > > > > What do you think? > > > > Peter > > Peter - I have done some testing here and I can demonstrate > that this is an IE issue. > > I set my cache to "Automatically" like yours and restarted > it. I then opened a Netscape and created a new file object. > I instrumented the code in the 'index_html' method of File > objects so that I could tell _for sure_ whether things were > actually being called at the server or not. Here's what I > did: > > - create a file 'myfile.txt', uploading a contents of > text1.txt into it. > > - visit the view tab with IE. The server > confirms that the index_html was called, and the whole > content was sent, not a 304. > > - now (using netscape again) upload the contents of > text2.txt into the file object. The mgmt screen > correctly shows the updated byte length, etc. > > - click the 'view' tab again on IE. My instrumenting > confirms that IE is not contacting the server *at all* > no matter how many times I click the 'view' tab, and I > keep seeing the old content. A look at the headers > produced by this shows nothing that tells IE it should > be doing that: > > HTTP/1.1 200 OK > Server: Zope/(unreleased version) ZServer/1.1b1 > Date: Fri, 11 Aug 2000 15:18:50 GMT > Connection: close > Content-Type: text/plain > Content-Length: 944 > Last-Modified: Fri, 11 Aug 2000 15:16:06 GMT > > Interestingly, if you open the "view" tab in a new window, > you'll see the updated content. Now, using that same new > window, set your cursor at the end of the url string in the > url bar and hit return. IE seems to reload the page, but it > is not actually even contacting the server. Stranger yet, if > you click the "refresh" button it *will* contact the server > (and it passes an If-Modified-Since header, and correctly > gets a 304 Not Modified). > > Now, use netscape to change the content again. The whole thing > starts over. Clicking the 'view' link on the page or pressing > return in the URL bar will not even contact the server and > the only way to get the updated content is to explicitly press > "refresh" or open a new window, even though the resource > returned no caching information one way or the other. > > I'm going to close that bug report and include this report > for those who may find it useful in the future. > > Brian Lloyd[EMAIL PROTECTED] > Software Engineer 540.371.6909 > Digital Creations http://www.digicool.com > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce
[Zope-dev] Re: ZPatterns guestbook example
On Wed, Sep 13, 2000 at 12:23:52PM -0700, James Johnson wrote: > Hello, > I ran across a previous post regarding a simple ZPatterns based > example you were working on. Did you ever get it working? unfourtunatly no, since there are no simple examples that I have seen, and I haven't had time to try more, and I didn't get a single answer ;(. So if anyone has a simple exaple of a pure ZPatterns example with no, or very little use of external methods it would be greatly appreciated if you could post it. /Peter -- Alpha Test Version: Too buggy to be released to the paying public. Beta Test Version: Still too buggy to be released. Release Version: Alternate pronunciation of "Beta Test Version". ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] ZSQL and Normalized databases (or why ZSQL sucks)
On Fri, 20 Apr 2001, Bryan Baszczewski wrote: > <<<< ...I mean that: >SELECT tab1.col1, tab2.col1 >FROM ... etc ... > Does not expose 'tab1.col1' and 'tab2.col1'. In otherwords, it > doesn't gracefully handle name clashes. I realize that calling out > the variable 'tab1.col1' out of the namespace is a pain, but > (hopefully) in the future it would be made easier>>>> > > I havent followed the entire conversation so forgive me if we are on the > same page but in different books. Have you tried to alias the column names? > > e.g.: SELECT tab1.col1 AS COL1_A, tab2.col1 AS COL1_B > FROM etc... Aliasing works for me. (ZOracleDA). -- _ peter sabaini, mailto: [EMAIL PROTECTED] - ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Using propertysheets?
Lennart Regebro wrote: > I'm making a Zope product (in python) where I want the users to have control > over what properties that exist. At the same time I don't want the users to > have to deal with having all properties in one big mess under the standard > Property-tab. > > So, my question is then: Should I use the PropertySheets class for this, and > if yes, does anybody have any example code, becuase it's not immediately > obvious how to use it. I think it should work well with PropertyManager Usage (works for me): - Define your own edit form - Derive your class from PropertyManager - Add a propertysheet to a class instance, eg.: def __init__(self): self.propertysheets.manage_addPropertySheet('advanced', 'advanced') - Add a prop: advanced.manage_addProperty('something', 0, 'int') - Do something with your propsheet, eg. update it: adv = self.propertysheets.get('advanced') if REQUEST is not None: return self.manage_advancedForm( REQUEST, manage_tabs_message='Advanced Settings updated.', ) - Or read a property: self.propertysheets.get('advanced').something If you're having problems just shout. cheers! peter. > Best Regards > > Lennart Regebro > Torped Strategi och Kommunikation AB > > > > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] What does error code 136 mean?
Hi, I am having trouble with the current version of ZWiki. ZWiki's author is puzzled, and suggested that I try one of the Zope lists. I set up a ZCatalog on a ZWiki folder as described at http://zwiki.org/HowToInstallAZwikiCatalog The following DTML from ZWiki's RecentChanges: causes a python core file to be produced, and with stupid log enabled I get this message: 2002-09-02T09:57:30 ERROR(200) zdaemon zdaemon: Mon Sep 2 10:57:30 2002: Aiieee! 322190 exited with error code: 136 I am using Zope 2.5.1 with python 2.1.3 under HP (was Compaq) Tru64 Unix version 5.0 Does anyone have any suggestions about what is going wrong? Thanks, Peter. -- ==== Peter Keller. | "Research without indebtedness is European Bioinformatics Institute,| suspect, and somebody must always, Hinxton Hall, | somehow, be thanked." Cambridge, CB10 1SD, UK | --- Umberto Eco --- Email: [EMAIL PROTECTED] | Tel. (+44/0)1223 494637 | Macromolecular Structure Database Fax. (+44/0)1223 494468 | http://msd.ebi.ac.uk ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] What does error code 136 mean?
Leonardo, Many thanks for the hints. I will investigate, but I probably won't have time until next week. > Of course, this all depends on how well gdb (or your preferred debugger, > should you chose to adapt the instructions) works correctly with threads > on True64. In my experience, the Tru64 Unix debugger 'ladebug' works OK with native threads. None of the others do, though. I'll report on whatever I find. Peter. -- ==== Peter Keller. | "Research without indebtedness is European Bioinformatics Institute,| suspect, and somebody must always, Hinxton Hall, | somehow, be thanked." Cambridge, CB10 1SD, UK | --- Umberto Eco --- Email: [EMAIL PROTECTED] | Tel. (+44/0)1223 494637 | Macromolecular Structure Database Fax. (+44/0)1223 494468 | http://msd.ebi.ac.uk ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] What does error code 136 mean?
Hi, I have tried Leonardo's very helpful suggestion to get a Python traceback: > Try to run zope under a debugger. Follow instructions here: > http://www.zope.org/Members/4am/debugspinningzope > but type "continue" (w/out quotes) as soon as you get the gdb prompt to > get zope to run normally. This, combined with some debugging of the corefile at the C level (which I know a lot more about than anything to do with Python) has helped me figure out what the problem is. The DTML that was cauisng the crash was: but some items in Catalog did not have a property lastEditTime. In my particular circumstances I can exclude these objects from the ZCatalog, but surely there ought to be a cleaner way of handling this - either putting objects with missing properties at the end of the list, or not having them feature in the list at all? Perhaps some way of controlling this (or at least raising a more meaningful error) might be considered in a future release of Zope? The gory details I've appended the Python traceback. You can see the problem call to sort in lib/python/DocumentTemplate/DT_In.py . Why a SIGFPE? Dates seem to get converted to C doubles by Python for comparison. From debugging the core file, line 345 in Objects/floatobject.c in the python v2.1.3 source is causing the problem: 340 static int 341 float_compare(PyFloatObject *v, PyFloatObject *w) 342 { 343 double i = v->ob_fval; 344 double j = w->ob_fval; > 345 return (i < j) ? -1 : (i > j) ? 1 : 0; 346 } 347 w is a missing python object with a junk w->ob_fval, which presumably comes from the missing lastEditTime property of one of the objects involved in the comparison: (ladebug) p *w.ob_type struct _typeobject { ...snip... tp_name = 0x3fa0648="Missing"; ...snip... tp_doc = 0x3fa04d0[Ladebug Warning: String is too long to display. Only the first 128 characters are shown.]="Represent totally unknown quantities\n\nMissing values are used to represent numberic quantities that are\nunknown. They support a"; ...snip... } The Python traceback: File "/ebi/msdlocal0/servers/Zope-2.5.1-src/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__ response=response) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py", line 150, in publish_module response = publish(request, module_name, after_list, debug=debug) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py", line 98, in publish request, bind=1) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/ZPublisher/mapply.py", line 88, in mapply if debug is not None: return debug(object,args,context) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py", line 39, in call_object result=apply(object,args) # Type s to step into published object. File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/Products/ZWiki/ZWikiPage.py", line 151, in __call__ body = apply(self._render,(client,REQUEST,RESPONSE),kw) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/Products/ZWiki/ZWikiPage.py", line 163, in _render return apply(method,(self, REQUEST, RESPONSE), kw) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/Products/ZWiki/ZWikiPage.py", line 553, in render_prelinkdtmlhtml t = apply(DTMLDocument.__call__,(self, client, REQUEST, RESPONSE), kw) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/OFS/DTMLDocument.py", line 127, in __call__ r=apply(HTML.__call__, (self, (client, bself), REQUEST), kw) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_String.py", line 473, in __call__ try: result = render_blocks(self._v_blocks, md) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_Try.py", line 140, in render return self.render_try_except(md) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_Try.py", line 149, in render_try_except result = render_blocks(self.section, md) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_In.py", line 639, in renderwob sequence=self.sort_sequence(sequence, md) File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_In.py", line 775, in sort_sequence s.sort() File "/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DateTime/DateTime.py", line 1205, in equalTo return (self._t == t) File "", line 1, in ? Regards, Peter. -- Peter Keller. | "Research without indebtedness is European Bioinformatics Institute,| suspect, and somebody must always, Hinxton Hall,
Re: [Zope-dev] calling DTML method from python script in Zope
Hm, I would hope that the Zope book answers this kind of questions, see: http://zope.org/Documentation/Books/ZopeBook/2_6Edition/ScriptingZope.stx search for "Calling DTML from Scripts" This should solve your problem -- please leave a comment if it doesn't. Thanks, peter. [EMAIL PROTECTED] wrote: of course I looked over at ZopeLabs; http://www.zopelabs.com/cookbook/992031125 and while this shed some light on the situtation, it hardly solved the problem. the script calls a DTML method in the same folder from which it resides & was called from -thanks in advance -josh ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Newbie Question
Aaron Paxson wrote: I hope I'm posting to the right mailing list. There were so many to decide from. This should've probably been directed to the main Zope list; zope-dev is for development *of* Zope. I've just been introduced to Zope, and am curious on how it will fit into my company's plans. I'm currently learning Java, and was starting to learn the RedHat Web Application Framework. I've found Zope in an article on the web, and started to look into it. It looks to be just as scalable, but I'm curious on how extensible it is, as well as, it's power in a corporate environment. For example, how extensible is it, to modify the security module and have it authenticate against LDAP? (I don't want all my users to remember yet another password) Also, how powerful is Python as compared to Java? Since it uses a native compiler, it stands to reason that it would be faster than Java, but what of it's objects and packages? (i.e. Does it have an image manipulation package, or networking packages?) There are Add-ons that do User authentification against LDAP servers, and its also not very hard to roll your own. Zope is, generally speaking, *very* extensible -- see for example the long list of 3rd pary add-on products at http://www.zope.org/Products I think Python is one of the greatest strengths of Zope. Its not only a modern full-fledged OOP language, comes with great libraries (see http://python.org/doc/current/modindex.html, and has even more to download separately) but is simply a joy to program in. Bruce Eckel put it very nicely IMHO: http://mindview.net/FAQ/FAQ-012 ) Also see: http://csdl.computer.org/comp/mags/co/2000/10/rx023abs.htm http://www.cis.udel.edu/~silber/470STUFF/article.pdf http://www.twistedmatrix.com/users/glyph/rant/python-vs-java.html There are good networking modules in the standard Python distribution; image manipulation can be done with eg. PIL (http://www.pythonware.com/products/pil/) or PythonMagick (http://www.procoders.net/moinmoin/PythonMagick) I must say, seeing the documentation and books alone, tells me the product is good, and something I can learn. I see alot of "Hope for Zope" , but I don't want to get into it, just to see if it doesn't fit into my plans. For those who want a couple of examples, I have 3 projects for our intranet/extranet/internet applications: 1). Images and cataloging (where, our development team can upload their images, and the intranet application will take that image and export it to a JPG to update the web catalog, and move the original file to our FTP site for our photographers. 2). Document Management (Uploading of files, and inputting data to index on those files for searching) 3). Obviously the usual (Content Management and Portals) which I'm sure Zope does a good job at. Those are certainly suited for Zope - peter. Thanks in advance!! Again, my apologies if there is a better list for this post. Aaron Paxson Network Operations Manager Decorative Concepts, Inc http://www.decorativeconcepts.com smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Start Script Woes
I'm no big shell scripter, some suggestions anyway... * I think you might be missing an INSTANCE_HOME parameter here, something like # what we'd like but won't recognize instance home # exec /usr/bin/python $ZOPE_BASE/z2.py -z $ZOPE_BASE -u $USER \ # -w $HTTP_PORT -f $FTP_PORT -t $THREADS -Z $MANAGER \ # -l $INSTANCE_HOME$ZOPE_LOGFILE \ INSTANCE_HOME=$INSTANCE_HOME \ # -D "$@" $INSTANCE_HOME/var/startup.log & or export the INSTANCE_HOME * Are you shure you want to start Zope in debug mode? * You might want to check http://zope.org/Documentation/Books/ZopeBook/2_6Edition/MaintainingZope.stx , I put some (very much simpler) startup scripts there * Finally, the upcoming Zope 2.7 should behave much better wrt this (if thats any help to you :-)) - peter. Sean Duffy wrote: Hi, These are probably more shell scripting issues, but I'm hoping that some scripter with an agile mind will show me the error of my ways, so here goes. I have borrowed a script from the zope site and modified it for my purposes, and it 'sort of' works. The issues are: Can't seem to get the Instance-Home stuff to work right without local start scripts in each directory. Right below the $INSTANCE_HOME/start is the line I'd like to use to simplify the management of the instances. Can't get stop to work right. First 'stop' is not an instance, then the first instance does appear to get stopped, but it errors on the other two. I get a 'start0' for the value of $WAIT in the starting text display. (should just be a big fat zero or one!) And for some reason, the script dumps the entire local environment to the display before it does anything; any ideas why? All constructive criticism welcome, and I'll take some flames (high of 22 today). System is RedHat-9.0 Zope-2.6.2 Python-2.2.3 Zope is installed in /usr/local/zope Instances are /var/zope-sites/ Here's the script: #!/bin/sh # /etc/init.d/zope-instances # # Starts or stops multiple instances of zope one by one or all at ones. # Configuration is done all through one configuration file # /etc/zope-instances.conf which defines the location of the data-files, # the user to run the instance, FTP portnrs, number of threads and if the # zdaemon should be used (to start a new instance should the one crash) # all configurable per instance. # # Steps for creating and running a new instance: # - start with a normal working (fresh) distribution of Zope # ... snip ... # - edit /etc/zope-instances.conf to run the new instance as you desire # - start the new instance (/etc/init.d/zope-instances start instance-name) # # Note: this script is only tested for Red Hat distributions. # Locations of scripts may vary from various distributions. # Use at own risk. # # created: Chaim Zax (chaim at climbing.nl) # version 0.02, dd. 29-3-'03 # version 0.02a, stuffduff 20-01-'04 INSTANCES_CONF="/etc/zope-instances.conf" DEFAULT_USER="www-data" ZOPE_BASE="/usr/local/zope" PS="ps wax" # Log- and pid-files ZDAEMON_PIDFILE="/var/zProcessManager.pid" ZDAEMON_LOGFILE="/var/Z2_debug.log" ZOPE_PIDFILE="/var/Z2.pid" ZOPE_LOGFILE="/var/Z2.log" ZOPE_DEBUGFILE="/var/zope-debug.log" # Function for showing help-text how to use this script helpText () { echo "Starts or stops multiple instances of zope one by one or all at ones." echo echo " zope-instance [start/stop/restart/info/kill] [instance-name] [-w] [-h]" echo echo " start/stop: starts or stops one or all zope-instances" echo " restart : restarts one or all zope- instances" echo " info : gets instance info as well as their current status" echo " kill : kills one or all zope-instances, even if orphaned" echo " USE THIS ONLY WHEN ZOPE SPINS OUT OF CONTROL" echo " instance-name : if not provided or 'all' indicates all instances," echo " else acts only on the given instance" echo " -w: Do not wait for instance to startup" echo " -h: This help-text" } startZope () { startingAndStopping "start" $1 $2 } stopZope () { startingAndStopping "stop" $1 "-" } restartZope () { startingAndStopping "restart" $1 $2 } infoZope () { startingAndStopping "info" $1 "-" } killZope () { if [[ $1 == "all" ]]; then killAll else killInstance $1 fi } # Start one or more instances depending of $1 and $2 startingAndStopping () { MODE=$1 # mode is 'start', 'restart', 'stop' or 'info'
Re: [Zope-dev] How to make Zope fail nicely under high load?
This very much depends on your application and requirements (and your definition of "nicely" :-)), but I'd argue that it rarely make sense to handle this at the TCP Connection level (just to think about browsers opening multiple connections, HTTP/1.0 or /1.1 compliant browsers, proxies etc.) As an example, one client of ours had the following requirements wrt. to this problem which I think should be fairly common: * Allow X logged-in users till a certain responsiveness threshold is reached * If said threshold is reached: - inform all users trying to log that the site is too loaded - while allowing already-logged-in users to still use the site with acceptable speed This means we had to a) measure responsiveness (which we did with some cobbled together heuristic involving the rate of user logins (something like 5 users per minute) and an external script effectively "HTTP Pinging" the site every X minutes) and b) redirecting users to a statically hosted page (which can be served cheaply) if said conditions were met. This kind of thing clearly cannot be done at the TCP level because TCP Connection != User session cheers, peter. Bjorn Stabell wrote: Hi, We've run into an interesting problem when load-testing a Zope site behind Apache, a problem that we've also encountered in real life. Basically, when the load gets high, Zope has a huge backload of work (several minutes of requests), making the average latency for each request many minutes. What are effective ways to do this kind of overload management so that the backlog of work doesn't get that big? The ideal would be for requests to fail immediately if the backlog of work is more than a certain number of requests (or even better, estimated time to process). Here's what we've tried: Naively, we thought we could just set the socket.listen() backlog in Apache and Zope to a lower value, but in TCP connect()'s apparently don't fail if the server's listen backlog is full; instead requests are retried, resulting in a client side managed "listen backlog", also giving the same long latency. (If someone knows this stuff, please confirm/deny these allegations against TCP :) It appears the way to control it would for Apache or Zope to return "503 Service Unavailable" when the load is too high, but we haven't found a good way to do this; Zope doesn't appear to have any mechanism for it, and Apache's ProxyPass doesn't either. I guess load balancers would, but that's a bit overkill since we run the server on one machine. Regards, smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: How to make Zope fail nicely under high load?
Tres Seaver wrote: Bjorn Stabell wrote: If you run Apache as a caching reverse proxy (caching surrogate server) then images will be served from Apache. Only the dynamic HTML pages are served from Zope, so having them fail without regards to sessions is relatively okay. Images and other static content are almost guaranteed to load correctly, and if they didn't, a straight reload from the client will not reload cached images. Impatient clients often "force" reloads; I don't *think* Apache has a knob which allows a surrogate / acceloerator proxy to ignore the spec (which is written assuming "forward" proxies), and serve from cache anyway. I think I did find some sort of knob for this For Apache 2.0, mod_cache, dir. CacheIgnoreCacheControl could be used for this http://httpd.apache.org/docs-2.0/mod/mod_cache.html For Apache 1.3 mod_proxy, dir. CacheMaxExpire could do http://httpd.apache.org/docs/mod/mod_proxy.html#cachemaxexpire - peter. Tres. smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: How to make Zope fail nicely under high load?
Bjorn Stabell wrote: Hi Peter, I think I did find some sort of knob for this For Apache 2.0, mod_cache, dir. CacheIgnoreCacheControl could be used for this http://httpd.apache.org/docs-2.0/mod/mod_cache.html For Apache 1.3 mod_proxy, dir. CacheMaxExpire could do http://httpd.apache.org/docs/mod/mod_proxy.html#cachemaxexpire I think this will force Apache to cache content no matter if the content's headers have cache control settings, but will it force Apache to not re-request the content if the browser forces a reload? (Ctrl-refresh in IE.) This really should be tested, but as far as I can remember it did serve from cache rather than rerequest. Its been some time since I did this (and at another company) and unfortunately I cant remember this too clearly... From the 'CacheIgnoreCacheControl' at least it does sound like it would ignore the spec and serve cached content though. cheers, peter. smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Zope on Python 2.5?
On Thursday 01 November 2007 06:18:18 Andreas Jung wrote: > --On 31. Oktober 2007 22:00:46 -0700 Alexander Limi <[EMAIL PROTECTED]> wrote: > > On Wed, 31 Oct 2007 21:29:36 -0700, Andreas Jung <[EMAIL PROTECTED]> wrote: > >> The recommendation is still "System python is evil, evil, evil" (quoting > >> Jim). > > > > Sure, but if you ever want to be able to tell users to do: > > > > easy_install plone > > Would be fine but as long as several distros contain brain-dead or > castrated Python installations there is little we can do - even if we would > support > Python 2.5. I always wondered -- I never had any trouble with the system Pythons, or at least not a problem that I could attribute to a system Python (Debian Stable and Ubuntu LTS) Its just so damn convenient if you have to maintain a few dozen VServers to manage the Pythons including add-on libraries exclusively via "apt-get" Which system Pythons do you think are brain dead, and why? Thanks, peter. > > to get their Plone site, it's a necessary evil evil evil. ;) > > > > > > > > > > We generally encourage not to use the system Python in everything we ship > > (Windows, Mac and Unified installers all ship their own Python) — but I > > really hope we won't be stuck with Python 2.4 after the world has moved > > on to Python 2.5 and 2.6. > > Bring the word to the Python packagers. > > > I agree that for proper deployments, you shouldn't use the system Python, > > but there's the case of letting people get started with Plone easily from > > their Ubuntu or Mac OS X (Leopard ships with Python 2.5 and easy_install > > by default) — we should be able to let them do that too. > > See above. Stepping forward with Python 2.5/2.6 support would be fine but > it basically does not solve the problem that system python installation are > often broken. Installation a Python from the sources is usually much more > faster than trying to figure out why a system python is broken once more. ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] conflict error
Hello, how can the error be corrected? ./bin/easy_install -U zcontact Searching for zcontact Reading http://pypi.python.org/simple/zcontact/ Reading http://launchpad.net/zcontact Best match: zcontact 0.1.0a9 Processing zcontact-0.1.0a9-py2.4.egg zcontact 0.1.0a9 is already the active version in easy-install.pth Using /home/peter/p007-zcontact-demo/lib/python2.4/site-packages/zcontact-0.1.0a9-py2.4.egg Reading http://download.zope.org/zope3.4 Processing dependencies for zcontact error: Installed distribution zope.traversing 3.4.0 conflicts with requirement zope.traversing>=3.5.0a1.dev-r78730 Peter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] conflict error
Hi Paul, I experimented a litle bit. I removed zope.publisher-3.4.1-py2.4.egg/ and zope.traversing-3.4.0-py2.4.egg/ Then I transfered zope.traversing-3.5.0a1.dev_r78730-py2.4.egg/ and zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/ from another box where the update of zcontact was succeessful. On the other box I installed an prior version of zcontact. And now it works!? But I can't reproducing the dependencies. Peter I recently switched setup.py and buildout to use the new zope3.4 KGS and this caused some problems for existing installations of zcontact. Please submit a bug on launchpad (http://launchpad.net/zcontact) and I'll see if I can find what is causing the clonflict sometime today. - Paul On Nov 14, 2007 11:48 AM, <[EMAIL PROTECTED]> wrote: Hello, how can the error be corrected? ./bin/easy_install -U zcontact Searching for zcontact Reading http://pypi.python.org/simple/zcontact/ Reading http://launchpad.net/zcontact Best match: zcontact 0.1.0a9 Processing zcontact-0.1.0a9-py2.4.egg zcontact 0.1.0a9 is already the active version in easy-install.pth Using /home/peter/p007-zcontact-demo/lib/python2.4/site-packages/zcontact-0.1.0a9-py2.4.egg Reading http://download.zope.org/zope3.4 Processing dependencies for zcontact error: Installed distribution zope.traversing 3.4.0 conflicts with requirement zope.traversing>=3.5.0a1.dev-r78730 Peter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Fwd: Zope 2.12.0a4 easy_installable - please test
Hi Andreas, I tried it with virtualenv --no-site-packages foo and it works. Excuse the false alarm. Peter > >> I just created a new Zope 2.12.0a4 that should easy_install nicely. >> Howto? >> virtualenv foo >> cd foo >> source bin/activate >> bin/easy_install -i http://download.zope.org/Zope2/index/2.12.0a4 >> Zope2 >> Please give feedback. > > On python2.5/gentoo/ppc I got this: > > t001 $ ./bin/mkzopeinstance Traceback (most recent call last): > File "./bin/mkzopeinstance", line 8, in > load_entry_point('Zope2==2.12.0a4', 'console_scripts', > 'mkzopeinstance')() > File "/home/peter/9002/t001/lib/python2.5/site- packages/ > setuptools-0.6c9-py2.5.egg/pkg_resources.py", line 277, in > load_entry_point > File "/home/peter/9002/t001/lib/python2.5/site- packages/ > setuptools-0.6c9-py2.5.egg/pkg_resources.py", line 2180, in > load_entry_point > File "/home/peter/9002/t001/lib/python2.5/site- packages/ > setuptools-0.6c9-py2.5.egg/pkg_resources.py", line 1913, in load > File "/home/peter/9002/t001/lib/python2.5/site- packages/ > Zope2-2.12.0a4-py2.5-linux-ppc.egg/Zope2/__init__.py", line 60, in > > from Zope2.Startup.run import configure > File "/home/peter/9002/t001/lib/python2.5/site- packages/ > Zope2-2.12.0a4-py2.5-linux-ppc.egg/Zope2/Startup/__init__.py", line > 34, in > from zope.app import appsetup > File "/home/peter/9002/t001/lib/python2.5/site-packages/ > zope.app.appse tup-3.9.0-py2.5.egg/zope/app/appsetup/__init__.py", > line 22, in > from zope.app.appsetup.appsetup import config, database > File "/home/peter/9002/t001/lib/python2.5/site-packages/ > zope.app.appse tup-3.9.0-py2.5.egg/zope/app/appsetup/appsetup.py", > line 24, in > import zope.site.hooks > File "/home/peter/9002/t001/lib/python2.5/site- packages/ > zope.site-3.6.1-py2.5.egg/zope/site/__init__.py", line 19, in > from zope.site.site import (SiteManagerContainer, > SiteManagementFolder, > File "/home/peter/9002/t001/lib/python2.5/site- packages/ > zope.site-3.6.1-py2.5.egg/zope/site/site.py", line 31, in > import zope.component.persistentregistry > File "/home/peter/9002/t001/lib/python2.5/site-packages/ > zope.component -3.5.1-py2.5.egg/zope/component/ > persistentregistry.py", line 25, in > zope.interface.adapter.VerifyingAdapterRegistry, > AttributeError: 'module' object has no attribute > 'VerifyingAdapterRegistry' ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Question about _v_ attributes and database connections
Marco Bizzarri wrote: Hi all. We're trying to tackle a problem in hanging connections in ZPsycopg. However, I would like to have some information about the functioning of the _v_ attributes, and the cache management. In particular: 1) where is the code which handles the _v_ attributes (I like to look at the source code, you know ;)) > 2) where is the code which handles the caching of the objects? 3) is it possible to disable caching of some object? 4) when an _v_ attribute is removed, what code of the object/attribute itself is called? I'm not sure which caching you mean -- _v_ variables aren't cached afaik. Theres plenty source code to look at, for example lib/python/ZODB/cPersistence.c -- there is some special handling of _v_ attributes there. Search for the Per__getstate__, ghostify / unghostify functions If possible, please answer also directly to me (I'm not on this list). Regards Marco ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope3-dev] Re: [Zope-dev] proposal: serving static content faster
+1 from me I think its a great idea, I also agree with Jamie about HTTP cache control feeling awkward at the moment not sure how it could be better though Jamie Heilman wrote: Chris McDonough wrote: http://dev.zope.org/Wikis/DevSite/Proposals/FasterStaticContentServing Sounds good. WRT your comments on the need for a cache multiplexer so one can handle the case of HTTP cache control headers & opaque server-side caches working together--I'm really wondering if a better solution isn't to just remove the cache header manipulations from where they are now (in a seperate product) and integrate it more into an API any where object [that wants to] can use. HTTP cache control really is a protocol level thing, and the way its bundled as an add-on service right now feels pretty awkward. But anyway, thats a digression from the main thrust of your let them eat producer proposal, which I think is a good idea in general. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [patch] More secure cookie crumbler?
Shane Hathaway wrote: On Tue, 20 Apr 2004, Chris Withers wrote: I wonder how many Plone users are aware their passwords are stored unencrypted in client cookies which fly back and forth waiting to be snapped up by packet sniffers, XSS, and JS attacks ;-) Even with unbreakable encryption of credentials after login, you still send the username and password in the clear at login time, and sniffers can reuse the session ID with ease. You really shouldn't tell the Plone users they will be safer with a session token, because they won't. Shane Why not make the login page itself SSL-protected then? peter. smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [patch] More secure cookie crumbler?
Chris Withers wrote: Shane Hathaway wrote: Hmm. I really wasn't expecting any new code yet. Session cookies are a very significant maintenance burden in Zope, and it's not in my interest to support them. If you don't mind, I think I'll release a version of CC without any session support, then I'll give Chris Withers the maintainer hat. He'll start with your latest version. I'll certainly take that on, if only because Cookie Crumbler is in such wide use. I wonder how many Plone users are aware their passwords are stored unencrypted in client cookies which fly back and forth waiting to be snapped up by packet sniffers, XSS, and JS attacks ;-) That said, basic auth ain't much better, but at least that's protectable by SSL... Cookies and Basic Auth both are transmitted via HTTP headers, so both should benefit from SSL Another question of course is what happens afterwards; in my experience at least IE has a tendency to even store Session cookies longer than one might expect (ie. the lifetime of the browser instance) I made a patch to CC to crypt auth tokens with AES, though thats not ideal it should help a little Hmmm, I wonder about sticking the token in the URL as an option, as with the SESSION stuff... Chris smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [patch] More secure cookie crumbler?
Shane Hathaway wrote: On Tue, 20 Apr 2004, Peter Sabaini wrote: Shane Hathaway wrote: Even with unbreakable encryption of credentials after login, you still send the username and password in the clear at login time, and sniffers can reuse the session ID with ease. You really shouldn't tell the Plone users they will be safer with a session token, because they won't. Why not make the login page itself SSL-protected then? If you're going to go to the trouble of setting up SSL, why not encrypt the whole session? Let anonymous users come in via HTTP, then go all-SSL for logged in users. Sourceforge is a great example of this. Yes, thats what I was talking about. In our Zope apps this is standard procedure -- we have one non-SSL welcome page at the most, everything else goes through HTTPS, makes sense IMHO for data acquisition applications with at least moderately sensitive data peter. smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] The bleak Future of Zope?!
is there an URL for the original? Martin Kretschmar wrote: Hello, Maik Jablonski of the german speaking Zope Users Group DZUG issued a pretty bleak outlook for the future of Zope. What are your oppinions? Here comes the translation of his oppoion: smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Zope Book, was Re: [Zope-dev] The bleak Future of Zope?
Stephan Richter wrote: On Wednesday 21 April 2004 03:58, Martin Kretschmar wrote: -- snip -- 2. Maik is is frustrated with the releases of both Zope 2 and Zope 3, including their merging. -- snip -- The situation is even more obvious with the Zope book. All the community has to do is to give a particular part/chapter/section to a couple of people for maintenance. But oh wait, that would need someone to manage this effort and *that* would be just too much work. -- snip -- Hmph, as one of the people that works on the Zope Book I feel a little stung by a comment like this one. While its true that a 2.7 Edition of the Zope book is overdue, I still think that the 2.6 Edition was both quite a step forward and still largely applicable for 2.7 Zopes That being said, I wonder if there are people interested to make an effort for a 2.7 Edition of the Zope book? cheers, peter. smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: Zope Book, was Re: [Zope-dev] The bleak Future of Zope?
Chris McDonough wrote: On Wed, 2004-04-21 at 10:18, Peter Sabaini wrote: That being said, I wonder if there are people interested to make an effort for a 2.7 Edition of the Zope book? I am. I think Paul is too. It won't be nearly as much work as 2.5 -> 2.6. Let's just do it. Wanna pick chapters? I'll get the new book set up on Zope.org (another BT book) and send the link to whomever is interested. Ok then... I think the following issues would deserve attention: * Installing chapter: I'm working on it and hope to finish soon (no really this time!) * Maintaining chapter update * Creating Basic Zope Applications: I've been wanting to extend and incorporate Jon Whiteners version but never got around to it * Using Zope Page Templates: judging by the comments there seem to be some trouble spots there * Reference: IMHO one of the trickier things, especially for the API Ref. because one would first have to decide what constitutes the API and what is simply Zope core... * A chapter TOC: it would be great if we could have an inter-chapter table of contents; would greatly help navigation esp. in longer chapters -- I seem to recall that someone once mentioned working on such a feature -- Paul maybe? * Lots of weeding out comments resp. incorporating answers * Generating PDFs Anything else? - peter. smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: Call for Zope Book volunteers (was Re: Zope Book, was Re: [Zope-dev] The bleak Future of Zope?)
Chris McDonough wrote: I've set up a development BackTalk sandbox for the 2.7 edition of the Zope book at http://zope.org/Documentation/Books/ZopeBook/2_7Edition. Currently it's just an exact copy of the 2.6 Edition book (comments and all). I think the plan should be for people to: 1. take ownership of a chapter or two 2. address all the comments in the chapter and get rid of comments in places you've addressed. 3. update any material that is wrong wrt to differences between 2.6 and 2.7. The "prize" for taking ownership and updating two complete chapters is your name as a coauthor on the front page (as before ;-). Erm, "there is no front page... you need to realise the truth: its you who is the front page" Another thing to do is to incorporate some of John Whitener's changes "the lost chapter" referenced all over the place within book comments. I wonder if he's still around. Yes he is, I talked about this to him some time ago. In light of this its maybe best if I do the incorporating At some point in the future, we can "backport" some of the changes to the 2.6 book if someone wants to take on that responsibility. It's advisable to use external editor to make the changes or to maybe use FTP to get "sandboxed" local copies of the book and make changes reuploading them as necessary. I've lost track of whether FTP access is possible or not on Zope.org at this point, however. Does anyone know? I've tried a few ports but nothing. Hm, we should make the sources available somewhere. Once Zope.org starts working again. Also, Zope.org is so slow for each request when you're logged in that we may need to move development to another system. As a data point, I've been waiting > 4 minutes for Z.org to save a Wiki page... still waiting. Hilarious. Admittedly, it takes a unique brand of apathy to ignore this, but I've got an excuse. I'm waiting for the Zope.org steering committee to solve it! Chuckle. In the meantime, "what slowness.. I don't know what you're talking about.." Nono not slow at all merely... andante. Or broken down. Or something. I have given Manager role in the entirety of the 2.7 edition book to both Peter and Paul. Anyone else who wants to contribute, please let me know which chapter(s) you'd like to sign up to revise and I will provide you access as necessary. I've set up a project wiki for the project at http://zope.org/Members/mcdonc/ZB_project where people can get a sense of which chapters are still available. It may not be available yet... still waiting for it to save. I will take ownership of the Installation chapter for now (I will probably take ownership of some other chapters, but I'll start small...) Erm, I'd like the Installation chapter. Already started on it. Really, I promise :-) opening-a-bottle-of-favourite-austrian-beer-and-hacking-away'ly peter. - C smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: Zope Book, was Re: [Zope-dev] The bleak Future of Zope?
Paul Winkler wrote: On Wed, Apr 21, 2004 at 08:10:26PM +0200, Peter Sabaini wrote: * Reference: IMHO one of the trickier things, especially for the API Ref. because one would first have to decide what constitutes the API and what is simply Zope core... The long-term solution, I think, is to fix the API mess itself. Eek. I have a proposal about this here: http://dev.zope.org/Wikis/DevSite/Proposals/SanitizeHelpSysAndAPIReference ... but I think this will take a while, and I'd rather get the book updated first. I think it's worth hand-massaging the API reference chapter for the 2.7 book and fixing the embedded docs later. Yes, I volunteer to do this :-) Brave... and while I'd really like to have a clean API Reference, you are probably right that its more important to get the main book updated first. * A chapter TOC: it would be great if we could have an inter-chapter table of contents; would greatly help navigation esp. in longer chapters -- I seem to recall that someone once mentioned working on such a feature -- Paul maybe? The book already has an inter-chapter TOC at the beginning ;-) Chris and I worked on an intra-chapter TOC at Pycon. My stuff is in backtalk CVS on sourceforge. http://cvs.sourceforge.net/viewcvs.py/backtalk/BackTalk/ Just needs a bit of cleanup and it'll be ready to go. Yay! And, judging by the CVS, done pretty straightforward (I was afraid of having to do several parsing passes and such). Cool. smime.p7s Description: S/MIME Cryptographic Signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] bounty
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, We are offering another modest bounty. 3. Add to allows groups of SQL terms to be applied to SELECT statements but unfortunately it cannot be used with UPDATE. A patch was written to add this support in August 2000. Given the age of the patch it may need to be updated and unit tests will also be required. Collector issue: http://www.zope.org/Collectors/Zope/1118 Developer list: http://mail.zope.org/mailman/listinfo/zope-dev Requirements: A bounty of $200 is offered for getting this patch checked into Zope. Status: Open See also: http://www.logicalware.org/bounties.html Peter - -- Logicalware Ltd, tel +44 (0)131 273 5130, http://www.logicalware.com/ Stuart House, Eskmills, Station Road, Musselburgh EH21 7PQ, UK -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFDKpOPX+DsMm00fs0RAlwHAJ9Uv1b3k7sj5B/U3Xths7wa05lU1QCgpXaC 5OuGyZ90BssnJkEYsXtZ104= =mGiB -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] already have current data for oid
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 URL in one ZEO-Client and after some time the whole ZEO-System gets "infected". A restart of the ZEO components is needed to make everything work properly again then. In addition to that sometimes it seems that not every change in ZODB gets anticipated by every ZEO-Client. Some Clients insist on delivering "Ressource not found" while some others find these new objects. The whole thing is complete unpredictable and seems not to follow any rules. Our system: Apache - Pound - 5x ZEO-Client - ZEO-Server Zope 2.8.5 The Server has 2 CPUs. I am experimenting on this machine alone in the moment. So the load should be on a minimum at all. What could be the reason for this here? BR PeterZ ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )