Re: [Zope-dev] RedstrictedCreation proposal

2002-04-09 Thread Itamar Shtull-Trauring
Toby Dickenson wrote: (Ive CCed everyone who has commented on the proposal; I hope thats OK) Could everyone stick to zope-dev only? One copy of each email is enough ;) ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] OpenSSH configuration between ZEO clients storageserver

2002-03-27 Thread Itamar Shtull-Trauring
Shane Hathaway wrote: But you don't need reliability compensation to multiplex. SSH assumes the transport layer is reliable. So an SSH tunnel and an SSL tunnel are virtually synonymous. They're not really, but yeah, I was wrong :) A SSL forwarder takes a packet, and then sends over

Re: [Zope-dev] OpenSSH configuration between ZEO clients storage server

2002-03-26 Thread Itamar Shtull-Trauring
Or you could wrap ZEO traffic with SSL using stunnel or a similar program, assuming they allow restriction of traffic based on client certificates. This doesn't have the drawbacks of SSH or VPN. ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] OpenSSH configuration between ZEO clients storage server

2002-03-26 Thread Itamar Shtull-Trauring
Adam Manock wrote: For a look at why TCP over TCP is a bad idea, (e.g. ssh port forwarding) see: http://sites.inka.de/sites/bigred/devel/tcp-tcp.html For a solution, see: http://sites.inka.de/~bigred/devel/cipe.html That may be true, but it also means that you need to hook in at the

Re: [Zope-dev] OpenSSH configuration between ZEO clients storage server

2002-03-26 Thread Itamar Shtull-Trauring
Toby Dickenson wrote: but ssh port forwarding is only one layer of TCP. ssh port forwarding is good. I'mp pretty sure it's TCP over TCP (ssh protocol does multiplexing). SSL OTOH is not TCP over TCP. ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Zope Cygwin

2001-10-17 Thread Itamar Shtull-Trauring
The only thing in Zope for Windows that uses the registry is the installer and the service manager and we don't use the winreg module in the current install or service process, AFAIK. It is handy, however, to know it can be used under Cygwin with your patches. Note that cygwin is GPL, and

Re: [Zope-dev] A modest proposal: Replace medusa with Twisted

2001-10-11 Thread Itamar Shtull-Trauring
kapil thangavelu wrote: twisted is GPL and zope is not gpl compatible and that does not appear to be changing despite some mention from zc about trying to achieve compatiblity. Twisted is LGPL, and it might be possible to license it under something that will work with ZPL. I don't think

Re: [Zope-dev] A modest proposal: Replace medusa with Twisted

