[Zope-dev] Product Data Storage
I have an interesting issue which I don't think has been raised. But instead of solving the issue myself I thought I would share it with you guys/gals and see what you think. I am currently working on a Zope MailIn product, which allows you to send emails directly in to Zope. Version 0.1 can be found at: http://www.zope.org/Members/NIP/ZMailIn In version 0.2 I plan to have a ZMailIn python product which will handle the Zope side of things and behave a bit like a client. For example you could add a ZMailIn product instance in to Zope and configure it to receive all emails for [EMAIL PROTECTED] and provide a method to execute upon mail arrival. This is great and you could have n ZMailIn product instances throughout your Zope site and in any position. When email arrives I need to find all the ZMailIn instances within the ZODB and hand the email to the correct one. I have decided AGAINST searching the ZODB for instances of ZMailIn because that is just too scary, hideously inefficient and I don't want to go there. Instead I thought of keeping an up-to-date list of where all the current instances where held. My original idea was to get the ZMailIn product to write a file in to the /lib/python/Products/ZMailIn directory, which shouldn't cause any problems that I can see. However, It had occurred to me that with the current growth of Zope it was going to become more popular that separate Zope instances of the same product may need to share some data. So my question is this: What are peoples opinions on storing shared product data? Where should it be placed? Should this ability be added to Zope as a standard? Thanks in advance. -Andy Dawkins (New Information Paradigms Ltd) ___ 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] Product Data Storage
>You should look into using ZCatalog for this purpose. OK - that is a solution that could solve my particular issue, but where would you put it? Would you put it in the Product folder, or in some common place in the ZODB. How would you create it originally? In the products __init__.py or by some kind of DTML method. Also would the ZCatalog be appropriate for storing general information to be shared between instances, Maybe some global configuration options. I am looking for a generalised method of storing Class Level Variables. Maybe properties within the Product folder. But above all I am looking for a method of doing this that the Zope community agrees as being efficient and recognises as being _the_ solution to the problem. I want to avoid a 'hack' solution if possible. -Andy Dawkins (New Information Paradigms Ltd) ___ 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] Product Data Storage
Dan wrote: >Shared data should go in zope/var, or a subdirectory of that. >Zope/lib should be considered read-only by running products unless >explicitly changed by the user. As you have correctly pointed out, >lots of machines share Zope installations for multiple servers. > >A standard interface for Python code to get a private subdirectory of >var might well be useful. Now we're talking, that sounds reasonable. Thanks for pointing out the zope/var vs Zope/lib, point taken. I'm about to code this bit now so for version 0.2 I'll put a text file in the zope/var directory. The private subdirectory idea sounds great, but I think some people may prefer a ZODB solution due to backup's, accessibility and, dare I say it, ZEO. Arrgghh, ZEO I didn't think about it until just then. Are there any ZEO issue's I need to be aware of? OK - These are great suggestions and I am taking them all in, honest. Cheers -Andy ___ 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] INSTANCE_HOME
does anybody know where REQUEST['INSTANCE_HOME'] disappeared to between Zope version 2.1.4 and version 2.1.6. Furthermore is it likely to reappear or has it been succeeded by some other key. Cheers, -Andy Dawkins ___ 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] Product Data Storage
>If you can at all avoid it, I think you should find a way to store it in >the ZODB. Ultimatley thats what I am aiming for >Maybe a Configuration product that would allow you to create arbitrary >configuration information and still be able to access it without making >filesystem calls. Think about DC's Zope on a CD demo. Not that you really >need to do that sort of thing, but it's really not going to work if you >have to write stuff to the filesystem. A Configuration product isn't a bad idea, although it still leaves the question of where do you put it, in the root? in a configuration directory? in the Product folder? >Actually, an XML Docment somewhere at root level should give you the kind >of flexibility you're looking for. Lot's of people are using XML files >for conf these days (they're all jumping... don't you want to...) I am not too keen on writing confurations or preferences documents on the root. My reasoning is that the root is not the correct place for that kind of thing, you don't see any linux confurations in / its all filed away nicely in respective folders. >That being said, I totally agree that if you need to store something in a >file, put it in Zope/var. I, for one, have my Zope application code on >partition along with other apps, and the data, like Data.fs on another. I >typically don't expect the apps partition to grow very much, or very >often, In fact, only when I install something. So it would be quite >shocking to have that space filling unexpectedly. This is how it is going to work for now. I have taken Dan Piersons advice for this one. Thanks for your comments. -Andy ___ 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] ZMYSALDA - Ports
People Has anyone managed to patch the MYSQLDA so that you can access a MySQL server on a different port? i.e. port 3307 instead of the default 3306 If so would you care to share the breakthrough with me please? Andy Dawkins ___ 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] Fw: 2gb file size
Shane This would be very helpfull to share. One of the reasons I tried the Berkeley Database was because I kept blowing this 2Gb limit. Prehaps if this was released I could finally finish the zope mail archives. :-) Cheers -Andy > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Shane Hathaway > Sent: 06 November 2000 21:51 > To: Andy McKay; [EMAIL PROTECTED] > Subject: Re: [Zope-dev] Fw: 2gb file size > > > Andy McKay wrote: > > > > I did do a How-to as well http://www.zope.org/Members/andym/2gig > > Not long ago I created a wrapper around File objects which automatically > splits the file before it reached a predefined limit. It could handle > any number of partitioned file segements. I tried it with FileStorage > and even integrated it in. That's how we were able to find and fix some > arithmetic errors that occurred in FileStorage when reaching the 2GB > barrier. If there's interest in the community I can release the code > (in fact, there is no dependency on Zope and it's pretty fast.) > > OTOH, I can verify there are production sites that have succesfully > reached around 10 GB in Data.fs size. > > Shane > > > -- > > Andy McKay, Developer. > > ActiveState. > > - Original Message - > > From: "Andy McKay" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, November 06, 2000 9:26 AM > > Subject: Re: [Zope-dev] Fw: 2gb file size > > > > > Thank you everyone for your help. I truncated the file and > restarted Zope > > > successfully. I had a brief period of problems when I forgot > use binary > > mode > > > for truncating the file - duh. Anyway, I am running 2.2.1 and > it doesnt > > work > > > with a 2gb file. I didnt analyse where the problem lies, however I do > > > believe its a python issue. > > > > > > Thanks. > > > -- > > > Andy McKay, Developer. > > > ActiveState. > > > - Original Message - > > > From: "Itamar Shtull-Trauring" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Sunday, November 05, 2000 2:37 AM > > > Subject: Re: [Zope-dev] Fw: 2gb file size > > > > > > > > > > Shane Hathaway wrote: > > > > > > > > > Are you running Zope 2.2.1 or later? There were pointer > arithmetic > > > > > errors that occurred on earlier versions, even with > operating systems > > > > > that support >2 GB files. > > > > > > > > So on W2K, Zope can have >2GB databases? I'd really like to > hear if you > > > get > > > > it to work Andy (or if anyone else did.) > > > > > > > > -- > > > > Itamar S.T. [EMAIL PROTECTED] > > > > Fingerprint = D365 7BE8 B81E 2B18 6534 025E D0E7 92DB E441 411C > > > > > > > > ___ > > > > 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 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 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] case insensitive sorts
> Dieter Maurer wrote: > > > > Chris Withers writes: > > > Dieter Maurer wrote: > > > > Andy McKay writes: > > > > > what does anyone else think > > > > > > > > I would not like it. > > > > > > Why not? ;-) > > I would not like to see this sort order in the management > > screens, because I use capitalization to ensure that > > essential objects are at the top of the object list. > > Hmmm... that's like saying you'd rather not have a memory leak fixed > because it gives you an excuse to buy more RAM ;-) > > *grinz* > > Chris > I would have said its like saying your not going to fix the hole in your water pipe because you use it to fill up your kettle without getting out of bed, and if you fixed it then you would have to walk to the sink. :-) Needless to say I agree with Chris. -Andy ___ 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] case insensitive sorts
> > Andrew > > David > > Wayne > > bart > > sophie > > > > is better than sorting: > > > > Andrew > > bart > > David > > sophie > > Wayne > > That's only because you use NT (ach spit). ;) > Thats not actually true. It is how python behaves on WinNt, Win9X, Linux, etc (I have tested this) -Andy ___ 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] case insensitive sorts
> Your analogies imply that this behavior is a bug or an unintended flaw > in the design. I would argue that it is intentional. Unix file systems > work the same way. Try doing an "ls" with mixed case files and you'll > see what I mean. > It isn't a flaw. It seems as though it was overlooked. The sort on text works by sorting the data by its ascii value. Capital letters have a lower ascii value than lower case letters. i.e. A-Z = 65 - 90 a-z = 97 - 122 The arguement is that the sort should probably go AaBbCcDdEeFf.etc -Andy ___ 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] case insensitive sorts
> > * collation (which letters belong together) is highly locale >sensitive (e.g., does a-accent-grave sort with a? etc.) > A Fair point. The answer is whatever seems _naturally_ correct from a users point of view. I think the answer is yes. Elephant entropy écrit élan i.e. In the order in which they would appear in a dictionary. > * Should strings which differ only in case be equal (*NOT*!) > 'Ant' is not equal to 'ant' but 'Ant'<'ant'<'Ante'<'ante' i.e. Ant ant Ante ante Would be a sensible sort order. I hope that makes things a bit clearer. -Andy ___ 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] New UI for 2.3
Well just to be completely different to everyone else, I like the new look. The bar at the top takes up a centimeter on my 20in monitor and it doesn't bother me in the slightest. I think Brain is right, People have been asking for DC to give Zope a face lift and now its got one you are all complaining about it. Don't get me wrong the points you raised are valid but you are complaining about 32 pixels. Give it a week and you won't know what you were complaining about. Overall it gets the thumbs up from me. :) -Andy (P.S. Why hasn't the acl_users folder got the same style of shaded/non-shaded rows, Just a consistancy thang :) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf > Of Brian Lloyd > Sent: 12 January 2001 02:12 > To: Steve Alexander; [EMAIL PROTECTED] > Subject: RE: [Zope-dev] New UI for 2.3 > > > > I think the new UI for 2.3 is great improvement over 2.2. > > > > I'm already finding the sorted tables of folder contents useful, and > > having the add new items select at the top saves time. > > > > > > However, I do not like the 3-frame interface. I feel that the top frame > > is wasted space. The Zope logo and "Logged in as username | Logout" > > could as easily go at the bottom of the tree-view frame on the left. > > This would leave extra screen space for doing work. > > > > I realize that I can make the frame smaller by dragging it with my > > mouse. I do a lot of TTW development, and I think I might find that > > cumbersome, so I guess I'll be hacking the top frame out of my > > management interface :-) > > Are you guys working on 486's with 13in. monitors at 640x480 or > something? :^) > > Seriously - Zope has been criticized for a very long time for > being, ah, aesthetically challenged :) It is a valid criticism > - we have been (and quite honestly, will continue to be) more > concerned with function over form. But is it really so bad to > make a 32 pixel-high concession to a small pittance of branding? > > I know that "branding" isn't important for those who are already > believers, but Zope has grown enough that its reasonable to put > some effort into "first impression factor". It doesn't help the > community for reviews to come out that waste words on the > visual appeal shortcomings of the UI and totally miss the > point. A better first impression is a Good Thing. > > The top frame is also a place where we might want to put more > "placeless" operations like logout in the future. You can only > jam so much into the tree pane without it looking very much > like way too much is being jammed into the tree pane :) FWIW, > one of the things we may put there later is a way to do "browser > preferences" via cookies to control things like default text > area sizes. That could also have a "hide top frame" option for > those who really can't spare the 32px. :^) > > > > Brian Lloyd[EMAIL PROTECTED] > Software Engineer 540.371.6909 > Digital Creations 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 > 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] 2.3.0. Unindex_object Tried To Unindex Nonexistent
I'm having some more problems with the ZCatalog in Zope 2.3.0 I've got a name error in the file UnTextIndex.py Error Type: NameError Error Value: i I believe this is occuring when the catalog tries to unindex an object that isn't currently indexed. The traceback reports line 332: File /usr/zope/zope-2_3_0/lib/python/SearchIndex/UnTextIndex.py, line 332, in removeForwardEntry The line in question reads: LOG('UnTextIndex', ERROR, 'Unindex_objects tried to unindex nonexistent' ' document %s' % str(i)) The function never uses or declares i, however it does use documentId. I think perhaps the i should have been documentId but I thought i would check with you guys first. What do you think? -Andy ___ 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] Profiling Products
People I have a desire to be able to profile my Python Product so that I can benefit from the advantages of profiling. Has anybody done this? Does anybody know how to do this? I have tried profiling Z2.py but of course that doesn't drop down to the level of the python product (Possibly running in a different thread - or something :( ) General Comments Welcomed. Cheers -Andy ___ 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] Profiling Products
Martijn Pieters wrote: > Have a look at: Control Panel -> Debug Information. There is a 'Profiling' > tab that explains what you have to do to switch it on. > > -- > Martijn Pieters Oh my god, That is so sexy :-) Cheers Martijn, I owe you a pint. -Andy ___ 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] Unindex_Object, bug (Again)
The bug with zope 2.3.0 that I reported with this mail: http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/5FE0F6EF4EFF2299 Has made it in to 2.3.1b1 Can we please get rid of it this time?? Do I need to submit anything to the collector for this to happen? -Andy ___ 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] Unindex_Object, bug (Again)
Chris McDonough wrote: > > Andy, > > Eek!! Please do submit this to the collector again. > > Apologies, > > - C > I have submitted it to the collector with a patch, so there will be no excuses next time :) -Andy ___ 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] Re: [Zope] New Python Script Logo?
[EMAIL PROTECTED] wrote: > > Hi, > > Here's take II of the funky logo for python scripts (adapted from the Win32 > Python distribution) > This one is transaparent where it needs to be... > > enjoy :-) > > Chris Totally Groovy Its made its way in to my Zope installation's -Andy ___ 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] Weird Re-Indexing Errors after move to Zope 2.3.1b1
Chris Withers wrote: > Is there a workaround in the meantime? This is turning into a real > showstopper for one of NIP's most important projects right now :~( > > desperately, > Chris I the meantime I have changed that method to the following: def insertReverseIndexEntry(self, entry, documentId): """Insert the correct entry into the reverse indexes for future unindexing.""" newRow = self._unindex.get(documentId, []) if newRow: # Catch cases where we don't need to modify anything if entry in newRow: return 1 if type(newRow) == type([]): newRow.append(entry) elif type(newRow) == type(())): newRow = newRow + (entry,) self._unindex[documentId] = newRow I know it isn't exactly the best fix in the world, but I stops the error _today_ which is what we need. So Until the next version it will do. Cheers -AndyD ___ 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] Weird Re-Indexing Errors after move to Zope 2.3.1b1
Andy Dawkins wrote: > Chris > > I the meantime I have changed that method to the following: > > def insertReverseIndexEntry(self, entry, documentId): > """Insert the correct entry into the reverse indexes for future > unindexing.""" > > newRow = self._unindex.get(documentId, []) > if newRow: > # Catch cases where we don't need to modify anything > if entry in newRow: > return 1 > > if type(newRow) == type([]): > newRow.append(entry) > elif type(newRow) == type(())): > newRow = newRow + (entry,) > > self._unindex[documentId] = newRow > People with an extremly keen eye (i.e. No one so far) may have noticed that I have an extra ) on this line: > elif type(newRow) == type(())): So it should read: > elif type(newRow) == type(()): Cheers -AndyD ___ 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] New Zcatalog bug on b2?
Chris I also have this error with 2.3.1b2 Here is the line which calls the search: sr = self.searchResults({'Type' : type, 'sort_on':'lowercase_title_'}) fyi. type = 'TypeTest' The indexes are as follows: Status = Text Index Type = Field Index Identifier = Field Index lowercase_title_ = Field Index parent_identifiers_ = Keyword Index The meta types are like this: Title id identifier There are only 13 records in the catalog. Cheers -Andy Chris McDonough wrote: > > Julio, > > Can you give us the actual index names that you're putting in the request to > search against, the query values you're passing in to each index, and the > contents of the sort_on parameter for that request? What kinds of indexes > are referred to by each of the index names in the query? > > - Original Message - > From: "Júlio Dinis Silva" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, March 16, 2001 2:28 PM > Subject: [Zope-dev] New Zcatalog bug on b2? > > > When passing in the REQUEST the var sort_on into the > > searchREsults method I get this error: > > > > Zope Errorr > > > > Zope has encountered an error while publishing this resource. > > > > Error Type: TypeError > > Error Value: len() of unsized object > > > > With this traceback: > > > > Traceback (innermost last): > > File > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, > > line 223, in publish_module > > File > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, > > line 187, in publish > > File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Zope/__init__.py, > > line 221, in zpublisher_exception_hook > > (Object: Traversable) > > File > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, > > line 171, in publish > > File > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/mapply.py, > line > > 160, in mapply > > (Object: executeSearch) > > File > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, > > line 112, in call_object > > (Object: executeSearch) > > File > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/OFS/DTMLMethod.py, > > line 189, in __call__ > > (Object: executeSearch) > > File > > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_String > .py, > > line 538, in __call__ > > (Object: executeSearch) > > File > > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Let.py > , > > line 146, in render > > (Object: Results="Catalog(REQUEST=REQUEST)") > > File > > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Util.p > y, > > line 334, in eval > > (Object: Catalog(REQUEST=REQUEST)) > > (Info: REQUEST) > > File , line 0, in ? > > File > > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/ZCatalog > .py, > > line 530, in searchResults > > (Object: Traversable) > > File > > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog. > py, > > line 654, in searchResults > > File > > > /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog. > py, > > line 591, in _indexedSearch > > TypeError: (see above) > > > > > > > > > > > > > > > > > > > > _ > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 > > 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 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] ZCatalog bug in 2.3.1b2
I posted this before but didn't get a reply. Has any one seen this bug, Or do they know a fix? ATM this is stopping me using 2.3.1b2 which is a bad thing(tm) --- Zope Errorr Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: len() of unsized object With this traceback: Traceback (innermost last): File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: executeSearch) File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: executeSearch) File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: executeSearch) File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: executeSearch) File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 146, in render (Object: Results="Catalog(REQUEST=REQUEST)") File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: Catalog(REQUEST=REQUEST)) (Info: REQUEST) File , line 0, in ? File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py, line 530, in searchResults (Object: Traversable) File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.py, line 654, in searchResults File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.py, line 591, in _indexedSearch TypeError: (see above) Here is the line which calls the search: sr = self.searchResults({'Type' : type, 'sort_on':'lowercase_title_'}) fyi. type = 'TypeTest' The indexes are as follows: Status = Text Index Type = Field Index Identifier = Field Index lowercase_title_ = Field Index parent_identifiers_ = Keyword Index The meta types are like this: Title id identifier There are only 13 records in the catalog. And there are some results to be returned. Cheers -Andy ___ 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] Zope 2.3.1b3 problem
People I have found this small problem but I don't know where it is coming from or why. If you create a Python Script in a folder: --- print container.id return printed --- If fails with this error: Error Type: TypeError Error Value: call of non-function (type list) Traceback (innermost last): File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: h) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: h) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: h) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: h) File /usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py, line 336, in _exec (Object: h) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 2, in h (Object: ) TypeError: (see above) I have managed to reproduce this on Zope 2.3.1b2 and Zope 2.3.1b3 but it works fine on Zope 2.3.1b1 Any Ideas/Assistance? -Andy ___ 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] Zope 2.3.1b3 problem
Phil Harris wrote: > > Andy, > > Try > > print container.getId() > > return printed > > hth > > Phil > That doesn't work either. Prehaps I should have been more specific. Generally _any_ calls on the container result in this error. I used 'container.id' because this is the simplist one to reproduce. In actual place where I am having this problem is where the container is a foldish product writen by NIP. But the fact that it is reproducable with the standard Zope Folder shows that something is fubar. I suspect the way container is implemented in PythonScript but I (personnaly) don't want to jump in that peice of code unless absolutely necersary. Cheers Anyway tho' -Andy ___ 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] Zope 2.3.1b3 problem
> I'd file this in the Collector, I have seen another problem with Python > Scripts that seems related on the lists somewhere, I think something > changed out from under Ethan's feet.. > This has been collected: No. 2094 http://classic.zope.org:8080/Collector/2094/view Cheers -Andy ___ 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] Zope 2.3.1b3 problem
[EMAIL PROTECTED] wrote: > > This is now fixed in the 2.3 branch. > > Thanks, > > Evan @ digicool Thanks Evan -Andy ___ 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] Open Letter to zope-dev
My Two Cents I don't regularly post to zope-dev, simply because there are many other people in the zope community who can answer the questions just as well i as could. But i remain subscribed, reading an post that catch my attention. I have read Mr. Milton's posts carefully, and although i sense a fair bit of emotion in his words what he has to say i think is quite important. I know Andy from #zope, I am one of the people who seek to give advise on #zope. I am also the co-partner in the New Information Paradigms (NIP) Zope department, along with Chris Withers, So I do have a vested interest in Zope and I do care about Zopes image, direction and cause but I wouldn't go broke if Zope turned bad. Andy is right when he says he has a small voice, but as anyone who knows him will already know, When he does say something people have no choice but to listen, perhaps its because of his gung-ho attitude. (which isn't necessarily a bad thing) He has a point about code, it being messy, unthought through or just simply inadequate. I am not blaming any body, but sometimes it is very hard to provide the opposite on a product that has been growing continually for over three years. In fact I would go as far to say that considering the product have been growing for over three years, of which I have been interested for over two, i think the code has been well maintained. I personally think one of Zope major contributors to untidiness is in its backwards compatibility. Which brings me to a question to ZC: How far does Zopes backwards compatibility stretch? When will the syntax no longer be wasting space inside the core code?, When will i get an error when I try to do a PARENTS[0]?. Its very hard to tell someone that PARENTS has been depreciated when it still works. What i am trying to say is perhaps there is some backwards compatibility that we don't need, and by reducing the backwards compatibility perhaps we (notice i use we, i mean the community not just ZC) can tidy up some code, and make the tar.gz smaller by getting rid of some of that cruft. To be honest i would be happy for Zope 3 not to be backwards compatible. Tidy it up, delete the unless code, dare i say it - refactor. Yes so my products will break, well half a days refactoring myself and i have a tidier more understandable project anyway. I'll get back to what i originally wanted to say. and that is: Don't judge Andy Milton too harshly for speaking up. And don't judge him in the way that he did it. Instead put your on judgments aside and read what he actually has to say. Personally, I agree with some of it and i disagree with other parts of it. But everyone is entitled to their own opinion. Thanks for listening to my rant, I hope it helped the cause. -Andy Dawkins (AndyD) (oh know, another bloody Andy) Andrew Kenneth Milton wrote: > > Since I seem to be the cause of all hell breaking loose over here, I thought > take the opportunity to respond, since I haven't really been given an > opportunity to do that. Since this probably going to be my only ever > posting to zope-dev, I don't feel constrained to be brief in exercising my > right of reply. > > I'm not going to apologise for the comments I made, or the manner in which I > made them. Those comments were made on a list run by me, basically for my own > amusement. If I had posted either of those emails to someone else's list, I'd > quite rightly deserve to be fried. > > I don't make money from Zope Development (I don't make money), I don't > run a website, in fact, I don't actually use any of the products I have > released. So it's not like I have a vested interest in Zope. My fortunes don't > rest on the success or failure of Zope or any one of its components. I live > in a country the size of the USA that has the approximate population of > New York State. Even if I stood on a busy street corner with a loud hailer, > the number of people I could actually influence would be small. This makes > me one of the people in the trenches. > > It is the people who are in the trenches who are increasingly being > disaffected by Zope Corp, it seems as if you're not subscribed to zope-dev, > you have no voice, and for most people zope-dev is not an appropriate forum > for them to be subscribed to. As some of you know, I was hounded off of the > zope@ mailing list for suggesting that there be some other mailing list > for more technical discussion. People were very upset, because, they > already have a hard time getting any support. Noone from Zope Corp seems > to monitor the list to help out. The zope list was manned by people like > me volunteering expertise and time to help more of the little people. > > A lot of those people come to the irc channel, which is also rarely if > ever visi
Re: [Zope-dev] Open Letters and Zope 3
> Zope 3X requires Python 2.2b2. Shane Are you sure you mean Python2.2b2? I tried this but seem to get problems with the pyexpat module. Would a different version do, Or have you solved any problems with the pyexpat module in 2.2.b2? I have added a few print statements to my xml.sax.__init__.py and commented out the try, except block around the import of expatreader.py lines 16,18-22 This gives me a more usfull traceback: [root@legolas Zope3]# python2.2 z3.py ['xml.sax.expatreader'] xml.sax.expatreader Traceback (most recent call last): File "z3.py", line 38, in ? config(os.getcwd()) File "/usr/local/zope/Zope3/lib/python/Zope/App/config.py", line 34, in config xmlconfig(file) File "/usr/local/zope/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line 96, in xmlconfig parser=make_parser() File "/usr/local/Python2.2b2/Lib/xml/sax/__init__.py", line 83, in make_parser return _create_parser(parser_name) File "/usr/local/Python2.2b2/Lib/xml/sax/__init__.py", line 107, in _create_parser drv_module = __import__(parser_name,{},{},['create_parser']) File "/usr/local/Python2.2b2/Lib/xml/sax/expatreader.py", line 17, in ? from xml.parsers import expat File "/usr/local/Python2.2b2/Lib/xml/parsers/expat.py", line 4, in ? from pyexpat import * ImportError: No module named pyexpat Cheers -AndyD ___ 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] Open Letters and Zope 3
YAY *There was much rejoicing* Thanks Shane, once again you have solved my problems. -Andy Shane Hathaway wrote: > > Andy Dawkins wrote: > > >>Zope 3X requires Python 2.2b2. > >> > > > > Are you sure you mean Python2.2b2? > > > > I tried this but seem to get problems with the pyexpat module. > > > > Would a different version do, Or have you solved any problems with the > > pyexpat module in 2.2.b2? > > Make sure you have expat, including the headers, installed when > compiling Python (independently of Python). On Mandrake 8.1 I installed > the RPMs libexpat1_95-1.95.2-1mdk, libexpat1_95-devel-1.95.2-1mdk, and > expat-1.95.2-1mdk. > > Shane ___ 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 )