[Zope-dev] Re: Unit testing, ZUnit

2000-10-24 Thread Butch Landingin
--- In [EMAIL PROTECTED], Lalo Martins [EMAIL PROTECTED] wrote: snip We first conceived it as a kind of Zope-based version of unittestgui.py - you create a "TestRunner" object giving it the package, module and name of a TestSuite object generator (see the PyUnit documentation) and inside it

[Zope-dev] Security requires Acquisition?!

2000-10-24 Thread Chris Withers
Toby Dickenson and Brian Lloyd wrote: list.append(DisplayClass(name,self)) list.append(DisplayClass(name,self).__of__(self)) class DisplayClass(Globals.Persistent): class DisplayClass(Globals.Persistent, Acquisition.Implicit): Okay, this did the

Re: [Zope-dev] Unit testing, ZUnit

2000-10-24 Thread Simon Coles
What do people think of this? What does DC think of this? Can I go ahead and develop it in this direction? For our XP endeavors, we've developed a testing framework we call SimpleTest, which tests our systems using HTTP requests. Tests are written in XML, along the lines of: ?xml

[Zope-dev] WriteLocking RiskFactors updated

2000-10-24 Thread Jeffrey P Shell
The WriteLocking RiskFactors artifact has had some new work done on it and I'm interested in some editorial comments and review before work begins on Architecture and UseCases. http://dev.zope.org/Wikis/DevSite/Projects/WriteLocking/RiskFactors Make any comments you have at:

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

2000-10-24 Thread Dennis Nichols
I have developed a flock of Python products that have attributes 'first_date', 'last_date', and 'ok_to_publish' with the intention that these attributes will be set by the content managers. Each product also has an 'isPublishable' method that returns true if 'ok_to_publish' is true _and_

Re: [Zope-dev] Unit testing, ZUnit

2000-10-24 Thread Dan L. Pierson
Lalo Martins [EMAIL PROTECTED] writes: Then I figured in the long run a Product isn't the best sollution; instead, fiddling with App/Product* sounds more like it, to allow developers to register tests just like they register classes, ZClass superclasses, _misc and help. Of course, just like

Re: [Zope-dev] Using LoginManager with users stored in several Specialists

2000-10-24 Thread Ty Sarna
In article a05001900b61b0b6ac87c@[10.0.1.2], Itai Tavor [EMAIL PROTECTED] wrote: - I'm not sure how to customize a UserSource to access the propertysheets on the Customer and Reseller classes. The easiest way seems to be to define userExists, userRoles and userAuthenticate methods in a

[Zope-dev] Migrating from ZClasses to Python Products

2000-10-24 Thread Jason Spisak
And now the big question... How do you migrate and existing application from ZClasses to Python products? I've got about 50,000 objects. Can it be done or am I stuck with ZClasses? Hopefully, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P.

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

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

2000-10-24 Thread Steve Waterbury
Ty Sarna wrote: Unfortunately there are a lot of things that Zope just can't do because there is no way to get a persistent "ticket" for an object that can be handed out to some external system, and then later redeemed for the (properly wrapped) object. Pathnames are not useful, because they

Re: [Zope-dev] Migrating from ZClasses to Python Products

2000-10-24 Thread Jason Spisak
Andy McKay writes: Cool Project... That means I'm screwed. :) And now the big question... How do you migrate and existing application from ZClasses to Python products? I've got about 50,000 objects. Can it be done or am I stuck with ZClasses? Well the number of objects doesnt

[Zope-dev] DataSkinAddons 0-0-2 released

2000-10-24 Thread Steve Alexander
DataSkinAddons 0-0-2 http://www.zope.org/Members/stevea/DataSkinAddons Changes: DataSkinAddons 0-0-2, 24 October 2000 DataSkinAddons 0-0-2 works with ZPatterns-0-4-3b1 and Zope 2.2 only Various changes to CatalogTrigger to bring it in line with the new Expressions module from ZPatters

Re: [Zope-dev] Getting all objects matching a given meta_type and more

2000-10-24 Thread Steve Alexander
Morten W. Petersen wrote: I've managed using the ZCatalog now. However, I have a small problem: When I instansiate a ZCatalog at the root of a tree, and search for all objects matching a given meta-type, all the objects in the entire tree are returned. Is there a way to instruct the

[Zope-dev] RE: Security requires Acquisition?!

2000-10-24 Thread Toby Dickenson
Okay, this did the trick, but I'm not very happy with the result :-( I don't want the DisplayClass to be acquiring and I don't really see (from a moral standpoint ;-) why I should need to mix in an Acquisiton class to make security work :-S I suspect that was a rhetorical question, but ill

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

2000-10-24 Thread Toby Dickenson
On 24 Oct 2000 15:14:24 GMT, [EMAIL PROTECTED] (Ty Sarna) wrote: Unfortunately there are a lot of things that Zope just can't do because there is no way to get a persistent "ticket" for an object that can be handed out to some external system, and then later redeemed for the (properly wrapped)

[Zope-dev] Re: [Zope] The Great Python (and Perl) Method Renaming Poll

2000-10-24 Thread Michael Bernstein
Michel Pelletier wrote: We will be conducting a community poll to decide what to call Python (Perl, insert your language here) Methods. [snip] So, before the poll, we are calling for nominiations from the community. Please send me an email containing one or more candidate names. These