2001-10-11 Thread Itamar Shtull-Trauring
Phil Harris wrote: That said, I think JPE/PJE is the best way forward, but this problem needs to be solved (if it hasn't already). Latest CVS README says: Multithreading == Multithreading issues are taken care of. There is still a known issues concerning process termination

Re: [Zope-dev] A modest proposal: Replace medusa with Twisted

2001-10-10 Thread Itamar Shtull-Trauring
Oops, forgot the URL: http://www.twistedmatrix.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope-dev] Local Factories in Products

2001-01-02 Thread Itamar Shtull-Trauring
Chris Withers wrote: In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. Didn't Itamar have a proposal/project on this? It's still unimplemented - you can view

Re: [Zope-dev] Keyword Indexes causing Keyerrors

2000-12-21 Thread Itamar Shtull-Trauring
Here's what was causing my KeyErrors, and how I solved it, and why I think KeywordIndexes broke. I have a keyword index on the "categories" property of my CatalogAware object. "categories" is a list. def manage_removeItems(self, ids=[]): """ Remove listed items from this category """

Re: [Zope-dev] Another caching scheme...

2000-11-08 Thread Itamar Shtull-Trauring
Carlos Neves wrote: But that just isn't enough... though it works for a specific caching scheme, it's not a site wide, or should I say, server wide. Mindstorming with my fellow workers, one (the boss, and that's why he's the boss) came up with the magic words... cache the html on it's way

Re: [Zope-dev] ZPatterns, MySQL, Full Text Searching

2000-11-08 Thread Itamar Shtull-Trauring
Chris Withers wrote: I've read that ZPatterns and ZCatalog don't interact too well and I was wondering if this is also true of the new ZPatterns release. I might be looking to move something to ZPatterns so that it can get all benefits of Zope's security system and things like the Catalog,

Re: [Zope-dev] Fw: 2gb file size

2000-11-07 Thread Itamar Shtull-Trauring
Shane Hathaway wrote: Not long ago I created a wrapper around File objects which automatically splits the file before it reached a predefined limit. It could handle any number of partitioned file segements. Yes please! Perhaps it could be integrated into the ZODB codebase while you're at

Re: [Zope-dev] Adding properties in __init__

2000-11-07 Thread Itamar Shtull-Trauring
Chris Withers wrote: self.manage_addProperty('AProperty','1\n2\n3','lines') I'm guessing that this is because self isn't an acquisition wrapper in __init__ (even though SimpleItem is Acquisition.Implicit) but what am I supposed to do to add a property in __init__? I usually override

Re: [Zope-dev] Fw: 2gb file size

2000-11-05 Thread Itamar Shtull-Trauring
Shane Hathaway wrote: Are you running Zope 2.2.1 or later? There were pointer arithmetic errors that occurred on earlier versions, even with operating systems that support 2 GB files. So on W2K, Zope can have 2GB databases? I'd really like to hear if you get it to work Andy (or if anyone

Re: [Zope-dev] ZClasses not copyable - why?

2000-11-05 Thread Itamar Shtull-Trauring
Philipp Auersperg wrote: in ZClass I have found a nice-sounding method _setBasesHoldOnToYourButts() grin, and the source is commented with '#Eeeek', h What are the risks for a good shot into my foot using this function? If your new base classes requires some variables to be initialized

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Itamar Shtull-Trauring
"Phillip J. Eby" wrote: DataSkin is strictly a mix-in class. Sometimes I forget to remind people of that, and sometimes I even forget it myself. :( DataskinAddons provides a nice DataSkin-derived class for debugging purposes - it has a debug() method that prints out __dict__, and lets you

[Zope-dev] Latest ZPatterns stability

2000-10-30 Thread Itamar Shtull-Trauring
How stable is the latest ZPatterns beta? I'd like to put up a site using it, but I'm still kinda wary of doing it. Admittedly, I ahven't had any TransactionErrors since upgrading. Has anyone had them? Or are the transaction problems solved? That's what worries me most, since it takes down all

Re: [Zope-dev] Flat Database/ZPatterns api, performance ?

2000-10-26 Thread Itamar Shtull-Trauring
Simon Michael wrote: Flat Database (was ListMate) is just what I need to whip up an interface for non-technical administrators - thanks. So I migrated two data tables ("workshops" "registrations") from gadfly to flatdb instances using the CSV import feature, and the admin interface is

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Itamar Shtull-Trauring
Chris Withers wrote: I suspect you will have to build this yourself. Store a sufficiently random id inside your objects when they are created, and use a ZCatalog to index them. blech! ;-) This is the normal way to keep references to objects. I asked Jim Fulton at IPC8, and he

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Itamar Shtull-Trauring
Johan Carlsson wrote: Why are the _p_oid depriciated? Not depreciated, just "don't use them." -- Itamar S.T. [EMAIL PROTECTED] Fingerprint = D365 7BE8 B81E 2B18 6534 025E D0E7 92DB E441 411C ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Unique and Contant object IDs

2000-10-25 Thread Itamar Shtull-Trauring
Johan Carlsson wrote: Why are the _p_oid depriciated? Not depreciated, just "don't use them." But I want too, why shouldn't I? They solves my problems with mapping relational data to objects. I would guess multiple databases can have the same oid's for their objects - and Zope does

Re: [Zope-dev] extending objectValues() and objectIds() or ?

2000-10-24 Thread Itamar Shtull-Trauring
Write a Python Method (install the PythonMethods product first) called say, publishableObjectValues that does that: paramself/param # functions that returns publishable objects result = [] for o in self.objectValues(): if o.isPublishable(): result.append(o) return result -- Itamar

[Zope-dev] Adding functions to _

2000-09-18 Thread Itamar Shtull-Trauring
I'm using CVS Zope, and I want to add a function of mine to _, so I have the following code in a Product's __init__.py: from log2vis import log2vis from DocumentTemplate.DT_Util import d d["log2vis"] = log2vis However, when I call the function, I get an error about DocumentTemplate,

[Zope-dev] Virtual Hosting in 2.2 - a Bestiary of Buglets

2000-09-05 Thread Itamar Shtull-Trauring
I setup virtual hosting on Zope 2.2.1 with SiteAccess 2. I used Apache with ProxyPass (Apache acting as a reverse HTTP proxy in front of ZServer) instead of FastCGI, since this is much faster (with caching headers apache is about 10 times as fast as ZServer). The setup is as follow - each site

[Zope-dev] Re: Problem 1: HTTP and HTTPS (more of a proxypass issue)

2000-09-05 Thread Itamar Shtull-Trauring
Chris Withers wrote: What difference does it make if you do REQUEST.setVirtualRoot('/',1)? This might actually solve most of my problems, since it deletes the parents I don't need from PARENTS. However, when I do this I can't view anything - it keeps raising Unauthorized. Setting the

Re: [Zope-dev] remote procedure calls to manage functions

2000-08-10 Thread Itamar Shtull-Trauring
Jim Fulton wrote: It's not really favored, both are quite useful. xml-rpc is more for when you want two different system to interoperate. ZClient is very zope specific and probably gives you a bit more functionality than xml-rpc (because it has the 'remote object' abstraction). I

Re: [Zope-dev] Use ZODB3 and ZCatalog for indexing purposes

2000-07-25 Thread Itamar Shtull-Trauring
Phil Harris wrote: Have you seen the Zope on CDROM howto? Try searching on zope.org (when it's back up that is) for it. I don't think it's relevant actually. WHat you do want is Jim Fulton's talk about ZODB from IPC8 - search zope.org for that. -- Itamar S.T. [EMAIL PROTECTED]

[Zope-dev] Intializing the objects formerly-known-as-RackMountables

2000-07-19 Thread Itamar Shtull-Trauring
I need to do initialize some properties of new instances of a DataSkin subclass - ASPAccount. However, I can't put this in __init__ since the object hasn't been stored at that point. Doing self.__dict__['name'] = 'Rincewind' seems kinda ugly. Maybe newItem should by default call a function

[Zope-dev] Another ZPatterns bug

2000-07-19 Thread Itamar Shtull-Trauring
(ZPatterns 0.4a5, Zope 2.2.0) If an agent raises an exception, you don't get to see the traceback. Instead, the object is simply not added (if the exception was in _objectAdded, donno what happens in _objectChanged). This makes debugging agents basically impossible... -- Itamar S.T. [EMAIL

Re: [Zope-dev] Intializing the objectsformerly-known-as-RackMountables

2000-07-19 Thread Itamar Shtull-Trauring
"Phillip J. Eby" wrote: Doing self.__dict__['name'] = 'Rincewind' seems kinda ugly. Maybe newItem should by default call a function on newly created objects, say __init? I don't want to have to subclass Specialist (or in my case, LoginManager) each time I want to this, since it's a *very*

[Zope-dev] Proposed interface: Restricted creation

2000-07-05 Thread Itamar Shtull-Trauring
(URL: http://www.zope.org/Members/michel/Projects/Interfaces/RestrictedCreation) Restricted Creation of Objects The problem - certain types of objects should not be added except in certain places or with certain restrictions. For example, we may want to make sure Laundry objects are only added

[Zope-dev] ZClass inheriting from ObjectManager and DataSkin?

2000-07-05 Thread Itamar Shtull-Trauring
Are there (or better yet, what are) any potential problems here? My gut feeling was that it wouldn't work, but you can at the very least add objects in instances of the ZClass - deleting and renaming don't work though. -- Itamar S.T. [EMAIL PROTECTED] Fingerprint = D365 7BE8 B81E 2B18 6534

Re: [Zope-dev] Proposed interface: Restricted creation

2000-07-05 Thread Itamar Shtull-Trauring
Shane Hathaway wrote: The place where this is needed most (IMHO) is for ZClass factories. So there needs to be a way to create meta type filters through the Web. Yes, but in Python products too, where you have Items that should only go in specific ItemHolders. This is very common. On the

[Zope-dev] Bug in Changed events in ZPatterns 0.4.0a1?

2000-06-19 Thread Itamar Shtull-Trauring
As far as I can tell, the first time an object is changed, an Agent's _objectChanged() will be called, but as long as the object is still in the memory cache, _objectChanged() will not be called again. That is, I change an object - _objectChanged() is called. However, the object is now in the

Re: [Zope-dev] 0.4.0 prerelease snapshot (was zpatterns-0.4 ?)

2000-06-11 Thread Itamar Shtull-Trauring
"Phillip J. Eby" wrote: By popular demand, I am releasing a development snapshot of version 0.4.0. Please see the main ZPatterns download page. Thank you! Also, people might want to know that it includes a nice mixin class that lets you respond to transaction events (rollback, commit). --

Re: [Zope-dev] New Help System in 2.2

2000-06-07 Thread Itamar Shtull-Trauring
"Dan L. Pierson" wrote: You might want to take a look at the bottom of http://www.lfw.org/python/... He finally released it! I've been waiting for this since IPC8. -- Itamar S.T. [EMAIL PROTECTED] "It don't get thingier than that!" ___

Re: [Zope-dev] Containers in ZODB

2000-06-07 Thread Itamar Shtull-Trauring
Petr Knapek wrote: Container - object with some attributes and methods which can collect other objects (also Containers) For these you should inherit from OFS.ObjectManager.ObjectManager. Item - an object with some attributes and methods which can not collect any other objects but can be

[Zope-dev] Re: [Zope] HappySession 0.1.0 released!

2000-06-05 Thread Itamar Shtull-Trauring
Hung Jung Lu wrote: I have been using RAM-based session management for a while, but never wrote a product for it. Since Graham Chiu has mentioned it again about making a real product, I have taken the time to make one, and called it HappySession. :) Well, in short, it uses cookie for session

[Zope-dev] CatalogAwareness for RackMountables

2000-05-30 Thread Itamar Shtull-Trauring
I've been playing around with ZPatterns, and I must say it's very cool - finally you can mix ZCatalog and SQL storage. CatalogAwareness is slightly different than regular Zope objects in that you have to find the ZCatalog in the Rack's acquisition path, but that's about it. The absolute_url

[Zope-dev] CatalogAwareness for RackMountables

2000-05-30 Thread Itamar Shtull-Trauring
Sorry if this arrives twice, but mailing lists seem to have swallowed my earlier mail. I've been playing around with ZPatterns, and I must say it's very cool - finally you can mix ZCatalog and SQL storage. CatalogAwareness is slightly different than regular Zope objects in that you have to find

[Zope-dev] Preprocessed Output

2000-05-28 Thread Itamar Shtull-Trauring
A common pattern when developing in Zope is to have a sort of Document that contains text with some special codes, and then to render them and return the output to the user. So we have DTML Documents, and Structured Text Documents, and Python Methods, and I've written a few for my own use and

[Zope-dev] Problems with RackMountable

2000-05-28 Thread Itamar Shtull-Trauring
I'm adding some RackMountable objects (subclassed from RackMountable and SimpleItem.Item) and when I try to access them via URL I get an AttributeError like they don't have attribute __of__: Traceback (innermost last): File

Re: [Zope-dev] DTML tag creation.

2000-05-25 Thread Itamar Shtull-Trauring
Bill Anderson wrote: I am about to dive into a custom tag, it will be a 'container' tag. I have seen the HowTo, and it really isn't that clear when you get to the container tag info. Can anyone provide a better rundown? Anyone have a custom tag they would mind sharing for perusal? Just