Re: [Zope] Zope2 - pro/contra
On Fri, Mar 6, 2015 at 3:56 AM, Sebastian Tänzer s...@taenzer.me wrote: Chameleon is one of my favourite templating engines around. I like TAL and Chameleon's subtle improvements on it. I was recently attending a Python users group meeting presentation on Pyramid. The presenter, who strongly liked jinja2, disparaged ZPT/Chameleon with (what I sensed was) an anti-Zopism straw-man. Some folks in other Python dev communities tend to have unfortunate strong opinions about Zope, still. Some folks tend to think that technology choice is a cultural revolution of some kind where the incumbent must be strung up in a public square, which is off-putting to pragmatists. And IMHO, other communities are better off learning from Zope's hits and misses (past and present) than exhuming Oliver Cromwell for symbolic torture. I'm not sure that jinja2 and similar are really better for readability or separation of concerns versus TAL, and if some folks don't like TAL for DOM/XML/HTML-ish output, I'm left scratching my head why push templating like meld3 hasn't really taken off. My sense is that ZPT will continue to have its niche outside of Zope, but mostly confined to developers working in Pyramid development. Sean ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope.org fading away ..
On Tue, Mar 11, 2014 at 3:12 PM, Tres Seaver tsea...@palladion.com wrote: When I try to visit the mailing list web interface, Firefox is stopped in its tracks by Secure Connection Failed An error occurred during a connection to mail.zope.org. The OCSP server has no status for the certificate. (Error code: sec_error_ocsp_unknown_cert) There are two problems with HTTPS on mail.zope.org: our own certificate is expired, and the issuer (StartCom) has an intermediate certificate which expired even longer ago: http://www.sslshopper.com/ssl-checker.html#hostname=mail.zope.org/ I hope there is some luck folks having with resolving this. One can always take the approach Jim took with ZODB-dev, moving it to Google Groups, but there is real value in the archives regardless of where the current lists live. And the archives are de-facto inaccessible now -- if nothing else, the archives could be hosted on any static HTTP site and would not need any SSL/TLS/certificate burden. Sean ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thread Number
On Wed, May 22, 2013 at 2:17 AM, Richard Harley rich...@scholarpack.com wrote: Noted, thanks Oh, and if you have some kind of health-checks polling your instances, it may make sense (I have no evidence, just a hunch) to add one more thread to keep that stuff from getting in your way (e.g. munin.zope checks, haproxy heath polling with OPTIONS request, etc). OTOH, maybe the tiny requests like the haproxy checks don't really block for long enough to matter, even if they run every few seconds. Sean ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope and security vulnerability: 20121106
On Mon, Nov 12, 2012 at 5:31 AM, Marcus Schopen li...@localguru.de wrote: Am Montag, den 12.11.2012, 12:07 + schrieb Richard Harley: So, to clarify, does this affect plain Zope 2.10, no Plone? That's still the question to me ;) Why not try product installation and running your instance in the foreground. If anything breaks, comment out any specific inapplicable hotfix in __init__.py. A brief look at the source will tell you that it is unlikely you should need to do this, as conditional imports check what to apply. Sean ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] changing permissions on classes/methods at runtime?
On Wed, Mar 7, 2012 at 3:47 AM, Jürgen Herrmann juergen.herrm...@xlhost.de wrote: now i had a use case where i need to mark some templates and methods as public because they use an internal authentication. One of the challenges I see is that InitializeClass() removes the original 'security' attribute of the class, so you end up having to copy the security info to a module global before calling InitializeClass() the first time. Then, if you have that copy of the class security information, you should be able to re-use it, modify it, re-apply it to the class, then call InitializeClass (again). Sean ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] changing permissions on classes/methods at runtime?
On Wed, Feb 29, 2012 at 7:12 AM, Jürgen Herrmann juergen.herrm...@xlhost.de wrote: hi all! is it possible to change permissions and roles on classes/methods at runtime? normally you'd attach security declarations inline in your class definition code: I don't off-hand know why just monkey-patching the security attribute of your class and then calling InitializeClass() again would not work, but the idea of changing these at runtime after initial zope startup sounds a bit odd, possibly dangerous. What is it that you are trying to do? Sean ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] IPublishTraverse adapters and permissions
I've been scratching my head on this one, any help is appreciated: I've been using a traversal adapter implementing IPublishTraverse with an application I am developing, and I want to have certain behaviors of my traversal adapter protected by CMF permissions I'm otherwise using. Right now, my adapter is registered in ZCML: adapter for=sdut.cportal.interfaces.IPortalMediaAsset zope.publisher.interfaces.http.IHTTPRequest provides=zope.publisher.interfaces.IPublishTraverse factory=.editvia.AssetTraverser / And my AssetTraverser subclasses Acquisition.Explicit, but I'm not sure how to make this participate in the security machinery. Ideally I want to do this within AssetTraverser.publishTraverse(): sec = getSecurityManager() sec.checkPermission(CMFCore.permissions.ModifyPortalContent, self.context) But this will fail, likely for some acquisition voodoo I'm having trouble figuring out (Five.BrowserView is somehow capable of dealing with this scenario, but I'm not sure how to make my traversal adapter do the same sort of thing). Or, even more simply, I would love to be able to use ClassSecurityInfo.declareProtected(permission, name) for some names my traversal adapter will use (this does not do anything meaningful other than generate warnings). Any ideas/pointers appreciated. Thanks, Sean ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope/Plone and control version management
On Wed, Jun 18, 2008 at 1:04 AM, Garito [EMAIL PROTECTED] wrote: Hi! I'm trying to figure out how to work with a control version software as subversion or git (I prefer git) I would like to know how to configure the system and how to work and commit Can you point me to an url with this information? This question is too inspecific. It might help to find out what data/files you want to put under version control? Sean ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope/Plone and control version management
On Wed, Jun 18, 2008 at 2:51 AM, Garito [EMAIL PROTECTED] wrote: What I would like to know is how I use git to work with my workgroup Do I use only a centralized zope/plone or I need to install them for every member of the workgroup? I'm supposing you are doing python package and Zope2 Product development, and in this case you definitely want each developer to have their own checkout(s) of code as a working copy on their own workstation or personal space on a shared server. It is likely you want to use separate databases (Data.fs) files for development (and periodically keep them in sync by copying a packed copy of the database from a central place). If you wish to use a shared database late in development, you can use ZEO or Relstorage to host the database over the network and have each developer workstation connect to that. I would not recommend a shared database for early development on any project, just for late-stage development and testing. Witch parts of zope/plone can I put on it? If you are developing on top of Zope and Plone, you likely do not need either of these in svn/git, just your own Python code packages. With svn you can alternately create bundle checkouts of your own modules and products interspersed with checkouts from svn of third-party modules you are using. You would only version-control code, not content in the database. I would like to use a control version manager but I have no idea how to configure my space, witch files can I control and so on see above. In a ruby on rails scenario I create the RoR project and a database then I create a git repository and begin to work (some commits here) Then if some other members join to the project I make a checkout from the master repository and begins to work all with the same database You can do this, if you want; see above. Again, I recommend against a shared database early in development; there is more that can go weird in ZODB than in ActiveRecord fronted RDBMS on a shared copy in early development. But I zope/plone I can't figure out what files I put to the repository and what happens with data.fs (some modifications are made in the database, what happend with them? I suppose I can't control them with subversion/git) You do not want to fork zope or Plone, but develop your own packages on top of them. That should make this easy, only modify your own code, unless you absolutely know what you are doing. There are other ways to modify behavior of other Products and the platform (monkey patching, subclassing existing components, writing new skins, creating generic setup profiles). Stuff in the database is not in svn; do not put code in the ZODB (e.g. templates edited through-the-web, though this is possible in some cases with some Plone skin code). Keep code on the filesystem. Content is not versioned in svn, if you need revisions of content objects in the database stored in a CMS like Plone, there are other mechanisms for that (e.g. CMFEditions is part of Plone 3.x). I hope this helps. Sean ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] zope.schema: association vs. containment in Object, List
All, I want to be able to spell out certain zope.schema.Object fields in my interfaces as contained while other fields are declared as associated/related objects. I'm interested in describing this in the interface itself, and not leave such intrinsic characteristics to the implementation class. It is useful, in my experience to have the ability for utility components to know this about a field (for example, relational database deletion cascades, JSON serialization of an object and its contained objects, neglecting related objects, or you might end up serializing the entire graph). Are there any community best practices for doing this? My previous attempts at doing this have been to subclass List and Object for OneToMany and OneToOne field types respectively, and treat original Object and List(value_type=Object()) fields as always implying containment. Is this reasonable? Are there other or better approaches? Thanks, Sean ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope.schema: association vs. containment in Object, List
On Fri, Jun 6, 2008 at 7:24 AM, Fred Drake [EMAIL PROTECTED] wrote: Still another approach, if you're looking to create software support and the first isn't suitable, is to use fields that provide additional interfaces that indicate the nature of the references. My application (and I suspect other cases will) need to do just this; a marker on the field eliminates the ambiguity. Schema and interfaces should allow for complete domain modeling in such a way that expresses intent of the business case, regardless of the persistence mechanism or implementation details underneath, so I think I'll continue to use custom field types marked with an IRelationshipField interface, and assume the built-in Object, List fields are only used for containment. The only thing I do not like about my direction is that it leaves ambiguity when working with code from other components/projects that do not share this assumption. For RDBMS persistence of schema-defined content, z3c.dobbin (for example) assumes Object fields are just foreign-key relationships, but the downside to this simplification is an inability to meaningfully interact with a simple persisted containment scenario (a complex object that has contained specialized child objects intrinsically part of the primary object; trying to serialize to JSON with clear recursion boundaries for example, would be difficult). In my application-case, I'm looking to do something similar, but hoping to do so with a clear bright-line between associations and containment. Note: removal of such ambiguity is helpful for the possible use case of schema/interface bootstrapping/generation from UML tools for model-driven-design. Sean ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope.schema: association vs. containment in Object, List
On Fri, Jun 6, 2008 at 7:26 PM, Fred Drake [EMAIL PROTECTED] wrote: On Fri, Jun 6, 2008 at 8:08 PM, Sean Upton [EMAIL PROTECTED] wrote: mechanism or implementation details underneath, so I think I'll continue to use custom field types marked with an IRelationshipField interface, and assume the built-in Object, List fields are only used for containment. The only thing I do not like about my direction is I'd rather not make any assumption at all; use two interfaces: one that indicates references, and one that indicates containment. That allows you to raise an exception for fields that don't specify, which would be useful during testing and debugging. For each such field found, you'll get to decide how to handle it and stamp the appropriate interface on the field. Makes sense, so I would have two subclasses of zope.schema.Object, one for containment, another for association -- each with respective interfaces and validation behavior. Explicit declaration of intent for each field is what I'm aiming for anyway. Thanks. Sean ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope-dev] BTreeFolder2.objectIds() - accessing _tree.keys() slow
[EMAIL PROTECTED] wrote: I'm pretty sure this works. Ok, I get it now. I misread it the first time. This returns the equivalent of running self.objectIds(spec=self._mt_index.keys()) on the current trunk/release code, which should be identical to self._tree.keys(), but much, much faster. I'm still somewhat ignorant as to why self._tree.keys() is so slow with 100k-plus objects (waking up too many persistent objects?), I suspect the cost is in creating ghosts for all of the persistent objects. No objections here--I like this patch. Thanks Shane - glad it makes sense. I don't have contributor rights - would you or anyone else be willing to gateway this diff for me and commit such changes? Thanks, Sean ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] BTreeFolder2.objectIds() - accessing _tree.keys() slow
Hacking objectIds() as follows (diff against trunk pasted inline) - gettting ids off of the meta type index for all used meta types - seems to make things much quicker. Two questions: Are you sure this actually works? _mt_index.keys() is supposed to provide a list of all meta_types used in the folder. To get the object ids from it, you'd need something like this: ids = [] for d in self._mt_index.values(): ids.extend(d.keys()) The structure of _mt_index is documented in a comment: _mt_index = None # OOBTree: { meta_type - OIBTree: { id - 1 } } I'm pretty sure this works. The in each OIBTree in _mt_index, the keys are ids of contained objects for all respective meta types in the folder - I use self._mt_index.keys() to list all meta_types and leverage your original code that runs when spec parameter has been passed gets run every time - loops through all meta_types does a union() of set and ids for each meta_type. This returns the equivalent of running self.objectIds(spec=self._mt_index.keys()) on the current trunk/release code, which should be identical to self._tree.keys(), but much, much faster. I'm still somewhat ignorant as to why self._tree.keys() is so slow with 100k-plus objects (waking up too many persistent objects?), but using the ids stored a few layers deep in the _mt_index seems a viable alternative with the same expected return result. With a bit more effort put in, the diff pasted below should be more complete and illustrate better: Index: BTreeFolder2.py === --- BTreeFolder2.py (revision 41285) +++ BTreeFolder2.py (working copy) @@ -341,21 +341,22 @@ # Returns a list of subobject ids of the current object. # If 'spec' is specified, returns objects whose meta_type # matches 'spec'. -if spec is not None: -if isinstance(spec, StringType): -spec = [spec] -mti = self._mt_index -set = None -for meta_type in spec: -ids = mti.get(meta_type, None) -if ids is not None: -set = union(set, ids) -if set is None: -return () -else: -return set.keys() + +mti = self._mt_index +if spec is None: +spec = mti.keys() #all meta types + +if isinstance(spec, StringType): +spec = [spec] +set = None +for meta_type in spec: +ids = mti.get(meta_type, None) +if ids is not None: +set = union(set, ids) +if set is None: +return () else: -return self._tree.keys() +return set.keys() security.declareProtected(access_contents_information, ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] BTreeFolder2.objectIds() - accessing _tree.keys() slow
I have very large BTreeFolder2 (CMFMember via BaseBTreeFolder in Archetypes) - has about 260k items in _tree - objectIds() is painfully slow, as is self._tree.keys() - I've casually observed using the meta type index to get the object ids is many orders of magnitude faster. Hacking objectIds() as follows (diff against trunk pasted inline) - gettting ids off of the meta type index for all used meta types - seems to make things much quicker. Two questions: 1. Can this be considered safe in all cases (I'll code this behavior on a Subclass or in a monkey patch)? 2. If yes to #1, is there an appropriate place to lobby for this to be changed, perhaps in BTreeFolder2 product itself? Index: BTreeFolder2.py === --- BTreeFolder2.py (revision 41285) +++ BTreeFolder2.py (working copy) @@ -341,10 +341,14 @@ # Returns a list of subobject ids of the current object. # If 'spec' is specified, returns objects whose meta_type # matches 'spec'. + +mti = self._mt_index +if spec is None: +spec = mti.keys() + if spec is not None: if isinstance(spec, StringType): spec = [spec] -mti = self._mt_index set = None for meta_type in spec: ids = mti.get(meta_type, None) Thanks, Sean +--+ Sean Upton SignOnSanDiego.com Site Technology Supervisor The San Diego Union-Tribune 619.718.5241 [EMAIL PROTECTED] 350 Camino De La Reina San Diego, CA 92108 Plone Powered! plone.org ++ python.org ++ zope.org +--+ ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] storing passwords
Or SimpleUserFolder: create a user folder class in a Zope product that subclasses both SimpleUserFolder and OFS.Folder. Then put ZSQL methods and a few TTW python scripts in the folder contents of an instance of this class to make it work. I've done something similar to this with relative success. Sean -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2003 1:34 PM To: Markus Bengts; [EMAIL PROTECTED] Subject: Re: [Zope-dev] storing passwords exUserFolder is your friend. -aj --On Sonntag, 15. Juni 2003 23:28 Uhr +0300 Markus Bengts [EMAIL PROTECTED] wrote: Hello, I want to use the same usernames and passwords in Zope and some other servers. The usernames and password digests are stored in a PostgreSQL database, and a given username and password -pair can be checked with a simple SQL-query. I need to modify Zope to look up and to save passwords in PostgreSQL. Has someone done this before? Can someone tell me which source file contains the method that reads or saves passwords? Can this be done by modifying only one source file? Markus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] storing passwords
There are many possibilities. I would try exUserFolder first (it might work with just configuration (no code) for your use-case), and if you have needs more specific, you can develop your own user-folder type (a bit harder, but not much) using SimpleUserFolder (a generic base class for rolling-your-own user folders). Sean -Original Message- From: Markus Bengts [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2003 2:22 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [Zope-dev] storing passwords Thank you! I am still trying to find out what Zope is and what it can do. I somehow missed the alternative user folders when I skimmed through the Zope Book. This was a pleasant surprise: http://www.zope.org/Products/user_management On Sun, 15 Jun 2003 [EMAIL PROTECTED] wrote: Or SimpleUserFolder: create a user folder class in a Zope product that subclasses both SimpleUserFolder and OFS.Folder. Then put ZSQL methods and a few TTW python scripts in the folder contents of an instance of this class to make it work. I've done something similar to this with relative success. Sean -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2003 1:34 PM To: Markus Bengts; [EMAIL PROTECTED] Subject: Re: [Zope-dev] storing passwords exUserFolder is your friend. -aj --On Sonntag, 15. Juni 2003 23:28 Uhr +0300 Markus Bengts [EMAIL PROTECTED] wrote: Hello, I want to use the same usernames and passwords in Zope and some other servers. The usernames and password digests are stored in a PostgreSQL database, and a given username and password -pair can be checked with a simple SQL-query. I need to modify Zope to look up and to save passwords in PostgreSQL. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Versions: should they die?
If I remember correctly, though, there was still a lot in question about legitimate use cases. The web-services cluster-safety use-case I sketched out here (http://mail.zope.org/pipermail/zope3-dev/2002-October/003112.html) is still (perhaps) a valid case, but ONLY in a very-carefully constructed application (and even that case leaves me wanting a better app-level way to do it). I think I agree with the feeling that versions should stay in ZODB, but be depreciated/marked as official evil in ZMI. Sean -Original Message- From: Guido van Rossum [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 5:08 PM To: Paul Winkler Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Versions: should they die? To anyone not following the Problem committing zope 'version' objects thread on [EMAIL PROTECTED]: It's been proposed that Versions should be at least stamped in the ZMI with big warnings, or possibly disabled altogether. Numerous users have been bit by the fact that versions basically do not work as advertised, leading in various cases to zodb corruption or work that can't be saved. There are other security issues that Oliver Bleutgen raised privately which I won't state here. Comments? Could we get at least some warnings in the ZMI before 2.6.2 final? IMO versions do nothing except complexify the code. I believe it's an official Zope Corp position to discourage them for new projects. Yet Jeremy Hylton seems to think that they are somehow useful and has carefully preserved them in ZODB 4 (== Zope 3). If it were up to me, they would have been gone, with a big helping of YAGNI! --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] support for low level HTTP Response logging?
Are you mainly concerned about the http headers in the response, or the response body? If it is just the headers, Squid's log_mime_hdrs feature will log all HTTP headers from both the request and response for you for each request. If nothing else, perhaps it's a start... Sean -Original Message- From: Romain Slootmaekers [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:25 AM To: [EMAIL PROTECTED] Subject: [Zope-dev] support for low level HTTP Response logging? Yo, searching the zope site and googling yielded too many data and no info, so I might as well ask it here. We are very interested in finding out the exact HTTP Responses that the zope server pushes towards the client. So is there a low level hook for logging the http responses ? We want the exact response, complete with all header info etc. Why not just sniff, you might ask? Well, we are developing a web application for mobile microbrowsers, and most these clients have no hooks for attaching a sniffer client side. Installing a sniffer server side is not possible for other reasons. TIA, Sloot. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] zope connector
Use ZEO and DBTab and a shared mounted object database that both Zope instances have access to. Put any objects that need to be accessed by both Zope servers in that common storage mounted at some folder-level in your zope setup. Sean -Original Message- From: Tena Sakai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 1:56 PM To: [EMAIL PROTECTED] Subject: [Zope-dev] zope connector Folks, I am interested in accessing resorcces from two or more zope servers. For example, br hahaha! br dtml-var name=funny br hohoho! br The code snippet above will, when rendered, yield: hahaha! hehehe! hohoho! provided that the entity funny ultamately returns hehehe! and accessible within the name space. But how could I do this if the object funny is on a different zope server? Ie., how can I connect two name spaces on different zope servers in some not-so-caotic fasion? Thanks in advance. Regards, Tena Sakai ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Zope Server Control
The buttons work; you are not clicking with enough pressure. Try again until your wrist hurts. ;) I agree, this looks nice. I also wonder about adding total memory usage for each Zope ZEO client. Also, this layout could be tweaked to have a more vertical look and likely work in a PyQT app on the Zaurus or similar handheld. Sean -Original Message- From: Paul Winkler [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 1:47 PM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Zope Server Control On Fri, Feb 07, 2003 at 03:16:46PM -0500, Shane Hathaway wrote: Okay, I added some features to the mockup: http://hathaway.freezope.org/Images/controller_snapshot2.png I dig it. (clicking on the mockup buttons) Ungh. Can't seem to make it work. (drool drool) -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's AMERICAN TWIN THE MAYOR OF REVENGE! (random hero from isometric.spaceninja.com) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] RE: [Zope] Time module in python scripts
I hope you all don't mind, but I've moved this to Zope-dev. I would like to propose that it be possible without modification (default behavior) in a future version of Zope to import the time module and its methods safely into TTW Python Scripts. I haven't used this yet in TTW code (I've had to work around it), but it seems like it might be good to un-restrict it, especially for CMF installations that heavily utilize date metadata. time.localtime(time.time()) is, AFAICT, the only way to determine if you are in standard or DST at any point in time during the year. You can't have a page-template appropriately display correct times for content from multiple time-zones without this (I'm sure many CMF installations will need this), and it seems silly to write an external method for this; allowing import of the time module is a good workaround, but I would suggest it be enabled by default in Zope. My particular use-case is AP newswire stories which are in EST/EDT. The timezone offset changes for this twice a year, and having a fixed calculation based upon some assumption of a fixed timezone offset in my own timezone (PST/PDT) won't work. I need to be able to know my own timezone offset to do the math, and for this I need to use time.localtime(time.time())[8] to get it. I'm sure community sites and things like blogs, or anything else that works across the geographic boundaries of differing time zones could use this too. Thoughts? Sean -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 2:01 PM To: Chris Muldrow Cc: '[EMAIL PROTECTED]' Subject: Re: [Zope] Time module in python scripts Apparently. See /lib/python/Products/PythonScripts/README.txt or the Zope Developer's Guide Security chapter for info on how to enable it... - C On Thu, 2003-02-06 at 16:49, Chris Muldrow wrote: I'm trying to do Import time Time=time.time() in a Python Script, but I'm getting login prompts and Error Value: You are not allowed to access time in this context messages. Is the time module one that's restricted in Python Script? Chris ___ Zope maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] ESI Integration in Zope
Out of curiosity, Beyond coding XHTML-based ZPTs with tags in the ESI namespace, what else is needed in Zope to make this work? Does Zope need to set an HTTP header for downstream proxies to know that the content of the page is supposed to be processed for ESI? Sean -Original Message- From: Brian Lloyd [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: RE: [Zope-dev] ESI Integration in Zope What is the roadmap for ESI integration in zope ? (http://www.zope.com/News/PressReleases/OpenSourceESI) In which version of zope : 2.6, 2.7 or 3.0 ? Thanks. We're shooting for Zope 2.7. Jim still needs to work out a lingering issue with it. Brian Lloyd[EMAIL PROTECTED] V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] ClientCache and Large Files
This sounds like the most appropriate solution, as long as you are careful to make sure that Squid or other forward cache is configured to cache files that large, it isn't likely going to be by default. Sean -Original Message- From: Casey Duncan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 8:21 AM To: Guido van Rossum; Brian R Brinegar Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] ClientCache and Large Files On Monday 16 December 2002 10:53 am, Guido van Rossum wrote: We're running ZEO with Zope 2.5.1. We currently have a ZEO Cache (ClientCache) of 200 meg. Occasionally someone will download a 300 meg file that completely blows away the client cache. Is there a way to prevent this? You're best bet would be to put a proxy cache in front of Zope. Zope's not very efficient at serving big static files like this compared to Apache or squid. I'm afraid not; this isn't a very typical use case. You could implement a file size limit, or increase the cache size to be more than twice the largest expected dowload (the cache is implemented as two files, each of which is limited to half the nominal cache size). I think it would be nice to be able to control cacheability of certain objects. However it smells like a YAGNI, especially with good front end caches that can take care of it. -Casey ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Re: Unsecure design of ExternalFile
I'm not familiar with ExternalFile, but likely plan to use it in the future. I think a list of expressly permitted directory locations (including all subdirectories) might be more secure. You can't go wrong with a default directory for files (perhaps $INSTANCE_HOME/var/files or something?), but otherwise an implicit deny all - then leave it up to the user to edit some access list file in the product (for example, call it 'diraccess.txt'). Does this seem reasonable? Sean -Original Message- From: Craeg K Strong [mailto:cstrong;arielpartners.com] Sent: Thursday, November 07, 2002 8:25 AM To: Jonagustine Lim Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [Zope-dev] Re: Unsecure design of ExternalFile Yikes! Scary stuff. However, here are some things to consider: a) ExternalFile advertises itself as being a developers/ content authors tool, not really for production. Of course, most folks end up using it for production, anyway... ;-) b) Once created, an ExternalFile cannot be retargetted to point to another file in the file system c) The permission to create an ExternalFile instance is different than the permission to edit one. The permission to create an ExternalFile instance should be assigned judiciously... d) the Zope server should be run as a user that has very limited permissions. e) Even if a user *does* have permission to edit an ExternalFile, they only have whatever permission the user running the Zope server has. If the Zope user (usually webserver or something like that) does not have permission to write to /etc/passwd, it doesn't matter if you create an ExternalFile pointing to it, you still can't write to it... However, the points you raise are valid, as they are Zope-specific, and the zope user webserver *would* probably have permission to do your (1) and (2) examples. What would you recommend? Perhaps there should be a predefined list of forbidden directories for ExternalFiles? The problem is that-- in the development scenario-- the very things you mention below might be what you legitimately *want* to do as a developer. Well, thanks for pointing this out. Let's continue the conversation a bit, perhaps a good solution will reveal itself (even if it is only some kind of warning in the documentation...) Regards, --Craeg PS I am CC-ing the zope-dev mailing list, as I think this warrants a wider audience Jonagustine Lim wrote: Hi! I just noticed that it's possible to create or replace any files in the filesystem using the ZMI with ExternalFile installed. Possible exploits: 1. Use ExternalFile web interface to replace Zope Data.fs 2. Create a .py file in /Zope/Extensions and run it by creating an Extenal Method. Anyway, I hope you can fix this or put a warning up. Jon ___ 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] Integrating ZEO with Zope 2.7
Hmm... My thought: on Win32, bind the TCP port to the loopback address. Since Win32 in _most_ cases is not a multi-user system, this would have the general effect of keeping this from being an issue (unless you ran terminal services on your Win32 server). This obviously doesn't solve security concerns for things like virus/worm/script issues, but I would think that on Windows, if you have that problem, this is the least of your concerns (since there is likely another way a script could attack your underlying storage). On Unix, use a socket file and setup file permissions as you see fit... Surely, the appropriate action could be taken by a single startup script, based upon the platform? Sean -Original Message- From: Toby Dickenson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 12:31 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Integrating ZEO with Zope 2.7 On Wednesday 02 Oct 2002 8:03 pm, [EMAIL PROTECTED] wrote: +1 +1 IMHO, Zope releases should, in this scenario, be configured by default to use a custom_zodb.py file with ClientStorage over a socket at startup, That is a tempting idea. Use of a TCP socket has security implications that make it a bad choice for a default, unless we implement mutual authentication. Use of a unix socket has the obvious problem that it wont work on windows. ___ 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] Proxy Object / __getattr__ / Acquisition
I am trying to implement a proxy class (specifically for the purposes of multi-versioned document objects (folderish proxies that contain the object that they proxy to). I am using __getattr__ within my product, and the code pasted below works, and does not break Implicit acquisition (because the object that _CurrentVersion points to is subclassed from SimpleItem, which implements Implicit Acquisition). However, because of the way that this messes with Acquisition, certain things like accessing the ZMI pages or acquired methods can be quite slow (but work). I suspect that this is because an instance of this class actually acquires items through the item it proxies to, which conveniently is contained inside it, which makes acquisition work for the instance of this class (albeit magnitudes slower). I would really like to make this perform better and act properly, but I'm at a loss as to the right way to do this. Thoughts? Sean class MVProxy(Folder): Object acting as proxy to multiple document implementations serving for each version of this document; this is a proxy object class Subclasses OFS.Folder.Folder def __init__(self, id, title=''): self.id = id self.title = title timestamp = str(int(time.mktime(time.localtime( currentId = id+'_'+timestamp current = DocumentCoreImpl(currentId, title) self._setObject(currentId, current) self._CurrentVersion = current def __getattr__(self, name): return getattr(self._CurrentVersion, name) +--- | Sean Upton | Site Technology Supervisor SignOnSanDiego.com | Development Integration The San Diego Union-Tribune | 619.718.5241 [EMAIL PROTECTED] |PATH_TO_THE_DARK_SIDE = 'c:\winnt\system32' +--- ___ 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] Slow zope on windows 2000?
For what its worth, a long time ago, with an ancient version of Zope running on the original W2k Professional on my home machine (minus any service packs), Zope (running as a service) was magnitudes of order slower after coming back from a system Hibernate; I no longer hibernate/power-manage Win2k, nor run Zope on Windows, so I'm really not sure why this was, and likely will never know. Sean -Original Message- From: Adam Manock [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Slow zope on windows 2000? I'm not sure that is the case you know. Oracle 9i Linux is faster on my Linux Athlon 800 than the same release on my Win2k Dual Piii 1GHz. Also my Win box has 1Gb ram, while my Linux box has only 512Mb... In other news Apache is reported to run faster on Linux that Win2000, as is PostgreSQL. Samba is reported to provide double the throughput of Win2000 native file services, with half the response delay for client requests. Very much so! On a Win2k with Dual P3 1Ghz Zope runs slower than the same install on a Linux box with 1 P133 (I have tested this on multiple different configurations and every time it comes out the same) This, however, is almost an order of magnitude difference, and may need further investigation... Adam ___ 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] Slow zope on windows 2000?
Actually, I believe that NT Workstation ran dynamic web apps better than NT server. This was because the tuning on NT server out of the box was really geared toward file-server type applications. I assume the case is the same with win2k. At that, I don't think is would be noticeable enough, except under real stress. Sean -Original Message- From: Arndt Droullier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 12:13 PM To: [EMAIL PROTECTED] Subject: AW: [Zope-dev] Slow zope on windows 2000? This, however, is almost an order of magnitude difference, and may need further investigation... Adam There´s also a difference between Win2000 and Win2000 Server. The Server version is optimised for network and system operations(thread/memory allocation) and really much faster than the normal edition. I suppose you will have a magnificant performance difference with Zope on these two systems. Arndt ___ 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] Zope Binary Release Changes for Zope 2.6
In theory (and as a Debian user), I like the idea of support for as distro-neutral of a linux distribution as possible; on the other hand, supporting RedHat 7.2 is a must for Zope accessability to new developers (since there are a lot of RedHat 7.2 systems out there). Is Python 2.1 under woody really compiled with LFS support? That would be great, but still likely means that your best bet is to build Zope from source, or just use the Zope packages in Debian Main. Anyway, Debian 3.0 uses glibc 2.2 (I'm not sure if this is a big deal???). A thought: rather than require yet another Zope binary distribution to be packaged for Debian by Zope Corp (esp. Since Zope packages are fairly decent in Debian), the Zope.org download page might want to contain a link to: http://packages.debian.org/cgi-bin/search_packages.pl?keywords=zopesearchon =namessubword=1version=allrelease=all for Debian users, just like it mentions the contributed RPMs. Sean -Original Message- From: Nagarjuna G. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 9:39 PM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Zope Binary Release Changes for Zope 2.6 On Tue, Aug 20, 2002 at 10:57:14AM -0400, Matthew T. Kromer wrote: Zope is currently released in three binary formats: Windows - i386 Solaris 2.6 - SPARC Linux RH 5.2 - i386 All binary releases come with python 2.1.3, built without large file support. We are proposing to change the binary distributions to newer releases, at least on the Solaris and Linux platforms. The new Solaris binary would be Solaris 2.8. The new Linux binary would be RedHat 7.2 based (i.e. glibc 2.1). It is very likely that the supplied Pythons would be built with large file support *enabled* for these platform, unless some unforseen compatibility issue arose. Is it difficult to make the GNU/Linux binary distro independent? All the binaries that I have been using from the Zope site work to the best of my knowledge on distros. Why mention Redhat specailly? I work on Debian Woody 3.0, and the python 2.1 is compiled with large file system support. Nagarjuna ___ 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] PathIndex doesn't index last part of path
I'm all for putting together a proposal to do this, soliciting comments, and contributing to the effort. What would be the right venue for that? On the other hand, AFAIK, the addition of a depth query feature to PathIndex as it is wouldn't likely break existing indexes. And given that Andy's need (get metadata for a Cataloged object, given some cached referecne, in this case a path, to it) could be filled by the Catalog itself (or changes to it), I'm not sure what other features would be needed out of PathIndex? In brief, what I would like: results = Catalog.searchResults(path={'query':myContainersPath, 'depth':0, 'level':0}) Where depth means: -1 In parent of path specified (up one) 0 Contained within path specified 1 Contained in path specified or directly in one of its children 2 Same as above, but also in child container's child No depth specified means behavior is like current functionality in path indexes. A brief glance at docs and code gives me the impression that this could peacefuly co-exist with level. Sean -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 11:14 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope-dev] PathIndex doesn't index last part of path - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 00:58 Subject: RE: [Zope-dev] PathIndex doesn't index last part of path One thing that seems to be feature-broken about PathIndexes, though, is the lack of ability to specify a depth (not level, but depth of a match, for example, to specify items). Above and beyond support for a specific place within a hierarchy, there needs to be a simple mechanism to support query for an absolute path, and only objects directly matching that path, or directly contained within that path. Following this thread I appears to me that there is a need for several new functionalities inside the PathIndex (maybe a new PathIndexNG). In this case I suggest to write a proposal to collect all requirements. I volunteer to help on the implementation. Andreas ___ 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] PathIndex doesn't index last part of path
If the question is begged, why use the catalog: for folders with thousands of objects, applications like CMF skins can be amazingly slow using ObjectManager methods and CMF-wrapped equivalents; they also do not provide sorting. For applications like this, both containment and flexible query support (sorting) are important. Use-case: thousands of objects in a Portal Folder. CMF Skins like Plone use ObjectManager based methods to get a list of siblings in a sidebar. When you have 1000+ items in the folder, the fact that this takes 2 minutes on an Athlon 2000+/1GB server, isn't batchable, and isn't sortable is sort of sad. Use of the Catalog makes much more sense here (I can sort, and the performance penalty is low, so I can take a slice of the resulting sequence of brains, and do getObject() over each one; even if a container could be improved performance wise to have a quick objectIds() method, ObjectManager interfaces have no mechanism to specify sorting based on metadata like you could do with a Catalog query). One thing that seems to be feature-broken about PathIndexes, though, is the lack of ability to specify a depth (not level, but depth of a match, for example, to specify items). Above and beyond support for a specific place within a hierarchy, there needs to be a simple mechanism to support query for an absolute path, and only objects directly matching that path, or directly contained within that path. The workaround for this is to add a custom FieldIndex that indexes the string value of the path of the items container, and this requires putting a python script in the root of a CMF portal, for example, that is acquired by all indexed content. It would be nice if the PathIndex machinery could do this out of the box. http://lists.zope.org/pipermail/zope-cmf/2002-August/014167.html http://lists.zope.org/pipermail/zope-cmf/2002-August/014204.html Sean -Original Message- From: Casey Duncan [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 4:55 PM To: Andy McKay; [EMAIL PROTECTED] Subject: Re: [Zope-dev] PathIndex doesn't index last part of path A PathIndex is designed to make it more efficient to aggregate objects at various levels of containment. Their primary use case AFAIK is to allow to to limit queries to particular places within a hierarchy. The idea is to eliminate recursive searching of leaf level folders when you want all objects under a higher level and its child levels. Also, by not indexing the nodes themselves, the index is an order of magnitude smaller and searches are therefore faster and it takes less room and is faster to update. In fact there is no need to index the entire path of an object in the catalog. Even with no Indexes defined, ZCatalog already does this for you. The uid of every entry in the catalog is the full path to the object (as a string). Unfortunately, ZCatalog does not expose this to the surface but you can write a trivial external method to do it. And I might entertain adding a ZCatalog API to do so if I had a good use case. Right now you can only access entries by RID. Now that begs the question, If you already know the path to the object you are looking for, why are you using the Catalog in the first place? I highly doubt doing what you describe below is faster than just directly accessing the object. In fact I'd be willing to be its slower, especially since you are searching two indexes to get it. Unless of course these are dynamically generated objects of some kind (no stored in Zope). As for making RIDs more permanent, that would basically require a rewrite of the Catalog, and make certain operations much more expensive. As it stands, your application should only assume that RIDs are valid within a single transaction. You should use the path to uniquely identify objects, or some application defined uid that gets cataloged otherwise. -Casey - Original Message - From: Andy McKay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 17, 2002 6:22 PM Subject: [Zope-dev] PathIndex doesn't index last part of path This is mostly a question for AJ, but any input would be great. This bug bit me today and is documented here: http://collector.zope.org/Zope/449/ISSUE_TRANSCRIPT/view I dont understand the brief argument against this one, it would make sense to me to able to pull an object out of the catalog based on its path. For example if I want /foo/bar/blammo, currently this means there is only one way of pulling the an object of the catalog given this path. Thats to send (path='/foo/bar', id='blammo'), rather than (path='/foo/bar/blammo'). Why wouldnt we want it this way? One thing I have done is store a whole bunch of references to objects as selected by the user. These are essentially random objects and the quickest way is to pull them back out of the catalog. Of course I cant do more than one object per query (unless Im missing some other way) Id love to do
RE: [Zope-dev] More Zope 2.6 requests
+1 on #2 - definitely useful. Sean -Original Message- From: Jim Washington [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 5:26 AM To: [EMAIL PROTECTED] Subject: [Zope-dev] More Zope 2.6 requests While we are asking, I have two things that I would consider valuable additions to Zope 2.6: 1. UserSniffer. Currently an External Method, but has functionality that should be available OOTB to assist making those (horrors!) browser-dependent hacks. It has other uses, too, like explaining to clients that their browser is five years old and needs the free upgrade that is available. 2. Support for HTTP_X_FORWARDED_FOR. Many (most?) of us run zope behind Apache ProxyPass or Squid, and the Zope logs therefore save the ip address of the proxying machine rather than any semblance of where the client browser is. I realize that other proxies do not always follow the rules, etc., etc., but I think that using HTTP_X_FORWARDED_FOR if not null would be better than a log full of 192.168.1.1. Apologies if these have already been discussed under another heading. -- Jim Washington ___ 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 )
TF ZMI, was: RE: [Zope-dev] Zope 2.6 and OrderedFolders
You know, the funny thing is that TF really accomplishes the goals of a ZMI/UI-improvement hack (unclutter a view of a folder to VISUALLY separate the software/content/presentation space) implemented, IMHO, in the wrong place. I would think there is another way that a Folder UI could be uncluttered without the magic of TF, and that is add translucency (items are there, but obscured from view) to the UI layer - that is, the ability to VISUALLY unclutter different users' views of objects in a folder via ZMI; views could be stored per user. For example, you could select ZSQL Methods and RDB connections in a folder to be hidden from everybody but the Database programmer; you could keep these and Python Scripts obscured from the view of a content person or presentation designer, etc. Well, they wouldn't be hidden, but visually 'compacted' and relegated to a small drop-down box at the bottom of the page to unclutter it... so the standard tabled object list wouldn't iterate over objectIds() or objectValues(), but instead a higher-level filter function. A complimentary filter function would render the 'hidden' objects as a sequence as well. __ZMI manage_main Now:__ ===\===\===\===\--- ZMI tabs % :::=== TP.NAME. .SZ. ..LM.. []-- -- []-- -- []-- -- []-- -- []-- -- [RN][CT][CP][DL][I/E][SA] --- Buttons for checked __ZMI With Translucency:___ ===\===\===\===\--- ZMI tabs % :::=== TP.NAME. .SZ. ..LM.. []-- -- []-- -- []-- -- []-- -- []-- -- [RN][CT][][][][][Hide] --- New HideBtn Hidden Items: [Select Item... [v] [Open][Unhide][ViewAll]--- Buttons for doing things ^ with hidden | items | +--- ViewAll = pop-up new window This would be more visually convenient. I'm thinking of trying to monkey-patch OFS.Folder to just do this. Of course, with these kind of modifications, for any given folder, there's no mandatate that anything need to be hidden at all. Thoughts? Sean -Original Message- From: Casey Duncan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 12:02 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Zope 2.6 and OrderedFolders On Wednesday 06 March 2002 02:49 pm, [EMAIL PROTECTED] allegedly wrote: Is this a suggestion that TF go into the core? One other (major) problem with TF is that it breaks session tracking site-wide, or at least the ability to have more than one session id manager per Zope instance in CST; I'm not sure about sessions in Zope 2.5... TF seems to have too much normalcy-hijacking magic to go into the core, if you ask me... Sean -1 on TF in the core. Nice hack, but too much magic and there are significant performance implications if I remember correctly. Also Zope 3 will render TF superfluous. /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [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] Zope 2.6 and OrderedFolders
Is this a suggestion that TF go into the core? One other (major) problem with TF is that it breaks session tracking site-wide, or at least the ability to have more than one session id manager per Zope instance in CST; I'm not sure about sessions in Zope 2.5... TF seems to have too much normalcy-hijacking magic to go into the core, if you ask me... Sean -Original Message- From: Eric Roby [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: [Zope-dev] Zope 2.6 and OrderedFolders I think OrderedFolders is a great product and should be in the core ... but does this also mean that TransparentFolder will get those parts (that Shane mentioned some time ago) optimized that kept it from making it into the core before?? If so ... sounds like a win-win situation. ___ 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] Zope 2.6 planning - call for contributors!
Perhaps synchronization over ZEO as well as XML-RPC? Thoughts? Sean -Original Message- From: Andy McKay [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 03, 2002 5:04 PM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Zope 2.6 planning - call for contributors! I'd like to see the ZSyncer Product, or a variant thereof, included in Zope by default. That is, I'd like Synchronization, to a be a default property of Zope objects, so that objects/content can be pushed and pulled between two Zope installations. Thanks for the enthusiasm but its still too hacky to go into the core. Ideally I'd rather put in the time so this is more transparent in Zope 3. -- Andy McKay ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Zope 2.6 planning - call for contributors!
Hmm... would this still work with Squid or Apache caching in front of Zope? I assume that since each browser can accept different transfer-encodings, this has to be done as close to the browser as possible, otherwise content sent in one transfer encoding would be sent to every user if it was to be cached (in other words, instead this would have to be done using the experimental Squid TE code)... Sean -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 2:36 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Zope 2.6 planning - call for contributors! I've modified HTTPResponse and ZServer/HTTPResponse.py to allow for gzip content encoding on a response-by-response basis. I'm mostly using this with xml-rpc, but it could be generalized and combined with a gzipper- cache manager. I'd like this. It would help with the lack of transfer-encoding by Squid. ___ 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] PDF-specific Bug in the ZServer implementation??? Orjust strange behavoiur of IE?
Acrobat uses something called byte-serving, which is a pain to support sometimes on the server-side, because it essentially amounts to serving parts of a file up to a given byte offset; when Acrobat acts as an HTTP client, it requests the PDF file, and once it has enough of the top of the doc to get header info from the file, it is able to omit downloading the whole thing and request portions of the file between 2 byte offsets, which represent the start and end of a page, as part of the http request. Byte-serving, unfortunately is not implemented in all http servers (or is broken in some, i.e. Apache 1.3.14). I'm not sure what the story for ZServer is, but I am curious to find out if there have been any developments in this regard... More info in the IETF RFC for HTTP 1.1: http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.12 Sean -Original Message- From: Joachim Werner [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 12:28 PM To: [EMAIL PROTECTED] Subject: [Zope-dev] PDF-specific Bug in the ZServer implementation??? Or just strange behavoiur of IE? Hi! This is my first post in the new year, so best wishes for 2002 from Germany! And on we go with my problem: I have a ZClass-based Class derived from File. It holds PDF documents. SOME (not all) of them do not auto-open in Acrobat Reader as they are supposed to if MS IE 5.x is used. Opera etc. seem to work. The files themselves are o.k., and opening in Acrobat Reader AFTER downloading (via right mouseclick/save as) works fine, too. If the same document that doesn't auto-open when downloaded fom the Zope server is downloaded from plain Apache, it works ... The configuration is Zope 2.4.1 (binary release, python 2.1, linux2-x86), python 2.1.0, linux2 on a SuSE Linux with Apache as Proxy server (via proxy_pass). I checked the HTTP header with WGET, and they are identical for working and non-working PDF docs. The mime type is set to application/pdf ... Any hints on that? Joachim ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] 100k+ objects, or...Improving Performance of BTreeFolder...
these results with OFS.Folder.Folder yet. I'm too lazy/busy to comparison test. - I'm relatively sure that, in my app, the text index BTrees in the Catalog are very 'bushy' (more so than normal) because I am indexing people's full names, and street addresses, which means there are less common words than indexing, say, an every-day document. - Also, I want to make it clear that if I had a data access API that needed more than simple information about my datasets (i.e. I was trying to do reporting on patterns, like CRM-ish types of applications), I would likely wrap a function around indexes done in the RDB, not in Catalog. My requires no reporting functionality, and thus really needs no indexes, other than for finding a record for customer service purposes and account validation purposes. The reason, however, that I chose ZCatalog was for full text indexing that I could control/hack/customize easily. My slightly uninformed belief now is that for big datasets or enterprise applications (whatever that means), I would use a hybrid set of (faster) indexes using the RDB's indexes where appropriate (heavily queried fields), and ZCatalog for TextIndexes (convenient). I'm sure inevitable improvements to ZCatalog (there seems to be community interest in such) will help here. - I wonder if directory-storage combined with ReiserFS might make for an interesting future ZODB choice for this sort of app. Sean = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [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] ZCatalog
what do you mean by fuzzy? Do you mean with wildcards, NL, or something else? -Original Message- From: Dirk Datzert [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 1:03 PM To: [EMAIL PROTECTED] Subject: [Zope-dev] ZCatalog Hi, I'm looking for a howto or a hint for fuzzy search in german and english with ZCatalog / CatalogQuery Can anybody sent me a URL ? Thanks Dirk ___ 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] ZCatalog
Personally, I am of the opinion that sending a Catalog raw queries is not very useful for really powerful searching... hopefully this changes in the future, but for now... Since catalog doesn't have anything built-in that does this, other than globbing vocabularies, you have to do this within your appliction. What you want to do is hijack and rewrite user queries before sending them through a catalog query... for example: word = 'dancing' newword = re.sub('ing$', '*', word) #newword is now 'danc*' which This would work with plural words as well, as long as you have a useful set of patterns for word endings... For alternate spellings, abbreviations, and synonyms you would need to create lookup tables and indexed methods that took advantage of them for text indexes. This works only for text indexes though... In summary, use query rewrites for word endings and auto-wildcarding (the work is done at search time)... and use methods that weight and translate your text in your product code (the work is done at index time)... Sean -Original Message- From: Dirk Datzert [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 1:38 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] ZCatalog the search engine htdig has a fuzzy feature which automatically search for different endings or alternative spelling of a word, based on the ispell algorithm [EMAIL PROTECTED] schrieb: what do you mean by fuzzy? Do you mean with wildcards, NL, or something else? -Original Message- From: Dirk Datzert [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 1:03 PM To: [EMAIL PROTECTED] Subject: [Zope-dev] ZCatalog Hi, I'm looking for a howto or a hint for fuzzy search in german and english with ZCatalog / CatalogQuery Can anybody sent me a URL ? Thanks Dirk ___ 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] Competition
Uh, this is brand clarification... Sometimes people (well, people who don't pay enough attention) don't get that company X is associated with product Y. Look what happend to Borland when they changed their name to Inprise but kept the old product names. For those folks who don't pay attention to every detail of goings on in the Zope community, or are not subscribed to lists, or are new to Zope, I imagine that a name discrepancy could be confusing... I hope you aren't saying that basic, well thought-out, marketing strategies are somehow predatory behavior? Let's not even try to compare this to hijacking in the style of a certain Redmond-based company. Sean -Original Message- From: Clark O'Brien [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 3:57 PM To: Casey Duncan; R. David Murray; Chris Withers Cc: Stephan Richter; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Competition I don't think ZC feels this way. Note the comment by Hadar Pedhazur, Chairman of Zope Corporation: comment at:http://www.zope.com/News/PressReleases/DC2ZC This name change is intended to ensure that Zope and the company that develops Zope are more closely associated with one another in the marketplace. --- Casey Duncan [EMAIL PROTECTED] wrote: I think its only competition in the same sense as I am competing with all of you for oxygen. Let's call it coopetition. /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [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 ) __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.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] Competition
I'm going to suggest that this is off-topic for zope-dev, as this is a list fostering cooperation among developers who do not mind sharing their 'beans' and who do not hold the delusions of conspiracy theory. If you are not willing to play by the ad-hoc cooperative social contract of this development community, please go away. This is my last post on this matter, and I suggest others follow suit. Anyway, you do know all kinds of embarrassing health problems can happen from hoarding beans, don't you? Sean -Original Message- From: Clark O'Brien [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 4:44 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [Zope-dev] Competition No I am not implying anything other then there is competition in the Zope marketplace and ZC has positioned itself to be the one that ends up with the most beans. This is what makes the free market work and I would do the same thing if I was in their shoes. However, I am not in their shoes, and therefore don't want to brand their company and don't want to add my beans to their pile of beans. Thats all I was saying. Clark --- [EMAIL PROTECTED] wrote: Uh, this is brand clarification... Sometimes people (well, people who don't pay enough attention) don't get that company X is associated with product Y. Look what happend to Borland when they changed their name to Inprise but kept the old product names. For those folks who don't pay attention to every detail of goings on in the Zope community, or are not subscribed to lists, or are new to Zope, I imagine that a name discrepancy could be confusing... I hope you aren't saying that basic, well thought-out, marketing strategies are somehow predatory behavior? Let's not even try to compare this to hijacking in the style of a certain Redmond-based company. Sean -Original Message- From: Clark O'Brien [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 3:57 PM To: Casey Duncan; R. David Murray; Chris Withers Cc: Stephan Richter; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Competition I don't think ZC feels this way. Note the comment by Hadar Pedhazur, Chairman of Zope Corporation: comment at:http://www.zope.com/News/PressReleases/DC2ZC This name change is intended to ensure that Zope and the company that develops Zope are more closely associated with one another in the marketplace. --- Casey Duncan [EMAIL PROTECTED] wrote: I think its only competition in the same sense as I am competing with all of you for oxygen. Let's call it coopetition. /--- Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [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 ) __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.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 ) __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.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] Searching
I think this could be done well at the application level, above the Catalog if done right, but one would have to have good synonym translation table specific to their application. I do this in an application using a TinyTable with translation information for abbreviations (i.e. VW printed in a classified auto ad gets expanded to Volkswagen, so people can search for both)... If there was any sort of thesaurus database of sorts available to your application, I suppose, in theory, one could do some synonym-oriented indexing, profided that you index a method that brute-force weights the real words by outputting them a greater factor of times than the synonym (i.e. index a method that outputs the original text 3 times and synonyms for the meaningful words (non-stop words) in that text perhaps once. This is not difficult from a development perspective, but involves having synonym data and deciding what words should be translated to their synonyms, and what ones should not. I think the real issue here is not having a database of synonyms - and, at that, you would have to have one for whatever language(s) you needed to support. Sean -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 1:24 PM To: Dirk Datzert Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Searching Dirk Datzert writes: I'm looking for a search tool which can do semantic/synonym search. Can this be done via ZCatalog ? Not out of the box. You could place something before ZCatalog (which parses subquerie for search term and expands them into a set of synonyms). But you would need to work quite hard to get true semantic search... 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 ) ___ 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] ZCatalog becoming empty when using Update in conjunction with ZPatterns
Are you using any virtual hosting setup of any kind? If so, switching from using a base class of CatalogAware.CatalogAware to CatalogPathAware.CatalogAware might solve this problem... Sean -Original Message- From: Jean Jordaan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 1:59 AM To: [EMAIL PROTECTED] Subject: [Zope-dev] ZCatalog becoming empty when using Update in conjunction with ZPatterns Hi all I had a ZCatalog with about 3500 DataSkin instances indexed. Then I started to index instances of a regular ZClass as well. Then I added another index, to catalog an additional property of this ZClass, and hit Update Catalog. When Zope returned from updating, there were no records in the Catalog, though the Vocabulary was intact. I see that I cannot search for the DataSkin metatypes using the Find Objects ZCatalog tab: they don't show up in the Find objects of type field. So perhaps this is why updating failed. However, now the Catalog is not accepting any entries. I originally did the cataloging using this kind of loop on all the classes I wanted indexed:: ids = container.Roundup.Issues.defaultRack.getPersistentItemIDs() for id in ids: object = container.Roundup.Issues.defaultRack.getItem(id) Catalog.catalog_object( object , string.join( object.getPhysicalPath() , '/')) When I try to run that again, I still get There are no objects in the Catalog. upon return. When I run it using a newly created catalog ('testCatalog') instead, it works fine. Could anyone perhaps explain what's happening here? Regards, Jean ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Overriding base class method / CatalogAware mixin
I'm having the same problem described in: http://lists.zope.org/pipermail/zope-dev/1999-November/002427.html My class inherits from a few base classes including CatalogAware as a mixin; I'm trying to override a method in my core API superclass (which uses MySQLdb, and thus mx-DateTime), with a similar method that is compatible with Zope's DateTime; I got a TypeError that I think is due to ExtensionClass when trying to call the superclasses method, even with an instance of the subclass passed as the first variable. Since this didn't work, I ended up having to create a temporary instance of the superclass and inside a method of the subclass - not entirely graceful, but it works. Is there a more graceful way to get around this? (I'm using Zope 2.3.3/Python 1.5.2 at the moment). Sean = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [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] Deleting objects in BTreeFolder
Oops... this isn't a problem; I accidentally passed _delObject() an object reference instead of its id... Doh. My bad. Sean -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 07, 2001 5:01 PM To: [EMAIL PROTECTED] Subject: [Zope-dev] Deleting objects in BTreeFolder Wondering why calling _delObject() in BTreeFolder, which inherits _delObject() from ObjectManager, doesn't work with BTreeFolder._getOb(), and I have to use BTreeFolder._delOb() to delete a contained object in a BTreeFolder. Is this incompatibilty by design? I run into trouble using _delObject (traceback #1 below), getting a deliberately raised AttributeError, but changing this to _delOb raises a key error when calling 'del tree[id]' on line 195. Thoughts? Sean = Traceback #1: Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: rebuildDataFromSQL) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: rebuildDataFromSQL) File /usr/lib/zope/lib/python/Products/a4Profiles/ZopeCirculation.py, line 169, in rebuildDataFromSQL (Object: Traversable) File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 340, in _delObject (Object: Traversable) File /usr/lib/zope/lib/python/Products/BTreeFolder/BTreeFolder.py, line 179, in _getOb (Object: Traversable) AttributeError: (see above) = Traceback #2: Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: rebuildDataFromSQL) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: rebuildDataFromSQL) File /usr/lib/zope/lib/python/Products/a4Profiles/ZopeCirculation.py, line 169, in rebuildDataFromSQL (Object: Traversable) File /usr/lib/zope/lib/python/Products/BTreeFolder/BTreeFolder.py, line 195, in _delOb (Object: Traversable) KeyError: (see above) = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [EMAIL PROTECTED] = ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev 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] Web Services for Zope
{snip} trying-to-auto-generate-a-wsdl-from-my-product'ly yours Hmm... in the interim, what about using ZPT (+ParsedXML, of course) and a few python scripts to do this? Sean ___ 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] Vulnerability: attacking can get file list and directory
On a high-traffic site, wouldn't the log get really big, really quickly with tracebacks? It is also nice to have the tracebacks in the browser window for debugging... Why not just enable tracebacks to clients from trusted IP address ranges or domains... Set this up as an option in Z2.py? Anyway, that's my 3-mile high take on it... Sean -Original Message- From: Shane Hathaway [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 7:59 AM To: Oliver Bleutgen Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Vulnerability: attacking can get file list and directory Oliver Bleutgen wrote: From a non-technical, PR-wise point of view let me add that this type of vulnerability easily gets zope mentioned on lists like bugtraq. The perception is that these thing really are vulnerabilities. You're right, a quick search on google for path disclosure vulnerability yields a lot of hits for lots of applications. It troubles me that people consider PDV to be important at all when the client-side trojan bug is still fully exploitable on all browsers including IE and Mozilla! (AFAIK) Client-side trojans, which can cause your browser to invisibly post a comment on a weblog, execute a financial transaction, or break into servers you maintain, are a major risk. PDV just yields information you might give out anyway. But maybe we could deal with it anyway by writing an error.log instead of sending the traceback to the browser. What do you think? Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ 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] Vulnerability: attacking can get file list and directory
Personally, I think this really should be an integration issue instead of a Zope issue: use a front-end proxy server (i.e. Squid) and set up ACLs to prevent this... Sean -Original Message- From: Oliver Bleutgen [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 9:10 AM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Vulnerability: attacking can get file list and directory Hi shane, Oliver Bleutgen wrote: From a non-technical, PR-wise point of view let me add that this type of vulnerability easily gets zope mentioned on lists like bugtraq. The perception is that these thing really are vulnerabilities. You're right, a quick search on google for path disclosure vulnerability yields a lot of hits for lots of applications. It troubles me that people consider PDV to be important at all when the client-side trojan bug is still fully exploitable on all browsers including IE and Mozilla! (AFAIK) Client-side trojans, which can cause your browser to invisibly post a comment on a weblog, execute a financial transaction, or break into servers you maintain, are a major risk. I had put something about that theme at the client-side trojan wiki, put I'll repeat myself since you mentioned it ... Methinks the creators of the http/1.1 rfc were aware of the dangers we call client-side trojan and wrote the following: 9.1.1 Safe Methods Implementors should be aware that the software represents the user in their interactions over the Internet, and should be careful to allow the user to be aware of any actions they might take which may have an unexpected significance to themselves or others. In particular, the convention has been established that the GET and HEAD methods SHOULD NOT have the significance of taking an action other than retrieval. These methods ought to be considered safe. This allows user agents to represent other methods, such as POST, PUT and DELETE, in a special way, so that the user is made aware of the fact that a possibly unsafe action is being requested. Naturally, it is not possible to ensure that the server does not generate side-effects as a result of performing a GET request; in fact, some dynamic resources consider that a feature. The important distinction here is that the user did not request the side-effects, so therefore cannot be held accountable for them. Zope really should not accept GET requests to dangerous manage_* (or other) methods, that would ensure it's at least compliant with the spirit of that rfc. If the user decides to use a browser which allows javascript to auto-submit forms and stuff, it's his choice. I have a feeling that other ideas like checking referer etc. are bound to fail after one or two generations of new browsers. We should have in mind that the same people who will design these browsers already had the bright idea of implementing auto-submitting of hidden forms. PDV just yields information you might give out anyway. But maybe we could deal with it anyway by writing an error.log instead of sending the traceback to the browser. What do you think? I fear it would make working with zope harder for unexperienced users. When working with apache/perl on linux, I always had a tail -f /var/log/httpd/error.log running in a terminal, but if you're solely working on windows without using the power of cygwin or other tools, this might get tedious. What I would like to see is a error product which can be freely configured to show more or less details depending on its context (i.e. user/role etc.) and able to optionally write to a log file. I know this is a lot of work and has its technical problems, but it's a nice imagination. cheers, oliver ___ 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] Problems with CatalogAware?
Right now I only call index_object() after an edit, as I was assuming that after adding things would be automatically taken care fo for me, but obviously this is not the case. There are, indeed, default values in some properties within the class __init__ method. I think what is happening is that I am indexing methods (not properties), and since my factory method doesn't call an explicit reindex_object() after some properties are changed (code below) I am having problems. I wonder if I call self[id].index_object() after self._setObject(id, ad) if that will do the trick? Thanks for the reply, Sean def manage_addAdItem(self, id, title, REQUEST=None): Zope managment interface create method for AdItem ad=AdItem(id) ad.setId(id) ad.setTitle(title) if REQUEST is not None: ad.setAdBody(REQUEST['adBody']) if (len(REQUEST['keywords']) 0): ad.setKeys(REQUEST['keywords']) ad.setAdDateMulti(=REQUEST['Ad'], mm=REQUEST['Admm'], dd=REQUEST['Addd']) ad.setRtDateMulti(=REQUEST['Rt'], mm=REQUEST['Rtmm'], dd=REQUEST['Rtdd']) ad.featureURL=REQUEST['featureURL'] self._setObject(id, ad) if REQUEST is not None: return self.manage_main(self, REQUEST) -Original Message- From: Toby Dickenson [mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001 6:28 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Problems with CatalogAware? On Fri, 31 Aug 2001 15:17:27 -0700, [EMAIL PROTECTED] wrote: I have a python product that has a class derived from CatalogAware and Folder. I programmatically add instances of these (1000s of them) on an automated basis every day in the early morning. My problem is that whenever I do this, the Catalog is updated with some problems: 1 - Metadata is skewed: DateTime objects are cataloged, and they end up with the wrong date ('2001/01/01') instead of today's date, even though the actual property contains today's date. The index in question is built from a property. 2 - Text indexes only get a portion of their text stored in the metadata, not all of it. The index in question is built from a class method in the product code. Appologies if you already know this. CatalogAware will automatically reindex if an object is added, deleted, or moved. However it does not automatically reindex if properties are changed. It sounds like your index might contain the default (initial) values for these properties. Do you need to add a call to reindex_object() after changing them from the defaults? 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: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)
A lot of folks who do power searches, say, librarians or other trained researchers, familiar with the bells and whistles of more powerful search engines, will want a simple operator for proximity, with the ability to specify proximity depth: For example: Lexis-Nexis:Sean w/2 Upton (where w/2 is within 2 words) Also, lexis doesn't count stop-words in proximity indexes. Folio/Nextpage: Sean Upton@2 IMHO, the syntax is clean and very brief in the Lexis-Nexis case and should suppliment a more generic Sean ... Upton style search. Sean -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 16, 2001 2:59 AM To: Erik Enge Cc: [EMAIL PROTECTED] Subject: Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited) Erik Enge wrote: On Fri, 15 Jun 2001, Chris McDonough wrote: Once you're satisfied with the implementation, would you be willing submit the module to the collector? Will do. Have you thought about how users actually are to use exact-phrase? What I'm thinking I will do here (currently I've only been testing explicitly with adjoinedby in the query) is to insert adjoinedby in phrased searches: erik enge- erik adjoinedby enge erik ... enge - erik near enge What do you think? These both look like good spellings, and I think erik near enge would be a good alias for erik ... enge as well.. - C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev 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] ANNOUNCE: Zope 2.4.0 alpha 1 released
My impression is that FileStorage implements a 32-bit id-type-thingy somewhere (look at ZODB docs, I think there is something about this somewhere), which limits it (in addition to the Linux kernel ext2 fs limit), to 2GB. With 7.5 GB, I'd use a more advanced storage like the new - well, not quite released ;) - Berkeley (libdb3 based) storages, though I haven't tried anything like that myself... Does anyone have any comments on the reliability of PartitionedFileStorage in this regard as a temporary solution? Is anyone using PartitionedFileStorage in a production environment? Sean -Original Message- From: Holger Lehmann [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 2:33 AM To: Brian Lloyd; [EMAIL PROTECTED] Subject: Re: [Zope-dev] ANNOUNCE: Zope 2.4.0 alpha 1 released Hi Brian, hi all, great to hear this. Now comes a tricky question: Suppose we are running a Linux Kernel 2.4.x and using the latest Python 2.x distribution. And supposing we can recompile all code if neccessary: How large can a Data.fs grow until it breaks ? We need to be able to store about 7.5 GBytes (note: Gigabytes) in the ZODB. I would rather use the ZODB than a LocalFS Thanks in advance - Holger Am Donnerstag, 31. Mai 2001 22:55 schrieb Brian Lloyd: Hello all, Zope 2.4.0 alpha 1 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.4.0a1/ Highlights of what is new in Zope 2.4: - Zope 2.4 supports (and requires) Python 2.1 - New restricted execution architecture - WebDAV Level 2 locking support - New WebDAV Access permission - A new built-in 'Authenticated' role - Product refresh without restart during development - New Drop-in indexes support for ZCatalog Be sure to see the Zope 2.4 Migration Guide: http://www.zope.org/Products/Zope/2.4.0/Zope24MigrationGuide.html which outlines the new features and provides other important information for users of Zope 2.4. For more information on what is new in this release, see the CHANGES.txt and HISTORY.txt files for the release: http://www.zope.org/Products/Zope/2.4.0a1/CHANGES.txt http://www.zope.org/Products/Zope/2.4.0a1/HISTORY.txt For more information on the available Zope releases, guidance for selecting the right distribution and installation instructions, please see: http://www.zope.org/Documentation/Misc/InstallingZope.html Note that this is an alpha release, so it is available as a source distribution only. We will make binary releases available with the first beta release. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- --- catWorkX GmbH Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 (0700) catWorkX Tel: +49 (40) 890 646-0 Fax: +49 (40) 890 646-66 mailto:[EMAIL PROTECTED] http://www.catworkx.de http://www.catbridge.de ___ 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] ANNOUNCE: Zope 2.4.0 alpha 1 released
Perhaps I was looking at old docs, as the docs had indicated that filestorage uses 32-bit position pointers; I'm guessing that this has since changed... Sean -Original Message- From: R. David Murray [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 9:54 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [Zope-dev] ANNOUNCE: Zope 2.4.0 alpha 1 released On Fri, 1 Jun 2001 [EMAIL PROTECTED] wrote: My impression is that FileStorage implements a 32-bit id-type-thingy somewhere (look at ZODB docs, I think there is something about this somewhere), which limits it (in addition to the Linux kernel ext2 fs limit), to 2GB. With 7.5 GB, I'd use a more advanced storage like the new - well, not quite released ;) - Berkeley (libdb3 based) storages, though I haven't tried anything like that myself... FileStorage does *not* have a 2GB limit. The only 2GB limit is the old Linux filesystem limit. I know this, because I've had 2GB Data.fs files on FreeBSD. --RDM ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope] Extended characters in Zope
Hmmm, as far as the ZCatalog part; I know that at some point it was only working iwth 7 bit ascii characters, then someone put a patch in so that it supported Latin-1 (ISO-8859-1) in the vocabularies... I don't know when (or if) that was ever integrated into the zope core, but I'm sure that if you search Zope.org for Latin-1 you should find it... Sean -Original Message- From: Ausum [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 7:05 PM To: [EMAIL PROTECTED] Subject: [Zope] Extended characters in Zope I have to deal with documents and its attributes wich have a lot of extended characters in them, like the "" or the hyphened ""..."" vocals in spanish. The ones who download the pages in Windows don't have any trouble. The ones who use Mac will see strange characters, as it might be expected. Updating a page or propertie from a Mac will cause the same problem for Windows users, because Zope doesn't convert the extended characters to the web-friendly format when properties are added. I'd also like to search in Zcatalog using these extended characters, ie. "Effects of El Nio", from any platform. Is there a workaround for this situation? Ausum p.d I'm sure that european Zopists have already faced this problem and probably found a solution. Unfortunately I couldn't find it at the archives. ___ 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 : ZCatalog
Right, use a python method, with a regular expression, like: import regsub def stringchange(self): """ Accepts a string passed as self, modifies it using a regex substitution, and returns modified This example strips multiple spaces, puts in a single one """ result=regsub.gsub('[ \t][ \t]+', ' ', self) return result You could use regsub.sub to replace the first instance of a pattern in a string, or regsub.gsub to do all. Look in /lib/python1.5/regsub.py to see all the regular expression substitution functions avalable. The regex syntax is pretty vanilla; (i.e. chapter 1 of the book _Mastering Regular Expressions_ has enough detail to use regular expressions well enough in python). There is also a split function in regsub.py that might be of use here, using the '/' as the delimiter pattern; I think you would use it like this: mylist = regsub.split(self, '/') You could then write your function to get a particular item, like city, language, etc by obtaining the slices from mylist. Good luck, Sean -Original Message- From: Ivan Cornell [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 2:40 AM To: Fabien Germain Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Problem : ZCatalog Fabien Germain wrote: Hello, I've got a problem with a search form. I have a ZCatalog with lots of entries. I added the index "absolute_url" in order to search by the files url. Why ? 'cause I have files in organized folders like that : /language_name/country_name/city_name/element I'd like to do a search on "#language_name and #country_name and #city_name" in my catalog, so I use the absolute_url. But the problem is that the search only looks the end of the absolute_url string, that's to say "element" in my exemple. How could I search in all the string ? Well, my solution would be to create a python method that splits your url up into indexable words and then index this method in ZCatalog. One of cool features of the ZCatalog is that it can index objects methods. Hope this helps Ivan PS Please send text only mail to the list -you'll probably get more replies if you do! ___ 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] Zope and Linux flavors
Perhaps another option (for those with a load-balanced server setup), use an intel 7170 (not cheap, but cool) load-balaning appliance, and use the loadbalancer as a router; the 7170 has the abilitiy to set rules for where it sends the load to based upon expression-matching in the URL. This means that you could intercept all "/manage*" URLs with the load balancer and direct them to a box that returns nothing but error pages. I haven't done this (I have a 7140, this model's lower-end sibling), but I have looked extensively at the docs for this, and it might be an option for the cash inclined. Other than that, this doesn't get you out of securing your boxes. I would recomend traditional security strategies (putting servers proxied behind a DMZ), and a box-by-box audit of services using a port scanner. Other than that, I can recommend one of two realistic strategies in dealing with Linux (I dont' claim to be a security expert though) - either: build the distro yourself (i.e. LFS, www.linuxfromscratch.org), and keep tabs on what services are running, as well as monitoring the lwn (www.lwn.net) security page every week, or... Commit to a particular distribution/vendor and get on their security mailing list post-haste. Apply all patches before putting the box out on the net at large. And keep the box patched. Also, monitoring lwn's security page or bugtaq isn't such a bad idea. If you have the time to invest in it, consider a network intrusion-detection system and tripwire to watch the filesystem changes on your boxes. Sean -Original Message- From: Simon Coles [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 9:50 AM To: Ragnar Beer Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Zope and Linux flavors Which Linux distributions are you using for running Zope and how easy it was for you to maximize security of your server? We run a variety of RedHat 6.1, 6.2, and 7.0 and Debian 2.2, as well as Solaris. We apply all the latest updates, turn off services we don't use, and proxy Zope through Apache. We then block all but port 80 at the router. The servers are then firewalled off from the rest of the network. Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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] way to cleanup form input text?
Write an external method in python that uses regsub.sub or regsub.gsub functions. This allows you to do regular expression substitutions. regsub.sub does a replace on the first match only regsub.gsub does a replace on all matches Ex: import regsub def process_a_string(self): """Processes a string, where string is passed as self""" result=regsub.gsub('[ \t][ \t]+', ' ', self)#Filters all duplicate spaces and return result #tabs down to one space char where somestring is our example attribute call this in dtml: dtml-var expr="process_a_string(somestring)" is somemethod is a method returning a string: dtml-var expr="process_a_string(somemethod())" Sean -Original Message- From: Chris Beaumont [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: [Zope] way to cleanup form input text? Is there a simple way to clean up text that's input to HTML forms in Zope? I have a situation where one of my users is copying text from her web browser and pasting it into Zope. I'm sure this is a common problem.. The input text ends up having runs of whitespace characters in it that I'd like to prune down to one each..and I think it's also been the source of some non-standard, unwanted characters that cause problems if they end up getting into our database.. I'm sure someone else has encountered this problem before..what's the best way to fix it? The string module doesn't seem to have what I want.. (or at least I couldn't find it..) The worst problems seems to be long strings of spaces or tabs that I'd like to turn into single spaces..(each) Thanks! Chris [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 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] Pub. Company trying to patent object publishing?
Hi folks, Not trying to hijack the list for a rant, but I thought this might be of interest to some folks. Belo, a media company that owns a variety of TV stations, newspapers, and online operations, looks to be trying to patent what looks to essentially be object publishing (in a similar sense that Zope has - content-neutral objects published to multiple media). The irony of this all is that I found this in an article on the Newspaper Assn. of America's web site; the article embraces open-standards (XML, industry standards, etc), in the news content industry, and the author of the story is Belo's CTO. It seems to really fly in the face of truly embracing open standards to patent such ideas (especially in-light of the fact that publishing wit XML really demands OO techniques in the first place); and I think that there is plenty of prior art in Zope. Supposing their patents are approved, could/would a company such as Belo start using legal tactics the second that a company or individual someone started developing an open-source product on the Zope platform that cut into the news-content vertical? Or if someone at a newspaper wanted to use Zope's object database for a data-store or content-neutral repository, would they be a target? The second to the last section of the article is what I refer to, at: http://www.digitaledge.org/monthly/2001_01/newlanguage.html I think Zope would be prior art. I'm curious to see what everyone else thinks. Sorry to bring up a non-technical question on a mostly technical-related list, but I think this is something that needs to be discussed... Thanks, Sean = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [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 )
RE: [Zope] Zope vs. java solutions : looking forward ?
Frankly, it is a lot easier to program in python; it is much more forgiving in a lot of senses. If your developers like the idea of Java because it is OO, have them consider python's strong abilities, and the fact that they will be working with a persistent object system / ODB that can make their OO code much more than a filter for relational datasets. That said, if your developers like java because it runs in a VM on several platforms, Zope is cross-platform, and I guess Zope could be considered similar to a JVM: a platform for running cross-platform code. I don't think Java is a wise direction for a small firm; at least in Zope, you can start off with simplicity, and graduate to bigger solutions without a huge investment in lots of developers in the future. What kind of site do you have? For e-commerce, you are going to have heavy use of relational databases, but for publishing articles, you might want to consider using the ODB, something you are not going to get with Java solutions... I use Zope with XMLDocument and custom ZClasses for content, and it is a lot easier to get things done quicker that way... Sean -Original Message- From: Henk Schets [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 12:58 AM To: [EMAIL PROTECTED] Subject: [Zope] Zope vs. java solutions : looking forward ? Hi, We are planning a major update of our site (i.e. building a new one). At the moment our site is based on php,cgi, MySql and Apache on Linux. However, for the new site, we are considering other 'platforms' like Zope or Enhydra. I find Zope an elegant solution for our new site because we will be relying heavily on non-technical people contributing articles for publication. But the problem is this : the development will be made by a small commercial firm (the guys who work there are friends) and they are biased towards a java solution because they think this will be a standard for the future. They do not want to invest in learning Zope en end up in not being able to sell their acquired knowledge in this. I should note that, at the moment, they have no experience in Java nor Python, so they will have to learn one or the other. The problem I will be facing is the maintenance of the site and adding new features. What do you guys think ? Does Zope have a future with respect to e.g. Enhydra (this is Python versus Java for internet applications)? Does someone have experience with both and can you comment on the learning curve ? Thanks, Henk ___ 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] xmldocument
Do you have an example of the XML you are trying to use? File size, in bytes? Just curious, as I have had no problems with XMLDocument (in Zope 2.1.x and 2.2.x) working with newspaper stories from AP online in NITF XML... Sean -Original Message- From: Bak@kedai [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 1:34 AM To: Phil Harris; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope] xmldocument On Wednesday 10 January 2001 16:56, Phil Harris wrote: Bak, I can't help you fix it but I can tell you what the problem is, the file is too big for Zope to cope with in one transaction so it starts a sub-transaction and there is a bug in the sub-transactioning engine. The same thing happens with a normal 'File' type as well. You should probably check the collector to see if this has been fixed or even reported. Phil to say the file is big is an understatement. how can adding a news file be too big for zope to cope? unless the default XML Document is huge. i'll peek at the collector. thanks phil -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine I will follow you! ..Damage Inc ___ 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] Proximity searches w/ ZCatalog
Supposedly proximity searches are possible... like "FIDELITY within 8 words of MUTUAL FUNDS." Can't find anything in docs. Anybody have a suggestion here... Thanks, Sean = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [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 )
RE: [Zope] Tux Zope?
I have extensively looked over the documentation, and am in the midst of compiling for the first time on my PC. Haven't tried it already, though; my main reason, is that I operate most of my Linux servers on Sun hardware, and am waiting for the dust to settle on 2.4.0 before I start trying to work with Tux; Tux is (in theory) only tested for i386, thought I don't see any reason (offhand) it won't work on Linux/sparc (unless there are some endian issues I am not aware of with the kernel-space module). The main advantage to Tux is that it caches TCP checksums (for all the content it serves, I believe), reducing CPU load, which seems likes a good idea (especially if you have hardware - like Sun - where your CPU is a bigger bottleneck than the bus, I/O, etc). Anyway, as complicated as it sounds, I am going to be setting up some new servers that likely have a configuration that uses Tux on port 80 (serving images only), Apache on 8080 (serving static pages, and logging access), and ZServer on 9080. Tux would proxy to Apache, and once that was set up, I could set up an Apache mod_proxy connection to Zope using the ideas in the howtos. This way, I get fast serving of images and multimedia via Tux, a full Apache config, and Zope running with virtual hosts. Once I try this config, I will let everyone know how it works out. What I would really like to see is this: Images and multi-media that can be served by Tux, but managed by Zope, so that all content is managed, but serving the images and multi-media is really fast, and not reliant on the ODB. I thought I saw something about a product that is like OFS:File OFS:Image, but saves the files to the filesystem - that kind of thing might work for such a config. Sean -Original Message- From: Jonathan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 09, 2001 3:09 AM To: Zope Mailinglist Subject: [Zope] Tux Zope? Hi all, Just one of those things that keeps popping up on my list of 'things I should try': Zope behind the Tux webserver. For those who do not know: Tux is a very fast webserver for Linux because it operates at kernel level. It can pass requests it can't handle to another server, ZServer for example. Any tried it already? Cya Jonathan ___ 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] filename extension
Perhaps I am wrong here, but couldn't one just use indirect variable lookup within the expression to access the method. There has got to be a way to use _.getitem for this purpose inside the dtml-in, since by default, it doesn't automatically render the method, but I'm not sure how one would pass the param to the method? Anybody have syntax that would work? Sean -Original Message- From: Olaf Zanger [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 5:41 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [Zope] filename extension hi there, some information on zope.org says that in the early future ftp access should be possible not only to dtml-methods, -documents but also to Zsql-methods. to be future proof (and windows software proof) we'd like to have .xxx extensions for all our methods (fac_browse_method.sql that lovely windows understands what programm to start [textpad for sql ...]) unfortuanetly if called like dtml-in expr="fac_browse_method.sql(id=10)" zope gernerates an error. if there is a solution: how? or if not: does anything needs to be changed in the file handling of zope thanks olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Marc Zanger Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.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] Caching/http-acceleration and proxying Zope-served content
I have a question, for anyone experienced in working with Zope and caching proxies: I'm setting up a load-balanced server farm that has nodes that will run Apache and proxy (via mod_proxy) to ZEO clients running ZServer. This farm is routed (both ways) through a layer 4 load-balancing appliance, and all these boxes (both nodes and the balancer) are sitting inside a DMZ with private IP addresses. The public world will access these servers via a firewall box running transparent proxy (actually, I guess, similar to squid's http_accel mode; the semantics here are a bit tricky, as it's more of a inverse trans-proxy). Between Apache and Zope, there would be several virtual hosts, and I'd be using the SiteAccess product. It gets a bit tricky in that I need to access several different virtual hosts inside the DMZ (one for the ZEO farm, and another for a dedicated CGI-based ad server on another box) via the proxy. A more detailed (ascii art) diagram of what I am trying to do, is at http://209.132.8.98/server_ascii_art.txt My question is this: does anybody have any thoughts on the merits of Squid (http accelerator mode) versus Apache/mod_proxy in terms of caching, virtual hosts, and the like when working with Zope sites? Any big pitfalls to this kind of setup with Zope sites? Also, somewhat related, is: if anybody knows if Squid can even handle multiple virtual hosts running on different boxes? Or is squid not suitable for an inverse-proxy running on the border of a DMZ containing more that a single host? I'd really appreciate anyone's thoughts. Once I get this thing working, I'll likely end up writing a howto regarding how I did it, as this seems like a useful setup for a high-volume, heterogeneous (not ideal, but reality), production media site running Zope (and other legacy CGI apps / static content as well)... Much thanks in advance, Sean = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [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 )
RE: [Zope] Caching/http-acceleration and proxying Zope-served con tent
Hmm. That's been my thought on squid as well, given its ground-up design for caching in the first place. My worry, though, is that with squid I lose support for virtual hosts on seperate boxes, because I need to support Zope, static content, and some legacy stuff running ColdFusion on an NT box. My impression is that Squid's http accelerator mode (inverse transparent proxy, or whatever you want to call it) is somewhat of an afterthought compared to the standard proxy use case. If it supports the ability to direct traffic based upon the virtual host address, then squid works - if not, I think I have to go the Apache route... I also wonder just how good Apache's mod_proxy caching is? Any thoughts? Sean -Original Message- From: Shane Hathaway [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 12:59 PM To: [EMAIL PROTECTED] Subject: Re: [Zope] Caching/http-acceleration and proxying Zope-served content [EMAIL PROTECTED] wrote: I have a question, for anyone experienced in working with Zope and caching proxies: I'm setting up a load-balanced server farm that has nodes that will run Apache and proxy (via mod_proxy) to ZEO clients running ZServer. This farm is routed (both ways) through a layer 4 load-balancing appliance, and all these boxes (both nodes and the balancer) are sitting inside a DMZ with private IP addresses. The public world will access these servers via a firewall box running transparent proxy (actually, I guess, similar to squid's http_accel mode; the semantics here are a bit tricky, as it's more of a inverse trans-proxy). Between Apache and Zope, there would be several virtual hosts, and I'd be using the SiteAccess product. It gets a bit tricky in that I need to access several different virtual hosts inside the DMZ (one for the ZEO farm, and another for a dedicated CGI-based ad server on another box) via the proxy. A more detailed (ascii art) diagram of what I am trying to do, is at http://209.132.8.98/server_ascii_art.txt My question is this: does anybody have any thoughts on the merits of Squid (http accelerator mode) versus Apache/mod_proxy in terms of caching, virtual hosts, and the like when working with Zope sites? Any big pitfalls to this kind of setup with Zope sites? I would prefer Squid since its only purpose in life is caching. It follows the "do one thing and do it well" mantra. But whatever your choice, I hope you make use of the new CacheManagement feature in Zope 2.3. It is designed to make things like this straightforward and easy. There's a recent news announcement that links to everything you need--including complete help docs! Shane ___ 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] 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 )
RE: [Zope] Advice on searching/indexing Word documents?
I've been thinking about doing this. I wonder if there are any C filter libraries that read word docs. The word 2000 docs are supposedly non-binary, so you could proabaly write a parser of sorts in python or C/Lex; I used to write text filters in C and Lex for my previous employer - one of these days I will figure out how to extend python with C and do this. I'm thinking about doing this type of thing in order to make PDFs searchable (as well as IPTC catopn data in JPG files). Perhaps in the mean time, one could set up a macro in normal.dat template file that ftps the doc to zope on every save and updates properties containing the full text for the document. Sort of kludgy, but I assume it would work, if you were familiar with VBA coding, and had access to a http client component. Doing it this way would make it so you would likely have to manually reindex the catalog. There might be a way around that though, to automate it... Sean = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [EMAIL PROTECTED] = -Original Message- From: Bowyer, Alex [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 2:45 PM To: '[EMAIL PROTECTED]' Subject: [Zope] Advice on searching/indexing Word documents? 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 == Alex Bowyer IT Consultant, Logica Australasia Tel: +61 2 9202 8130 Fax: +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW: http://www.logica.com.au/ == ___ 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?
Cool. I'll have to take a look at this. Does anyone know if there is any effort aimed at writing document filters for use with Zope? A lot of commercial products used for knowledge management (like NextPage LivePublish, some Intranet search engines, etc) already have features like this, and I would think that a project for document filters would be a good idea, if something like this doesn't already exist. Possible things that could be filtered for input: - The IPTC header data from a JPG/TIF image - comtains a few things like the caption (the same one that you can edit in photoshop) - This would be a good addition to various Image classes. - Office documents (word, excel, powerpoint, wordperfect, staroffice, etc) - PDF and Postscript documents - Illustration files (Illustrator, CorelDraw) The value of such filters to Zope for use in knowledge-management and digital asset management would be great; I'm wondering if anyone is working on anything like this? Sean -Original Message- From: Jonothan Farr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 4:22 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope] Advice on searching/indexing Word documents? I used to write text filters in C and Lex for my previous employer - one of these days I will figure out how to extend python with C and do this. Here's one that's written entirely in Python: http://www.cosc.canterbury.ac.nz/~greg/python/Plex/ I've seen a couple of other implementations out there. --jfarr ___ 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 vs. Enhydra
I agree that people should only build what they need. The nice thing about Zope being open-source is that it evolves well to its communities use cases; I would argue that Zope-based solutions would adapt to user communities that are not a bunch of software engineers working for software companies. I used to work as a developer for an RD company and now work for a dot-com doing the same sort of work, but my priorities are very different. Zope, frankly, is a more pragmatic solution than committing to the Java platform for a variety of problems faced by those of us not working for software vendors, and I think is better suited to an open-source user community. Two particular things: One: Enhydra seems ideal if you have investment in the Java paradigm (i.e. you have Java coders in house). The thing is that Zope has a lot of strengths in the ODB that you can't get with your typical OO Java servelets combined with an RDBMS back-end. For complex relational data, the Java app server approach might make sense, but the thing that sells me on Zope is the fact that their are problem domains that are a total misfit with a relational data paradigm, like online content publishing (media sites), intranet collaboration (workflow objects associated with discussions associated with content created via content management) - not to mention the entire problem domain of XML in general. So, java app servers make sense if you meet all of the following criteria: - have data structures that are tabular, or have a small set of relations to other data - have a full-time DBA - have a full-time Testing Department (test manager, testers) and Formal Software Testing - have at least a senior Java programmer or two - Have a fairly technical project manager that understands how the app server works, in order to divide up work - Fully implement formal documentation standards, including UML, requirements design docs, and EXTENSIVE API documentation - willingness to work on a deadline that is not as tight, putting quality always before expediency In other words, java app servers might make perfect sense for those working in an RD company, ISV, or other vendor selling software, but it creates complexity when you want to extend this to an open development model because the learning curve is steeper, and it's easier to screw something up. If you work with limited resources, and are not building a product that is going to have an expected sale value, but rather only internal use value (i.e. you are a web company trying to get a site up versus a software company selling a $25,000 shrink-wrapped box). When in that position, you need content management built-in; you need portions (like the interface layer) to be as easy as possible (Why should one be required to compile an html file into a DOM binary - why not just use an ODB???); you also are not going to have a testing department, you will have a stricter deadline, have less technical project management, and no docs, and more employee retention problems. The attitude is get it done, with the best possible balance of doing it "right" and getting it up live. Zope fits the bill for most folks who have to work in a pragmatic world of building and constantly refining software for their own use. I'm not saying that we shouldn't have formal docs, testing, etc of software, but that some of us have to maximize quality under certain constraints that guarantee that the Java app server approach would be flawed; Zope fits (python is easy to work with, the presentation layer concepts in Zope are improving, etc). Zope also maps to open-source ideas better, because it allows for a less centralized formal development model, and the idea of constant refinement. In the future, especially in certain vertical markets (like mine, publishing), the folks that comprise your community will not be trained software engineers - they will be folks like librarians, part-time web developers, designers, project managers, and production engineers/sysadmins - and in that open source world, we need to be able to create scalable software systems, but not raise the barriers to entry to make them inhuman. Zope isn't perfect in this regard, but at least it's leaps and bounds better than the alternatives. Two: Perhaps the biggest gripe I have about the "why-not-zope" arguments is simply that they make the assumption that Zope is somehow a product, and so they complain about what it cannot do, rather than realize that zope's primary asset is a strong community and a strong, swift software process; I have seen Zope evolve quite rapidly over the last year-and-a-half; I use that as empirical evidence that Zope grows with its community member's use-cases. Gripes about things like through the web editing, cvs, etc will likely be things of the past in the not too distant future. I think Zope has some advantages over both other approaches in that it has an approach that
RE: [Zope] Zope's . vs _ unsolved issue (Re:To retrieve properties from a dtml document) document)
What kind of content is it that you are uploading to Zope, and what is your workflow? As someone working in the news industry with several online newspapers and also fairly experienced with Zope and content automation, I might be able to make some suggestions that might help you out. Zope has some weird issues with namespaces and syntax that sometimes clash with Python's. That said, I think that things are constantly improving. Perhaps _['identifier'] solves your problem, at the slight cost of being just a bit kludgy. Do you use Zope for your staging server, or just for your live site? There might be ways to use it at both ends, integrate with dreamweaver, and bypass using wget... From the sounds of it, you are using zope as the back end to an "editorial-system" workflow using Dreamweaver, but you are not taking advantage of most of Zope's features that facilitate content management. If I was familiar with your workflow, I'd be happy to provide advice if I could be of any help. Good luck, Sean -Original Message- From: Ausum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 11:20 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [Zope] Zope's "." vs "_" unsolved issue (Re:To retrieve properties from a dtml document) document) [EMAIL PROTECTED] wrote: You still have given no cogent reason for using Zope. If you have only, or predominatly static content, you are paying a huge overhead penalty. If you have mixed static content and dynamic content, use apache and ProxyPass to front-end the dynamic content, and apache to serve the static content. Then you have no conversion worries at all on the static content. Hello Jim, I'm finding myself greatly dissapointed that Zope doesn't have a built-in routine for this "." vs "_" problem. Although it may not be a big issue if you remain in Zserver and Unix, it is if we want the Zope's users base to keep growing, because we all benefit from it. And this point is a sort of unpleasant barrier for not-programmers Windows users like me. Dreamweaver is great for layout and design, and for nothing else. In despite of its templates and libraries and everything else, it would be unclever to let the journalists and editors in charge of content creation at my job, to open Dreamweaver and insert their stories in each page, asking them to not forget to write the summary in the description tag and the story title as the page title tag. :) For the time being we can't afford a 3 Mb/s connection (our current bandwith needs) so we must upload to a remote server almost two hundred pages daily. And even when relying page updating on trainned personnel exclusively, there's been this funny experience that the printed edition releases before the digital one, meaning that we have to deal with this gap between releases all the time. So that's why we need Zope, and why we need to get over its behaviours. Maybe it's time to throw the ball to Macromedia's ground. :) Thanks again for your comments, Jim Ausum [EMAIL PROTECTED] wrote: On Mon, Dec 18, 2000 at 09:10:54PM -0500, Ausum wrote: Hello Andy, thanks for the advice. It didn't work. Maybe I'm wrong at any point, so please tell me whether it worked for you. I'm aware that this problem has been discussed here before, that it happens because of Python's object naming, and also that there's a workaround at least (and just)for expressions, using _['whatever.html'] Due to the kind of workflow we have, we need all of the documents to be editable with Dreamweaver at any moment, directly, after the daily WGET process. Batch-replacing every "_html" with ".html" in file names and content seems to be very complicated within this scenario. Going from dreamweaver to Zope, if you are working on unix, batch replacing is EASY, a single find command to change the file names and a simple sed script (or python or perl) to change hrefs. You will need to write such a script anyway, if your servers are Unix or Linux and your Dreamweavers are Windows. You will find that your windows people mix filename case randomly and expect it to work; you will have to canonify all hrefs to a single case convention. If going from zope to dreamweaver, either write the corresponding _ to . scripts and batch it, or write a checkout external script that does it for you. I have not thought about this latter option very much, but the export facility should give you an example of how to do this. I doubt if it is much more than a day's reading and two days coding (and this is being damn generous, as I suspect that this is a ten line script). You still have given no cogent reason for using Zope. If you have only, or predominatly static content, you are paying a huge overhead penalty. If you have mixed static content and dynamic content, use apache and ProxyPass to front-end the dynamic content, and apache to serve the static content. Then you have no conversion worries at
RE: [Zope] mySQL DA on Win32
Couldn't one just use MyODBC and the ODBC DA? What disadvantages (besides latency from yet another API to go through) are there to this approach? Sean ___ 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] site structure (fwd)
You may also want to take a look at HiperDOM as a templating mechanism as well. I haven't used it, but in looking at the Wiki and the examples, it looks like it would do what you are looking for, and from all accounts I have read, this will be the "official" Zope replacement for DTML for presentation logic in the future (relegating DTML for logic use, along with Perl and Python methods), and has a lot of cool features that allow you to create a template with mockup data that actually renders your presentation, replacing the mockup. http://www.zope.org/Members/lalo/HiperDom I'm working on a content-management project in which I am just starting to do real user interface work, and I am likely going to try switching over most of the presentation from DTML to HiperDOM. Anyway, creating valid XHTML documents for templates is an exciting idea, especially in the sense that this decreases the learning curve for a designer needing to work on presentation, but not logic - that is a definite need in my organization. Cheers, Sean -Original Message- From: Nuno Goncalves [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 14, 2000 9:51 AM To: Max M Cc: [EMAIL PROTECTED]; Zope@Zope. Org Subject: RE: [Zope] site structure (fwd) i see !!! i have just found a package ZopeFish that has ZFSuite. ZFSuite has an object (ZF document template) that defines a layout and structure for the entire site. More info at http://www.zope.org/WikiCentral/ZFWiki still i installed it (it is a bunch of libs) but i haven't tested it ! if i get it work i will tell you thanks On Thu, 14 Dec 2000, Max M wrote: From: Oleg Broytmann But that way if i want to change the structure, i have to change on every page. No, you only need to change 2 places: standard_html_header and standard_html_footer :) All Documents that use these header/footer will be rendered using new structure. I think you misunderstand him. He is actually right. Some things are pretty hard to do in zope, because of the header/footer principle. Making a global look to a site can be pretty difficult if it doesn't fit nicely into a header/footer structure, with a main area being the pages' unique content. If I where to do it in regular Python I would use special classes for special layouts. That is hard to do in Zope. Regards maxm Max M. W. Rasmussen,Denmark. New Media Director private: [EMAIL PROTECTED] work: [EMAIL PROTECTED] - Specialization is for insects. - Robert A. Heinlein ___ 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] site structure (fwd)
Getting fairly familiarized with namespaces and acquisition is going to be useful here. You actually will need to do 2 templates (one for the footer, and one for the header) in the case of writing a "wrapper." That said, objects in Zope (like a document, in this case) behave based upon their context or environment. A DTML document, when it is told to render something with dtml-var name="foo" looks for foo in it's current namespace (i.e. the folder it is in), and if it doesn't find it, it then works its way upward (by looking in the namespace of the folder that is the parent of the folder it just looked in before). When it finds foo, it renders that method (or if foo is an attribute, it renders its value). Let us suppose that your document is called bar, and looks like this: htmlbody dtml-var name="foo" /body/html bar is in a folder hierarchy that looks like this (using URL syntax) http://mysite.com/folder1/subfolder/bar bar would first look for foo as an attribute of it's own namespace (i.e. it would look to see if you defined a custom property called foo in the properties of the document). If it found it, it would render it, but let's suppose that it does not find it, so it has to look in another namespace. So, it moves up to the next namespace (subfolder) looking for foo, as either a method of that folder or a data member (attribute). If it finds it, it renders it. If not, it moves up to folder1 as the next namespace, and perhaps that is where it finds foo; in that case it renders foo. Seems rather simple, and in some cases it is, but what if foo is a dtml method and looks like the following? h1Title:dtml-var title/h1 Where does foo look for title? Not in folder1, where foo resides, but in in bar's namespace, and indeed, since dtml documents have a title attribute, that will be rendered. If, instead of title, we had an attribute named something like "what" but there was no attribute named "what" in bar, it would look through the namespace stack (starting with the namespaces of bar, then subfolder then folder1, then the root folder, etc), until it found what it was looking for. This, I hope, explains acquisition well. If you were to apply this to templating strategies, you would realize, that (as long as you kept standard_html_header and standard_html_footer in sync) that you could do some powerful things with your site navigation. Consider the following example: Suppose you have a sports news site, and you publish stories about baseball, football, and basketball. In the upper right hand-corner of your document (i.e. in the header portion) you have an 32x32 icon image that is a picture of a football, basketball, and baseball, respectively. Otherwise, you wanted to use the same template for all of the documents. Suppose that you have a folder structure like this: -/ -basketball -baseball -football In this case, you could have a standard_html_header in the root folder / that creates the top portion of your document, so you only have to use one template, and that the template might have code that looks like this: !--html here-- dtml-var name="sports-icon.gif" !--more html here-- In this case, you could have an image in each folder (basketball, football, baseball) containing an appropriate image with the id of sports-icon.gif. This is useful, because now, one template is rendering sports news stories different folders differently, depending upon the context of the folder they are contained in. In this simple example, you don't even need to create a different standard_html_header for every folder to create different results, but can rely upon Zope's built-in acquisition smarts to work for you. Applying this in practice, takes some playing around with, but once you get a clear idea of applying this, you can create some very intelligent standard_html_headers that do a lot of work for you. Hope this helps, Sean -Original Message- From: Nuno Goncalves [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 14, 2000 10:19 AM To: Oleg Broytmann Cc: Max M; Zope@Zope. Org Subject: RE: [Zope] site structure (fwd) But how could you build a page with the template developed ?? something like: dtml var template(COMPONENTS LIKE HEADER AND FOOTER AS ARGUMENTS) and how can you generelize the objects to beeing used by the template ? No, no, no! :) You misunderstand how the Zope works. You think that basic building block is a piece of HTML (probably you think to put it into DTML Documents). No. In Zope basic building block is "instance of some python class". A DTML Document is an instance of DTMLDocument class, e.g. If you develop your own set of classes, you'll just build Zope sites creating instances of these classes - you put HTML fragmenst just into these instances. Zope will call your objects, you don't need to use DTML to call them. humm !!! I see now !! So i can have a general structure for all my site and when create a page, specifying
RE: [Zope] HTML formatting from a text field
I remember reading somewhere about messaging between Java applets and JavaScript code in the browser, allowing JavaScript code from a web form to manipulate the applet output; the example was typing something into a text box, clicking a button in a form, and having that rendered in some obscure font inside the applet. Where I read this escapes me, and I've never tried this, but I wonder if such a trick works conversely. In other words, what if the applet can pass values to a JavaScript variable associated with the value of a form input element in the browser's HTML DOM? I could imagine that something like this could be very effective for certain situations where people want better through-the-web editing of code (imagine if you could edit dtml in a web form color coding syntax with a feature to collapse blocks of code, similar to Homesite 4.5, or editing python scripts -- what were python methods -- with an outline-based editor that created automatic indentation). Or, better yet, imagine running JPython within the applet (I don't know whether this is possible) to do all this. Anyway, I wonder if this type of thing could be an alternative to either ActiveX components or a XUL/XPCOM based-interface. Sean -Original Message- From: Rik Hoekstra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 13, 2000 8:17 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] HTML formatting from a text field Lee Hunter wrote: Hi Ausum, Do you mean a text field that shows a row of formatting buttons at the top for 'bold', 'italic' 'add link' etc. There is an ActiveX control that is built in to IE Explorer 5.x - you just have to call it from your page. Here's the information from Microsoft: http://msdn.microsoft.com/workshop/author/dhtml/edit/ref/cncpt.asp If you get it working with Zope (which shouldn't be a problem) let us know. There was a start at a product doing this (called ZIE) by Johan Carlsson , but it looks like it was aborted quite some time ago. Dont know about its status. You could try how far it would get you, tho see: http://www.zope.org/Members/johanc/ZIE hth 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 ) ___ 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] access log analyzer (analog, webalizer etc.)
You could use grep/sed, etc, and a some shell scripts (or perl or python scripts). Instead of sed and grep (and regexes, and inconsistent results, and a lot of manual work), what perhaps a lot of folks need is unified, aggregated logging that actually looks into Zope's architecture and uses mod_perl for static stuff and CGIs served in Apache. I've thought about this a bit, and it seems to me that many sites (at least bigger ones) often use a combination of technologies (as well as multi-node server farms) to serve up their site(s). As such, if you are running stuff served from Zope, Apache, CGI, other app servers, etc, you want a unified logging platform. Add to the complication HA/load-balanced/multi-server farms, and you want to be able to aggregate logs from all boxes on all server platforms to log to a unified system. The answer seems to me to be use of a relational database, mod_perl, and the example DBI Apache logger code in O'Reilly's _Writing Apache Modules_ with the following tweaks: 1 - Add persistence to the mod_perl DB connection with Apache::DBI 2 - Tweak the tables to add the following fields: box (server node number, for HA farms) mime-type user object_id (used, along with URL to determine what object is being used by X method) 3 - mime-types determined for Apache-served static pages with RegEx on URL 4 - Zope-served pages are excluded from Apache's logging, use ZSQL methods inside Zope to log (below) 5 - ZSQL method for logging is created. Logs the relevant stats to the relational database AUTHENTICATED_USER is logged to user, and dmtl-var id is logged to object_id - mime-type is the object's mime-type 6 - Insert dtml-call expr="mylogmethod()" into standard_html_header in top level (all acquired use of standard_html_header will log) 7 - Roll your own report-system using Zope, perhaps... I've already started working on something of this sort for a long-term project I have to implement logging for my company's new HA server farm. Such an approach might also be a good thing if one is using a ZEO setup. So far, I have set up the Apache side of things, logging to MySQL, and I am working on the Zope side of things. The real work, though is not in logging, but report generation, which would be a nice Zope product. Perhaps in a few months, I might have something worth showing... Any thoughts? Sean = Sean Upton Senior Programmer/Analyst Web Infrastructure SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [EMAIL PROTECTED] = -Original Message- From: Martin Winkler [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 10, 2000 5:26 PM To: [EMAIL PROTECTED] Subject: [Zope] access log analyzer (analog, webalizer etc.) Hi listies, since we all use names for urls that are not "standardized" - ending with ".html", ".gif" etc - I am wondering how to do a good logfile analyzing with standard tools like those in the subject line. I am usually running zope behind a http-accelerated squid, so I've configured squid to use "emulate_httpd_log on". But how webalizer doesn't recognize whether it's an image or html output. Did someone already write a tool that converts these logfiles like this (or similar): logfileconverter reads the logfile line by line -- checks against the ZODB whether the url outputs a "jpg", "gif" or "html" -- converts the line in the logfile accordingly (e.g. "/mydir/mymethod" to "/mydir/mymethod.html" and "mydir/mypic" to "mydir/mypic.jpg") -- then saves the modified logfile to disk or pipes it to webalizer. Thanks for your input! Martin ___ 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] score in ZCatalog search results?
Can't seem to find word on this anywhere. I wanted to put relevancy ranking into my ZCatlog search result hit-list, but am finding no info in searches of zope.org, ZDP, or mailing lists. I've also tried guessing and reading code (in lib/python/SearchIndex), but my brain is melting. Any enlightenment here would be greatly appreciated. Sean = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [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 )