Re: [Zope-dev] Bug Or Feature in ZopeSplitter
I hope the changes I made will work. :) mfg as Chris McDonough schrieb: > > This is correct. The current splitter implementation ignores digits. > You can make your own implementation that does not. > > Andre Schubert wrote: > > > Hi all, > > > > After playing with Zope 2.4.3 and TextIndexes i found out that the > > TextIndex does not Index Digits( "12345" ). > > Thatswhy i looked in the sources and i saw in "next_word", that there is > > the caracter checked with "isalnum", but in "check_synstop" the caracter > > is checked with "isalpha"? > > This means to me that every DIGIT is a stop-word and not a real > > character. > > > > If have changed the isalpha with isalnum and it seems to work... > > > > Can anyone explain this... > > > > thanks as > > > > ___ > > 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] Bug Or Feature in ZopeSplitter
This is correct. The current splitter implementation ignores digits. You can make your own implementation that does not. Andre Schubert wrote: > Hi all, > > After playing with Zope 2.4.3 and TextIndexes i found out that the > TextIndex does not Index Digits( "12345" ). > Thatswhy i looked in the sources and i saw in "next_word", that there is > the caracter checked with "isalnum", but in "check_synstop" the caracter > is checked with "isalpha"? > This means to me that every DIGIT is a stop-word and not a real > character. > > If have changed the isalpha with isalnum and it seems to work... > > Can anyone explain this... > > thanks as > > ___ > 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] Bug Or Feature in ZopeSplitter
Hi all, After playing with Zope 2.4.3 and TextIndexes i found out that the TextIndex does not Index Digits( "12345" ). Thatswhy i looked in the sources and i saw in "next_word", that there is the caracter checked with "isalnum", but in "check_synstop" the caracter is checked with "isalpha"? This means to me that every DIGIT is a stop-word and not a real character. If have changed the isalpha with isalnum and it seems to work... Can anyone explain this... thanks as ___ 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] BUG or FEATURE?
On Wed, 24 Oct 2001, Sidnei da Silva wrote: > But i still dont understand why the first time i call REQUEST.set, and use > the variable has the value i set, and subsequent calls to > REQUEST.set modify REQUEST['variable'] but not variable. This is not right > for what i think. Or it modify the variable ALL the times or NONE. > > Do you agree? I agree. It looks like a bug to me . I think the correct behavior would be for all the sets to work, regardless of the with. My guess is that if you look in the code you'll find some weird interaction happening between the namespace stack code and acquisition. And by the way, I was under the impression that the idom was a pretty common way to handle just the case you chose it for. In fact, I think that idom appears in DC code here and there, though I could be misremembering that part. --RDM ___ 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] BUG or FEATURE?
Yes. I was having problem with zope getting values from a property with the same name as a field of a form ive submitted instead of the request. So, using solved the problem, but then there is this problem. But i still dont understand why the first time i call REQUEST.set, and use the variable has the value i set, and subsequent calls to REQUEST.set modify REQUEST['variable'] but not variable. This is not right for what i think. Or it modify the variable ALL the times or NONE. Do you agree? Em Tuesday 23 October 2001 20:37, Andy McKay escreveu: > Its the , that mucks up the namespace lookup for "value" > > > > > Doesnt work:, works: > > > > But with REQUEST is a rather wierd thing to do. Are you sure you want to do > that? > > Cheers. -- Sidnei da Silva X3ng Consultoria e Desenvolvimento Ltda. [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] BUG or FEATURE?
Its the , that mucks up the namespace lookup for "value" Doesnt work:, works: But with REQUEST is a rather wierd thing to do. Are you sure you want to do that? Cheers. -- Andy McKay. - Original Message - From: "R. David Murray" <[EMAIL PROTECTED]> To: "Sidnei da Silva" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 23, 2001 3:15 PM Subject: Re: [Zope-dev] BUG or FEATURE? > On Tue, 23 Oct 2001, Sidnei da Silva wrote: > > I dont know how it was supposed to work, but i think that if the REQUEST was > > immutable inside a dtml-with, it should be not allowed to call REQUEST.set > > inside it. > > It isn't immutable. The second and subsequent sets should work. > > > <== only works first time it > > Well, I don't know quite what you are observing, but this code is broken. > Inside the quotes you are in python mode, and 'sequence-item' in python mode > is the variable sequence minus the variable item. Since it didn't throw an > error, you must have variables by those names that understand substraction. > > Try _.getitem('sequence-item') instead. > > I suspect this thread belongs on zope, not zope-dev. > > --RDM > > > ___ > 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] BUG or FEATURE?
On Tue, 23 Oct 2001, Sidnei da Silva wrote: > I dont know how it was supposed to work, but i think that if the REQUEST was > immutable inside a dtml-with, it should be not allowed to call REQUEST.set > inside it. It isn't immutable. The second and subsequent sets should work. > <== only works first time it Well, I don't know quite what you are observing, but this code is broken. Inside the quotes you are in python mode, and 'sequence-item' in python mode is the variable sequence minus the variable item. Since it didn't throw an error, you must have variables by those names that understand substraction. Try _.getitem('sequence-item') instead. I suspect this thread belongs on zope, not zope-dev. --RDM ___ 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] BUG or FEATURE?
Today i've got a problem with the dtml-with tag, as follows: I was trying to set a variable, using REQUEST.set inside a dtml-in, inside a dtml-with, but it only works the first time i call REQUEST.set. Subsequent calls do not modify the variable, and do not raise an exception. Not even a simple error. I dont know how it was supposed to work, but i think that if the REQUEST was immutable inside a dtml-with, it should be not allowed to call REQUEST.set inside it. Here goes some example code: ... ... ... ... <== only works first time it gets called and dont raise an error. ... ... See ya! -- Sidnei da Silva X3ng Consultoria e Desenvolvimento Ltda. [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 )
[Zope-dev] Bug or feature (Zope Factory)
When I create a ZClass within a product called ZFooClass and I change the 'Add list name' property within it's ZFooClass_factory to 'Z Foo Class' no instance of this class can be pasted. The object [ZFooClass instance] does not support this operation Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_pasteObjects) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_pasteObjects) File /usr/local/Zope/lib/python/OFS/CopySupport.py, line 199, in manage_pasteObjects (Object: ElementWithAttributes) File /usr/local/Zope/lib/python/OFS/CopySupport.py, line 377, in _verifyObjectPaste (Object: ElementWithAttributes) Copy Error: (see above) This is a Zope2.1.6 Traceback ... same behavior on 2.2.4 / 2.2.5 If I leave it 'ZFooClass' I can copy and paste instances. Do I miss something ? BTW: What's wrong with [EMAIL PROTECTED]? Although I can post at this time with on mail delivary warning I get no new messages ? -- ___ Andreas Heckel [EMAIL PROTECTED] LINUX is like a wigwam...no gates...no windows and an apache inside ;-) ___ 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 )