Re: [Zope-dev] Beginning Zope User

2000-07-13 Thread Steve Alexander
Hi John, John Gunnar Carlsson wrote: Help! I downloaded a product and uploaded it to my directory, but I don't know how to unzip it. I'm using NT. Whenever I load WinZip it will only let me unzip it to local places on the hard disk but nowhere on the Zope directory itself.

Re: [Zope-dev] ZPatterns: missing docstring in getItem()

2000-07-13 Thread Steve Alexander
"Phillip J. Eby" wrote: Changes checked in. I should be releasing an alpha5 tomorrow. That's great. Did you get my message about errors in triggered methods? I realised that I only sent it to the zope-dev list, and not cc-ed to you. I had hoped to finish my work on proxy roles, ZClass

Re: [Zope-dev] External Method Missery

2000-07-13 Thread Chris Withers
Shane Hathaway wrote: Here's the logic: ExternalMethod sets up func_* attributes so it can masquerade as a function. The trick works well enough to convince ZPublisher's mapply() to pass in a "self" argument as the first argument when needed. What 'self' does mapply pass? I always though it

Re: [Zope-dev] External Method Missery

2000-07-13 Thread Chris Withers
Steve Alexander wrote: Ah... but are you calling the external method from a DTML method? These are all methods, and therefore you'd expect the "self" object to be the object the methods are subobjects of. The exact turn of events is that index_html is a DTML method which shows a DTML

Re: [Zope-dev] ZPatterns: BTree folder w/ customizer support

2000-07-13 Thread Steve Alexander
Steve Alexander wrote: I want to combine Shane Hathaway's BTreeFolder product with ZPatterns to create a "BTree folder w/ Customizer support". snip! Instead, why not make PlugInContainer a mix-in class, and have concrete classes for PlugInFolder and PlugInBTreeFolder ? Then, it is

[Zope-dev] Uploading a ImageFile

2000-07-13 Thread Andre Schubert
Hi, i have a question on uploading an image from my Product. I have a Product in http://server:8080/somewhere/Product. In my Product i call: self._setObject(id, File(id,title,'',content_type, precondition)) self._getOb(id).manage_upload(file) Now the image is on

Re: [Zope-dev] ZPatterns: BTree folder w/ customizer support

2000-07-13 Thread Phillip J. Eby
At 02:30 PM 7/13/00 +0100, Steve Alexander wrote: Steve Alexander wrote: I want to combine Shane Hathaway's BTreeFolder product with ZPatterns to create a "BTree folder w/ Customizer support". snip! Instead, why not make PlugInContainer a mix-in class, and have concrete classes for

Re: [Zope-dev] ZPatterns: missing docstring in getItem()

2000-07-13 Thread Phillip J. Eby
At 08:50 AM 7/13/00 +0100, Steve Alexander wrote: "Phillip J. Eby" wrote: Changes checked in. I should be releasing an alpha5 tomorrow. That's great. Did you get my message about errors in triggered methods? Yes, I did, but the solution requires some more thought. I had thought I had the

Re: [Zope-dev] ZPatterns: BTree folder w/ customizer support

2000-07-13 Thread Shane Hathaway
Steve Alexander wrote: Or... I could alter Shane's BTree Folder product to split it into a mix-in class and a usable folder class. Would that work, I wonder? I just tried it and discovered some subtle problems with __getattr__. It could be the result of TransparentFolders, which is also

Re: [Zope-dev] ZPatterns: missing docstring in getItem()

2000-07-13 Thread Steve Alexander
"Phillip J. Eby" wrote: That's great. Did you get my message about errors in triggered methods? Yes, I did, but the solution requires some more thought. I had thought I had the "Transactional" machinery set up so that stuff was only called during transaction phases where it was safe to

[Zope-dev] zpatterns-0.4: default attributes, more

2000-07-13 Thread Ava
hello, ignore my precedent post. too much caffeine, not enough sleep my problem is solved if I use the class_default_for_X trick... regards, [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev

Re: [Zope-dev] zpatterns-0.4: defaults attributes, more...

2000-07-13 Thread Phillip J. Eby
At 07:11 PM 7/13/00 +0400, Ava wrote: first generic attribute provider: fromexpr = '(self.id[0] and sql_get_first(key=id[0]) or [NOT_FOUND])[0]' attrsexprs = ['first_data=RESULT.data'] second generic attribute provider: fromexpr = 'self.id[1] and sql_get_first(key=id[1]) or

[Zope-dev] ZPatterns alpha 5 released

2000-07-13 Thread Phillip J. Eby
Here's the details from the CHANGES file: New Features/Bug Fixes in 0.4.0alpha5 - Property Sheets for DataSkin-based ZClasses. Now you can put define property sheets on a ZClass and still use AttributeProviders for the properties. Just add a "DataSkin Property Sheet" to your ZClass

Re: [Zope-dev] zpatterns-0.4: defaults attributes, more...

2000-07-13 Thread Jephte CLAIN
"Phillip J. Eby" a écrit : Try: data=(self.which_one and [self.second_data] or [self.first_data])[0] wow. what a *clever* idea to use [] around self.???_data. I used to write: data=self.which_one and self.second_data or self.first_data but this failed because sometimes self.second_data is a

Re: [Zope-dev] zpatterns: how to specify default values?

2000-07-13 Thread Jephte CLAIN
"Phillip J. Eby" a écrit : Yes. Name the attributes "class_default_for_X" where X is the attribute name. Thanks very much. This works with the currently release ZPatterns, but alpha5 will go one better and let you create ZClass property sheets that transparently implement this. That is,

[Zope-dev] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Bill Anderson
Pardon the lawnmower man reference, but ZEO and MountedStorage do _not_ work together. I just tried, so this is just an initial report. What happens, is htat the local ZEO Client wil try to mount the additional .fs-es on the local system, which will fail. FYI, Bill -- Bill Anderson (ARC)

Re: [Zope-dev] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Bill Anderson
Bill Anderson wrote: Pardon the lawnmower man reference, but ZEO and MountedStorage do _not_ work together. I just tried, so this is just an initial report. What happens, is htat the local ZEO Client wil try to mount the additional .fs-es on the local system, which will fail. OK, I

Re: [Zope-dev] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Shane Hathaway
Bill Anderson wrote: I have been thinking, and I think I have got a good idea. So I figured I woudl toss it out for commentary. What we need now is a Mountable ZSS Product. This would be kind of a MountedStorage meets ZEO breed, where you would specify the ZSS host/port combo, and it could

[Zope-dev] is there a way to pass namespace in to the page which is within a page?

2000-07-13 Thread danchik
is there a way to pass namespace in to the page which is within a page? for example : how can I make this work??? 3 files the top one is the one that is suppose to be displayed currently the main dtml file has the following line dtml-var