Re: [Zope-dev] CoreSessionTracking stuff
> A session data object timeout of "0" as set in the session data container > means "give me completely persistent session data objects, do not expire > them". Set it to this, and set a high cookie timeout. But yes, a better > way to do something like this is to use sessioning in combination with a > membership product. Ah ok, yes the more I thought about it, the more I thought a Membership system is the way to go. > Local filesystem access won't work across ZEO clients. The primary purpose > of an external data container is to provide access to a shared namespace > between ZEO clients. This doesn't mean someone couldn't write an alternate > data container implementation that uses the filesystem, however. True. But its another option that is quick and easy for many people. I'll put it on my interesting things to do on a rainy day list somewhere > As far as the difficulty of mounting goes, when I can find some time, I want > to write a mounting howto. Thats always welcome. Thanks. ___ 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 )
Re: [Zope-dev] CoreSessionTracking stuff
Hi Andy, > -Why does an ESDC have a session timeout in 20 minutes, yet the cookie > lifespan can be 30 days. Surely there will be no way to tie a cookie back up > to a session since the ESDC will be have had that person nuked, I was sort > of hoping I coudl persist the data in the ESDC for a long time to provide > storage (I could always set the minutes to 9 or something silly). I > guess if I really want data to be persisted for ever some sort of Membership > product will be needed... A session data object timeout of "0" as set in the session data container means "give me completely persistent session data objects, do not expire them". Set it to this, and set a high cookie timeout. But yes, a better way to do something like this is to use sessioning in combination with a membership product. > -Mounting a non-undoable db into Zope is not trivial unless there is > something Im missing. There's a non-undoable system every Zope installation > has called the file system, why dont we use that? I was thinking we could > modifiy LocalFS to provide that sort of functionality would be much > easier... Local filesystem access won't work across ZEO clients. The primary purpose of an external data container is to provide access to a shared namespace between ZEO clients. This doesn't mean someone couldn't write an alternate data container implementation that uses the filesystem, however. As far as the difficulty of mounting goes, when I can find some time, I want to write a mounting howto. HTH, - C ___ 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] Debugging Zope
For all those who questioned my slip of an email a few weeks ago regarding debugging Zope with Komodo, well its official now. A how to and some screenshots are now available: http://www.zope.org/Members/andym/Komodo. I hope you find it as useful as I do. Cheers. -- Andy McKay. ___ 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] CoreSessionTracking stuff
More questions on CoreSessionTracking. On on site I wish to persist the information on a session indefinitely so a user can reconnect with those previous session settings. I looked at "External Session Data Container" (ESDC) and had some questions here I go: -Why does an ESDC have a session timeout in 20 minutes, yet the cookie lifespan can be 30 days. Surely there will be no way to tie a cookie back up to a session since the ESDC will be have had that person nuked, I was sort of hoping I coudl persist the data in the ESDC for a long time to provide storage (I could always set the minutes to 9 or something silly). I guess if I really want data to be persisted for ever some sort of Membership product will be needed... -Mounting a non-undoable db into Zope is not trivial unless there is something Im missing. There's a non-undoable system every Zope installation has called the file system, why dont we use that? I was thinking we could modifiy LocalFS to provide that sort of functionality would be much easier... Cheers. -- Andy McKay. ___ 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] Q: Specialists, Racks, and ZCatalogs?
Wow, it's fun to hear people talking about Catalysis! Catalysis is an analysis and design methodology that focuses on components and frameworks. It stresses being able to specify component interactions with invariants, pre/post conditions, and supporting graphics. The book, "Objects, Components, and Frameworks with UML" by Desmond D'Souza and Alan Wills is no light read, but well worth it. Composing multiple frameworks together with package substitutions is really cool. ;-) We are actually combining the analysis precision from Catalysis with the code focus from XP and having really good success. John "who worked for Desmond in past life" Heintz Johan Carlsson wrote: >> ... >> When you're thinking about a system, it is often helpful to think about >> just a part of the system rather than the system as a whole. To do this, >> you define a limited "scope" around a particular subsystem. >> In this case, an Actor represents the role something from outside your >> subsystem plays when interacting with something inside your subsystem. >> >> The "something" can be an object, a person, a separate computer system, >> a corporation... >> > > > Thanks Steve, > You cleared up my confusion. > > >>> How should I look at roles in ZPatterns? >> >> This is all standard object-oriented stuff, and is not specific to ZPatterns. >> Get the Coad book, read it, and things should get clearer :-) > > > It's on my ToReadList :-) > > > >> Also, the Catalysis method puts an emphasis on defining interactions and >> collaborations between objects in terms of roles. You might want to take >> a look at that. > > > Is Catalysis method a pattern in Coads book? > > Regards, > Johan Carlsson > > > ___ > 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 ) -- . . . . . . . . . . . . . . . . . . . . . . . . John D. Heintz | Senior Engineer 1016 La Posada Dr. | Suite 240 | Austin TX 78752 T 512.633.1198 | [EMAIL PROTECTED] w w w . d a t a c h a n n e l . c o m ___ 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] Q: Specialists, Racks, and ZCatalogs?
Johan Carlsson wrote: > >> Also, the Catalysis method puts an emphasis on defining interactions and >> collaborations between objects in terms of roles. You might want to take >> a look at that. > > Is Catalysis method a pattern in Coads book? No. Catalysis is an object oriented analysis and design method. It is separate from the Coad book. Tnere is some information on http://www.catalysis.org, but it doesn't seem to clearly lay out the concepts. I'd recommend reading some of the Catalysis book by Desmond D'Souza and Alan Wills: "Objects, Components, and Frameworks With Uml : The Catalysis Approach" http://www.amazon.com/exec/obidos/ASIN/0201310120 It is a large book. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] Q: Specialists, Racks, and ZCatalogs?
> ... > When you're thinking about a system, it is often helpful to think about > just a part of the system rather than the system as a whole. To do this, > you define a limited "scope" around a particular subsystem. > In this case, an Actor represents the role something from outside your > subsystem plays when interacting with something inside your subsystem. > > The "something" can be an object, a person, a separate computer system, > a corporation... > Thanks Steve, You cleared up my confusion. > > How should I look at roles in ZPatterns? > > This is all standard object-oriented stuff, and is not specific to ZPatterns. > Get the Coad book, read it, and things should get clearer :-) It's on my ToReadList :-) > Also, the Catalysis method puts an emphasis on defining interactions and > collaborations between objects in terms of roles. You might want to take > a look at that. Is Catalysis method a pattern in Coads book? Regards, Johan Carlsson ___ 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] The field converters (:int, :text, etc.)
Unselected check boxes aren't in the request, maybe that is what your thinking of? -Randy > -Original Message- > From: Chris McDonough [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 7:18 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [Zope-dev] The field converters (:int, :text, etc.) > > > I don't know, this was about a year ago... maybe I'm misremembering. > > - Original Message - > From: "Brad Clements" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Monday, February 05, 2001 9:37 AM > Subject: Re: [Zope-dev] The field converters (:int, :text, etc.) > > > > On 5 Feb 2001, at 9:38, Chris McDonough wrote: > > > > > > > The last time I had to mess around with it, IE didn't > pass along any > empty > > > form fields at all. Is this still the case? > > > > > > Still? > > > > I've never seen the behaviour you describe. My client uses > IE exclusively. > > > > What version of IE did you test? > > > > > > > > Brad Clements,[EMAIL PROTECTED] (315)268-1000 > > http://www.murkworks.com (315)268-9812 Fax > > netmeeting: ils://ils.murkworks.com AOL-IM: BKClements > > > > ___ > > 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] Re: FTP PUT'ing images doesn't create Image objects? (it does)
Casey Duncan wrote: > > --- Chris Withers <[EMAIL PROTECTED]> wrote: > > > This would be nice for images too. Just today I > > was > > > uploading a bunch via FTP and though the same > > thing, > > > wouldn't it be nice if it knew these were made > > into > > > image objs? > > > > I thought images would be created here? I'd stick > > this one in the > > collector... > > > > cheers, > > > > Chris > > > > I could be wrong about this (it was just about > quittin' time when I uploaded 'em), but I coulda sworn > it make file objects. > > I will double-check tomorrow. > You were right. I musta been asleep or something. My bad. -- | Casey Duncan | Kaivo, Inc. | [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] The field converters (:int, :text, etc.)
I don't know, this was about a year ago... maybe I'm misremembering. - Original Message - From: "Brad Clements" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 9:37 AM Subject: Re: [Zope-dev] The field converters (:int, :text, etc.) > On 5 Feb 2001, at 9:38, Chris McDonough wrote: > > > > The last time I had to mess around with it, IE didn't pass along any empty > > form fields at all. Is this still the case? > > > Still? > > I've never seen the behaviour you describe. My client uses IE exclusively. > > What version of IE did you test? > > > > Brad Clements,[EMAIL PROTECTED] (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com AOL-IM: BKClements > > ___ > 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] The field converters (:int, :text, etc.)
On 5 Feb 2001, at 9:38, Chris McDonough wrote: > The last time I had to mess around with it, IE didn't pass along any empty > form fields at all. Is this still the case? Still? I've never seen the behaviour you describe. My client uses IE exclusively. What version of IE did you test? Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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] The field converters (:int, :text, etc.)
The last time I had to mess around with it, IE didn't pass along any empty form fields at all. Is this still the case? - Original Message - From: "Brad Clements" <[EMAIL PROTECTED]> To: "Morten W. Petersen" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 8:58 AM Subject: Re: [Zope-dev] The field converters (:int, :text, etc.) > On 4 Feb 2001, at 15:59, Morten W. Petersen wrote: > > > IIRC, there was some talk about modularizing the field > > converters (checkers) so that they could be easiliy modified > > and added to. Is there currently any efforts to solving > > this problem? If not, there's definently a need for it, > > IMO.. > > I agree. Each time I get a Zope update I have to edit Converters.py > > What I want is something like :empty_as_none > > So a float, int or date field will be passed as None if the fields are blank, > rather than having the converter raising an exception. > > ignore_empty doesn't work, because then the field isn't passed in the > Record at all. > > I use SQLDict as the backend for all my forms (wow, it's great), so None > really is needed for every field if its blank. If I have ignore_empty, then that > field doesn't get updated in the database, so if someone wants to blank > out a field, they can't do it. > > > > Brad Clements,[EMAIL PROTECTED] (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com AOL-IM: BKClements > > ___ > 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] The field converters (:int, :text, etc.)
On 4 Feb 2001, at 15:59, Morten W. Petersen wrote: > IIRC, there was some talk about modularizing the field > converters (checkers) so that they could be easiliy modified > and added to. Is there currently any efforts to solving > this problem? If not, there's definently a need for it, > IMO.. I agree. Each time I get a Zope update I have to edit Converters.py What I want is something like :empty_as_none So a float, int or date field will be passed as None if the fields are blank, rather than having the converter raising an exception. ignore_empty doesn't work, because then the field isn't passed in the Record at all. I use SQLDict as the backend for all my forms (wow, it's great), so None really is needed for every field if its blank. If I have ignore_empty, then that field doesn't get updated in the database, so if someone wants to blank out a field, they can't do it. Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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:Re: [Zope-dev] Phrase search in ZCatalog
Steve Alexander wrote: >You should use quotes to group the phrase. ['"foo bar"'] Take a look in the source code: >lib/python/SearchIndex/UnTextIndex.py Follow the flow of code through from line 550: def query( ... ) Hi Steve, Thx. But for some reason this doesn't work on my Win2K/Zope2.3. Oren. ___ 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] Q: Specialists, Racks, and ZCatalogs?
Johan Carlsson wrote: >> A Specialist manages objects that play a particular role in your application. >> You will usually have one Specialist for each role in your application; try >> listing all the roles, and what they do, and that's a good start for thinking >> about what specialists you need. > > I'm a bit confused in regard to the roles. > What exactly is a role in this context? > > At first I thought of a rola as "a role of an Actor", but > as you described it it's more like the role of the class > (GoPlayers)? I need to be really really pedantic and picky about terminology here, or else I think we'll get terribly lost! :-) "GoPlayers" is the name of a Specialist. There is a class called "GoPlayer". The class defines what properties/attributes a GoPlayer object may have, and what services it provides to the rest of the application. The class plays the role "definition of object metadata". The class defines one or more roles that GoPlayer objects play. Each instance of the class GoPlayer is an object. We can call such an object "a GoPlayer". However, GoPlayer is an abstract class; it really only defines the essential features that make up the most generic GoPlayer. However, any object that derives part of its behaviour and interface from the class GoPlayer can be treated like a GoPlayer by the rest of the application. So, a ProfessionalGoPlayer is treated like a GoPlayer. An AmateurGoPlayer is treated like a GoPlayer, also. I can imagine a class that derives from BankManager and also from AmateurGoPlayer, called GoPlayingBankManager. An object of that class plays the role of GoPlayer (under certain circumstances), and can be treated as a GoPlayer by the rest of the application. When you're thinking about a system, it is often helpful to think about just a part of the system rather than the system as a whole. To do this, you define a limited "scope" around a particular subsystem. In this case, an Actor represents the role something from outside your subsystem plays when interacting with something inside your subsystem. The "something" can be an object, a person, a separate computer system, a corporation... > How should I look at roles in ZPatterns? This is all standard object-oriented stuff, and is not specific to ZPatterns. Get the Coad book, read it, and things should get clearer :-) Also, the Catalysis method puts an emphasis on defining interactions and collaborations between objects in terms of roles. You might want to take a look at that. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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 server dies with Netscape's FTP
Stephan Richter wrote: > > Hey, I am not _that_ silly ;^). I can exit the shell but I leave Zope > > working > >in the background, of course. Then all works fine until I do an FTP, which > >hangs > >because the server dies. > > Sorry, I did not mean to offend you No ofenses ;^) > I have not used the FTP for a long > time, but I also noticed that I cannot get to any directories deeper than > the root one from Emacs anymore. But that could be caused by my own User > Folder, since it is not updated with the new security implementation. > Mmmhh, you use the regular User Folder right? Yes, the default user folder. I don't access that machine with Emacs, but maybe I can try doing that to see if I get the same behavior. However, it must be a problem of the server and not any FTP client. Cheers! -- Pablo Bleyer Kocik | pbleyer|"Rintrah roars & shakes his fires in the burdend air; @embedded.cl | Hungry clouds swag on the deep" William Blake ___ 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] Can't start Zope (Python 2.0 , BSDI 4.0 , Zope 2.3.0b3) => ImportError: cannot import name DateTime
Hi all, Having this Traceback with Zope 2.3.0 & 2.3.0b3 Can I do something to start the server ? Thanks. Emmanuel. = bash-2.02$ ./start Traceback (most recent call last): File "/usr/local/apache/htdocs/commercial/advl/zope/Zope-2.3.0-src/z2.py", line 565, in ? exec "import "+MODULE in {} File "", line 1, in ? File "/usr/local/apache/htdocs/commercial/advl/zope/Zope-2.3.0-src/lib/python/Zope/__init__.py", line 95, in ? import Globals, OFS.Application, sys File "/usr/local/apache/htdocs/commercial/advl/zope/Zope-2.3.0-src/lib/python/Globals.py", line 90, in ? import Acquisition, ComputedAttribute, App.PersistentExtra, os File "/usr/local/apache/htdocs/commercial/advl/zope/Zope-2.3.0-src/lib/python/App/PersistentExtra.py", line 89, in ? from DateTime import DateTime ImportError: cannot import name DateTime bash-2.02$ ___ 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] I think zope@zope.org is down
Dylan Jay wrote: > > what's more, mesages to it are not bouncing. Yeah, it's still dead :-( Chris ___ 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] Phrase search in ZCatalog
Oren Yosifon wrote: > I read that ZCatalog supports phrasing. > Yet it seems like searching for ['foo bar'] has the results of foo OR > bar. > How do I search for a phrase (in a TextIndex) ? You should use quotes to group the phrase. ['"foo bar"'] Take a look in the source code: lib/python/SearchIndex/UnTextIndex.py Follow the flow of code through from line 550: def query( ... ) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] Q: Specialists, Racks, and ZCatalogs?
> A Specialist manages objects that play a particular role in your application. > You will usually have one Specialist for each role in your application; try > listing all the roles, and what they do, and that's a good start for thinking > about what specialists you need. Hi Steve, I'm a bit confused in regard to the roles. What exactly is a role in this context? At first I thought of a rola as "a role of an Actor", but as you described it it's more like the role of the class (GoPlayers)? How should I look at roles in ZPatterns? Regards, Johan Carlsson > A Rack manages the storage for a particular class of objects. > Therefore, you will have different racks for different classes > of object. You will also have different racks for different > ways of storing the same class of object. > > For example, let's say I have a Specialist "GoPlayers", which manages > objects that represent people who play the board-game Go with other people. > > I have two implementation classes: AmateurGoPlayer and ProfessionalGoPlayer. > Objects of these classes have exactly the same interface to the rest of the >application. > However, the implementation of some of the methods varies. > > So, I'll need two racks in my GoPlayers specialist: one for > AmateurGoPlayers and one for ProfessionalGoPlayers. > > Let's complicate things by saying that I have the records for some > ProfessionalGoPlayers in a relational database, but the rest of the > ProfessionalGoPlayers are stored in the ZODB. All the AmateurGoPlayers > are stored in the ZODB. > > So, I need three Racks altogether: > >AmateurGoPlayers (stored in ZODB) >ProGoPlayers_zodb (stored in ZODB) >ProGoPlayers_rdbms (from legacy rdbms) > > I'm indexing all the players that are stored in the ZODB using a > ZCatalog called Catalog, in the GoPlayers specialist. > > Now, when I want to answer a query such as "return all go players called > 'bill'", I need to do the following: > > * create a PythonScript in GoPlayers called list_players_by_name(name) > * implement this method as follows: >- query the ZCatalog for players who have that name >- query the RDBMS using an SQL query for players who have that name >- return the union of the results of both queries > > In this scenario, I'd put the SkinScript to catalog AmateurGoPlayers in > the AmateurGoPlayers rack, and likewise for the ProGoPlayers_zodb rack. > > I'm not indexing the players from the rdbms in a ZCatalog because, in > this example, other systems external to Zope can independently update > the RDBMS. > If this wasn't the case, and the all changes to data in the RDBMS go > through Zope, then I could put one set of cataloging skinscript as a > data-plugin in the Specialist, and make the list_players_by_name(name) > method just return the results from a ZCatalog search. > > The rest of my application uses the interface provided by the > Specialist, and can remain ignorant of where a particular GoPlayer's > records are stored. > > Note that the specialist provides exactly the methods that the rest of > the application requires; ideally no more, and no fewer. > > Beware when returning results from a ZCatalog query that you are only > returning Catalog Brains -- simple objects that record the meta-data > archived when the original object was cataloged. Where speed of > execution is not an issue, you should return a list of actual GoPlayer > objects rather than a list of CatalogBrains. > An alternative is to return a list of string ids. > Often, a better plan is to determine exactly what information is needed > by the part of your application that requires the > list_players_by_name(name) method call; then provide exactly that > information. > > -- > Steve Alexander > Software Engineer > Cat-Box limited > http://www.cat-box.net > > > > > > > > ___ > 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] Phrase search in ZCatalog
I read that ZCatalog supports phrasing. Yet it seems like searching for ['foo bar'] has the results of foo OR bar. How do I search for a phrase (in a TextIndex) ? Oren. ___ 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 )