Re: [Zope-dev] ZPatterns and ZCLasses

2000-11-22 Thread Joachim Schmitz
On Tue, 21 Nov 2000, Phillip J. Eby wrote: 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

Re: [Zope-dev] Conflict Errors

2000-11-22 Thread Ender
Chris Withers wrote: i'm no expert but deeply nested data structures in a single object are rife with possibilities for conflict errors. if data might be changing concurrently in the structures or frequently changing you would be better off to switch the structure to nested persistent objects.

[Zope-dev] Interface localization: zzLocale 0-0-4a release

2000-11-22 Thread Yves-Eric Martin
Hello, Since the SkinnableAndLocalizable project is on hold, and since people here in Japan and other non-english speaking countries have repeatedly expressed their wish for localized versions of Zope, I decided to continue zzLocale development and turn it into an actually usable

[Zope-dev] ZPatterns: Methods of specialits

2000-11-22 Thread Roch'e Compaan
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(), _, _.None). Why is this the case? And what does

Re: [Zope-dev] Callable baseclass for ZClasses

2000-11-22 Thread Chris Withers
"Stefan H. Holek" wrote: Taking ideas from the Renderable product, the ZCallable baseclass (PTK) and the __call__ thread on this very list, I created a Callable baseclass intended as a mixin for ZClasses. class Callable: def render( self, client=None, REQUEST={}, RESPONSE=None, **kw

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

2000-11-22 Thread Steve Spicklemire
Hi Roch'e, I'm guessing that getAllContactsForCustomer is a "DTML Method". If I remember correctly the third argument is a 'mapping object' that can be used to augment the effective namespace available to the method. Passing _.None should do nothing (I'm guessing you could just use

Re: [Zope-dev] ZPatterns Project Help!

2000-11-22 Thread Steve Spicklemire
Hi Ben, GAPs are sort of deprecated at this point in favor of SkinScript. In SkinScript you might do something like this: WITH accounts.getItem(self.account_id) COMPUTE account_object=RESULT or more carefully... WITH accounts.getItem(self.account_id) COMPUTE account_object=(RESULT is

Re: [Zope-dev] Conflict Errors

2000-11-22 Thread Toby Dickenson
On Tue, 21 Nov 2000 17:03:17 +, Chris Withers [EMAIL PROTECTED] wrote: It happens when more than one thread tries to modify the same object in storage at the same time. It's Zope's equivalent of record-locking... It's normal. There's no corruption or anything, it's telling you that it

Re: [Zope-dev] Conflict Errors

2000-11-22 Thread Chris McDonough
Hurm, well, it appears to happen when we're doing a lot of sequential write to a product (automated bulk data upload), but the thing that triggers it off is actually trying to read a page from the same area of the site... confusing. Although that could also be a one-off coincidence...

RE: [Zope-dev] ZPatterns Project Help!

2000-11-22 Thread bentzion
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" and I try to access the object's id with dtml-var

[Zope-dev] making a deepcopy of an ExtensionClass instance?

2000-11-22 Thread Toby Sargeant
The only way I've found to do this thus far is to add the following method to classes which I want to have deepcopyable instances: def __deepcopy__(self,memo): self=getattr(self,'aq_base',self) new=cPickle.loads(cPickle.dumps(self))

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] Callable baseclass for ZClasses

2000-11-22 Thread Stefan H. Holek
On Wed, 22 Nov 2000, Chris Withers wrote: [ snipped cosmetic modifications ;) ] until I had to put some security on my CallableFolders. Removing 'View' for Anonymous keeps me from accessing a CallableFolder directly but it can still be used as a subtemplate (dtml-var x) from another DTML

Re: [Zope-dev] Interface localization: zzLocale 0-0-4a release

2000-11-22 Thread Michel Pelletier
Can we see a screenshot of what the Zope managment interface looks like in Japanese? (just a personal curiousity) -Michel Yves-Eric Martin wrote: Hello, Since the SkinnableAndLocalizable project is on hold, and since people here in Japan and other non-english speaking countries

[Zope-dev] ANNOUNCE: PartitionedFileStorage

2000-11-22 Thread Shane Hathaway
For all who are interested in breaking database size barriers without moving to Oracle or Berkeley Storage, here's something to try out. http://www.zope.org/Members/hathawsh/PartitionedFileStorage I *highly* recommend you back up Data.fs before installing. What is known to work: - Reads and

[Zope-dev] zwiki ZUnit support added

2000-11-22 Thread Simon Michael
This is great, Lalo! Thanks. I checked in ZUnit support to ZWiki-cvs, and the first couple of unit tests. Suddenly, I feel all Extreme! FWIW, here's how I run the tests. I made a TestRunner called ZWikiTests, pointing to "Products.ZWiki.TestSuite". I have these rules in a makefile: