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

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

Re: [Zope-dev] Re: Unit testing, ZUnit

2000-10-24 Thread Lalo Martins
On Tue, Oct 24, 2000 at 04:35:58AM -0700, Butch Landingin wrote: > > So I do have some questions about how you intend the ZUnit to be used... e.g. -- >lets say I'm > developing a Zope Application... I begin by writing the Python code interface, > then I start writing the PyUnit test... in the t

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

2000-10-24 Thread Itai Tavor
Ty Sarna <[EMAIL PROTECTED]> wrote: >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

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

2000-10-24 Thread Ender
Jason Spisak wrote: > > The only problem I am dealing with is size. > What kind of a transaction will that be? > Huge, no doubt. > > I would run out of space to buffer it. Does Zope do subtransactions now, > or is that still just the ZCatalog? zope has done subtransactions for a while, i'm not

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

2000-10-24 Thread Jason Spisak
Brett Carter writes: The only problem I am dealing with is size. What kind of a transaction will that be? Huge, no doubt. I would run out of space to buffer it. Does Zope do subtransactions now, or is that still just the ZCatalog? Also, I am running on stock RH6.2 linux and to double my ZODB p

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

[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 0-4-3b1

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

2000-10-24 Thread Morten W. Petersen
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 ZCatalog instance that it should only

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

2000-10-24 Thread Jason Spisak
Shane: > Jason Spisak wrote: > > > > 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? > > > > > > Andy McKay writes: > > > > > > We

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

2000-10-24 Thread Shane Hathaway
Jason Spisak wrote: > > > 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? > > > > Andy McKay writes: > > > > Well the number of objects doe

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

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

2000-10-24 Thread Andy McKay
> 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 really matter, but migrating it from ZClass to Python - Ive never hear

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 t

[Zope-dev] Large file support

2000-10-24 Thread seant
I have been building an "ExternalFile" class which stores the body of the file in an external file, mirroring the Zope path/hierarchy. This will allow easy integration with servers that can mount the external representation of the content and serve it with a consistent namespace. To make life zi

Re: [Zope-dev] Writing my own request-handler

2000-10-24 Thread Andy McKay
http://www.zope.org/Members/4am/SiteAccess2 Site Access handles the incoming request and fiddles with it. Whilst this isnt what you want, looking at the source might give you some ideas. - Original Message - From: "Thomas Weholt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

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: self # functions that returns publishable objects result = [] for o in self.objectValues(): if o.isPublishable(): result.append(o) return result -- Itamar S.T. [EMAIL

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

2000-10-24 Thread Johan Carlsson
> > > > Is there an unique object ID in the ZODB that remains constant in all times > > through out the life time of the ZODB? > > And if so, where is it created and how do I access it? In other word how do I use >it? > > > > I can vaguely recall seeing something called OID. > > You can (from

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

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

2000-10-24 Thread Ty Sarna
In article , 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

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

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

2000-10-24 Thread Ty Sarna
In article <000701c03d28$63f28c00$[EMAIL PROTECTED]>, Johan Carlsson <[EMAIL PROTECTED]> wrote: > Hi Zen-guys, > > Is there an unique object ID in the ZODB that remains constant in all times > through out the life time of the ZODB? > And if so, where is it created and how do I access it? In other

[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_ today

Re: [Zope-dev] Python 2.0 and Zope Status?

2000-10-24 Thread Ty Sarna
In article <[EMAIL PROTECTED]>, Toby Dickenson <[EMAIL PROTECTED]> wrote: > > - Problem with ExtensionClasses and 2.0's circular reference GC. > > Can someone elaborate on this? Is configuring python2.0 with > > That used to be a problem with some early cvs release, but it seems to > have gone

[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. Make any comments you have at:

[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. Make any comments you have at:

Re: [Zope-dev] Task, Job or Operation?

2000-10-24 Thread Rik Hoekstra
Some name suggestions - block has been suggested before What about - ZopeCodeBlock from there: Internal Python ZopeCodeBlock External Python ZopeCodeBlock Internal Perl ZopeCodeBlock Safe Python ZopeCodeBlock Alternatively something like ZopeBrainBlock might be considered, though I do

Re: [Zope-dev] Task, Job or Operation?

2000-10-24 Thread mmillikan
Pylet? Perlet? Xlet? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mai

[Zope-dev] Writing my own request-handler

2000-10-24 Thread Thomas Weholt
Hi, I want to write my own request in Zope. I want a specially formatted request or a command to be intercepted and processed by my own modules. If the user tries to access a url like http://www.myserver.org/myhandler or using a specific port on the server Zope traps this and my request_handle

[Zope-dev] Adding Users in Python

2000-10-24 Thread Andre Schubert
Hi, I'am using the following code in one of my Products. obj = Kunde.Kunde(id=row['name'],modem=row['modem'],db_id=row['id'],adress_id=row['adresse']) folder = AccessControl.User.UserFolder() obj._setObject('acl_users', folder) obj._addRole('Kunde

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

[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

[Zope-dev] Re: Unit testing, ZUnit

2000-10-24 Thread Butch Landingin
--- In [EMAIL PROTECTED], Lalo Martins <[EMAIL PROTECTED]> wrote: > 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] ZGDChart product...

2000-10-24 Thread zope
Hi. This is really a great product. Unfortunately, I'm not able to create a chart with multiple columns using a ZSQL Data Method. Multiple columns with a DTML-Method works fine. Do I miss something. Any ideas? Thanks for any help. Regards, Marc Ludwig ([EMAIL PROTECTED]) ___

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

2000-10-24 Thread Itai Tavor
Hi, I have two different types of users - Customers and Resellers. Each one is stored in a separate ZClass and managed by a separate Specialist. I need to be able to authenticate users from both user lists, as well as a third group for people working locally on the site - Managers, Customer S

[Zope-dev] Re: DataSkinAddons: Fix for CatalogTrigger for ZPatterns-0-4-3b1

2000-10-24 Thread Steve Alexander
Steve Alexander wrote: > > Your fix looks just fine, and I'll include it in a new release soon. If > you find any other problems using DataSkinAddons with the new ZPatterns, > please let me know. > > I think the change in ZPatterns is to get rid of some cruft for > supporting both Zope 2.1.x and

[Zope-dev] DataSkinAddons: Fix for CatalogTrigger for ZPatterns-0-4-3b1

2000-10-24 Thread Steve Alexander
John Eikenberry wrote: > > The new ZPatterns has changed their NamespaceStack from a function to a > class. It seems it no longer needs the REQUEST object to be passed to it > manually. Simply removing the self.REQUEST from the call to NamespaceStack > has kept it from throwing an exception, thou