Re: [Zope-dev] case insensitive sorts
Shane Hathaway wrote: Python's sort() lets you sort based on not only strings but also tuples, lists, and numbers, which is a very useful feature. Thus sort() is intended to be a highly generalized method. It is useful but not ideal for sorting text strings. What you *really* want is a second method, perhaps in a new module (called "textops" or something similar) that would also include multilingual text splitters and other utilities for working with human-readable text. I agree that's a good idea, but all I'm talking about is the simple case of sorting strings, in which python's current implementation isn't very helpful and I don't see any situation where sorting: Andrew David Wayne bart sophie is better than sorting: Andrew bart David sophie Wayne cheers, 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] 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 ___ 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
Toby Dickenson wrote: (reasons of course would be helpful, particularly if you want it to stay like it is ;-) I noticed the smiley, so Im not sure how serious the suggestion is. It was serious, the smiley was 'cos I couldn't understand why anyone would want it to stay like it is :-) 1. Python doesnt distinguish between 8-bit-strings and byte arrays. (for example, ZODB uses 8-byte-long 'strings' as oids). Do you want a casewise sort for byte arrays too? I don't know. Show me why this is bad :-) 2. 'sort' uses 'cmp'; so effectively you are asking for string's cmp to be case insensitve. Can you demonstrate a case-sensitive collation function that is as simple as your case-insensitive one: def _default_sort(x,y): return cmp(string.lower(x),string.lower(y)) I see your point. I guess cmp is implemented in C? How about a third optional argument? def _case_sensitive_sort(x,y): return cmp(x,y,string.CASE_SENSITIVE) def _default_sort(x,y): return cmp(x,y) 3. ZCatalog stores objects in a pre-sorted order. Changing the sort order of any object (not just strings) would break *all* existing ZCatalog instances that store mixed case strings. (and other applications too - the python language reference documents that this assmption is safe at least until python3k) Sorry, don't qutie follow this... explanation for a simpleton? ;-) cheers, 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] Conflict Errors
Chris Withers writes: However, if anyone does know what constitutes a 'seperate object' in ZODB terms, it be really useful to know. I'm guessing a class which inherits from Persistent? Dictionaries don't, 'cos they're python builtins, which I'm pretty certain was the problem in my case... This has recently been answered in the list. Here a short summary: a persistent object with all its attributes. If the attribute is itself a persistent object, then the "separate" object contains only a reference to it. Otherwise, the complete attribute value (until persistent objects are hit) is part of the object's value. Dieter ___ 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] Acquisition wishlist :-)
Jim Fulton wrote: I'm inclined to think that in some future version of Zope, we should switch to making explicit acquisition the norm. Well, implicit is good when you're starting, but can cause fun with security later. Hmmm, I guess I like the way it is but my wishlist (damn, Christmas just gone ;-) would be: for Acquisiton.Implicit, be able to do something like: class MyClass (Acquisition.Implicit): acquisition = ClassAcquisitionInfo() acquisition.donotacquire('index_html') and, likewise, for Acquisition.Explicit, to be able to to something like: class MyClass (Acquisition.Explicit): acquisition = ClassAcquisitionInfo() acquisition.acquire('index_html') acquisition.acquire('fred') ...of course, you may be able to do this already in some way. What do people think? cheers, 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 )
[Zope-dev] Re: Starting ZServer
Hi guys, This is my first entry to this mailing list and please forgive me if u feel this a stupid problem to begin with.(Today happens to be my first day on ZServer) My Zserver has started at 8080 but the manage.dtml is not accessible from the browser either as localhost or with the host name. Please suggest me an answer the problem ASAP. Thanx. _ Tired of limited space on Yahoo and Hotmail? Free 100 Meg email account available at http://www.dacafe.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 )
Re: [Zope-dev] dynamic permissions in zope
Heinz-Josef Claes writes: dynamic permissions It is not Zope's normal behaviour. Of cause, you could plug in a new UserFolder that implements the features you require (someone else recommended "LoginManager"). On the other hand, Zope is flexible enough to let you approximate the desired behaviour - at the expense of a bit extra work: You create a folder like ZClass for your documents. Each document goes into its own ZInstance. You ensure, that the document is not accessible directly. You give your ZClass a method "index_html". It performs your application specific security checking. If the check succeeds, it renders the document. You may need to set a proxy role for your "index_html" be able to render the document. This approach is only an approximation. It looses the fine grained permission checking during the rendering of your document. Dieter ___ 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
See below (nothing earth shattering tho) ;) - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Shane Hathaway" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 10:58 AM Subject: Re: [Zope-dev] case insensitive sorts Shane Hathaway wrote: Python's sort() lets you sort based on not only strings but also tuples, lists, and numbers, which is a very useful feature. Thus sort() is intended to be a highly generalized method. It is useful but not ideal for sorting text strings. What you *really* want is a second method, perhaps in a new module (called "textops" or something similar) that would also include multilingual text splitters and other utilities for working with human-readable text. I agree that's a good idea, but all I'm talking about is the simple case of sorting strings, in which python's current implementation isn't very helpful and I don't see any situation where sorting: Andrew David Wayne bart sophie is better than sorting: Andrew bart David sophie Wayne That's only because you use NT (ach spit). ;) cheers, 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 ) ___ 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] Re: Starting ZServer
http://127.0.0.1:8080/ if that works then check out your /etc/hosts file or equiv On Thu, 04 Jan 2001, [EMAIL PROTECTED] wrote: Hi guys, This is my first entry to this mailing list and please forgive me if u feel this a stupid problem to begin with.(Today happens to be my first day on ZServer) My Zserver has started at 8080 but the manage.dtml is not accessible from the browser either as localhost or with the host name. Please suggest me an answer the problem ASAP. Thanx. _ Tired of limited space on Yahoo and Hotmail? Free 100 Meg email account available at http://www.dacafe.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 )
Re: [Zope-dev] [ZPatterns] DataSkin and Zope Security
"Phillip J. Eby" wrote: DataSkins stored in Racks do not participate in the Zope ownership mechanism, nor the creation of the 'Owner' role. This is because they are not being stored via the normal ObjectManager protocols. Hurm... to what extent do they participate in Zope's Security Mechanisms? cheers, 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 )
[Zope-dev] AppTabs
Ty Sarna wrote: AppTabs[4] [4] Unreleased product, still in some flux. It mainly provides fancier, more flexible version of Zope's management tabs, suitable for use in an application (that is, suitable for exposing to users, not just developers). It also has some local roles hooks as mentioned. Ooo sounds very cool... any chance of a release? I had a proposal on dev.zope.org for something similar (Multi-Row Manage Tabs, I think, but it was a while back :-S) cheers, 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] RE: objectIds accessiblilty and a proposal
Steve Alexander wrote: On a related issue, what about other dtml snippets that people generally don't want as web accessible, such as standard_html_header ? On my pie-in-the-sky zope wishlist: snip wishlist I did have a proposal for just this on dev.zope.org, but I see someone has deleted it :-( cheers, 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] RE: objectIds accessiblilty and a proposal
Dieter Maurer wrote: There are objects, that should be usable by Anonymous inside DTML but should not be viewable over the web (as they will only confuse). All page components (such as "standard_html_header/footer") fall into this category. Totally agree... this has bugged em right since I started usign Zope! :-S cheers, 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] 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
Andy Dawkins wrote: 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 My point is that the sorting is intentionally Unix-like and case sensitive on purpose. Not due to laziness. But, perhaps the reason Unix is like that to begin with is due to laziness anyhow 8^). We'll never know for sure. -- | 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] case insensitive sorts
Andy McKay wrote: They want information fast and most users expect case insensitive sorts. Its simpler and easy. I think having the ignore_case option for a -tree and -in helps Zope by increasing the ease of development and friendliness to the user. And my point was that this is so universally true that the _pthyon_ sort function (which is at fault here) should be fixed :-) cheers, 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] Allowed characters in Zope ids
I recently read RFC 2396 which defines the generic URI syntax and especially the URL syntax. I recognized, that * Zope forbids many characters in ids (with the error message "not allowed in URLs"), that are legal characters in URL path segments: generally allowed in URL's: -_.!~*'() Zope accepted:_. ~ - as well (see regex below) , is allowed in the id, sorry not sure what the term path segment means.. allowed in path segments: :@=+$, Zope accepted: , This, probably, is not a big problem. But, it would be easy to fix. Except for the fact that Zope also checks that the first character is not a _. Thats a big security headache. To be honest Im not so worried about Zope being more restrictive. * Zope allows space characters in (ObjectManager) id's. The space is not a valid URL character. Zope forbids spaces in property ids. This one is much more important in my mind. Its a real pain. Is there a good reason for this. It should be easy to fix, actually looking at the regex in Object Manager, shouldn't that just be a case of taking the space out of the end of the regex? ObjectManager.py line 112: bad_id=ts_regex.compile('[^a-zA-Z0-9-_~\,\.]').search] On a more anal note could we also patch ObjectManager to tell the user what characters aren't allowed eg: line 224: 'The id "%s" contains characters illegal in URLs.' % id should be line 224: 'The id "%s" contains characters illegal in URLs. Only characters, digits and the characters ~-_,. are allowed.' % id ___ 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
Hmm im actually not so sure on that. Currently you can do a sort either way, if you fix it so its only case sensitive we'll end up like Visual Basic :) Fixing python is a question for the python list and I'd be scared to ask it there... -- Andy McKay, Developer. ActiveState. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: "Casey Duncan" [EMAIL PROTECTED]; "Andy Dawkins" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 8:46 AM Subject: Re: [Zope-dev] case insensitive sorts Andy McKay wrote: They want information fast and most users expect case insensitive sorts. Its simpler and easy. I think having the ignore_case option for a -tree and -in helps Zope by increasing the ease of development and friendliness to the user. And my point was that this is so universally true that the _pthyon_ sort function (which is at fault here) should be fixed :-) cheers, 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 )
[Zope-dev] Objects with multiple parents and storage flexibility, ZPatterns?
Hi, Once again I'm back at trying to solve this problem, hopefully with a little more knowledge this time ;-) What I'd like: 'Zope' objects of type 'X', which can have multiple parents and can contain other objects of type 'X', where storage isn't necessarily tied to the ZODB but where the objects have a normal properties page (in terms of use, again, it'd be nice if it could be stored anywhere) and participate in all the normal Zope security and management interface processes, and they need to be catalogable. This sounds like ZPatterns to me, am I right? If so, it appears there are two choices: 1. Folder w/Customiser Support (FwCS ;-) and DataSkins 2. Specialist with one or more Racks and DataSkins Which one of these would be most appropriate? FwCS containg DataSkins that also mix in the Folder class sound like they'd give a closer approximation to 'real Zope objects', but Racks sound like the only way that objects of the same metatype can come from different sources (eg, some objects of type 'X' from ZODB, some from SQL, some from LDAP ,etc) and seem to be more flexible in general, but can I have DataSkins that nest stored in a specialists' rack, eg: http://server:8080/specialist/dataskin1/dataskin2 How about doing something like: http://server:8080/specialist/dataskin1/dataskin2/manage ? Any help is good help, sorry this is a bit rambling, if you need mroe info, I'll be happy to supply it :-S cheers, 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] case insensitive sorts
Andy McKay wrote: Hmm im actually not so sure on that. Currently you can do a sort either way, if you fix it so its only case sensitive we'll end up like Visual Basic :) Actually, I'd like to see it 'fixed' so it's only case insensitive: Alan betty Carl Wilbur Fixing python is a question for the python list and I'd be scared to ask it there... I'm sure I copied one of these messages to the python list for that very reason but it didn't get any response. Ah well, I'll copy this one there as well and see what happens ;-) cheers, 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] Objects with multiple parents and storage flexibility, ZPatterns?
Hi Chris, Random thoughts follow. ;-) I think that if you make your DataSkins folderish it will be hard to make the storage anything other than ZODB. However, Steve Alexander posted a neat trick the other day where __bobo_traverse__ is supplied by an attribute provider. You could use this to make your DataSkins traversable. Let's say your objects have an attribute that defines them in the context of their parent (e.g., dataskin2 in your example URL), let's call it 'context_id'. You may have six objects with the same context_id, but they would all have different parents. Now.. you could implement a search interface that finds an object in context. GetObjectInContextOfParent( context_id, parent_id ) Each object must also (of course) have a parent_id, unless it's a root level object. In SQL this might be: select * from objectXs where parent_id = 'dataskin1_id' and context_id = 'dataskin2' or it could be a catlog search, if you're in ZODB. Now for the traversal interface: def __bobo_traverse__(self, REQUEST, name): ob = getattr(self, name, _marker) if ob is _marker: ob = self.GetObjectInContextOfParent( context_id = name, parent_id = self.id) if ob is not None: return ob raise 'NotFound' return ob Totally untested of course. ;-) Anyway the idea would be to *not* use folderish DataSkins, but to build a hierarchy out of them that could be traversed. -steve ___ 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: Objects with multiple parents and storage flexibility, ZPatterns?
Chris Withers wrote: Hi, Once again I'm back at trying to solve this problem, hopefully with a little more knowledge this time ;-) What I'd like: 'Zope' objects of type 'X', which can have multiple parents and can contain other objects of type 'X', where storage isn't necessarily tied to the ZODB but where the objects have a normal properties page (in terms of use, again, it'd be nice if it could be stored anywhere) and participate in all the normal Zope security and management interface processes, and they need to be catalogable. This sounds like ZPatterns to me, am I right? If so, it appears there are two choices: 1. Folder w/Customiser Support (FwCS ;-) and DataSkins 2. Specialist with one or more Racks and DataSkins Which one of these would be most appropriate? If you use a Folder w/ Customizer Support, you'll need to create all the DataSkin instances in the ZODB, just as if they were normal ZClass (or whatever) instances. Thus, the instances all need to be "in there" to start with. You can't add data to your external database, and expect a new Dataskin instance to pop up in the ZODB. This is what is meant by "When using Folder with Customizer Support, DataSkins are anchored in the ZODB". FwCS containg DataSkins that also mix in the Folder class sound like they'd give a closer approximation to 'real Zope objects', but Racks sound like the only way that objects of the same metatype can come from different sources (eg, some objects of type 'X' from ZODB, some from SQL, some from LDAP ,etc) and seem to be more flexible in general, but can I have DataSkins that nest stored in a specialists' rack, eg: You can get the data for your dataskins from a variety of sources, whether you choose to use Specialists or Folder w/ Customizer Support. However, if you use Specialists, you can have the DataSkin instances appear only when requested. Thus, you can add records to your external database, and thereby have new Dataskins available from your application. http://server:8080/specialist/dataskin1/dataskin2 How about doing something like: http://server:8080/specialist/dataskin1/dataskin2/manage You can do this by providing the __bobo_traverse__ protocol, using SkinScript in your Specialist to give objects of the type of dataskin1 an appropriate __bobo_traverse__ method. I briefly described this on zope-dev a couple of days ago. -- 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] Objects with multiple parents and storage flexibility, ZPatterns?
At 05:15 PM 1/3/01 +, Chris Withers wrote: What I'd like: 'Zope' objects of type 'X', which can have multiple parents and can contain other objects of type 'X', where storage isn't necessarily tied to the ZODB but where the objects have a normal properties page (in terms of use, again, it'd be nice if it could be stored anywhere) and participate in all the normal Zope security and management interface processes, and they need to be catalogable. This sounds like ZPatterns to me, am I right? If so, it appears there are two choices: 1. Folder w/Customiser Support (FwCS ;-) and DataSkins 2. Specialist with one or more Racks and DataSkins Which one of these would be most appropriate? FwCS containg DataSkins that also mix in the Folder class sound like they'd give a closer approximation to 'real Zope objects', but Racks sound like the only way that objects of the same metatype can come from different sources (eg, some objects of type 'X' from ZODB, some from SQL, some from LDAP ,etc) and seem to be more flexible in general, but can I have DataSkins that nest stored in a specialists' rack, eg: http://server:8080/specialist/dataskin1/dataskin2 How about doing something like: http://server:8080/specialist/dataskin1/dataskin2/manage You can't really "nest" DataSkins inside each other in a rack, and you really don't want to, anyway. But there's nothing that says you can't create a DataSkin subclass whose __bobo_traverse__ looks up related objects. You just can't "really" store the DataSkins inside each other. Note that if your __bobo_traverse__ uses a specialist "getXforY()" call, you can "store" objects from different databases (racks) "inside" each other. :) ___ 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] OracleStorage, and possibly others
Chris Withers wrote: Jim Fulton wrote: - Policies to control whether multiple revisions are stored or whether revisions are removed by packing on a object-by-object or transaction-by-transaction basis. You could keep significant historical revisions for important objects, such as Wiki pages, templates, scripts, etc., with a policy to decide which revisions are significant. - The ability to set policies to implement quotas. We are also working on ZEO storage replication. This may have a big impact on the storage API, or lead to specialized APIs for replicated storages. very cool :-) Any idea when these will be around to play with? Uh, no. We are actually using a very limited version in production, but the full-featured version is waiting for someone with bandwidth to finish it. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! Technical Director (888) 344-4332http://www.python.org Digital Creationshttp://www.digicool.com http://www.zope.org ___ 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] Import with INSTANCE_HOME?
From: BS [EMAIL PROTECTED] Can anyone tell me how to do a "from Products.ZPatterns import anything" when using INSTANCE_HOME? Do I have to add the INSTANCE_HOME path to sys.path? As long as Python has already imported Zope (i.e. you're in another Product) you don't need to do anything special. All Product directories' contents can be imported with "import Products.whatever". Cheers, Evan @ digicool 4-am ___ 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] Frozen Zope?
Has anyone tried to use the "Freeze" utility on Zope? How about Gordon McMillian's"Install" application to make a self-contained Python-Zope executable for Win32? My goal is to create a very easy install of Zope that consists of one or two files. For some of my clients this seems less intimidating on their machines (they would rather not see the "source code", just an executable). Do you think this is possible? Thanks
Re: [Zope-dev] ZPatterns question
Hi! Actually should answer to these posts... ;-) On Thu, Dec 28, 2000 at 03:11:37PM -0500, Steve Spicklemire wrote: Hi Christian, Well, nobody else answered that I saw... so I'll take a crack at your questions "CS" == Christian Scholz [EMAIL PROTECTED] writes: CS Hi there! CS Finally I managed to get a basic understanding of how to do CS things with ZPatterns ;-) So seems quite cool :) (and CS hopefully I find some time to write some basic howto about it) CS But I have some little questions: CS 1. Is it possible to retrieve the set of known IDs from a CS specialist? Or would I need to add my own method to it which CS does this (and change it accordingly if I switch to another CS storage method)? If you store persistently you can use the Rack's method: "defaultRack.getPersistentItemIDs()" Thanks, also found this out in the meanwhile. but a couple of notes: 1) this returns a BTree object, not a simple list, so you can't iterate through it in DTML. You'll need to copy it to a simple list for that.. and 2) If you change to a different storage you'll need to create your own method (ZSQL Method?). What I've found is that if you have a large number of objects you'll either want to query a Catalog, or an SQL database to get Ids that match some criteria that limit the number of hits to something that makes sense to display in a browser. I am now using some method I create inside the specialist for it. CS 2. Is it planned to provide something like a virtual folder CS which acts like a normal object manager but is controlled via CS ZPatterns (so actually something like Folder with Customizer CS Support just without the "anchor" in ZODB. (would also CS require some mechanism asked for in 1.) Hmmm... I'm not sure what you're after here. Why not just use a Specialist? In what sense do you want it to be virtual? Well, virtual in the sense as a specialist is no real folder but can provide content from different sources. Thus what I mean is some mechanism which emulates objectIds() etc. so it looks to the user (and the ones using it via dtml) like a normal folder object. Somehow like the Customizer but without the need for actually creating Zope objects. Something inbetween Specialist and Customizer this would be I guess. (Are you looking for a dynamic traversal interface that would allow you to map URLs to objects that are managed by ZPatterns? Can you give an example?) yes, something like this comes close I guess. e.g. I have some sql database consisting of people's addresses and I want to create some specialist which queries this database (or how ever this specialist is configured right now in order to get the object ids) and shows it as if it's a normal folder. (seems to me more transparent at some point). But I assume it's not suited for all applications e.g. if the number of objects gets a little bigger. And I guess I can create this myself if I subclass from Specialist and add the rest of the ObjectManager's interface to it. CS 3. Is it possible to use ZPatterns also without some exta CS ZClass defined in a Product? At least if I don't need methods CS for my objects but simple want to define the attribute they CS know. Would be nice as I could then hold everything together CS in one place (the specialist that is) without requiring to CS install something also in the Products folder of the Control CS Panel. I believe you need to either create a Python subclass, or a ZClass subclass of DataSkin. "Raw" DataSkins don't have the right permissions to allow for TTW access. If you're creating a 'product' anyway... just make a 'dummy' class that you can use for storage. ok, but I still need to define the attributes I want to handle inside a propertysheet of this ZClass, right? Actually what I would like is something which directly resides inside the Specialist and not somewhere outside in some Product folder. So everything is close together in one place. CS That's it for now, I will keep experimenting then.. :) Good Luck! Oh, it's working better than I thought :) but thanks, christian ___ 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] ZPatterns question
Hi Steve! On Thu, Dec 28, 2000 at 10:45:46PM +, Steve Alexander wrote: Steve Spicklemire wrote: CS 2. Is it planned to provide something like a virtual folder CS which acts like a normal object manager but is controlled via CS ZPatterns (so actually something like Folder with Customizer CS Support just without the "anchor" in ZODB. (would also CS require some mechanism asked for in 1.) Hmmm... I'm not sure what you're after here. Why not just use a Specialist? In what sense do you want it to be virtual? (Are you looking for a dynamic traversal interface that would allow you to map URLs to objects that are managed by ZPatterns? Can you give an example?) Reading this just after reading the source to Specialists.py, I had a thought; and tried it out; and it works! :-) You can use SkinScript to define __bobo_traverse__ for a particular kind of DataSkin in a Specialist. For example: WITH SELF COMPUTE __bobo_traverse__=traversal_method that's very cool :) I just created some base class for this from which my ZClasses are derived but nice to know that it's also possible without this base class. (though for this application it's easier with this base class as it's easier to configure then) cheers, Christian ___ 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: Starting ZServer
[EMAIL PROTECTED] writes: My Zserver has started at 8080 but the manage.dtml is not accessible from the browser either as localhost or with the host name. Please suggest me an answer the problem ASAP. You are using: http://localhost:8080/manage do you? You must not use "manage.dtml"! Dieter ___ 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
Chris Withers writes: Andrew bart David sophie Wayne Why in hell do you switch caseness for similar objects? If you apply some naming conventions, such as "objects start with a Capital letter, verb with a lowercase letter", you may find Python's sorting order usefull. Dieter ___ 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] CatalogAware
Chris Withers wrote: Michael Bernstein wrote: If you are writing your own cataloging and uncataloging code, then I think that it could be. G The cataloguing code in Squishdot amounts to about 4 lines, all of which are calls to standard ZCatalog interface methods as described in: http://www.zope.org/Members/michel/Projects/Interfaces/ZCatalog If you don't believe me, grep squishdot.py for catalog_object and uncatalog_object... Ok, I believe you! Don't get mad just beacause I was asking a question. I guess I didn't understand. In fact, if catalog_object and uncatalog_object are interchangeable with index_object and unindex_object, then I'm sure I don't understand the point of inheriting from CatalogAware at all. Is it reindex_object, which doesn't seem to have an equivalent? I was asking why Posting objects shouldn't inherit from CatalogAware? That wouldn't actually change the number of catalog-related lines of code in Squishdot. It was merely increase the compelxity of the product by adding CatalogAware as another base class for postings. All right. Scratching-my-head-over-this-whole-CatalogAware-thing-ly yrs, Michael Bernstein. ___ 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] Frozen Zope?
On Wed, 3 Jan 2001 15:09:02 -0500, "BS" [EMAIL PROTECTED] wrote: My goal is to create a very easy install of Zope that consists of one or two files. For some of my clients this seems less intimidating on their machines (they would rather not see the "source code", just an executable). On win32 there are several other options, depending on your users. You could hide the source directory, or use Explorer's Web View to give it a less intimidating appearance. I hope this helps, Toby Dickenson [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] Local Factories in Products
Michael Bernstein wrote: Ah! That would be a very simple and elegant way of eliminating 'add-dropdown-box pollution', among other advantages. An excellent proposal, indeed. So, how to go about getting it implemented? cheers, 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] PartitionedFileStorage vs BerkleyStorage
Shane Hathaway wrote: But like I told ChrisW, I think BerkeleyStorage will fill the need that PartitionedFileStorage was only partitially addressing. Is BerkleyStorage going to be as easy to set up and use? I seem to remember Jim F making some comments to the contrary a while back... What about on WinNT? ;-) cheers, 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] Conflict Errors
On Tue, 02 Jan 2001 16:50:49 +, Chris Withers [EMAIL PROTECTED] wrote: However, if anyone does know what constitutes a 'seperate object' in ZODB terms, it be really useful to know. I'm guessing a class which inherits from Persistent? Dictionaries don't, 'cos they're python builtins, which I'm pretty certain was the problem in my case... That is exactly correct. Toby Dickenson [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] CatalogAware
Chris Withers wrote: Michael Bernstein wrote: I guess it's just a matter of only reinventing the wheels you have to, and writing less code as a result. I'm pretty sure Squishdot is re-inventing no wheels ;-) If you are writing your own cataloging and uncataloging code, then I think that it could be. http://www.zope.org/Members/tseaver/inherit_ZCatalog http://www.zope.org/Members/AlexR/CatalogAware These are both pretty old and seem to be aimed at ZClasses. Squishdot has nothing to do with ZClasses. I realize that Squishdot is a Python product, of course. As far as the information being old, it's tested. I just used it to build a new application this week. No bugs. CatalogAwareness is of no use for a product like Squishdot. Squishdot already inherits from ZCatalog. I realize that Squishdot already inherits from ZCatalog, I was asking why Posting objects shouldn't inherit from CatalogAware? I don't think that only ZClasses can inherit from CatalogAware, that doesn't seem quite right. Again, it's certainly possible that I'm overlooking something. Cheers, Michael Bernstein. ___ 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] Zope Projects in NL/Europe?
(Writing from the Netherlands) Just wondering: are there any Zope projects are available in the Netherlands/Benelux/Europe? We did one last year but they seem hard to find. Are there commercial projects available or is Zope mostly used on internal projects? Is there any demand for Zope expertise around here? From the (spontaneous) requests I have had over the last year about Zope expertise, I can assure you that there is plenty of demand for Zope expertise. The problem is mainly that it is harder to find (commercial) expertise than to have projects available. Zope not (yet) being such a widespread Web developing alternative, needs are less visible. We are using Zope in our institution and there is too much work for me to handle, but I have had a hard time finding developers who can help me out. I'm sure this applies to more institutions and companies in the Netherlands (and Belgium for that matter). And, btw, not to be nitpicking, but how would people know you have Zope expertise? Is it in your company profile, are you on the Zope service provider page, have you offered your services somewhere visible. The second point is of course that you could also prove Zope to be a viable alternative over other web developing tasks, by just doing projects in Zope. Or are all you customers asking for applications in specific technologies rather than solutions with the highest quality/for the best price/in the shortest time possible? Reason I'm asking is that I'd love to continue working with Zope, but it's hard to justify in a company focused on Microsoft and Oracle, especially if there is no money to be made. I can learn Perl on company time and Linux is our internet server OS of choice, but JSP/Java and .NET (the latter is not that bad, uses SOAP/XML-RPC) is next if we don't find a use for our Zope expertise. I'd say: just do it and make yourself heard. You might be surprised. Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] case insensitive search?
On Wed, 3 Jan 2001, Robin Becker wrote: Is there an easy way to make the Find tab case insensitive. It seems like a very common need, but I see that FindSupport.py is calling string.find which makes it seem as though this is harder than it should be. You can try my very quick patch, attached below. But beware - it gives much more that you want - it is full regexp search. --- FindSupport.py Wed Jul 26 16:11:54 2000 +++ FindSupport_caseIns.py Wed Jan 3 09:33:34 2001 @@ -92,7 +92,7 @@ from Globals import HTMLFile from DocumentTemplate.DT_Util import InstanceDict, TemplateDict from DateTime import DateTime -from string import find +from re import search, IGNORECASE from AccessControl import getSecurityManager class FindSupport(ExtensionClass.Base): @@ -177,7 +177,8 @@ and (not obj_searchterm or (hasattr(ob, 'PrincipiaSearchSource') and - find(ob.PrincipiaSearchSource(), obj_searchterm) = 0 + search(obj_searchterm, ob.PrincipiaSearchSource(), + IGNORECASE) != None )) and (not obj_expr or expr_match(ob, obj_expr)) @@ -269,7 +270,8 @@ and (not obj_searchterm or (hasattr(ob, 'PrincipiaSearchSource') and - find(ob.PrincipiaSearchSource(), obj_searchterm) = 0 + search(obj_searchterm, ob.PrincipiaSearchSource(), + IGNORECASE) != None )) and (not obj_expr or expr_match(ob, obj_expr)) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope Projects in NL/Europe?
Hi Jonathan ! Jonathan wrote: Hi all, Just wondering: are there any Zope projects are available in the Netherlands/Benelux/Europe? We did one last year but they seem hard to find. Are there commercial projects available or is Zope mostly used on internal projects? Is there any demand for Zope expertise around here? Find out yourself at the EuroZopeCon on the LinuxExpo in Amsterdam January 23-24 2001 ;-) http://zdp.zope.org/projects/eurozope/events/linuxexpo2001 BTW: EuroZope is an initiative to better support Zope in Europe. The main topic right now is Internationalization and planning the next Zope events. http://www.eurozope.org The purpose of EuroZope is to develop a central European Zope community that is not only a meeting and information point for European Zope developers, but also a useful contact source for press, exhibition staff, editors, magazines and other entities from Europe interested in Zope. The EuroZope members goal is to publicize Zope throughout Europe by organizing press releases, writing articles and organizing events. Best regards, Maik Röder ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Core Session Tracking DTML
Chris McDonough wrote: dtml-with sessionmanager dtml-with getSessionData dtml-var "get('a')" /dtml-with /dtml-with I would have thought this stuff would be better in a python script: sessionmanager.getSessionData.get('a') ...since it is definitely 'logic' Would it be posible to make that even nicer and have whatever getSessionData is implement __getattr__ so you could do: sessionmanager.SessionData.a ...or something similar? just my 2p, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] UNEXPECTED: Acquisition.Explicit may acquire implicitly
Pierre-Julien Grizel writes: Dieter Maurer wrote: This implies, that the idiom dtml-if "_.hasattr(o.aq_explicit,)" cannot be used safely to test, whether "o" has attribute itself (rather than acquired it). We probably should have a standard function for this kind of test. Mhhh Something like "dtml-if "_.hasattr(o.aq_base,)"" ? "aq_base" is not considered safe and unavailable in DTML. But you are right, that would be the implementation of the function, I call for. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] standard_error_message woes!
Chris Withers writes: John Chandler wrote: As already mentioned, not all errors (unfortunately) get handled by standard_error_message - authorisation being the main culprit. In addition, if an error occurs in a standard_error_message it'll also cause the plain, default error page to be displayed. Hurm... I would have thought/it would be nice if an error occurs in standard_error_message then, the next standard_error_message up the acquisition path would get used, resorting to the hard coded one only if there isn't anything else... I do not agree with you here. You should be able to make "standard_error_message"s that do not generate secondary errors. If you fail, a crude minimal error handling should be okay as a last resort. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Lobbying (was: [Zope] html_quote in python methods?)
Jim Washington writes: Can I keep this from happening? html_quote does not seem to be in the Python Method namespace. Please help lobbying that the functionality of all "dtml-var" attributes are exposed as standard functions. The functions are there already, just not exposed to DTML and PythonScripts. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope eating CPU/RAM - how do I find the culprit?
Cees de Groot writes: Jon Prettyman [EMAIL PROTECTED] said: If you are using ZSQLMethods and your database returns column names in one case (UPPER) but you reference them with another (lower) it appears that instances of SQLAlias get leaked. Thanks for the info (and another reason to keep SQL names in lowercase ;-)). Be careful! Some databases convert them to uppercase! Oracle is a prominent example! It took me once some ours to locate a bug resulting from this "feature". Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-in: total??
Edwin Martin writes: I'm making a generic DTML-method which shows a bar like AltaVista does: [ previous] [1] [2] [3] [4] [next ] I need to know the number of rows the database returned. In appendix A of the Zope book, I see I can use total-name etc. How can I get the total number of rows, independent of column names? Can I do it without rewriting the SQL-queries? You can. It is even prepared for you: "dtml-in" defines variables "previous-batches" and "next-batches" describing all previous and following batches. It you do not like this prepared solution, you can use "sequence-length", another "dtml-in" defined variable, to access the length of the sequence. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Bad Zope hack (was: [Zope] A subclass from PortalMember ofMembership Product and ObjectManager won't list contained objects) Membership Product and ObjectManager won't list contained objects)
Dirksen writes: My site is installed with the Membership system. I want to store some photos in each member. So I create a new member ZClass, subclassing PortalMember and ObjectManager, and set the 'manage_main' as the main view. Under the instance of this new member ZClass, I can add images, but I can't find them! 'objectItems' always return None. Yet the image file is there. I can edit their properties as in '/test/acl_users/jay/photo1/manage_main', but '/test/acl_users/jay/manage_main' just won't show a thing! I fear this is an acquisition weakness or a bug in how it is used: I some cases, one does not want that a name is acquired. It would be nice, if there were some declaration telling the acquisition machinery about this fact. I do not know, whether there is such a mechanism. If it is, then some Zope developpers did not know about it. To prevent acquisition, many Zope objects provide new definitions for the unwanted attributes. For example, "SimpleItem.Item" defines "objectValues" (and friends) to prevent them from being acquired from the containing folder. This hack does not play well with inheritance, however! If in your case, "PortalMember" provides empty "object*" methods, the correct "ObjectManager" methods will not be found. You may try to switch the inheritance order. However, I fear, the problem is already in "ZObject", the order of which can not be changed. Hope, that in some future time, this hack disappears. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] (no subject)
GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY! STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN GET ONE FOR ONLY $11.95 PER MONTH! DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A SIMPLE PHONE CALL TO OUR OFFICE. YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with no extra charge! UNLIMITED TRAFFIC -- no extra charge! FRONT PAGE EXTENSIONS are FULLY SUPPORTED. A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS. ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP CHARGE. FOR DETAILS CALL 1 888 248 0765 if you are outside the USA, please fax 240 337 8325 Webhosting International ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] objectValues Question
Hi, I'm new to Zope and while 'playing' around I wondered about the following: I've created a DTML method (called MyListFiles) that lists the 'File' objects contained in a folder: ul dtml-in "objectValues('File')" lia href="dtml-var absolute_url"dtml-var id/a/li /dtml-in /ul This works as expected when I run it using the 'View' tab. Now when I create a DTML document and call this method like this: dtml-var MyListFiles it produces no output. Why? Thank You for any help - Un courrier électronique n'engage pas son émetteur. Tout message susceptible de comporter un engagement doit être confirmé par un écrit dûment signé. An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. Ein elektronischer Brief bzw. eine elektronische Nachricht ist für den Absender nicht verbindlich. Jede Nachricht, welche eine Verpflichtung beinhaltet, muß schriftlich bestätigt und ordnungsgemäß unterzeichnet werden. - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] standard_error_message woes!
Dieter Maurer wrote: You should be able to make "standard_error_message"s that do not generate secondary errors. If you fail, a crude minimal error handling should be okay as a last resort. Hmmm... maybe there should be an option on this then? ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)
Dieter Maurer wrote: Jim Washington writes: Can I keep this from happening? html_quote does not seem to be in the Python Method namespace. Please help lobbying that the functionality of all "dtml-var" attributes are exposed as standard functions. The functions are there already, just not exposed to DTML and PythonScripts. I'll second this. It'd be _so_ nice... ever wanted to do: dtml-call "somemethod(absolute_url()+urlquote(_.getitem(id))" :-) Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Non-ASCII-form-input - HTML-entities?
On Wed, 3 Jan 2001 10:33:20 +0100, "Markus Kemmerling" [EMAIL PROTECTED] wrote: I would like to have users being able to enter german vowels Your suggested solution is a good one if you know all your users are german, all using the same browser, all with the correct german configuraton. If not, I strongly recommend using pages encoded in utf-8, and storing your field values as unicode. Everything will then work happily for non-germans too. Standard Zope can't do this yet, you will need the patches at http://www.zope.org/Members/htrd/wstring Toby Dickenson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Industry customer lists
This email is to request information on your company for our on line directory and introduce you to our company Repharm. Best Regards, Dianne Edwards Tel: 905-721-8456 Fax: 905-721-1471 email: [EMAIL PROTECTED] Repharm has the following installed customer databases and services available to increase your sales. ERP: BAAN JD Edwards Lawson Marcam Oracle Applications Peoplesoft QAD (Worldwide) SAP SSA Symix CRM: Clarify Pivotal Siebel SUPPLY CHAIN: I2 Manugistics Synquest HARDWARE: AS400 OS390 HP SUN DESKTOP APPLICATIONS: Corel Lotus Notes Microsoft COMMUNICATIONS: ASPs CLECS ISPs E-COMMERCE: .com Directory Software Directory Consultant Directory CFO List CIO List INDUSTRY SPECIFIC LISTS: Agriculture, Forestry and Fishing Communications Construction Finance, Insurance and Real Estate Manufacturing Mining Public Administration Retail Trade Services Transportation Utilities Wholesale Trade FRONT OFFICE SERVICES: We offer the following Front Office Services: Fax Campaigns Telemarketing Direct Mail Customer Satisfaction Surveys
Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)
[Chris Withers] | I'll second this. It'd be _so_ nice... | | ever wanted to do: | | dtml-call "somemethod(absolute_url()+urlquote(_.getitem(id))" I totally agree. -Morten ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)
Erik Enge wrote: [Chris Withers] | dtml-call "somemethod(absolute_url()+urlquote(_.getitem(id))" What about security issues? Wouldn't this also allow those methods to be called TTW by any user? No. Even if it did, what harm would it do? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)
[Chris Withers] | dtml-call "somemethod(absolute_url()+urlquote(_.getitem(id))" What about security issues? Wouldn't this also allow those methods to be called TTW by any user? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] objectValues Question
By applying your MyListFiles method within the context of your DTML Document you are asking for files that are contained by your DTML Document and there are none. By 'viewing' your method in the management interface you are applying your method within the context of the folder that contains it, and that folder apparently contains file's. If you want to use your method within a DTML Document with the very same result you could use for instance: dtml-in "PARENTS[0].objectValues('File')" See also: http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo Cornelis J. de Brabander == Department of Education, Leiden University P.O.Box 9555, NL-2300 RB Leiden +31 71 527 3422/3401 [EMAIL PROTECTED] == -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Koch Marc Sent: woensdag 3 januari 2001 12:16 To: '[EMAIL PROTECTED]' Subject: [Zope] objectValues Question Hi, I'm new to Zope and while 'playing' around I wondered about the following: I've created a DTML method (called MyListFiles) that lists the 'File' objects contained in a folder: ul dtml-in "objectValues('File')" lia href="dtml-var absolute_url"dtml-var id/a/li /dtml-in /ul This works as expected when I run it using the 'View' tab. Now when I create a DTML document and call this method like this: dtml-var MyListFiles it produces no output. Why? Thank You for any help - Un courrier électronique n'engage pas son émetteur. Tout message susceptible de comporter un engagement doit être confirmé par un écrit dûment signé. An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. Ein elektronischer Brief bzw. eine elektronische Nachricht ist für den Absender nicht verbindlich. Jede Nachricht, welche eine Verpflichtung beinhaltet, muß schriftlich bestätigt und ordnungsgemäß unterzeichnet werden. - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] objectValues Question
I'm new to Zope and while 'playing' around I wondered about the following: I've created a DTML method (called MyListFiles) that lists the 'File' objects contained in a folder: snip Now when I create a DTML document and call this method like this: dtml-var MyListFiles it produces no output. Because DTML Documents are object of their own and DTML Methods are not. THis means that if you are trying to get the 'objectValues' from the DTML Method it will get them from the containing object, a Folder. If you try to get them from a DTML Document, it will not return anything, as the DTML Document holds no other objects. The solutions is to make the DTML Method call its parent's (=containing object) objectValues. For example (untested): dtml-with expr="PARENT[0]" dtml-var MyListFiles /dtml-with Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)
[Chris Withers] | Even if it did, what harm would it do? Denial of Service attacks was what I though of. But it's a non-issue I guess. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] First Project
Thank you, ...for your tip with the PARENTS[0].objectValues('File') Please let me ask your advice on how to realize the following: I would like to build an application for handling development requests. These requests should be submitted by our end-users through our Intranet to my team. We then look at each new request and dispatch it to one or more development team for approval (or rejection). At this stage: - The end-user should be able to see that his request has been dispatched - The concerned development team(s) should see that there is a new request, they could look at it and accept it or reject it and give a comment When all the teams have replied, my team would add a summarized comment to the request and the end-user should be able to see this. At this point, the request handling for my team is at its end. Requests should be submitted by a Web-Form and may contain an arbitrary file (eg. Word Document). The end-user and the development team should see only what they are concerned with. My team needs a global overview. Do I need a database or would basic Zope objects work? Where to begin? I feel that there should be a 'Request' object (document or method?) with a few methods for adding, dispatching, ... Thanks for any advice [One way of learning is by doing] - Un courrier électronique n'engage pas son émetteur. Tout message susceptible de comporter un engagement doit être confirmé par un écrit dûment signé. An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. Ein elektronischer Brief bzw. eine elektronische Nachricht ist für den Absender nicht verbindlich. Jede Nachricht, welche eine Verpflichtung beinhaltet, muß schriftlich bestätigt und ordnungsgemäß unterzeichnet werden. - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] standard_error_message woes!
You should be able to make "standard_error_message"s that do not generate secondary errors. If you fail, a crude minimal error handling should be okay as a last resort. The Lisp system on Symbolics had both. It had a too-many-error-frame detector for the error reporter that used a crude system when triggered. It would be nice that the crude error messages be settable in a way that is hardended, perhaps env vars? FYI, Albert Boulanger [EMAIL PROTECTED] http://www.vpatch.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] standard_error_message woes!
albert boulanger wrote: You should be able to make "standard_error_message"s that do not generate secondary errors. If you fail, a crude minimal error handling should be okay as a last resort. The Lisp system on Symbolics had both. It had a too-many-error-frame detector for the error reporter that used a crude system when triggered. It would be nice that the crude error messages be settable in a way that is hardended, perhaps env vars? I like the idea of a text file for these, rather than being embedded in the python source. Surely that can't be too hard? (Squishdot does this already for some things ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Core Session Tracking DTML
Chris McDonough wrote: dtml-with sessionmanager dtml-with getSessionData dtml-var "get('a')" /dtml-with /dtml-with I would have thought this stuff would be better in a python script: sessionmanager.getSessionData.get('a') Yeah, I'm jus using DTML because it's the more pathological case and needs to look pretty in DTML first. :-) ...since it is definitely 'logic' Would it be posible to make that even nicer and have whatever getSessionData is implement __getattr__ so you could do: sessionmanager.SessionData.a ...or something similar? Yes. That's what Bob S. suggested. What are the benefits of this? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Core Session Tracking DTML
Chris McDonough wrote: sessionmanager.SessionData.a ...or something similar? Yes. That's what Bob S. suggested. What are the benefits of this? More graceful code that's more 'pythonesque' in Python Scripts: if sessionmanager.SessionData.a['mykey'] == 1: ...as opposed to... if sessionmanager.SessionData.get('a')['mykey'] == 1: sessionmanager.SessionData.b = 1 ...as opposed to... if sessionmanager.SessionData.set('b',1) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Leaking Oracle connections processes
Hi guys, We are trying to build a site with Zope and Oracle, and we see again and again a situation where Oracle connections and processes are being leaked: the more we work, the more there are, until we reach Oracle's limit for number of processes. At this point, the Connection objects close on their own, and you can't even open SQL*Plus until Zope is closed or restarted. We use Oracle's default limit on the number of processes, which is 50. We have about three users (developers), two Oracle connections in the application (one for SqlSessions and one for other data), and although we use some devious multithreading (some of our transactions call an external method which essentially URLRetrieve()s a URL from our own Zope server in a separate thread), 50 open connections should be more than enough. I have checked a little before the disaster, and it seems that not all those processes actually have connections; the problem may be unrelated to open connections, but just to processes. We do one fishy thing that may also be related: We keep some long raw data; we keep it all in one table, and other tables which need long columns hold pointers (indices) into this table. To put data into this table from Zope, we use an external method SaveLONG, which uses the database connection to access the DB (in order to use the transactionality of the whole thing). We use it in ZSQL methods as follows: INSERT INTO items ( field, long_field_ptr ) VALUES ( dtml-sqlvar value type=string dtml-var "SaveLONG(DB_CONNECTION, long_value)" ) SaveLONG saves the long value in the long data table and returns its index in the table. The source for SaveLONG is this. It relies on a DB trigger to populate the LONG_ID field from a sequence. long_table_name = 'LONG_DATA' long_column_name = 'LONG_DATA' long_seq_name = 'SEQ_LONG_DATA' index_column_name = 'LONG_ID' save_command = ''' INSERT INTO %s (%s) VALUES (:content) '''% (long_table_name,long_column_name) get_key_command = 'SELECT %s.currval FROM dual' % long_seq_name # # Put a long raw on the DB # def SaveLONG(self,connection, content): connection = connection._v_database_connection.db # the real DB connection object connection.execute(save_command, content=dbi.dbiRaw(content)) connection.execute(get_key_command) return connection.fetchone()[0] We're using Zope 2.2.4 with ZOracleDA 2.1.0 and DCOracle 1.3.2 with Oracle 8.0.5 on an intel-linux (RH). Can anyone see anything wrong with what we're doing? Is anyone else experiencing this kind of problems? Thanks in advance, Shai ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problem with SiteAccess
Hello, I'm trying to use the SiteAccess Product as discribed in the HowTo: Using Apache with ZServer (NOT Zope.cgi). Unforunately things don't work as described. My ZServer is listening on www.myserver.com:9080/somesite. I would like to be able to access the ZServer through apache via the URL www.somesite.com (to do virtual hosting). The ProxyPass directives work well (the pages get served properly), but the URL's in my pages still contain the complete URL's of the ZServer, like img src="http://www.myserver.com:9080/somesite/images/some.gif" instead of img src="http://www.somesite.com/images/some.gif". The same is true for normal links. Ok, it's not so bad, things work (no broken links), but it is a little bit ugly. I thought the SiteAccess Product should handle these problems, by putting a SiteRoot object in the somesite folder. Or do I have to write an AccessRule ? And how would that look like ? Thanks a lot, regards, Leonardo Graf ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)
From: Chris Withers [EMAIL PROTECTED] dtml-call "somemethod(absolute_url()+urlquote(_.getitem(id))" Well, in Python Scripts at least, you can do:: from Products.PythonScripts.standard import special_formats url_quote = special_formats['url-quote'] return url_quote("OK?") It's not great, but it's something. Cheers, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)
Evan Simpson wrote: From: Chris Withers [EMAIL PROTECTED] dtml-call "somemethod(absolute_url()+urlquote(_.getitem(id))" Well, in Python Scripts at least, you can do:: from Products.PythonScripts.standard import special_formats Hmmm... can you do something similar to perform an XML-RPC call into another Zope instance? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] First Project
Koch Marc wrote: Thank you, ...for your tip with the PARENTS[0].objectValues('File') Please let me ask your advice on how to realize the following: I would like to build an application for handling development requests. These requests should be submitted by our end-users through our Intranet = to my team. We then look at each new request and dispatch it to one or more development team for approval (or rejection). At this stage: - The end-user should be able to see that his request has been dispatched - The concerned development team(s) should see that there is a new reques= t, they could look at it and accept it or reject it and give a comment When all the teams have replied, my team would add a summarized comment t= o the request and the end-user should be able to see this. At this point, t= he request handling for my team is at its end. Seems you search for the standard enhancement/bug management software Before you start developing it yourself, take a look at the products like bugzila, jitterbug or gnats (to mention just a few, open-source solutions). -- http://www.mk.w.pl / Marcin.Kasperski | Kcik porad dla programistw: @softax.com.pl | http://www.softax.com.pl/prywatne/marcink/porady @bigfoot.com \ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] First Project
Koch Marc wrote: Please let me ask your advice on how to realize the following: I would like to build an application for handling development requests. These requests should be submitted by our end-users through our Intranet to my team. We then look at each new request and dispatch it to one or more development team for approval (or rejection). At this stage: - The end-user should be able to see that his request has been dispatched - The concerned development team(s) should see that there is a new request, they could look at it and accept it or reject it and give a comment When all the teams have replied, my team would add a summarized comment to the request and the end-user should be able to see this. At this point, the request handling for my team is at its end. Requests should be submitted by a Web-Form and may contain an arbitrary file (eg. Word Document). The end-user and the development team should see only what they are concerned with. My team needs a global overview. Check out the Tracker product: http://www.zope.org/Members/klm/TrackerWiki/FrontPage HTH, Michael Bernstein. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] (no subject)
If its not ZOPE hosting ... don't send it here!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 2:00 AM To: [EMAIL PROTECTED] Subject: [Zope] (no subject) GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY! STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN GET ONE FOR ONLY $11.95 PER MONTH! DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A SIMPLE PHONE CALL TO OUR OFFICE. YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with no extra charge! UNLIMITED TRAFFIC -- no extra charge! FRONT PAGE EXTENSIONS are FULLY SUPPORTED. A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS. ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP CHARGE. FOR DETAILS CALL 1 888 248 0765 if you are outside the USA, please fax 240 337 8325 Webhosting International ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Advice on searching/indexing Word documents?
I really like the idea of extending OFS:File to support different file types, but what I would like to see is something that is format/filter/library agnostic. That is to say, that perhaps the way we ought to go about this is to create an API framework that upon upload filters the file with a specified filter for its mime-type. Perhaps creating a generic base class that implements a generic API for filtering a file, from which to extend by inheriting more specific classes for files of particular types or groups (fine grained to mime-type or grouped in category, eg. "Illustration"). Having such a generic framework would enable Zope to be an excellent platform for digital asset management; Suppose you had a class for all files for a particular purpose, and those files would always be of a partiaular set of mime-types, like Illustrator, PDf, or postscript. For example, if someone working at a newspaper creates a new file class instance called "DisplayAd," which is used for postscript files with embedded fonts, containing specific text, a filter set up as part of the extended class for DisplayAd file would detect the type of file, determine it was PDF, and filter out the text, and the face names of the embedded fonts. If the file was a PDF or an AI file, it would then run the appropriate filter. It might also be nice to have a extended class (inherited from file) that works for all types, and keeps some sort of configurable plugin registry of sorts, so that we can create plugin classes for specific mime-types, but only have to use one class for the objects themselves. This might be more practical. One thing that seems important: creating an API like this could allow us to write filter "plugins" in a variety of Zope supported configs, like completely in python, a python class extending a C shared library, something written in a combination of C/Lex, or the python-based plex scanner that was mentioned earlier - for that matter, even proprietary user-space binaries called via python code might be fair game... I really think that this idea has potential as a project, and would be willing to contribute. Sean -Original Message- From: Bjorn Stabell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 10:07 PM To: [EMAIL PROTECTED] Subject: RE: [Zope] Advice on searching/indexing Word documents? This is something I've been longing for a long time. Wvare is cool, and it should also be able to access properties of many Windows (OLE) documents, not just Word documents. I've been thinking about extending the File class so that it becomes aware of the different file types and allows access to (read/write) meta data and indexing of the files' content. If we can setup a nice framework for it, I'm sure a lot of people could contribute code for specific file formats. Bye, -- Bjorn -Original Message- From: Jens Vagelpohl [mailto:[EMAIL PROTECTED]] Posted At: Wednesday, January 03, 2001 11:28 Posted To: Zope List Conversation: [Zope] Advice on searching/indexing Word documents? Subject: Re: [Zope] Advice on searching/indexing Word documents? if you're on linux check out WVWare: http://www.wvware.com it's a C library that handles all word doc formats since 6.0 or so jens On Tue, 02 Jan 2001, Bowyer, Alex wrote: Our company has a repository of staff CVs (Resumes) as Word Documents and I am about to embark on creating a new feature for our Zope Intranet to allow project managers to search those documents for keywords such as particular skills or projects. I am thinking about several possibilities such as a skills/CVs database linked in via ODBC, or some task that converts the Word documents to text files which can then be searched by Zope (I think Zope can do this, and I assume it can't search Word format directly?). Has anyone ever approached a similar problem, does anyone have any tips on how to index/search a load of documents in Zope? Any tips/suggestions/comments would be most welcome. Thanks, Alex ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Core Session Tracking DTML
Chris McDonough wrote: sessionmanager.SessionData.a ...or something similar? Yes. That's what Bob S. suggested. What are the benefits of this? More graceful code that's more 'pythonesque' in Python Scripts: if sessionmanager.SessionData.a['mykey'] == 1: ...as opposed to... if sessionmanager.SessionData.get('a')['mykey'] == 1: The current way is: if sessiondatamanager.getSessionData()['mykey'] == 1: .. do something... I suppose you'd rather see: if sessiondatamanager.getSessionData().mykey == 1: .. do something... Is this really worth it? sessionmanager.SessionData.b = 1 ...as opposed to... if sessionmanager.SessionData.set('b',1) And this is currently: sessiondatamanager.getSessionData().set('b',1) You can't do assignment in DTML, and session-tracking needs to be usable from DTML, so the "ob.attr = val" idiom is out from the get-go. Another assumption I'm making is that "there should only be one way to do it". I'd rather not have both __setattr__ and .set work for session data objects, because it's confusing and doesn't buy anything at all other than a couple keystrokes. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Core Session Tracking DTML
Chris McDonough wrote: You can't do assignment in DTML, and session-tracking needs to be usable from DTML, so the "ob.attr = val" idiom is out from the get-go. Another assumption I'm making is that "there should only be one way to do it". I'd rather not have both __setattr__ and .set work for session data objects, because it's confusing and doesn't buy anything at all other than a couple keystrokes. Fair enough :-) Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Core Session Tracking DTML
Chris McDonough wrote: sessionmanager.SessionData.a ...or something similar? Yes. That's what Bob S. suggested. What are the benefits of this? More graceful code that's more 'pythonesque' in Python Scripts: if sessionmanager.SessionData.a['mykey'] == 1: ...as opposed to... if sessionmanager.SessionData.get('a')['mykey'] == 1: The current way is: if sessiondatamanager.getSessionData()['mykey'] == 1: .. do something... I suppose you'd rather see: if sessiondatamanager.getSessionData().mykey == 1: .. do something... Is this really worth it? sessionmanager.SessionData.b = 1 ...as opposed to... if sessionmanager.SessionData.set('b',1) And this is currently: sessiondatamanager.getSessionData().set('b',1) You can't do assignment in DTML, and session-tracking needs to be usable from DTML, so the "ob.attr = val" idiom is out from the get-go. Another assumption I'm making is that "there should only be one way to do it". I'd rather not have both __setattr__ and .set work for session data objects, because it's confusing and doesn't buy anything at all other than a couple keystrokes. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] case insensitive search?
A less easy way is to patch dtml-in so its allows sorts where it is case insensitive. Theres a simple patch for this here: http://www.zope.org/Members/andym/IgnoreCase Then patch the findResult.dtml, dtml source: lib\python\OFS\findResult.dtml line 44: dtml-in results sort ignore_case This will allow you to fix any management screen/sort using dtml-in to be case insensitive. There are other options of course. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Robin Becker" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 5:16 PM Subject: [Zope] case insensitive search? Is there an easy way to make the Find tab case insensitive. It seems like a very common need, but I see that FindSupport.py is calling string.find which makes it seem as though this is harder than it should be. -- Robin Becker ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem with SiteAccess
* Leonardo Graf ([EMAIL PROTECTED]) [010103 09:16]: Hello, I'm trying to use the SiteAccess Product as discribed in the HowTo: Using Apache with ZServer (NOT Zope.cgi). Unforunately things don't work as described. My ZServer is listening on www.myserver.com:9080/somesite. I would like to be able to access the ZServer through apache via the URL www.somesite.com (to do virtual hosting). The ProxyPass directives work well (the pages get served properly), but the URL's in my pages still contain the complete URL's of the ZServer, like img src="http://www.myserver.com:9080/somesite/images/some.gif" instead of img src="http://www.somesite.com/images/some.gif". The same is true for normal links. Ok, it's not so bad, things work (no broken links), but it is a little bit ugly. I thought the SiteAccess Product should handle these problems, by putting a SiteRoot object in the somesite folder. Or do I have to write an AccessRule ? And how would that look like ? Thanks a lot, regards, Leonardo Graf It sounds like your SiteRoot object doesn't have "Base" (aka the Base URL) set correctly. It should be set to: http://www.somesite.com The SiteAccess Rule is only needed if you have *multiple* hosts served out from one host. You sound like you only have one. Ciao! -- There is no sweeter sound than the crumbling of your fellow man. -- Groucho Marx The Doctor What: A really hip dude http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] case insensitive search?
On Wed, 3 Jan 2001, Robin Becker wrote: Is there an easy way to make the Find tab case insensitive. It seems like a very common need, but I see that FindSupport.py is calling string.find which makes it seem as though this is harder than it should be. Now, I did it better way. No regular expressions. Just case-insensitive search. "Case insensitive" checkbox on "Find" form. If you need it - just take a look at an attachment. Maybe I will send it to the Collector... [EMAIL PROTECTED], [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ caseInsensitiveFind.tgz
Re: [Zope] case insensitive search?
Is there an easy way to make the Find tab case insensitive. It seems like a very common need, but I see that FindSupport.py is calling string.find which makes it seem as though this is harder than it should be. Now, I did it better way. No regular expressions. Just case-insensitive search. "Case insensitive" checkbox on "Find" form. If you need it - just take a look at an attachment. Maybe I will send it to the Collector... The checkbox is good, but surely the patch should be in presentation layer (dtml-in) and not just in Find Support. My patch fixes it throughout Zope... -- Andy McKay, Developer. ActiveState. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Question: How to generate a core file in Solaris 2.6
I am running Zope 2.1.6 and 2.2.3 under Solaris, and we are having some stability problems. With some previous posts from developers we seem to think that it might be a custom product that we are using that contains some c code. We can't really be certain, although we are devising some tests to examine that possibility. However, since the Zope crashes every few hours, and no core file comes out we are at a loss at how to get one. We have tried increasing the ulimit in the startup script, but this doesn't appear to generate a core. Primarily Zope 2.2.3 and Solaris 2.6 (Patched to a couple of months ago). Help? -- Michael Best Systems Administrator ph 780-413-6397 x230 Emergence By Designfax 780-433-7548 #200, 11209 Jasper Avenue toll 866-860-2666 Edmonton, Alberta, T5K 0L5 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Advice on searching/indexing Word documents?
This sounds pretty exciting. Sounds like someone should set up a proposal on dev.zope.org.I'm afraid I wouldn't be able to contribute much development right now but I'd be willing to help test and participate in discussions. --jfarr - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 8:25 AM Subject: RE: [Zope] Advice on searching/indexing Word documents? I really like the idea of extending OFS:File to support different file types, but what I would like to see is something that is format/filter/library agnostic. That is to say, that perhaps the way we ought to go about this is to create an API framework that upon upload filters the file with a specified filter for its mime-type. [snip] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] case insensitive search?
In article Pine.LNX.4.21.0101032012320.775-101000@localhost, Aleksander Salwa [EMAIL PROTECTED] writes On Wed, 3 Jan 2001, Robin Becker wrote: Is there an easy way to make the Find tab case insensitive. It seems like a very common need, but I see that FindSupport.py is calling string.find which makes it seem as though this is harder than it should be. Now, I did it better way. No regular expressions. Just case-insensitive search. "Case insensitive" checkbox on "Find" form. If you need it - just take a look at an attachment. Maybe I will send it to the Collector... [EMAIL PROTECTED], [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ [ A MIME APPLICATION / x-gtar part was included here. ] that looks like a nice way to do it, but I reckon we could make the lambda stuff a bit cleverer ie modify the default find eg if search_caseins: FINDER = lambda ob,p=lower(obj_searchterm): find(lower(ob.PrincipiaSearchSource()),p) else: FINDER = lambda ob,p=obj_searchterm: find(ob.PrincipiaSearchSource(), p) and then we use FINDER(ob) -- Robin Becker ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] html_quote in python methods?
Thanks, Andy, Dieter, Chris, Evan for the discussion What I ended up doing was making a DTML Method called htmlquote_newlineToBr that looks like: dtml-var theitem html_quote newline_to_br then calling it from a Python Method like so: hqnl = self.htmlquote_newlineToBr myitem=self.fixedLoc['varLoc1']['varLoc2'] print 'table' print 'trtd%s/td/tr' % hqnl(theitem=myitem.property1) print 'table' It turned out to be a bit better code than I thought I wanted :) -- Jim Washington - Original Message - From: "Jim Washington" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 6:32 AM Subject: [Zope] html_quote in python methods? I am using Python Methods a lot now. Good: no more dtml-with to get to the objects I need. Yay! no more worrying about closing blocks. Yay! OK, when I make a syntax error, there is no help in the traceback. My Python is getting better and better as a result. To give something back, I have a hint that took me a while to figure out: print 'td width="33%"%s/td' % (self.thevariable) will not work. The first % needs to be escaped like so: print 'td width="33%%"%s/td' % (self.thevariable) Now, can I use html_quote in a Python Method? I am letting people enter data for redisplay, and I know some Bozo (TM) will somehow put in "table" and break the page. Can I keep this from happening? html_quote does not seem to be in the Python Method namespace. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] EVAL DTML?
Is it possible to, say, retrieve DTML code from an external database (such as Sybase) and then have that DTML code render itself? As I recall there is a security issue with Zope allowing Python to EVAL dtml.. I am not finding references to this kind of activity online. Has anyone accomplished something similar? Brian Withun ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] standard_error_message woes!
Chris Withers writes: Dieter Maurer wrote: You should be able to make "standard_error_message"s that do not generate secondary errors. If you fail, a crude minimal error handling should be okay as a last resort. Hmmm... maybe there should be an option on this then? ;-) I think, someone like GvR would call it "feature bloat" ;-) Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Leaking Oracle connections processes
Shai Berger writes: We are trying to build a site with Zope and Oracle, and we see again and again a situation where Oracle connections and processes are being leaked: the more we work, the more there are, until we reach Oracle's limit for number of processes. At this point, the Connection objects close on their own, and you can't even open SQL*Plus until Zope is closed or restarted. We have had this problem, too. Maybe we still have it but to a much lesser extend. What we did: * increase ZODB's cache size. Formerly, Oracle connections have been flushed from the cache with a high frequency. Apparently, some connections was not closed, even though the objects had been flushed from the cache. This migh be in relation to the "Record" leak closed recently (Zope 2.2.5b1). * install the latest DCOracle. I think, the two steps did not remove all our problems, but had reduced it to an extend we can live with, until we know more about the problem. This implies, we are interested in what you may find out. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Core Session Tracking kudos namespaces
Chris McDonough writes: Currently, nothing would be acquired, and the dtml-var a call will fail inside of a "with sessiondatamanager" even if we did have a __getattr__ interface to session data objects Are you sure? As I understand it, at least a dtml-with "sessionDataManager.getSessionData()" would make available all session data keys as variables, if they had a "__getattr__". If they had a "__getitem__" (maybe, the available "get" is already sufficient), then dtml-with "sessionDataManager.getSessionData()" mapping would do the trick. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Non-ASCII-form-input - HTML-entities?
Markus Kemmerling writes: I would like to have users being able to enter german vowels ä, ö, ü and other non-ASCII-characters for which HTML-entities exist (ISO 8859-1) into a form-input-field and have them rendered as HTML-entities by the corresponding var-tag in the form-handler. The 'html_quote'-attribute only seems to convert , , and (and quotes?). Of course I could write my own python-method with a lot of replaces. But that would probably mean to reinvent a wheel that already exists (this seems to be a rather common task to me). Or is there a way to do it in DTML? Any help appreciated. I would instead include a "charset" declaration and no longer worry about HTML entities for latin 1 characters. dtml-call "RESPONSE.setHeader('Content-Type','text/html; charset=iso-8859-1')" Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Re: [Zope] Re: decline description (KMM499042C0KM)
Thank you for your submission to CNET Download.com. Unfortunately, we are unable to consider your software for inclusion in our library because the description does not give us enough information. Feel free to resubmit your program with a more complete description, according to these guidelines: If your program has never been listed on Download.com, we recommend 3 to 5 sentences describing the program's features and functionality. If you are updating an existing Download.com title, please provide 1 to 2 sentences describing specifically what is new in the update. For examples of model descriptions, visit the following pages: http://www.download.com/pc/software/0,332,0-19608-g,1000.html http://www.download.com/mac/software/0,332,0-48662-g,1000.html Please do not respond to this message. When you are ready to resubmit your software, please do so through our online forms: http://www.download.com/pc/help/0,331,0-1472,00.html?st.dl.support.sub Regards, CNET Support Services http://home.cnet.com/?tag=st.cn.support.4 *Please include original message in your reply* Original Message Follows: WTF? Chris :-) "Download.com Support" wrote: Hi there, Thanks for writing to CNET. Regards, CNET Support Services http://home.cnet.com/?tag=st.cn.support.2 *Please include original message in your reply* Original Message Follows: - Subject: Sub: U | Zope.org | Zope | Cross-platform | PC:Internet:Site Management | cat10070 --- DOWNLOAD.COM Registration Form: --- Title (Update of an existing title): Zope Version: 2.2.2 Release date: --- 18-09-2000 URLs: http://www.zope.org/Products/Zope/Products/Zope/2.2.2 Size: -- 3952206 License: --- Free Code License: --- Open source/free Uninstaller: Yes Expiration: --- -- Publisher: --- Zope.org Contact: --- Zope Community E-Mail: - [EMAIL PROTECTED] phone: - Publisher URL: http://www.zope.org/ Developer support link: --- http:// Price: --- Price type: --- Keywords: - internet,content management,application server,web development, python Description: - http://www.zope.org/Products/Zope/Products/Zope/2.2.2/CHANGES.txt Functionality limitations: -- n/a Platform: - Cross-platform Program Type: - Specific OS: - cross-platform Other requirements: --- Category: - PC:Internet:Site Management | cat10070 Optimized: On RegNow.com: --- RegNow.com link: --- http:// == ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Question: How to generate a core file in Solaris 2.6
I had a similar problem quite some time ago. I never could get a core file to generate, but since the crash occured so often, I was able to attach gdb (GNU debugger) to the process and was able to see the segmentation violation that was occurring. I never did figure out why I couldn't get a core file generated. -jjp Michael Best [EMAIL PROTECTED] writes: I am running Zope 2.1.6 and 2.2.3 under Solaris, and we are having some stability problems. With some previous posts from developers we seem to think that it might be a custom product that we are using that contains some c code. We can't really be certain, although we are devising some tests to examine that possibility. However, since the Zope crashes every few hours, and no core file comes out we are at a loss at how to get one. We have tried increasing the ulimit in the startup script, but this doesn't appear to generate a core. Primarily Zope 2.2.3 and Solaris 2.6 (Patched to a couple of months ago). Help? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Using a multiple_selection property in a product
I am attempting to build a product that will contain some unique information and access control for services in support of college classes. Many, many things are going well...better than expected. However I am having problems getting the product to correctly recognize a multiple selection property. The property is the days of the week that the course is offered. ( Monday-Wednesday-Friday or Tuesday-Thursday, or any combination thereof) The DTML for the product creation form contains the following: --- th align="LEFT" valign="TOP"emDays Course Offered/em/th td align="LEFT" valign="TOP" select name="classdays:multiple_selection" size=5 multiple option value="Monday"Monday/option option value="Tuesday"Tuesday/option option value="Wednesday"Wednesday/option option value="Thursday"Thursday/option option value="Friday"Friday/option /select in the product class I have tried two tactics (actually more but I'll confess to only these two) _properties( {'id':'classdays', 'type':'multiple_selection','mode':'w'}, ... RESULT: product installs, but classdays in an "unknown property type" so I try this: _properties( {'id':'classdays', 'type':'multiple selection','mode':'w'}, ... RESULT: product installs, however the Properties are unavailable, furthermore trying to view the properties by clicking on the Properties tab generates the following Zope error: Error Type: NameError Error Value: select_variable [somewhat helpful troubleshooting suggestions] Traceback (innermost last): File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/Zope-2.3.0a1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_propertiesForm) File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_propertiesForm) File /home/Zope-2.3.0a1-src/lib/python/App/special_dtml.py, line 120, in __call__ (Object: manage_propertiesForm) (Info: /home/Zope-2.3.0a1-src/lib/python/OFS/properties.dtml) File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: manage_propertiesForm) File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: propertyMap) File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: hasProperty(select_variable)) (Info: hasProperty) File string, line 0, in ? NameError: (see above) - I've also tried to use :list with much less success. Any helpful suggestions would be appreciated. The solution is not obvious to me. TIA... Ron Roeber University of Nebraska ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Core Session Tracking kudos namespaces
You're right, Dieter. I was thinking in Python terms and forgot about DTML namespace lookup rules. :-( Yes, if we had a __getattr__ interface or used the mapping keyword on the return value of a __getitem__-based session data object, and if the name was not found in the namespace that is put on the DTML stack by "with sessiondataobject", it would then be looked up in the form and cookies namespaces, then it would attempt to be acquired, etc. Sorry for the misinformation. So the question becomes: do we want DTML namespace lookup magic or no DTML namespace lookup magic for names that we attempt to look up in a session data object? I don't know the answer. I'm so sick of magic at this point that I'm apt to vote "no", but if it affords us some provable real-world benefits, I could change this vote. If someone would be kind enough to give me an example where having DTML namespace lookup magic for names out of a session data object would be very useful, I'd consider it carefully. - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: "Bob Sidebotham" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 4:50 PM Subject: Re: [Zope] Core Session Tracking kudos namespaces Chris McDonough writes: Currently, nothing would be acquired, and the dtml-var a call will fail inside of a "with sessiondatamanager" even if we did have a __getattr__ interface to session data objects Are you sure? As I understand it, at least a dtml-with "sessionDataManager.getSessionData()" would make available all session data keys as variables, if they had a "__getattr__". If they had a "__getitem__" (maybe, the available "get" is already sufficient), then dtml-with "sessionDataManager.getSessionData()" mapping would do the trick. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Using a multiple_selection property in a product
Try this: _properties = ( {'id':'classdays', 'type':'multiple selection','mode':'w', 'select_variable': 'days'}, ...) days = ( 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday' ) -Randy -Original Message- From: Ronald L. Roeber [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 2:48 PM To: [EMAIL PROTECTED] Subject: [Zope] Using a multiple_selection property in a product I am attempting to build a product that will contain some unique information and access control for services in support of college classes. Many, many things are going well...better than expected. However I am having problems getting the product to correctly recognize a multiple selection property. The property is the days of the week that the course is offered. ( Monday-Wednesday-Friday or Tuesday-Thursday, or any combination thereof) The DTML for the product creation form contains the following: --- th align="LEFT" valign="TOP"emDays Course Offered/em/th td align="LEFT" valign="TOP" select name="classdays:multiple_selection" size=5 multiple option value="Monday"Monday/option option value="Tuesday"Tuesday/option option value="Wednesday"Wednesday/option option value="Thursday"Thursday/option option value="Friday"Friday/option /select in the product class I have tried two tactics (actually more but I'll confess to only these two) _properties( {'id':'classdays', 'type':'multiple_selection','mode':'w'}, ... RESULT: product installs, but classdays in an "unknown property type" so I try this: _properties( {'id':'classdays', 'type':'multiple selection','mode':'w'}, ... RESULT: product installs, however the Properties are unavailable, furthermore trying to view the properties by clicking on the Properties tab generates the following Zope error: Error Type: NameError Error Value: select_variable [somewhat helpful troubleshooting suggestions] Traceback (innermost last): File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/Zope-2.3.0a1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_propertiesForm) File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_propertiesForm) File /home/Zope-2.3.0a1-src/lib/python/App/special_dtml.py, line 120, in __call__ (Object: manage_propertiesForm) (Info: /home/Zope-2.3.0a1-src/lib/python/OFS/properties.dtml) File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: manage_propertiesForm) File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: propertyMap) File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: hasProperty(select_variable)) (Info: hasProperty) File string, line 0, in ? NameError: (see above) - I've also tried to use :list with much less success. Any helpful suggestions would be appreciated. The solution is not obvious to me. TIA... Ron Roeber University of Nebraska ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Poor Procedural Programmer Needs OOPish Enlightenment
or... "A Cry for Namespace Help" I seem to have run into one of those Zope namespace issued that's starting to make me dizzy. I have a index_html method that displays content conditionally depending on where it's called. It looks like this: dtml-if expr="PARENTS[0].id != 'edit'" dtml-var index.html dtml-else dtml-var chunk_editFrameset /dtml-if The chunk_editFrameset method also displays the same index.html file in one of two frames. This works like a champ. If I'm in a directory called edit when this is called, it displays the frameset. Otherwise, it displays the index.html directly. The index.html method is contains a bunch 'o static html plus another method called chunk_dspPrimaryCol that also conditionally displays information based on where it's called. chunk_dspPrimaryCol looks like this: dtml-if expr="PARENTS[0].id != 'edit'" dtml-var chunk_dspPrimaryColPublic dtml-else dtml-var chunk_dspPrimaryColEdit /dtml-if This doesn't work like I'd hoped, since I have to move back up the namespace stack to find index.html, and by the time I do I'm no longer in the edit folder. So I _always_ end up displaying the chunk_dspPrimaryColPublic method, even if I call the index_html method from within the edit folder. What I need (I think) is a way to keep all of this activity in the edit Folder. Or I need some other way of solving this problem. Any thoughts? I hope my description was clear enough... -- Geoffrey L. Wright Developer / Systems Administrator (907) 563-2721 ex. 4900 http://www.integritysi.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] A bug in Membership product? (member password can be revealed by dtml method accessible by anonymous)
Hi Bill, A dtml method with these lines: dtml-with "acl_users.getItem('z')" dtml-var password /dtml-with will show the password, despite that the methode is accessible by anonymous. Members in my site is allowed to use dtml method. How can I prevent them from reading others' properties? Dirksen __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Poor Procedural Programmer Needs OOPish Enlightenment
Not sure if this is your problem, but since methods don't have namespaces, I'm not sure why your code could not be reduced to: dtml-if expr="id != 'edit'" dtml-var index.html dtml-else dtml-var chunk_editFrameset /dtml-if The namespace of index_html right now is 'edit' (or another folder that acquires it) ...and... if the namespace of index_html is 'edit' than the namespace of index.html will also be, and ergo, the namespace of chunk_dspPrimaryCol will also be edit (index.html doesn't have a method unto itself), changing your code to: dtml-if expr="id != 'edit'" dtml-var chunk_dspPrimaryColPublic dtml-else dtml-var chunk_dspPrimaryColEdit /dtml-if Just keep in mind, that any object with a namespace (folders, documents, certain class instances) that is in the acquisition path can have that namespace explicitly invokes with dtml-with name_of_object. This only works for object with a namespace; methods are not acquirable objects, and though you might call them objects (in a loose sense) they are not objects in a Zopish sense. I don't know if my sugestion will work for you, but hopefully it will help. Sean = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [EMAIL PROTECTED] = -Original Message- From: Geoffrey L. Wright [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 03, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: [Zope] Poor Procedural Programmer Needs OOPish Enlightenment or... "A Cry for Namespace Help" I seem to have run into one of those Zope namespace issued that's starting to make me dizzy. I have a index_html method that displays content conditionally depending on where it's called. It looks like this: dtml-if expr="PARENTS[0].id != 'edit'" dtml-var index.html dtml-else dtml-var chunk_editFrameset /dtml-if The chunk_editFrameset method also displays the same index.html file in one of two frames. This works like a champ. If I'm in a directory called edit when this is called, it displays the frameset. Otherwise, it displays the index.html directly. The index.html method is contains a bunch 'o static html plus another method called chunk_dspPrimaryCol that also conditionally displays information based on where it's called. chunk_dspPrimaryCol looks like this: dtml-if expr="PARENTS[0].id != 'edit'" dtml-var chunk_dspPrimaryColPublic dtml-else dtml-var chunk_dspPrimaryColEdit /dtml-if This doesn't work like I'd hoped, since I have to move back up the namespace stack to find index.html, and by the time I do I'm no longer in the edit folder. So I _always_ end up displaying the chunk_dspPrimaryColPublic method, even if I call the index_html method from within the edit folder. What I need (I think) is a way to keep all of this activity in the edit Folder. Or I need some other way of solving this problem. Any thoughts? I hope my description was clear enough... -- Geoffrey L. Wright Developer / Systems Administrator (907) 563-2721 ex. 4900 http://www.integritysi.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] [Newbie] ZSQL problem
Hello all. I'm a total newbie to Zope (a few days). I have a problem with getting some results throuh a ZSQL method. (I've been playing with a sample baseball database that came with PyGreSQL.) I have a form that accepts multiple choice: (generated by the wizard) form action="search_data_result" method="get" trthHome team/th tdselect name="home_team" size="10" multiple option value="Indians"Indians/option option value="Blue Jays"Blue Jays/option option value="White Sox"White Sox/option option value="Red Sox"Red Sox/option /select input type="SUBMIT" name="SUBMIT" value="Submit Query" /td/tr /table /form My ZSQL method, called get_all_from_game is the following: select * from game where home_team= dtml-sqlvar home_team type=string and I have specified 1 argument: home_team -- the output page: search_data_result looks like that: (it's been generated by the wizard) dtml-in get_all_from_game size=50 start=query_start dtml-if sequence-start dtml-if previous-sequence a href="dtml-var URLdtml-var sequence-query query_start=dtml-var previous-sequence-start-number" (Previous dtml-var previous-sequence-size results) /a /dtml-if previous-sequence table border tr thHome team/th thVisiting team/th thHome team runs/th thVisiting team runs/th thGame date/th thGame number/th /tr /dtml-if sequence-start tr td bgcolor="#A6A6A6"dtml-var home_team null=""/td tddtml-var visiting_team null=""/td tddtml-var home_team_runs null=""/td tddtml-var visiting_team_runs null=""/td tddtml-var game_date null=""/td tddtml-var game_number null=""/td /tr dtml-if sequence-end /table dtml-if next-sequence a href="dtml-var URLdtml-var sequence-query query_start=dtml-var next-sequence-start-number" (Next dtml-var next-sequence-size results) /a /dtml-if next-sequence /dtml-if sequence-end dtml-else There was no data matching this dtml-var title_or_id query. /dtml-in --- When I select one item in the list I get the results as specified in the SQL query. However, I get nothing when I select more than one item. What am I doing wrong? Thanks in advance. MiS ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Non-ASCII-form-input - HTML-entities?
On 3 Jan 2001, at 22:53, Dieter Maurer wrote: I would instead include a "charset" declaration and no longer worry about HTML entities for latin 1 characters. dtml-call "RESPONSE.setHeader('Content-Type','text/html; charset=iso-8859-1')" This is rendundant. ISO-8859-1 is the default encoding for http, anyway, and has ever been. -- Wolfgang Strobl ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Poor Procedural Programmer Needs OOPish Enlightenment
[EMAIL PROTECTED] writes: Not sure if this is your problem, but since methods don't have namespaces, I'm not sure why your code could not be reduced to: dtml-if expr="id != 'edit'" dtml-var index.html dtml-else dtml-var chunk_editFrameset /dtml-if You're right -- this works just as well, and is much cleaner. And I figured out my problem while yanking out another unneeded reference to PARENTS. In my framset code I had a reference to PARENTS[1] (not [0]!), so I was forcing Zope to look at the index.html method from the namespace of the test_site folder. DOH! Zope is a funny thing -- it makes some things so much easier, but I always find myself getting tangled up in stooopid namespace problems of my own making. I guess I'm just not used to thinking this way yet. Many thanks for the assist. Sean //glw ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )