[Zope] Underscoring Inaugural Address
Hello there Zopatistas, In my inaugural post, I should like to enquire about getting to a url like so: http://myzopeserver.something.clever/a/path/to/a/file/named/__init__.py Getting to the object "__init__.py" is difficult (it acts like it doesn't exist.) Is there a way to muck about with getattr, traversal, or something related so that, for a particular kind of object (eg with a particular attribute), Zope ignores the "cannot start with a '_' " rule? I notice that the cvs.zope.org seems to transparently solve this problem, so presumably (if said interface is on a zope instance), this is solvable. Cheers, Dan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Underscoring Inaugural Address
Ugh. I suppose I could ignore the '_' bit (and override BaseRequest.traverse), but the problems are: 1. Keeping this thing synced with Zope. 2. Accessing the object being traversed to to ensure it is of the correct type. There is no other way to do this? Is there a way to have a path "pretend" it is different? Could messing with __browser_default__ yield any useful results? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Winkler Sent: Wednesday, May 11, 2005 3:45 PM To: zope@zope.org Subject: Re: [Zope] Underscoring Inaugural Address On Wed, May 11, 2005 at 03:00:02PM -0400, Dan Pozmanter wrote: > Hello there Zopatistas, > >In my inaugural post, I should like to enquire about getting to a > url like so: > http://myzopeserver.something.clever/a/path/to/a/file/named/__init__.p > y > > Getting to the object "__init__.py" is difficult (it acts like it > doesn't exist.) Objects whose names begin with underscores are not "publishable." The code is in lib/python/ZPublisher/BaseRequest.py and there is no easy way to override this behavior. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Underscoring Inaugural Address
Is sort of do, since the final object is a wrapper around a unique path. What about messing aroound with the url? Is there a way to have it show: http://foo.com/__init__.py But really point to http://foo.com/supercoolfileat__init__.py ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Winkler Sent: Wednesday, May 11, 2005 3:56 PM To: zope@zope.org Subject: Re: [Zope] Underscoring Inaugural Address On Wed, May 11, 2005 at 03:50:00PM -0400, Dan Pozmanter wrote: > Ugh. I suppose I could ignore the '_' bit (and override > BaseRequest.traverse), but the problems are: > 1. Keeping this thing synced with Zope. > 2. Accessing the object being traversed to to ensure it is of the > correct type. > > There is no other way to do this? Do you have to use URL traversal to reach the final object? There's no such restriction on query parameters. http://foo.com/get_file?name=__init__.py -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Seeking advice on Zope implementation
"In Zope 3 you can turn off as many unwanted features as you like" That sounds really cool. How so? (Is there a tentative list of all zope 3 services? Do you need to run all of them?) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephan Richter Sent: Tuesday, May 17, 2005 11:02 AM To: zope@zope.org; pythonic Subject: Re: [Zope] Seeking advice on Zope implementation Hi, it all depends what your app is like. Can you describe it some more? On Tuesday 17 May 2005 10:03, pythonic wrote: > 1. Startup custmization: How can one configure zope to load instance > of this as product (my application) on the startup but not the ZMI and > other zope stuff. In Zope 3 you can turn off as many unwanted features as you like. So from this point of view Zope 3 would be good. > 2. We want to generate xml using ZPTs and then apply xsl. Is the > server side transformation supported? Why? You first use ZPT to create XML and then an XSLT engine to create HTML. This seems like a slow approach to me. ZPT can generate HTML right away, which is much faster. Unless you already have your content in XML, an XSLT engine is total overkill. > 3. Is there any good doc available that describes how to do things you > do in ZMI programmatically? Zope 3 does not rely as heavily on the ZMI as Zope 2 and in fact all code is developed on the filesystem, so in this case it might be better for you. > 4. Zope 2.7 / 3 ? I think you should go with Zope 3. Several projects have already successfully integrated their Pyton code into Zope 3. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Seeking advice on Zope implementation
So there is only one service then? >From the book, it seemed like there was a service for services, utilities, etc. Will much of the functionality from cmf being added to the core be implemented via utilities? -Original Message- From: Stephan Richter [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 7:11 PM To: Dan Pozmanter Cc: zope@zope.org; pythonic Subject: Re: [Zope] Seeking advice on Zope implementation On Tuesday 17 May 2005 18:25, Dan Pozmanter wrote: > "In Zope 3 you can turn off as many unwanted features as you like" > > That sounds really cool. How so? > (Is there a tentative list of all zope 3 services? Do you need to run > all of them?) No, there is just one network service. But there are many utilities (in the context of a component architecture) that you can simply turn off by not loading the configuration files. Zope 3 registers new functionality using a configuration language called ZCML. You can decide which configuration files you want to load and which ones you do not. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] dtml-sendmail with a tab
Either he wants to charge the recipient, or he Just wants to send an e-mail from a zmi tab. If its something like the latter, this: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.16.html may help. -Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Jung Sent: Thursday, May 19, 2005 9:11 AM To: [EMAIL PROTECTED]; zope@zope.org Subject: Re: [Zope] dtml-sendmail with a tab --On Donnerstag, 19. Mai 2005 14:48 Uhr +0200 [EMAIL PROTECTED] wrote: > > Hello, >I want to send an e-mail with a tab. How can I do that with a > dtml-sendmail tag? > What is an email with a tab?? -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Modifying __bases__
Hey, I noticed that the version of python that ships with zope is restricted, such that when you create an instance of a class, you are no longer able to modify __bases__ for that class object. This is not the case with standard python. Is this intentional? If so, what is the reasoning behind this? Dan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Modifying __bases__
Well, when I run it, I am able to do the following: class A: pass class B(A): pass b = B() B.__bases__ = () print B.__bases__ Not so on the version that comes with zope. (B.__bases__ will remain unchanged.) What I aim to do is have the User Object inherit from a custom class (AlienUser). -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 12:46 PM To: Dan Pozmanter; zope@zope.org Subject: Re: [Zope] Modifying __bases__ --On Freitag, 20. Mai 2005 12:32 Uhr -0400 Dan Pozmanter <[EMAIL PROTECTED]> wrote: > Hey, > > I noticed that the version of python that ships with zope is > restricted, such that when you create an instance of a class, you are > no longer able to modify __bases__ for that class object. > > This is not the case with standard python. > > Is this intentional? If so, what is the reasoning behind this? > You mean the Windows binaries? This should be a standard Python version. However by do you want to modify __bases__? This sounds like a very evil hack to me. What's your usecase? -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Modifying __bases__
Going with 2.8 sounds like a rather good solution. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris McDonough Sent: Friday, May 20, 2005 3:01 PM To: Paul Winkler Cc: zope@zope.org Subject: Re: [Zope] Modifying __bases__ You might also be able to do the __bases__ hack with Zope 2.8 (as long as Python 2.3+ allows you to assign to it), as it reimplements ExtensionClass using metaclasses instead of custom C hackery. On Fri, 2005-05-20 at 14:46 -0400, Paul Winkler wrote: > On Fri, May 20, 2005 at 01:48:46PM -0400, Dan Pozmanter wrote: > > What I aim to do is have the User Object inherit from a custom class > > (AlienUser). > > You can do that in two ways off the top of my head: > > 1) the good way: write a custom UserFolder. > You could probably get away with just inheriting from UserFolder and > overriding _doAddUser(). > > 2) the hacky way: monkeypatch User.py to replace SimpleUser with your > class. > > either way the stuff you are interested in is in AccessControl/User.py. > > ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Modifying __bases__
Out of curiosity, I've noticed the word "evil" attached to patching of various and monkey kinds. Not "bad", or "unwise", but "evil", implying a morality associated with the act. What is morally wrong with modifying live objects in a dynamic language to achieve desired functionality? The idea is "I want to modify the zope core in a way that survives version to version, yet does not impose a specific use case on all zope users". -Original Message- From: Tino Wildenhain [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 2:38 PM To: Dan Pozmanter Cc: Andreas Jung; zope@zope.org Subject: RE: [Zope] Modifying __bases__ Am Freitag, den 20.05.2005, 13:48 -0400 schrieb Dan Pozmanter: > Well, when I run it, I am able to do the following: > > > class A: > pass > > class B(A): > pass > > b = B() > > B.__bases__ = () > > print B.__bases__ > > > Not so on the version that comes with zope. > (B.__bases__ will remain unchanged.) > > What I aim to do is have the User Object inherit from a custom class > (AlienUser). Well, you can just inherit with a class from zopes extension classes. You cannot modify the class bases like this with extension classes. You can work around that like I did with the history (monkey) patch: http://www.zope.org/Members/tino/PatchHistory/view Otherwise it sounds evil and you failed to show the true motivation with your example above. Tino. PS: Votes for a true implementation in current zope instead of the monkey patch? If so, tell me. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Underscoring Inaugural Address
Hey, I am working on a subversion interface for zope, and our repositories are rife with files like "__init__.py". I ended up using the query string work around (but just for files). Best, Dan -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 8:46 AM To: Dan Pozmanter Cc: Paul Winkler; zope@zope.org Subject: Re: [Zope] Underscoring Inaugural Address Dan Pozmanter wrote: > Is sort of do, since the final object is a wrapper around a unique path. > > What about messing aroound with the url? > > Is there a way to have it show: > > http://foo.com/__init__.py > Maybe I missed something, but why are you intent on serving such bizare urls? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Re: Modifying __bases__
Yes, this definitely makes sense. Which is why monkey patching is never used lightly, but also why clean code and good documentation are so necessary. Any code is difficult to maintain when it is murky, undocumented, and the developer lacks the relevant historical background. In any case, I'll pass this on to the fellow who is muddling about with User Objects. Many Thanks, Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Hudson Sent: Wednesday, May 25, 2005 9:55 AM To: zope@zope.org Subject: [Zope] Re: Modifying __bases__ On Fri, May 20, 2005 at 05:10:30PM -0400, Dan Pozmanter wrote: | Out of curiosity, I've noticed the word "evil" attached to patching of | various and monkey kinds. Not "bad", or "unwise", but "evil", | implying a morality associated with the act. I think it is used mainly to give added emphasis to lessons learned from painful experience. As Paul reported, hours can be wasted tracing the wrong code trying to understand what is happening. | What is morally wrong with modifying live objects in a dynamic | language to achieve desired functionality? The problem is maintainability. When you dynamically rewrite the code, the code is then very difficult to follow, verify, and modify. It is even harder for someone else to maintain the code because they don't have the historical background to rememeber where , what and why the code is dynamically changed. | The idea is "I want to modify the zope core in a way that survives | version to version, yet does not impose a specific use case on all | zope users". The good pattern for handling this is to create a new class that extends the core classes that provide almost the functionality you want. Then, in your part of the database, create an instance of your class instead of the built-in core class. Specifically for your case, extend the basic UserFolder class to create instances of your custom User class instead of the built-in one. It would be good if the UserFolder allowed you to parameterize it so you could simply say "use this User class", but in the absence of that foresight, you can extend the UserFolder clas. HTH, -D -- Whoever loves discipline loves knowledge, but he who hates correction is stupid. Proverbs 12:1 www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Open Source Announcement Question
Hey all, Where is the best place to host/announce a new open source zope product (or zope related app)? I'm used to using sf, but there a prefered site or mechanism? Dan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Silly question
Wouldn't it be cool if instead of checking explicitly for a leading '_' during traversal, you ran a method "isTraversable" (On SimpleItem for instance), which by default just checks for a leading '_', but could be overridden in a particular class? Dan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Silly question
The name could change easily enough. How about __bobo_always_allow__ Which can either be: None A List of traversable items A method that takes the path, and returns whether or not it is traversable. So for a path p: if p[0] == '_': if p_object.__bobo_always_allow__: if type(p_object.__bobo_always_allow__) is type([]): if p in p_object.__bobo_always_allow__: #allow else: #Do what is normally done for '_' bits. else: if p_object.__bobo_always_allow__(p): #allow else: #Do what is normally done for '_' bits. else: #Do what is normally done for '_' bits. Something vaguely like that. That way you could either specify the exact items that start with '_', or have a method determine it on the fly. This way you would not automatically make all attributes that start with an underscore accessible, and the developer could specify exceptions. -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 4:15 PM To: Dan Pozmanter Cc: zope@zope.org Subject: Re: [Zope] Silly question The DWIM of not disallowing traversal of underscore names is useful (because it makes it easy to conventionally mark attrs as private) but it can definitely be a drag if you really do want to publish something that begins with an underscore; this happens a lot when you need to deal with allowing uploads of arbitrary filenames. It might be useful to add something like you propose, except I might take exception to the name "isTraversable" (everything is traversable, really); maybe just set a magic attr on the object like __allow_underscore_traversal__. However, adding such a feature would need to be done carefully. Much usage of the Zope security machinery utterly depends on not being able to traverse underscore names. - C On Thu, 2005-06-02 at 15:59 -0400, Dan Pozmanter wrote: > Wouldn't it be cool if instead of checking explicitly for a leading > '_' during traversal, you ran a method "isTraversable" (On SimpleItem > for instance), which by default just checks for a leading '_', but > could be overridden in a particular class? > > Dan > ___ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] TextIndexNG (2/3) and Zope2.8
Great sirs/madames of Zope, I am attempting to use TextIndexNG on Zope2.8 (No Plone, No CMF). TextIndexNG2 has suddenly stopped working (it was fine on 2.7), and indexes will display 'n/a' rather than a count. TextIndexNG3: When trying to start zope: File "C:\Program Files\Zope-2.8.2-final\lib\python\zope\configuration\fields.py", line 141, in fromUnicode raise schema.ValidationError(v)zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "C:\Program Files\Zope-2.8.2-final\lib\python\Products\Five\skel\site.zcml", line 12.2-12.23 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\configure.zcml", line 8.2-8.55 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\adapters\configure.zcml", line 8.2-10.21 ConfigurationError: ('Invalid value for', 'class', "Couldn't import Products.ATContentTypes.content.file, No module named ATContentTypes.content.file") If I address that, I progress to: * Module Products.TextIndexNG3.TextIndexNG3, line 76, in __init__ * Module textindexng.index, line 47, in __init__ * Module textindexng.index, line 53, in clear * Module zope.component, line 184, in createObject * Module zope.component, line 76, in getUtility * Module zope.component.utility, line 44, in getUtility ComponentLookupError: (, 'txng.lexicons.default') When trying to add a TextIndexNG3 index. If I can get either product working, I'd be estatic. Kind Thanks. ___ Daniel PozmanterSiteworx, Inc. "Festina Lente" - Gaius Julius ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] TextIndexNG (2/3) and Zope2.8
-Original Message-From: Andreas Jung [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 07, 2005 1:04 PMTo: Dan Pozmanter; zope@zope.orgSubject: Re: [Zope] TextIndexNG (2/3) and Zope2.8--On 7. Dezember 2005 12:56:41 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote:> Great sirs/madames of Zope,>> I am attempting to use TextIndexNG on Zope2.8 (No Plone, No CMF).> TextIndexNG2 has suddenly stopped working (it was fine on 2.7), and> indexes will display 'n/a' rather than a count.Nothing stops suddenly. True. Let me rephrase. When I simply change what zope install I run my instance with (2.7 -> 2.8), TextIndexNG2 indexes go from reporting xyz distinct values to 'n/a' distinct values. Or installing TextIndexNG2 on an instance that is only run using 2.8. > TextIndexNG3:>>> When trying to start zope:> File "C:\Program> Files\Zope-2.8.2-final\lib\python\zope\configuration\fields.py", line> 141, in fromUnicode> raise schema.ValidationError(v)> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File> "C:\Program> Files\Zope-2.8.2-final\lib\python\Products\Five\skel\site.zcml", line> 12.2-12.23> ZopeXMLConfigurationError: File> "C:\Zope-Instance\Products\TextIndexNG3\configure.zcml", line 8.2-8.55> ZopeXMLConfigurationError: File> "C:\Zope-Instance\Products\TextIndexNG3\adapters\configure.zcml", line> 8.2-10.21> ConfigurationError: ('Invalid value for', 'class', "Couldn't> import Products.ATContentTypes.content.file, No module named> ATContentTypes.content.file")>> If I address that, I progress to:> * Module Products.TextIndexNG3.TextIndexNG3, line 76, in __init__> * Module textindexng.index, line 47, in __init__> * Module textindexng.index, line 53, in clear> * Module zope.component, line 184, in createObject> * Module zope.component, line 76, in getUtility> * Module zope.component.utility, line 44, in getUtility> ComponentLookupError: (> zope.component.interfaces.IFactory>, 'txng.lexicons.default')>>This is a known issue. Uncomment all registrations in TextIndexNG3/adapters/configure.zcml for non-Plone installations. Apologies for my ignorance, but nothing in TextIndexNG3/adapters/configure.zcml appears to be commented. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] TextIndexNG (2/3) and Zope2.8
-Original Message-From: Andreas Jung [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 07, 2005 2:03 PMTo: Dan Pozmanter; Andreas Jung; zope@zope.orgSubject: RE: [Zope] TextIndexNG (2/3) and Zope2.8--On 7. Dezember 2005 13:51:14 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote:> -Original Message-> From: Andreas Jung [mailto:[EMAIL PROTECTED]]> Sent: Wednesday, December 07, 2005 1:04 PM> To: Dan Pozmanter; zope@zope.org> Subject: Re: [Zope] TextIndexNG (2/3) and Zope2.8>> >> True. Let me rephrase. When I simply change what zope install I run> my instance with (2.7 -> 2.8),> TextIndexNG2 indexes go from reporting xyz distinct values to 'n/a'> distinct values.Click on the related index and check for the document statics. See if there are any documents indexed... A related index does indeed have documents indexed. >> Apologies for my ignorance, but nothing in> TextIndexNG3/adapters/configure.zcml appears to be commented.>Sorry, you need to comment the registrations. Sweet! It works, huge thanks! -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] TextIndexNG3 clears on restart?
Is this a known issue? Any TextIndexNG3 indexes I create clear on restart, and do not repopulate. ___ Daniel PozmanterSiteworx, Inc. "Festina Lente" - Gaius Julius ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] TextIndexNG3 clears on restart?
I guess that's a "no, this is not a known issue". I'll look into this further, just checking to see if someone had been down this path before. ___ Daniel Pozmanter Siteworx, Inc. "Festina Lente" - Gaius Julius -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:43 PM To: Dan Pozmanter; zope@zope.org Subject: Re: [Zope] TextIndexNG3 clears on restart? --On 8. Dezember 2005 15:40:10 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote: > Is this a known issue? > Any TextIndexNG3 indexes I create clear on restart, and do not > repopulate Proof it. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] TextIndexNG3 clears on restart?
Ok, here are steps to reproduce: Ingredients: 1 copy of TextIndexNG3, with appropriate files edited for non plone usage. 1 copy of zope, sans plone, cmf. run this on either freebsd or windows. Steps: 1. Add a Zcatalog. 2. Add one ZCTextIndex (say, index on id or title). 3. Add one TextIndexNG3 (index on title or id). Be sure to turn on stemming. 4. Fill up the catalog using find objects. 5. Verify the counts for each index. 6. Restart Zope. 7. Take a second gander at those counts. One of them should now be '0'. ___ Daniel Pozmanter Siteworx, Inc. "Festina Lente" - Gaius Julius -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:43 PM To: Dan Pozmanter; zope@zope.org Subject: Re: [Zope] TextIndexNG3 clears on restart? --On 8. Dezember 2005 15:40:10 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote: > Is this a known issue? > Any TextIndexNG3 indexes I create clear on restart, and do not > repopulate Proof it. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] TextIndexNG3 clears on restart?
Changing the storage from default to term_frequencies seems to fix the problem. ___ Daniel Pozmanter Siteworx, Inc. "Festina Lente" - Gaius Julius -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Pozmanter Sent: Thursday, December 08, 2005 4:20 PM To: Andreas Jung; zope@zope.org Subject: RE: [Zope] TextIndexNG3 clears on restart? Ok, here are steps to reproduce: Ingredients: 1 copy of TextIndexNG3, with appropriate files edited for non plone usage. 1 copy of zope, sans plone, cmf. run this on either freebsd or windows. Steps: 1. Add a Zcatalog. 2. Add one ZCTextIndex (say, index on id or title). 3. Add one TextIndexNG3 (index on title or id). Be sure to turn on stemming. 4. Fill up the catalog using find objects. 5. Verify the counts for each index. 6. Restart Zope. 7. Take a second gander at those counts. One of them should now be '0'. ___ Daniel Pozmanter Siteworx, Inc. "Festina Lente" - Gaius Julius -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:43 PM To: Dan Pozmanter; zope@zope.org Subject: Re: [Zope] TextIndexNG3 clears on restart? --On 8. Dezember 2005 15:40:10 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote: > Is this a known issue? > Any TextIndexNG3 indexes I create clear on restart, and do not > repopulate Proof it. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] TextIndexNG3 clears on restart?
Bummer, errors that don't readily reproduce are lovely. I guess just ignore this unless it pops up again from someone else. Thanks for the help. ___ Daniel Pozmanter Siteworx, Inc. "Festina Lente" - Gaius Julius -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Friday, December 09, 2005 12:30 AM To: Dan Pozmanter; Andreas Jung; zope@zope.org Subject: RE: [Zope] TextIndexNG3 clears on restart? --On 8. Dezember 2005 16:25:16 -0500 Dan Pozmanter <[EMAIL PROTECTED]> wrote: > Changing the storage from default to term_frequencies seems to fix the > problem. Nothing I can reproduce...it works perfectly independent of the used storage or stemmer settings. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )