RE: [Zope] Products vs. ZClasses- Design Question

2000-06-18 Thread Jeff Hoffman
On Fri, 16 Jun 2000, Charlie Derr wrote: > Jeff wrote: > > ~ As explained above, this advantage is shared by Python Products also. You > ~ do *not* want to write application logic with DTML. At a minimum, use > ~ Python Methods. Otherwise, use Python. > ~ > > Let me apologize in advance because

[Zope] ZPatterns: Deleting objects from a Rack?

2000-06-21 Thread Jeff Hoffman
Ok, I have a stupid question. I have succeeded in creating a ZClass (a subclass of DataSkin) and instantiating a few instances in the defaultRack of my Specialist using my Specialist's newItem() method. Rock. However, search as I might, I cannot figure out how to delete an item once it's been cr

Re: [Zope] Prototyped folders?

2000-06-27 Thread Jeff Hoffman
On Tue, 27 Jun 2000, [iso-8859-1] Hamish Lawson wrote: > If a folder doesn't itself contain a required object or method, I'd > like to have another folder looked in instead. The fall-back folder > won't necessarily (and often can't) be higher in the hierarchy, so > acquisition doesn't seem to be

[Zope] Creating PythonMethod from ZClass constructor/method.

2000-06-28 Thread Jeff Hoffman
Hello, Using Zope 2.2b3, I am trying to create a PythonMethod from the constructor of my ZClass and keep getting an authorization dialog. In my MyZClass_add method, I have: Every pemutation I have tried gives the same result: an Unauthorized exception. Ad

Re: [Zope] gvib InterBase DA, undefined symbol crypt

2000-07-20 Thread Jeff Hoffman
On Thu, 20 Jul 2000, David Trudgett wrote: > Hi all, > > After having successfully installed the gvib InterBase DA on a test machine > running Red Hat Linux 6.1, I'm not having the same luck on the production > box running RH 6.0. Here's what happens: > > $ python > >>> import gvib > Traceba

RE: [Zope] Interbase DA compiled for Windows?

2000-07-30 Thread Jeff Hoffman
On Sun, 30 Jul 2000, R. Herold wrote: > Sorry, > > > connect to Interbase (kinterbasdb-0.2.1.tar.gz and > InterbaseStorage098.tgz), > > this was meant to be kinterbasdb-0.2.1.tar.gz and _ gvibDA-0.1.tar.gz _ > Thanks again, > > -- Ralf Herold I understand your position, and wish we could d

[Zope] Indirect method lookup?

2000-08-21 Thread Jeff Hoffman
Hello, I am trying to build a simple framework that is going to use "events" to callback into higher level logic. Specifically, I am creating a "Text Field" that represents an HTML form field. Its validate() method needs to call whatever method is specified in its validateHandler property (which

[Zope] Indirect method lookup? (Update)

2000-08-21 Thread Jeff Hoffman
Ok, knowing more about what's going on, now, I figured I would send an update to the list and hope it jars someone's memory. Here's what I am trying to do: I have a ZClass, MyTestClass. MyTestClass has two methods: method1, and method2. There are two other methods, showMethods and showMethods2,

Re: [Zope] Acquisition, Not! How?

2000-08-24 Thread Jeff Hoffman
On Thu, 24 Aug 2000, JĂșlio Dinis Silva wrote: > I know this sound strange but is there a way to, > during execution of a dtml method, when a with tag is used one > force acquisition not to be used? > > example: > > /root/a/b/c > /root/c > > say was a mistake so I dont want the root.c namespac

[Zope] ZServer stepping on Content-Type and Content-Length?

2000-08-27 Thread Jeff Hoffman
Hello, I am playing around with the new ExtFile product released a few days ago, in addition to a similar product I wrote myself. Both are exhibiting an unusual behavior. In the index_html method, I have: RESPONSE.setHeader('Content-Type', 'video/foo') RESPONSE.setHeader('Content-Length', 12

[Zope] Bug or feature? :-)

2000-09-26 Thread Jeff Hoffman
Hello, Zopers. Try this: Create a DTML Method in Zope. Give it an id of 'target', and give it the following body: Woohoo! Now manage the folder that it is contained in. Instant tab augmentation! :-) --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology

Re: [Zope] Displaying all subobjects

2000-09-27 Thread Jeff Hoffman
On Wed, 27 Sep 2000 [EMAIL PROTECTED] wrote: > Hallo Chris, > thanks for the quick reply, but the method is displaying all the objects > in the folder and I'd like to get only one metatype of > objects(i.e.ZClass->cars)but for all levels. Try creating a DTML Method called 'iterate' (tested):

Re: [Zope] Re: [Zope-book] Re: [Zope] Zope Book Beta

2000-10-31 Thread Jeff Hoffman
On Tue, 31 Oct 2000, Wolfgang Strobl wrote: > On 31 Oct 2000, at 12:54, Michel Pelletier wrote: > > > That was a joke. Sorry. > > Uh, oh. Well, my thought was as follows: people are already > annoucing making PDF versions, which are a much greater > potential harm to to the number of sales

Re: [Zope] Re:GoLive

2000-11-01 Thread Jeff Hoffman
On Wed, 1 Nov 2000, tom smith wrote: > I think there's a trick where dtml files can be saved as index.html, and > then you create a method that redirects index_html or /whatever/wherever/ to > index.html in the same folder, but I'm not sure how to do that. Someone has > shown how to do it on thi

[Zope] Problems with LoginManager 0.8.8b1

2000-11-05 Thread Jeff Hoffman
Hello, I am having an odd problem with LoginManager 0.8.8b1 and am writing the list in the hopes that someone can either help me out, or confirm that I've encountered a bug. I am running Zope 2.2.2 with Python 1.5.2 on a Linux box. I installed LoginManager as described, and compiled DynPersist a

Re: [Zope] Security and Acquistition Problem

2000-11-09 Thread Jeff Hoffman
On Thu, 9 Nov 2000, Charlie Wilkinson wrote: > / (Root Folder) > / acl_test (ACL Test Folder) > acl_users (User Folder) > index_html (Test Document) > > Now, referring to figure 1, changes to security settings for the acl_test > folder are having no effect on ac

Re: [Zope] ZMethod (Safe)

2000-11-09 Thread Jeff Hoffman
On Thu, 9 Nov 2000, Evan Simpson wrote: > From: Ron Bickers <[EMAIL PROTECTED]> > > > Since you would normally *say* just ZMethod, I like the suggestion of using > > "Python ZMethod" and "Python ZMethod (Unrestricted)", vs. spelling out the > > (Restricted) in the first one. > > Good point. I'l

[Zope] ZCatalog Range Weirdness

2000-11-09 Thread Jeff Hoffman
Hello, We have an interesting situation, here, and I can't seem to put my finger on what's going on. Let's say I have two different classes of objects being cataloged. The first class, Class A, has a floating point attribute myFloat. The second class, Class B, does not. 'myFloat' is an index in