[Zope-dev] Re: [Zope3-dev] Re: How To run current Zope 2 3 from CVS on Windows

2004-05-12 Thread Phillip J. Eby
At 06:12 PM 5/12/04 +0800, Choo Zhi Min wrote: What does import os; print os.name return in Cygwin, nt or posix? Python 2.3.2 (#1, Oct 9 2003, 12:03:29) [GCC 3.3.1 (cygming special)] on cygwin Type help, copyright, credits or license for more information. import os os.name 'posix'

[Zope-dev] Re: [Zope3-dev] ZConfig: Section type datatype inheritance

2003-12-29 Thread Phillip J. Eby
At 12:04 PM 12/29/03 -0500, Barry Warsaw wrote: This is how I'm using extended section types in my code currently. The proposed change won't affect me because I explicitly specify the data types in derived section types. It seems to me unlikely that you'd have a base section type with a

[Zope-dev] Re: [Zope3-dev] ZConfig: Keytype and section type extension

2003-12-29 Thread Phillip J. Eby
At 01:53 PM 12/29/03 -0500, Fred L. Drake, Jr. wrote: Phillip J. Eby writes: That reminds me... is there any way for section *names* to be case-sensitive, or at least case-preserving? For example, if one were simulating Apache-style configuration like: There isn't, but there was at some

Re: [Zope-dev] PHP vs Zope cost benefit

2002-04-24 Thread Phillip J. Eby
At 04:55 PM 4/24/02 -0300, Leonardo Rochael Almeida wrote: As for multiple DB rollback, yes, that works as advertised, and is actually really easy to believe if you explain them how it works. Truth is, Two-Phase-Commit was INVENTED (a long time ago, and not in Zope) to make it possible to commit

Re: [Zope-dev] Future of ZPatterns

2002-04-20 Thread Phillip J. Eby
At 08:22 PM 4/15/02 -0500, Steve Spicklemire wrote: Hi Marcello, Wow.. sounds like a neat book. ;-) Seriously, Phil Eby has suggested that there will be some sort of migration helpers to move from ZPatterns to There probably will not be any migration tools written by me or Ty; we

Re: [Zope-dev] Re: [Zope3-dev] Are there Graphic Designers?

2002-04-05 Thread Phillip J. Eby
Folks, can we please stop the zope-dev/zope3-dev crossposts and direct this thread to zope3-dev only? You're doubling the volume of posts I have to read. :) Thanks. ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Defining Interfaces

2002-01-29 Thread Phillip J. Eby
At 03:17 PM 1/28/02 +, Chris Withers wrote: Jeffrey P Shell wrote: On 1/27/02 11:25 AM, Steve Alexander [EMAIL PROTECTED] wrote: Hi folks, When I define an Interface, are the methods of the interface supposed to have self as the first argument? No. Can you expand on

Re: [Zope-dev] im_self of methods accessed via non trivial acquisition

2002-01-19 Thread Phillip J. Eby
At 01:12 PM 1/18/02 +0100, Stefan Bund wrote: Phillip J. Eby [EMAIL PROTECTED] writes: Method rebinding is done only when an item is retrieved from the aq_self side, and only if im_self points to aq_self. If these conditions are met, a new binding is created which points

Re: [Zope-dev] Security Gurus Wanted

2002-01-19 Thread Phillip J. Eby
At 10:43 AM 1/19/02 -0500, vio wrote: * vio [EMAIL PROTECTED] [020119 09:56]: So Globals.InitializeClass(your_class) finds the declaration 'security.declareSomething()' inside a class, but 'security' being a reference to a ClassSecurityInfo object AT THE MODULE LEVEL somehow has no effect at the

Re: [Zope-dev] im_self of methods accessed via non trivial acquisition

2002-01-18 Thread Phillip J. Eby
At 09:42 AM 1/18/02 +0100, Stefan Bund wrote: A--O--[a] | | | [b] | O--B--O--[c] | | | | | [d] | | | O--[e] | | | [f] | [g] ... let /m/ be a method of the objekt /f/. The expression of interest is x := A.m I would expect /x.im_self/ to be an acquisition wrapper C C :=

Re: [Zope-dev] separate mailing list for ZPublisher-only apps (ZPub + cgi + apache)

2002-01-06 Thread Phillip J. Eby
At 10:06 AM 1/6/02 -0800, Michael Olivier wrote: I'd like to form (or join) a separate mailing list for ZPublisher-only apps. I know there are zope developers like me who use ZPublisher + FastCGI (or whatever) + apache (or whatever) to run a web site. I know we would not have the benefit of

Re: [Zope-dev] References, persistence, BTrees

2002-01-03 Thread Phillip J. Eby
At 05:49 PM 1/3/02 -0700, Jeffrey P Shell wrote: 'subscriber' is a reference to the subscribing object, and it's very likely to be to an object in the ZODB. Is it wise to have more than one persistent reference to a single persistent object? I swear that I had once heard Jim say (vocally)

Re: [Zope-dev] ZPublisher Q about obj having both __bobo_traverse__ and index_html

2001-12-24 Thread Phillip J. Eby
At 10:18 PM 12/23/01 -0800, Michael Olivier wrote: I'm using ZPublisher + PCGI w/o the full Zope environment. Is it possible to have an object that defines a __bobo_traverse__ method and also has an index_html method? In the example below, I would want it to traverse if the URL path had more

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

2001-12-10 Thread Phillip J. Eby
I'm not sure if this is taken into consideration in your work so far/future plans... but just in case you were unaware, it is not necessary for you to persistently store objects in the ZODB that you intend to index in a ZCatalog. All that is required is that the object to be cataloged is

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

2001-12-10 Thread Phillip J. Eby
At 04:08 PM 12/10/01 +, Tony McDonald wrote: On 10/12/01 2:54 pm, Phillip J. Eby [EMAIL PROTECTED] wrote: I'm not sure if this is taken into consideration in your work so far/future plans... but just in case you were unaware, it is not necessary for you to persistently store objects

Re: [Zope-dev] ZPT Plain Text

2001-12-04 Thread Phillip J. Eby
At 05:58 PM 12/4/01 +, Chris Withers wrote: Phillip J. Eby wrote: I personally would like to see ZPT support plain text at some point, and it already has some of the things necessary to do it. But that's a separate issue from Zope 3X or Zope 3 itself. It already can: [example

Re: [Zope-dev] ComputedAttribute, Persitent and too many datafull base classes

2001-10-21 Thread Phillip J. Eby
At 03:44 PM 10/20/01 +0200, Godefroid Chapelle wrote: Hi, In a product I am writing, I am trying to add a ComputedAttribute to an instance of a Folder descendant class. This is the code I use: def addComputedAttribute(self, attributeName, sourceCode): methodName = '_ca_get%s' %

Re: [Zope-dev] ZPublisher/ZServer interaction (was Re: A modest proposal)

2001-10-13 Thread Phillip J. Eby
At 10:23 AM 10/12/01 -0400, Paul Everitt wrote: Wow, this is one hell of a thread. :^) FWIW, Grisha put a Bobo publisher in mod_python a couple of years ago. Thus, if you like ZPublisher-style processing, you can do it in Apache via mod_python. Personally, I prefer to keep a process boundary

Re: [Zope-dev] RE: Component Architecture / A modest proposal: Replace medusa with Twisted

2001-10-11 Thread Phillip J. Eby
At 01:52 PM 10/11/01 +0200, Jean Jordaan wrote: Hi all I don't know if you're all familiar with this already, but reading about Twisted didn't immediately bring to mind Medusa, but rather certain aspects (specifically, *aspects*) of TransWarp, and of the Component Architecture (interfaces). I'm

[Zope-dev] ZPublisher/ZServer interaction (was Re: A modest proposal)

2001-10-10 Thread Phillip J. Eby
At 08:00 AM 10/10/01 -0700, kapil thangavelu wrote: sadly the distinction between zpublisher and zserver is nowhere near as clean, i spent some time looking at it this morning trying to get my server of choice using zope. i thought it would be a mid morning hack, but the rabit hole follows the

Re: [Zope-dev] Stored Procedures with Sybase and the Sybase DA

2001-10-01 Thread Phillip J. Eby
At 01:50 PM 10/1/01 +0200, [EMAIL PROTECTED] wrote: Does anybody know of any development going on regarding Sybase and stored procedures? Christopher Petrilli declared them a future goal, but I urgently need them by now. So if anybody has a workarround, please let me know. Ty did some work on

Re: [Zope-dev] Stored Procedures with Sybase and the Sybase DA

2001-10-01 Thread Phillip J. Eby
At 03:33 PM 10/1/01 +0200, [EMAIL PROTECTED] wrote: I use the newest version of the Sybase DA, but it doesn't seem to work. Can you help me finding the appropriate patches, etc? Are they available anywhere in that CVS-tree?` I don't think so. Ty was going to submit them to ZC for inclusion; I

Re: [Zope-dev] Re: [ZPatterns] HowTo: Make an Image/File a DataSkin ???

2001-07-11 Thread Phillip J. Eby
At 08:03 AM 7/11/01 +0100, Steve Alexander wrote: Steve Spicklemire wrote: Hi Ulrich, Hmm.. can you just call DataSkin.__init__(self, id) in the File's constructor? You might need to do it like this: DataSkin.inheritedAttribute('__init__')(self, id) Actually, I'm not sure you

[Zope-dev] UML and XMI support now available in TransWarp CVS

2001-06-29 Thread Phillip J. Eby
Recently, there has been much interest (on Zope-Dev and elsewhere) in creating Zope and Python applications from UML diagrams. Since to my knowledge there are no other Python libraries currently available for UML/XMI processing, I decided to get busy and release a version of TransWarp with

[Zope-dev] Re: [ZPatterns] Best Free UML, XMI, Zope/Transwarp tools

2001-06-28 Thread Phillip J. Eby
At 10:35 AM 6/28/01 -0700, jimbo wrote: I've been looking for a standard *FREE* tool that I can use to design Zope apps. I think my search is over. It seems to be a good tool for students because it's free and comes with support for Java, Persistence and XMI, Full and partial exchange. I

[Zope-dev] ZPatterns DATA LOSS BUG and FIX (0.4.3p1 patch release)

2001-06-26 Thread Phillip J. Eby
ZPatterns 0.4.3final contains a serious bug which deletes all ZODB-stored contents of a Rack when you use the manage_pack method. This bug only affects you if you store Rack-mounted objects or attributes in the ZODB, and does not affect you if your objects are entirely contained in an RDBMS or

Re: [Zope-dev] Bulletproof ZCatalog proposal

2001-06-08 Thread Phillip J. Eby
At 04:58 PM 6/8/01 -0400, Shane Hathaway wrote: On Thursday 07 June 2001 21:28, Phillip J. Eby wrote: Upon being told to perform a transaction or subtransaction commit, the transaction would notify all the ruleAgents, and then all the indexingAgents. Objects could still subscribe to either

Re: [Zope-dev] Bulletproof ZCatalog proposal

2001-06-07 Thread Phillip J. Eby
At 02:07 PM 6/7/01 -0400, Shane Hathaway wrote: On Thursday 07 June 2001 12:17, Phillip J. Eby wrote: The only catch was that this would still produce conflicts at the head end of the linked list. :( Of course, that was in the days before ZODB conflict resolution. Nowadays, you could

Re: [Zope-dev] Property Storage

2001-06-07 Thread Phillip J. Eby
At 09:29 PM 6/7/01 +0100, Chris Withers wrote: If I change one property on, say, a DTML Document, does that store a whole new copy of the document in the ZODB? It updates the object in the ZODB. Whether that causes a copy to be made, depends on the underlying storage. FileStorage makes

Re: [Zope-dev] Bulletproof ZCatalog proposal

2001-06-07 Thread Phillip J. Eby
At 07:07 PM 6/7/01 -0400, Shane Hathaway wrote: Phillip J. Eby wrote: That is, in ZPatterns one can specify triggers such as: WHEN OBJECT DELETED, CHANGED CALL someCatalog.manage_uncatalog(self.absolute_url(1)) WHEN OBJECT ADDED, CHANGED CALL someCatalog.manage_catalog(self

Re: [Zope-dev] ZPatterns and Transactions

2001-05-31 Thread Phillip J. Eby
At 03:24 PM 5/31/01 +0200, Roché Compaan wrote: I have a ZPatterns application that uses the ZODB as storage. When I delete an object only the name of the script that deleted the object is shown in the Undo log. Is there any way to determine the ID of the object that was deleted? Is there a

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Phillip J. Eby
At 05:48 PM 5/23/01 +0200, Christian Scholz wrote: Hi! It works.. partially. For some reason it looks like getPersistentItemIDs does not always return a *complete* list. I need to run this method several times to completely exhaust the Rack's storage. Thoughts? The only way I ever create

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Phillip J. Eby
At 12:33 PM 5/23/01 -0500, Steve Spicklemire wrote: Hi Phil, FYI.. this doesn't work in a PythonScript since indexing into a BTreeItems is (apparently) not allowed by the Security Machinery. So... a simple list is looking better and better! ;-) Hmmm. Good point. I'll have to think about

Re: [Zope-dev] Experiments with ORMapping

2001-05-14 Thread Phillip J. Eby
At 12:26 PM 5/14/01 -0400, Shane Hathaway wrote: Chris Withers wrote: Shane Hathaway wrote: One would define an ObjectMappingSchema whose job it is to store and retrieve objects of a specific type and in a specific location. It would usually grab a database connection object to

Re: [Zope-dev] Re-inventing ZPatterns? (was Experiments with ORMapping)

2001-05-14 Thread Phillip J. Eby
At 04:13 PM 5/14/01 -0400, Shane Hathaway wrote: Phillip J. Eby wrote: All this is of course just my opinion, and quite possibly wrong. But I think that an application developer would get more mileage out of your DBAPI product (coupled with some utility classes to replace Racks) or from

Re: [Zope-dev] Experiments with ORMapping

2001-05-12 Thread Phillip J. Eby
At 05:42 PM 5/11/01 -0400, Shane Hathaway wrote: Phillip J. Eby wrote: I'm not quite clear on how exactly you suggest mapping from RDMBS - ZODB. There's a *significant* (IMHO) impedance mismatch between ZODB's arbitrarily identified variably structured single records and SQL's content

Re: [Zope-dev] Experiments with ORMapping

2001-05-11 Thread Phillip J. Eby
At 11:01 AM 5/11/01 -0400, Shane Hathaway wrote: Joachim Werner wrote: The current design plans of SmartObjects are mainly based on the assumption that we will not be able to change Zope itself. This is not a dogma for us, however. I guess doing OR-mapping in the Zope core would be fine

Re: [Zope-dev] ZPatterns Rack question..

2001-04-28 Thread Phillip J. Eby
At 06:00 PM 4/28/01 +0200, Christian Scholz wrote: Hi! First of all one note to the sql attribute provider: My problem seems to be solved now. Actually it was quite easy.. dunno why it took the long way.. thanks anyway to Phillip and Steve! But I have another problem now: I have some rack with

Re: [Zope-dev] Re: BTreeFolder

2001-04-27 Thread Phillip J. Eby
At 09:19 AM 4/27/01 -0700, Michael Bernstein wrote: Shane Hathaway wrote: Chris Withers wrote: will you be releasing a new version of BTreeFolder that makes use of the new funky BTrees at any stage? We've done some work on it; in fact Jim came up with a bold new idea that makes

Re: [Zope-dev] ZPatterns Design Issue

2001-04-24 Thread Phillip J. Eby
At 03:01 PM 4/24/01 +0200, Roch'e Compaan wrote: Building the tree leads to a whole bunch of queries to the database that really slows thing down ie. besides the queries that retrieve children, select queries to retrieve individual instances is called by getItem through SkinScript for each item

RE: [Zope-dev] ZPatterns Design Issue

2001-04-24 Thread Phillip J. Eby
At 05:26 PM 4/24/01 +0200, Roch'e Compaan wrote: How do you bind a SQL Result with multiple records with multiple instances of the class? Can you do this in Skinscript? Or do you mean I should return the sql result directly? Just return the result directly. If the data is all from SQL, that's

[Zope-dev] Re: hack for refused authorization with virtual dataskin

2001-04-23 Thread Phillip J. Eby
At 01:37 PM 4/23/01 +0200, Godefroid Chapelle wrote: Hello, After rereading the ZopeSecurityPolicy source code, I tried the following hack. I add in the skinscript : WITH 1 COMPUTE __allow_access_to_unprotected_subobjects__=RESULT which does work : it fools the security mechanism. I can

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-22 Thread Phillip J. Eby
At 03:07 PM 4/22/01 +0100, Steve Alexander wrote: As a simpler workaround, you can use your_object.commitSubtransaction() instead of redirecting to a new page. Um, this shouldn't be the issue here. _SetAttributeFor() should be called when the attribute is set; it's not transaction-driven.

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-22 Thread Phillip J. Eby
At 08:29 PM 4/22/01 +0200, Christian Scholz wrote: Hi! A little update.. Actually I was mistaken and SetAttributeFor() is called. Just _objectChanged() is not called in that case.. and thus my attributes are not stored to the database. When an object is newly added, only _objectAdded() is

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-22 Thread Phillip J. Eby
At 08:29 PM 4/22/01 +0200, Christian Scholz wrote: Hi! A little update.. Actually I was mistaken and SetAttributeFor() is called. Just _objectChanged() is not called in that case.. and thus my attributes are not stored to the database. When an object is newly added, only _objectAdded() is

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-21 Thread Phillip J. Eby
At 08:18 PM 4/21/01 +0200, Christian Scholz wrote: Hi! Good evening everybody! I have some question regarding attribute and agent programming for ZPatterns. I have some provider which is registered for the "handlers" and "attributes" methods and some attributes. My problem is

Re: [Zope-dev] SkinScript Questions

2001-04-02 Thread Phillip J. Eby
At 10:59 PM 4/1/01 -0700, Michael R. Bernstein wrote: 1) Are there any naming conventions for SkinScripts? Not that I'm aware of. I think Ty names all of his methods "SkinScript", but then, he tends to name all his working/temporary files "x", so what does he know? ;) 2) Is there any reason

Re: [Zope-dev] ZPatterns Image Archive Project

2001-04-02 Thread Phillip J. Eby
At 01:45 PM 4/1/01 -0700, Michael R. Bernstein wrote: It seems as though the manage_upload method is supposed to hand off the image data to RenderingKinds, which in turn either replaces the image data in existing Renderings, or creates new ones, by iterating through the rows in the TinyTable.

Re: [Zope-dev] ZPatterns Image Archive Project

2001-04-01 Thread Phillip J. Eby
At 08:59 PM 3/30/01 -0800, Michael R. Bernstein wrote: "Phillip J. Eby" wrote: Aha. I think I understand what you're doing now. You have an "Image" and you have a "Rendering". Two classes, different behaviors. I'm assuming that originals and thumbnails and w

Re: [Zope-dev] ZPatterns Image Archive Project

2001-03-30 Thread Phillip J. Eby
At 05:27 PM 3/30/01 -0800, Michael R. Bernstein wrote: Now I am working on a ArchiveImage ZClass that holds 'meta' information about an image, such as the description, a date, and keywords. I want to have one Rack for each image size that I want to store. Just out of curiousity, why do you want

Re: [Zope-dev] ZPatterns Image Archive Project

2001-03-30 Thread Phillip J. Eby
At 07:30 PM 3/30/01 -0800, Michael R. Bernstein wrote: "Phillip J. Eby" wrote: At 05:27 PM 3/30/01 -0800, Michael R. Bernstein wrote: Now I am working on a ArchiveImage ZClass that holds 'meta' information about an image, such as the description, a date, and keywords. I want t

Re: [Zope-dev] (ZPatterns) Speeding up Skinscripts

2001-03-29 Thread Phillip J. Eby
At 05:58 PM 3/29/01 -0500, Steve Spicklemire wrote: bring up a point I've been wondering about anyway. Now that Ty and Phillip have moved on to TransWarp, who will be maintaining all the changes to ZPatterns? SteveA has done a great job of keeping a modified version available for folks running

Re: [Zope-dev] (ZPatterns) Speeding up Skinscripts

2001-03-29 Thread Phillip J. Eby
At 01:57 PM 3/29/01 -0800, John Eikenberry wrote: We have a fairly large and complex app framework built on ZPatterns. It uses MySQL for storage and the standard Specialist/Rack/DataSkin setup with skinscripts for attributes and triggers. We've found that the speed of getItem is a bit slower

Re: [Zope-dev] LoginManager question

2001-03-27 Thread Phillip J. Eby
At 12:19 PM 3/27/01 +0200, Bertrand Croq wrote: Hi, I am currently using LoginManager to authenticate users from a MySQL database. I followed the tutorials and it works quite well; but there are other data associated with users in the database that I would like to use in Zope. I have found a

[Zope-dev] FYI: TransWarp talk slides posted

2001-03-11 Thread Phillip J. Eby
HTML Version (frames JavaScript required): http://telecommunity.com/TransWarp/IPC9Talk.htm PowerPoint Version: http://telecommunity.com/TransWarp/IPC9Talk.ppt ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] ZPatterns: External Attribute Provider question

2001-03-11 Thread Phillip J. Eby
At 07:48 PM 3/11/01 +, Steve Alexander wrote: Is there a good reason that ExternalAttributeProvider sets up a dictionary to put its attributes into, rather than a PersistentMapping? It's mainly to avoid a proliferation of persistent objects, based on the assumption that if you're using a

Re: [Zope-dev] State of ZPatterns

2001-03-10 Thread Phillip J. Eby
At 10:16 AM 3/11/01 +1100, Itai Tavor wrote: I'm wondering where TransWarp leaves ZPatterns users. Until a couple of weeks ago ZPatterns was the best thing to happen in the Zope world since, well, Zope. Now it's described as a 'hack', Those things aren't mutually exclusive, you know. :)

Re: [Zope-dev] Designing ZPatterns/Python-product-based, reusable applications - take 2

2001-03-10 Thread Phillip J. Eby
At 10:24 AM 3/11/01 +1100, Itai Tavor wrote: Then I need Specialists to manage collections of PD classes. I think that these would also benefit from being product-based, so I subclass Specialist to create a manager for each role in the application. Now, since an existing application might be

Re: [Zope-dev] TransWarp preview release (AOP tools only)

2001-03-08 Thread Phillip J. Eby
At 10:52 AM 3/6/01 -0500, Shane Hathaway wrote: "Phillip J. Eby" wrote: There's actually a simpler way. Aspect objects can be pickled as long as all the objects in them can be pickled. Which means that as long as all their methods are Zope objects, and all the nested classe

Re: [Zope-dev] TransWarp preview release (AOP tools only)

2001-03-02 Thread Phillip J. Eby
At 03:53 PM 3/2/01 -0500, R. David Murray wrote: On Fri, 2 Mar 2001, Shane Hathaway wrote: "Phillip J. Eby" wrote: One reason I've been racing like mad to get the preview release out is so that, after seeing the usefulness of TW for the Zope 3 component architecture, y

Re: [Zope-dev] TransWarp preview release (AOP tools only)

2001-03-02 Thread Phillip J. Eby
At 12:39 PM 3/2/01 -0500, Shane Hathaway wrote: We've been separating concerns in the PTK/CMF for the last year now. We've been moving as many responsibilities of the content objects as possible into per-portal "service" objects. The services provide user interface, discussion capability,

Re: [Zope-dev] TransWarp preview release (AOP tools only)

2001-03-01 Thread Phillip J. Eby
At 09:37 AM 3/1/01 -0500, Shane Hathaway wrote: This looks very interesting, Phillip. I haven't downloaded the package yet, but I read the wiki and it finally made sense once I understood the goal (I think): TW lets you set up the class inheritance hierarchy at runtime. In normal OO

Re: [Zope-dev] ZPatterns goes crazy after ZClass change

2001-02-20 Thread Phillip J. Eby
At 10:29 AM 2/21/01 +1100, Itai Tavor wrote: I think I've severely misunderstood how Racks work. I thought persistent Racks just store properties, and then use the ZClass set in the Storage tab to wrap that data when providing it. Which means that I can change the class set for storage and

Re: [Zope-dev] ZPatterns and SQL

2001-02-19 Thread Phillip J. Eby
At 05:29 PM 2/19/01 +0100, Christian Scholz wrote: You need to use an attribute which the object has *if and only if* it exists in the database. If the class has the attribute defined, all instances exist, and you can't even load it with SkinScript because ZPatterns uses __getattr__ to

Re: [Zope-dev] ZPatterns and SQL

2001-02-19 Thread Phillip J. Eby
At 05:50 PM 2/19/01 +0100, Christian Scholz wrote: (though I am still confused a little, as I tried one non-existing attribute and it didn't work. But this one also was not defined inside the SkinScript and the database). As I said, the attribute must exist if and only if the row is in the

Re: [Zope-dev] Waaagh! Python Script won't allow __setitem__

2001-02-19 Thread Phillip J. Eby
At 05:25 PM 2/19/01 +, Chris Withers wrote: Hmmm arguably a bug in ExtensionClass, but not one I'm gonna try and fix ;-) It's not a bug, it's a feature -- the feature that is the reason for the very existence of ExtensionClasses in the first place: merging of the notion of type and

Re: [Zope-dev] Python Product as DataSkin

2001-02-18 Thread Phillip J. Eby
At 12:51 PM 2/18/01 -0800, Michael R. Bernstein wrote: I have an existing Python Product that I would like to use as a DataSkin in a Rack. What do I need to change (import/subclass) in order to use it in this way? from ZPatterns.DataSkins import DataSkin class MyClass(DataSkin,...all other

Re: [Zope-dev] Python Product as DataSkin

2001-02-18 Thread Phillip J. Eby
At 09:49 PM 2/18/01 -0800, Michael R. Bernstein wrote: Ok, assuming that the 'normal' instantiation is either solved or a non-issue, do I need to do anything special to get the newItem() method to call my products manage_add method? newItem() will not do that. A Rack's newItem() method always

Re: [Zope-dev] Python Product as DataSkin

2001-02-18 Thread Phillip J. Eby
At 10:47 PM 2/18/01 -0800, Michael R. Bernstein wrote: Hmm. So I need to refactor the 'manage_add' method inside the python product into two methods, 'manage_add' which would be used by the 'normal' object creation process and that would also call a second 'setup' method which could be called by

Re: [Zope-dev] Q: Specialists, Racks, and ZCatalogs?

2001-02-04 Thread Phillip J. Eby
At 08:38 AM 2/4/01 -0800, Michael Bernstein wrote: On that subject, does anyone know why SkinScripts don't support cut-n-paste or copy-n-paste? 'cause I never thought of implementing it, probably because I've never yet needed to move a SkinScript. Patches cheerfully accepted. :)

Re: [Zope-dev] Specialist/Rack scalability

2001-01-21 Thread Phillip J. Eby
At 07:12 PM 1/21/01 +, Steve Alexander wrote: So, storing things in a Rack happens in a number of stages: Your application interacts with the Rack The Rack (perhaps) stores the object persistently in its BTree The BTree is a collection of persistent ZODB objects The ZODB objects

Re: [Zope-dev] LoginManger: multiple LoginMethods

2001-01-20 Thread Phillip J. Eby
At 06:38 PM 1/7/01 -0800, John Eikenberry wrote: Anyways... I want to be able to support both cookie based auth and basic auth. With cookie based auth being the default unless they don't have cookies (either because they have them turned off, behind a proxy filter, etc), in which case they

Re: [Zope-dev] skinscript and URL traversal question

2001-01-19 Thread Phillip J. Eby
At 09:41 AM 1/19/01 -0500, Aaron Payne wrote: At 09:38 AM 1/19/01 -0500, Phillip J. Eby wrote: Thus, your SkinScript is running as anonymous, and probably doesn't have rights to access the SQL method. You might need to change the proxy roles setting on the SkinScript method so that when

Re: [Zope-dev] ZPatterns: Attribute Providers

2001-01-18 Thread Phillip J. Eby
At 04:57 PM 1/18/01 +, Steve Alexander wrote: Here's my understanding of how Persistent Attribute Providers work: Persistent Internal Attribute Provider DataSkins and Attributes are ultimately stored like this: Rack's BTree | | | Slots: key:value |

RE: [Zope-dev] Specialists and __bobo_traverse__

2001-01-18 Thread Phillip J. Eby
At 04:45 PM 1/18/01 +0200, Roch'e Compaan wrote: Phillip J. Eby wrote: I'm pretty sure DTML methods *won't* work. "Python Methods" might. I don't know about external methods, python scripts, etc. I have successfully used PythonScripts for this. Did you have to do anythi

Re: [Zope-dev] skinscript and URL traversal question

2001-01-18 Thread Phillip J. Eby
At 08:54 AM 1/18/01 -0500, Aaron Payne wrote: Hi all, I originally posted this to the zope list and, upon suggestion, I am reposting it to zope-dev. I'm using a zsql method in a skinscript with query ... compute ... and it mostly works. Retrieving the dataskin with getItem() works. For

RE: [Zope-dev] Specialists and __bobo_traverse__

2001-01-17 Thread Phillip J. Eby
At 04:41 PM 1/17/01 +0200, Roch'e Compaan wrote: I don't have the slightest idea what you're trying to accomplish here - I probably missed the beginning of this thread. Do you want to change the way the specialist processes the string "dataskin1", or the way dataskin1 processes the URL

Re: [Zope-dev] Specialists and __bobo_traverse__

2001-01-16 Thread Phillip J. Eby
It sounds to me like you're trying to have SkinScript supply a bobo_traverse for the Specialist itself, and this you cannot do. (There are other ways to change a Specialist's bobo_traverse behavior, but SkinScript is not one of them.) The SkinScript you're doing is meaningful only if you want

Re: [Zope-dev] ZPatterns: catching exceptions raised by triggers

2001-01-05 Thread Phillip J. Eby
At 12:49 AM 1/6/01 +, Steve Alexander wrote: WHEN OBJECT ADDED, CHANGED CALL self.ensure_conditions_hold() I write the ensure_conditions_hold method so that it returns None if everything is ok, but raises an exception if there is a problem with the new state of the object. That's all

Re: [Zope-dev] ZPatterns; possible bug?

2001-01-04 Thread Phillip J. Eby
At 06:03 PM 1/4/01 +, Steve Alexander wrote: I think what is happening in the broken example is that when the zope security machinery asks for __roles__, name is also computed. The machinery must request __roles__ before changing anything. The behavior is as documented, though I'm not

Re: [Zope-dev] Objects with multiple parents and storage flexibility, ZPatterns?

2001-01-03 Thread Phillip J. Eby
At 05:15 PM 1/3/01 +, Chris Withers wrote: What I'd like: 'Zope' objects of type 'X', which can have multiple parents and can contain other objects of type 'X', where storage isn't necessarily tied to the ZODB but where the objects have a normal properties page (in terms of use, again, it'd

Re: [Zope-dev] ZPatterns example update....

2001-01-02 Thread Phillip J. Eby
At 03:08 PM 1/2/01 +1100, Itai Tavor wrote: Hi Steve, Steve Spicklemire wrote: "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai Maybe with this Itai SkinScript: WITH Doers.getItem(self.doerID) CALCULATE Itai self.doerID=RESULT.id or '' ? But I'm not really sure about

Re: [Zope-dev] ZPatterns, ZClasses, Specialists: Assigning responsibilities

2000-12-21 Thread Phillip J. Eby
At 05:13 PM 12/21/00 +1100, Itai Tavor wrote: I think you're right about this being an OrderLineItem. A couple of fine points, however... First, I don't think there needs to be an "OrderLineItemsWithGraphic" specialist, since there is nothing else that would talk to it. It's fine in this case

Re: [Zope-dev] ZPatterns, ZClasses, Specialists: Assigning responsibilities

2000-12-18 Thread Phillip J. Eby
At 04:21 PM 12/18/00 +1100, Itai Tavor wrote: This is how I see it: - Products Specialist productRack customizableProductRack - OrderLineItem Specialist lineItemRack lineItemWithGraphicRack - product.addMeToOrder(): order.addLineItem(product_id=id, add='lineItem') -

Re: [Zope-dev] ZPatterns: persistant objects hold DataSkin-Items - KeyError: _v_dm_

2000-12-14 Thread Phillip J. Eby
At 02:49 PM 12/14/00 +0100, Ulrich Eck wrote: after a while I think I got it now. I use a FcWS as a Folder like usual in Zope and if i create an object of a type which is "customized" certain attributes will be set through the customizer. Yes. so for a database app that handles multiple

Re: [Zope-dev] ZPatterns: General Design Question

2000-12-14 Thread Phillip J. Eby
At 02:42 PM 12/14/00 +0200, Roch'e Compaan wrote: As part of a Customer Relationship Management system our company is developing, we have a Licenses specialist which manages product licenses. All license objects do not have the same attributes however. The various attributes relating to

Re: [Zope-dev] ZPatterns: persistant objects hold DataSkin-Items - KeyError: _v_dm_

2000-12-13 Thread Phillip J. Eby
At 06:31 PM 12/13/00 +0100, Ulrich Eck wrote: after one more day of source-code-reading i got that far: When I want to use a Folder /w Customizer (FwCS) I cannot/don't need to use Specialists. Not to store your objects, no. You can still use Specialists to concentrate search methods,

Re: [Zope-dev] [ZPatterns] DataSkin object ownership

2000-12-12 Thread Phillip J. Eby
At 08:04 PM 12/12/00 -0500, BS wrote: Do DataSkins have ownership? I want to give multiple users the ability to add objects to a rack and only allow the 'owner' to view/edit the object. When a user adds a DataSkin to a rack does he get ownership of the object? I can't seem to get the ownership

Re: [Zope-dev] FW: ZPatterns, ObjectDomain, UML and all that.....

2000-12-05 Thread Phillip J. Eby
At 09:44 PM 12/5/00 +0200, Roch'e Compaan wrote: If you want to store one DataSkin inside another, where either one of them is stored in a Rack, you will have to create appropriate SkinScript or custom attribute providers to do so. But what if I always store dataskins in there own racks but

Re: [Zope-dev] changing/storing Properties with ZPatterns

2000-12-01 Thread Phillip J. Eby
At 10:07 AM 12/1/00 +0100, Joachim Schmitz wrote: this works fine. Now I wanted to have attributes which I don't want to display in the form, for example complete attribute. I therefore created another dataskin propersheet Internal in AZ with a property complete and tried to set it with:

Re: [Zope-dev] OracleStorage, and possibly others

2000-11-30 Thread Phillip J. Eby
At 08:10 AM 11/30/00 -0500, Jim Fulton wrote: I don't think Data.fs will go away. I do expect it to be relagated to initial evaluation and development projects. Use of Berkely DB in transactional mode requires a significant andminstration commitment. Log files need to be purged. Backup and

Re: [Zope-dev] ZPatterns: using PythonMethods from Skinscript

2000-11-30 Thread Phillip J. Eby
At 04:39 PM 11/30/00 +0100, Ulrich Eck wrote: I've a db_sequence specialist who serves the Framework with db_id's for new Records like: May I suggest calling your Specialist "Sequences" or "Counters" since it appears that it returns objects which produce sequential integer values?

Re: [Zope-dev] ZPetterns implementation qustions

2000-11-29 Thread Phillip J. Eby
At 06:19 PM 11/29/00 +1100, Itai Tavor wrote: Hi, I'm trying to figure out the right way to implement a set of classes and roles in ZPatterns. I asked some questions about this a while ago, and then went away and did some learning, but I'm stuck again and I'm afraid I need to ask more

RE: [Zope-dev] Create Virtual DataSkin

2000-11-27 Thread Phillip J. Eby
At 02:34 PM 11/27/00 -0800, Ben Schochet wrote: Seems that way Steve. I have tried to do this in an external method with self.get_transaction.commit(1) before doing the changeProperties, but that didn't seem to work. You want get_transaction().commit(1), if you're doing it from Python.

Re: [Zope-dev] Create Virtual DataSkin

2000-11-27 Thread Phillip J. Eby
At 08:34 PM 11/27/00 -0500, [EMAIL PROTECTED] wrote: Thanks Phillip. Is there a way to pass my REQUEST info to the ADD Trigger? I am under the impression that only "self" and some other ZPattern specific properties are available to the trigger. You also have access to everything in the

Re: [Zope-dev] ZPatterns and ZCLasses

2000-11-22 Thread Phillip J. Eby
At 10:29 AM 11/22/00 +0100, Joachim Schmitz wrote: I created a FwCS and in it a customizer, but in my list of to customize object types are only meta_types listed, which have the Base class "_ZClass_for_DataSkin",. Is this a requirement, and if yes, is there a way to add this to existing

Re: [Zope-dev] ZPatterns: Methods of specialits

2000-11-22 Thread Phillip J. Eby
At 12:41 PM 11/22/00 +0200, Roch'e Compaan wrote: I have a specialist Contacts and for Contacts I have a method getAllContactsForCustomer. Whenever I want to call this method I have to pass on the whole namespace and the object itself to get it to work eg: getAllContactsForCustomer(this(), _,

RE: [Zope-dev] ZPatterns Project Help!

2000-11-22 Thread Phillip J. Eby
At 10:21 AM 11/22/00 -0500, [EMAIL PROTECTED] wrote: Thanks for answering Steve. Unfortunitly I am working with version 0.3 of ZPatterns so I have to use GAP. When I try to translate your Skinscript into GAP like this "attrsexprs:account_object=(RESULT is _.None) and NOT_FOUND or RESULT"

Re: [Zope-dev] ZPatterns and ZCLasses

2000-11-21 Thread Phillip J. Eby
At 11:08 AM 11/21/00 +0100, Joachim Schmitz wrote: I have an existing ZClass/Data Structure like this RecruitingPlatform Company Recruiting Candidates Student Profiles Address Highschool IT Jobprefs ... I want to store the data in the ZClass

Re: [Zope-dev] Folders w/Customizer Support

2000-11-16 Thread Phillip J. Eby
At 02:46 PM 11/16/00 +, Chris Withers wrote: To put it another way, could you have a FwCS that provided soem properties and let another FwCS further up the acquisition tree supply the rest? Nope. But there's nothing stopping you from writing a new version of the "link to parent providers"

  1   2   3   >