[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: 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, bu

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

2003-12-29 Thread Phillip J. Eby
At 12:52 PM 12/29/03 -0500, Fred L. Drake, Jr. wrote: Barry Warsaw writes: > Since I didn't understand what keytype actually provided, even after > reading the docs on it several times, I've never found a need for it > . Sounds like I need to improve the docs for this. Changing the keytype all

[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 non-defa

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 com

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;

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] http://lists.zope.org/mailman/listinf

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? > > >

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

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, > &g

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 wra

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

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 m

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 no

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 acc

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 Z

Re: [Zope-dev] Re : Open Letters and Zope 3

2001-12-04 Thread Phillip J. Eby
At 12:21 PM 12/4/01 +0100, Godefroid Chapelle wrote: >I would like to get a better idea of what 'Zope rebuilt from the ground up >includes'. Code that isn't crufty! Now with the new, sparkling clear look of Interfaces, and a zesty twist of tests! Objects that don't peer and poke at other ob

[Zope-dev] Cool stuff!

2001-12-03 Thread Phillip J. Eby
I just looked through a few parts of the Zope3 CVS tree, and I must say it's looking mighty nice so far at the 50,000 foot level... I especially like the Zope.Transaction package; it'll eliminate the need for my ZLite.Transaction hack. Indeed, much of the package-level refactoring seems much

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_

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 boun

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).

Re: [Zope-dev] Zope & Cygwin

2001-10-10 Thread Phillip J. Eby
Perhaps I'm confused, but I have an old (>3 months) version of Cygwin, but when I installed the Win32 Python 2.1.1 release, I was able to build extension modules just fine using distutils, after I built an import library. You shouldn't need VC++ to build Zope extensions, just distutils and gc

[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 th

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

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] 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 no

[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 supp

[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

[Zope-dev] ZPatterns 0.4.3 final for Zope 2.3.x released

2001-06-24 Thread Phillip J. Eby
FYI, I have uploaded a release version of ZPatterns 0.4.3 to: http://www.zope.org/Members/pje/ZPatterns I have also updated the standalone PlugIns package at: http://www.zope.org/Members/pje/PlugIns These are primarily maintenance releases for GUI and security compatibility with Zope 2.3.x.

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 cou

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, CHAN

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 copi

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 confl

Re: [Zope-dev] Bulletproof ZCatalog proposal

2001-06-07 Thread Phillip J. Eby
At 09:34 AM 6/7/01 -0400, Shane Hathaway wrote: > >One thing I didn't make clear in the proposal is that I'm interested in >repurposing ZCatalog as a general ZODB indexing mechanism and >essentially moving it down from the application layer to the database >layer. Catalogs would be updated aut

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 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 abo

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 ev

Re: [Zope-dev] OR mapping proposal

2001-05-15 Thread Phillip J. Eby
At 09:37 AM 5/15/01 -0400, Shane Hathaway wrote: >http://dev.zope.org/Wikis/DevSite/Proposals/ORMappingDB > >Comments encouraged! > I see two themes here: an implementation-independent data management API, and metadata. May I suggest that perhaps a design effort focused specifically on these thr

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 u

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 conn

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 identi

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 b

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

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 ide

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'

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 ite

[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.

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-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-drive

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.

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 >TinyTabl

Re: [Zope-dev] ZPatterns Image Archive Project

2001-04-02 Thread Phillip J. Eby
At 05:08 PM 4/1/01 -0700, Michael R. Bernstein wrote: > >Now, am I correct in assuming that the 'sizes' TinyTable >should be in the RenderingKinds Specialist? Yes. >I'm also assuming that RenderingKinds' defaultRack is set to >use 'ZPatterns: DataSkin' and be set to load by accessing >the 'id'

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 reas

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

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 ima

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

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 slow

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 runni

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 fou

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

[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] http://lists.zope.org/mailman/listinfo/zope

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

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] 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 Zo

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-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

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 methodol

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

2001-02-28 Thread Phillip J. Eby
It's here... the first preview release of TransWarp. The bad news is, it only contains working versions of the aspect-oriented programming tools (the rest of the package is in flux). The good news is: 1. It's a *robust* working version, with 114 unit tests to prove it, and 2. There's state-of

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 an

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 c

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 d

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

Re: [Zope-dev] ZPatterns and SQL

2001-02-19 Thread Phillip J. Eby
At 02:59 PM 2/19/01 +0100, Christian Scholz wrote: > >So as the item is an instance of my ZClass containing also an company_name attribute >it will always return the item and because of that the Rack thinks it's already there. >So why is this happening? What do I need to change? You need to use a

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 >call

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 alw

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 oth

Re: [Zope-dev] problems with LoginManager and proxies

2001-02-12 Thread Phillip J. Eby
At 09:29 AM 2/12/01 -0500, Tim McLaughlin wrote: >thanks to the excellent tool (tcpwatch) I was able to pinpoint the issue I >am having with LoginManager. It seems that it is returning an HTTP/1.0 500 >Internal Server Error as the response to the proxy which then tells the >browser that the page

Re: [Zope-dev] Subproducts in a Zope Python Product

2001-02-08 Thread Phillip J. Eby
At 07:32 PM 2/8/01 +0100, Johan Carlsson wrote: >Hi, > >I want to create a sub modul in one of my Python Products, >because it gets more manageble. >Accualy I have a bunch of Plugins I which files I want to manage >in sub directories of the original Python Product. > >e.g. ./Products/MyProduct/Plu

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 o

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 s

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 ne

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

2001-01-19 Thread Phillip J. Eby
At 09:05 AM 1/19/01 -0500, Aaron Payne wrote: >At 05:02 PM 1/18/01 -0500, Phillip J. Eby wrote: >>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

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-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. >> >>

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-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 th

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 to

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

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 no

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,

Re: [Zope-dev] [ZPatterns] DataSkin and Zope Security

2001-01-03 Thread Phillip J. Eby
At 11:43 AM 1/3/01 +, Chris Withers wrote: >"Phillip J. Eby" wrote: >> >> DataSkins stored in Racks do not participate in the Zope ownership >> mechanism, nor the creation of the 'Owner' role. This is because they are >> not being stored via th

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 no

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

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='li

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 diffe

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 multip

  1   2   3   4   >