RE: [Zope-dev] BTreeFolder2.objectIds() - accessing _tree.keys() slow

2006-01-13 Thread sean . upton
[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

RE: [Zope-dev] BTreeFolder2.objectIds() - accessing _tree.keys() slow

2006-01-12 Thread sean . upton
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

[Zope-dev] BTreeFolder2.objectIds() - accessing _tree.keys() slow

2006-01-11 Thread sean . upton
, StringType): spec = [spec] -mti = self._mt_index set = None for meta_type in spec: ids = mti.get(meta_type, None) Thanks, Sean +--+ Sean Upton

RE: [Zope-dev] storing passwords

2003-06-15 Thread sean . upton
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

RE: [Zope-dev] storing passwords

2003-06-15 Thread sean . upton
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

RE: [Zope-dev] Versions: should they die?

2003-06-05 Thread sean . upton
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

RE: [Zope-dev] support for low level HTTP Response logging?

2003-02-25 Thread sean . upton
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

RE: [Zope-dev] zope connector

2003-02-18 Thread sean . upton
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

RE: [Zope-dev] Zope Server Control

2003-02-07 Thread sean . upton
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

[Zope-dev] RE: [Zope] Time module in python scripts

2003-02-06 Thread sean . upton
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

RE: [Zope-dev] ESI Integration in Zope

2003-01-30 Thread sean . upton
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-

RE: [Zope-dev] ClientCache and Large Files

2002-12-16 Thread sean . upton
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,

RE: [Zope-dev] Re: Unsecure design of ExternalFile

2002-11-07 Thread sean . upton
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

RE: [Zope-dev] Integrating ZEO with Zope 2.7

2002-10-02 Thread sean . upton
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

[Zope-dev] Proxy Object / __getattr__ / Acquisition

2002-08-29 Thread sean . upton
(currentId, current) self._CurrentVersion = current def __getattr__(self, name): return getattr(self._CurrentVersion, name) +--- | Sean Upton | Site Technology Supervisor SignOnSanDiego.com

RE: [Zope-dev] Slow zope on windows 2000?

2002-08-28 Thread sean . upton
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

RE: [Zope-dev] Slow zope on windows 2000?

2002-08-28 Thread sean . upton
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,

RE: [Zope-dev] Zope Binary Release Changes for Zope 2.6

2002-08-21 Thread sean . upton
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

RE: [Zope-dev] PathIndex doesn't index last part of path

2002-08-21 Thread sean . upton
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

RE: [Zope-dev] PathIndex doesn't index last part of path

2002-08-19 Thread sean . upton
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

RE: [Zope-dev] More Zope 2.6 requests

2002-03-08 Thread sean . upton
+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

TF ZMI, was: RE: [Zope-dev] Zope 2.6 and OrderedFolders

2002-03-07 Thread sean . upton
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

RE: [Zope-dev] Zope 2.6 and OrderedFolders

2002-03-06 Thread sean . upton
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

RE: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-03-03 Thread sean . upton
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

RE: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-02-28 Thread sean . upton
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

RE: [Zope-dev] PDF-specific Bug in the ZServer implementation??? Orjust strange behavoiur of IE?

2002-01-07 Thread sean . upton
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

[Zope-dev] 100k+ objects, or...Improving Performance of BTreeFolder...

2001-12-09 Thread sean . upton
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

RE: [Zope-dev] ZCatalog

2001-12-06 Thread sean . upton
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

RE: [Zope-dev] ZCatalog

2001-12-06 Thread sean . upton
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

RE: [Zope-dev] Competition

2001-12-06 Thread sean . upton
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

RE: [Zope-dev] Competition

2001-12-06 Thread sean . upton
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

RE: [Zope-dev] Searching

2001-12-05 Thread sean . upton
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

RE: [Zope-dev] ZCatalog becoming empty when using Update in conjunction with ZPatterns

2001-12-03 Thread sean . upton
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

[Zope-dev] Overriding base class method / CatalogAware mixin

2001-11-25 Thread sean . upton
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

RE: [Zope-dev] Deleting objects in BTreeFolder

2001-11-08 Thread sean . upton
) 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

RE: [Zope-dev] Web Services for Zope

2001-09-26 Thread sean . upton
{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]

RE: [Zope-dev] Vulnerability: attacking can get file list and directory

2001-09-24 Thread sean . upton
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?

RE: [Zope-dev] Vulnerability: attacking can get file list and directory

2001-09-24 Thread sean . upton
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:

RE: [Zope-dev] Problems with CatalogAware?

2001-09-10 Thread sean . upton
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

RE: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-16 Thread sean . upton
/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

RE: [Zope-dev] ANNOUNCE: Zope 2.4.0 alpha 1 released

2001-06-01 Thread sean . upton
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

RE: [Zope-dev] ANNOUNCE: Zope 2.4.0 alpha 1 released

2001-06-01 Thread sean . upton
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: