Re: [Zope-dev] compiling Zope 2.4.1 on Mac OS 10.1

2001-10-07 Thread Itai Tavor
... jens -- -- Itai Tavor -- Je sautille, donc je suis.-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- -- -- If you haven't got your health, you haven't got anything

[Zope-dev] Using PropertySheet properties in Python-based DataSkin product

2001-05-06 Thread Itai Tavor
? Or is there a simpler/quicker way? TIA, Itai -- -- Itai Tavor -- Je sautille, donc je suis.-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- What he needs now is understanding... and a confederate victory -- -- Dr. Jacobi, Twin Peaks

Re: [Zope-dev] How do I call an HTMLFile in context provided by apath

2001-04-19 Thread Itai Tavor
Tres Seaver wrote: Itai Tavor [EMAIL PROTECTED] wrote: Dieter Maurer wrote: Itai Tavor writes: P.S Now that aq_parent is working... why can't I do absolute_url() on DTMLFiles :-( "absolute_url" is provided by the class "OFS.Traverable". Apparently, "

[Zope-dev] Re: Zope-Dev digest, Vol 1 #1057 - 3 msgs

2001-04-17 Thread Itai Tavor
. The finger should point to Itai Tavor :) Yes, it should. Apologies for the mess. I forgot to disable BinHex in my mailer. I'd have posted a fixed attachment myself but I'm timezone challenged. Thanks for cleaning up after me, Martijn. Itai -- -- Itai Tavor -- "Je sau

[Zope-dev] Re: RackImage

2001-04-16 Thread Itai Tavor
Michael R. Bernstein wrote: Itai Tavor wrote: Thanks, Michael! Turns out I just had to make a few small changes in my product to get it to work, which I discovered looking at yours. Don't know if anything in my product that it would be interesting to add to yours... it's aimed

Re: [Zope-dev] How do I call an HTMLFile in context provided by apath?

2001-04-12 Thread Itai Tavor
Dieter Maurer wrote: Itai Tavor writes: P.S Now that aq_parent is working... why can't I do absolute_url() on DTMLFiles :-( "absolute_url" is provided by the class "OFS.Traverable". Apparently, "DTMLFile" is not derived from it. Dieter Well, obviously...

[Zope-dev] Re: RackImage

2001-04-12 Thread Itai Tavor
Michael R. Bernstein wrote: Itai Tavor wrote: Could I get a copy of this product? I'm trying to create a Rack-mountable Image class but I'm having a lot of trouble getting a class subclassed from Image and DataSkin to work. Having some working code could save me some trouble. I only

[Zope-dev] How do I call an HTMLFile in context provided by a path?

2001-04-11 Thread Itai Tavor
in a Python Product, obj.aq_parent doesn't work. And trying to get some_id using REQUEST.traverse('/MyApp/SomeSpecialist/some_id') returns the index_html method of some_id, instead of the object itself. Any ideas how I can fix this? TIA, Itai -- -- Itai Tavor -- &qu

Re: [Zope-dev] How do I call an HTMLFile in context provided by apath?

2001-04-11 Thread Itai Tavor
Dieter Maurer wrote: Itai Tavor writes: I have a method that receives a path: '/MyApp/SomeSpecialist/some_id/edit_html' and has to call edit_html in the context of some_id. If edit_html is a DTML Method, I can do this: obj = REQUEST.traverse(path) I would use

Re: [Zope-dev] ZPatterns, DataSkins, forms and errorchecking/handling

2001-04-08 Thread Itai Tavor
On Tuesday 27 March 2001 17:40, Itai Tavor wrote: Hi, I'm trying to work out the best way to check for and report errors when DataSkin objects are created/edited, but I'm having a lot of problems. For form validation, Zope's build-in constraints are pretty useless... things like ValueHandler

[Zope-dev] Form error handling for Rack-stored PD classes in O-O application

2001-04-03 Thread Itai Tavor
irect('manageInstances_html?message=New%20customer%20created.') And, of course, I can also have WHEN OBJECT ADDED,CHANGED CALL self.ensure_valid(), to catch anything that might get by the above checks. ensure_valid will raise its own error page, independent of the above. TIA for any help/comments

[Zope-dev] ZPatterns, DataSkins, forms and error checking/handling

2001-03-27 Thread Itai Tavor
and I need to import that method and all other methods it uses into the Specialist. This seems too much work... Can anyone suggest a simpler approach (one that still retains the ability to return the original form in case of errors)? TIA, Itai -- -- Itai Tavor -- "Je sautill

Re: [Zope-dev] Organizing modules in a python product

2001-03-18 Thread Itai Tavor
Thanks, Dieter. You're right, I definitely wouldn't want to use this solution. I was hoping for something that can be done inside the product :-( Dieter Maurer wrote: Itai Tavor writes: ... abbreviated references to sibling subproducts ... Is there any way to set this up so imports

[Zope-dev] Organizing modules in a python product

2001-03-15 Thread Itai Tavor
? As a bonus, can I also get __init__.py files in each module directory to be executed? TIA Itai -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermi

[Zope-dev] Re: State of ZPatterns

2001-03-12 Thread Itai Tavor
, than in exploring The Web TNG, or whatever happens to come next. Itai -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- --

Re: [Zope-dev] State of ZPatterns

2001-03-11 Thread Itai Tavor
Phillip J. Eby wrote: 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

Re: [Zope-dev] Designing ZPatterns/Python-product-based, reusable applications - take 2

2001-03-11 Thread Itai Tavor
Phillip J. Eby wrote: 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

[Zope-dev] Designing ZPatterns/Python-product-based, reusable applications -take 2

2001-03-10 Thread Itai Tavor
being superceded before it even had a chance to mature, maybe nobody cares to hear about it anymore :-( But more on that in a separate post. TIA Itai -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermi

[Zope-dev] State of ZPatterns

2001-03-10 Thread Itai Tavor
to justify the original development effort? Do any other ZPatterns users share these concerns? Itai -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermi

Re: [Zope-dev] ZDebug conflicts with MailHost?

2001-03-02 Thread Itai Tavor
Shane Hathaway wrote: Dieter Maurer wrote: Itai Tavor writes: On Zope 2.3.0 and 2.3.1b1, the following method produces an error when ZDebug is installed; If I remove ZDebug, it works fine. A long time ago, there was firm evidence that ZDebug does not play well

[Zope-dev] ZDebug conflicts with MailHost?

2001-03-01 Thread Itai Tavor
/rfc822.py, line 496, in getaddrlist File /opt/Zope-2.3.0-linux2-x86/lib/python1.5/rfc822.py, line 504, in getaddress File /opt/Zope-2.3.0-linux2-x86/lib/python1.5/rfc822.py, line 484, in gotonext TypeError: (see above) -- -- Itai Tavor -- "Je sautille, donc je

Re: [Zope-dev] DTML Documents/Folders in ZClasses fail to accessanything

2001-02-22 Thread Itai Tavor
Steve Alexander wrote: Itai Tavor wrote: Hi, I got a ZClass 'Test', with a DTML Method 'view' containing dtml-var id, and a DTML Document 'view2' with the same line. instance/view works. instance/view2 returns (ZDebug output): From SimpleItem.py: """Direct use of the

[Zope-dev] DTML Documents/Folders in ZClasses fail to access anything

2001-02-20 Thread Itai Tavor
? Or was it changed to goats and I missed the memo? Environment: Zope 2.3.0, ZClass subclassing only ZObject, using stock acl_users and storing the instance in a standard Folder. -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL

[Zope-dev] ZPatterns goes crazy after ZClass change

2001-02-19 Thread Itai Tavor
my persistent data? -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- -- -- "If you haven't got your health, you haven

Re: [Zope-dev] AttributeError validate using the Visitor pattern

2001-02-18 Thread Itai Tavor
wrong, please clue me in. Thanks! By the way, I also tried making accept be visitor.visitBook(context,_), but that produced the same error and ZDebug could only point to the call to accept as the error location. --RDM -- -- Itai Tavor -- "Je sautille, donc je su

[Zope-dev] ZClass object on Rack retains old permission settings after beingchanged

2001-02-18 Thread Itai Tavor
cached items and ignores object changes and cache flushing. In fact, I'm pretty sure there is a cache problem is ZPatterns, because on several occasions in the past ZPatterns continued to serve items after I deleted them from the database. So the question is, what do I do now? TIA, Itai -- -- Itai

RE: [Zope-dev] Import Libraries into Python Script

2001-02-17 Thread Itai Tavor
for that method yet - there probably should be). A helper shortcut would be nice :) -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- --

Re: [Zope-dev] ZPatterns for Zope 2.3 convenience release

2001-02-07 Thread Itai Tavor
Steve Alexander wrote: Itai Tavor wrote: Steve Alexander wrote: Itai Tavor wrote: Steve, This release breaks access to the management screens of ZClasses stored on Racks. In Zpatterns-0.4.2a3, Specialist/item_id/manage returns the ZClass management screen. In your release it returns

Re: [Zope-dev] ZPatterns for Zope 2.3 convenience release

2001-02-06 Thread Itai Tavor
Steve Alexander wrote: Itai Tavor wrote: Steve, This release breaks access to the management screens of ZClasses stored on Racks. In Zpatterns-0.4.2a3, Specialist/item_id/manage returns the ZClass management screen. In your release it returns the Specialist Methods screen. Thanks. I'll

Re: [Zope-dev] ZDebug patch for 2.3.0

2001-01-29 Thread Itai Tavor
: The patch below got ZDebug working with Zope 2.3.0 for me. Hope I didn't miss anything ;-) cheers, Chris snip patch -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- 'Supposing a tree fell

Re: [Zope-dev] Possible TransparentFolders bug?

2001-01-29 Thread Itai Tavor
it will come back to bite me if I do that. Itai The Infinitely Annoyed Shane Hathaway wrote: Itai Tavor wrote: The TransparentFolders Product seems to make everything transparent... not just transparent folders. Zope/ Folder_A/ method_A Folder_B/ (transparent

[Zope-dev] LoginManager and Control_Panel - The Never Ending Story

2001-01-29 Thread Itai Tavor
wrong. Any help would be, er, helpful (To borrow the words of King Arthur. Hey, a python reference! Do I get points for that?) -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- 'Supposing a

Re: [Zope-dev] Possible TransparentFolders bug?

2001-01-28 Thread Itai Tavor
I can't reproduce this problem myself. In fact, as of this morning it doesn't happen anymore. Guess it was just one of those flukes the universe throws at me to try to convince me to move to another universe. Shane Hathaway wrote: Itai Tavor wrote: The TransparentFolders Product seems

Re: [Zope-dev] Local roles and security of ZClass instances inSpecialists

2001-01-24 Thread Itai Tavor
it needs out of the REQUEST. It's a crude tool.. but it's simple. When I get some time to think clearly.. I'll try to come up with something more general. Hopefully you'll also get some other suggestions... -steve "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai Hi, Itai

[Zope-dev] Possible TransparentFolders bug?

2001-01-24 Thread Itai Tavor
would work. But /method_A and /method_B also work. Tested in Zope 2.3b2 and 2.3b3 with TransparentFolders 0.3. -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- 'Supposing a tree fell down, Poo

[Zope-dev] Local roles and security of ZClass instances in Specialists

2001-01-22 Thread Itai Tavor
can add a findUserID to Address, CreditCard and Customer, all of which pass the request upwards until one is reached that actually knows the customer. Still ugly. TIA for Any comments/suggestions. Itai -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL

Re: [Zope-dev] ZPatterns, ZClasses, Specialists: Assigningresponsibilities

2001-01-10 Thread Itai Tavor
Phillip J. Eby wrote: 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

Re: [Zope-dev] ZPatterns example update....

2001-01-01 Thread Itai Tavor
is figuring out if the stuff I have on the wrong side of the line is necessitated by the complexity of the application, or if I'm just making things unnecessarily complicated... Itai -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED]

Re: [Zope-dev] ZPatterns, ZClasses, Specialists: Assigning responsibilities

2000-12-20 Thread Itai Tavor
order line item for a customizable product tracks the product using state values like 'sent to factory', 'received from factory', etc. So it needs a new set of state values, as well as methods like 'sendManufacturingOrderToFactory'. What exactly does the fulfillment role you're referring to

Re: [Zope-dev] Re: ZPatterns, ObjectDomain, UML and all that.....

2000-12-17 Thread Itai Tavor
this is really the way you would want to do it. Itai -steve "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai There might be many ways to implement each connection, but I Itai think that there will always be one or two ways that would Itai be simplest and most ro

Re: [Zope-dev] urllib not available in Python Scripts?

2000-12-17 Thread Itai Tavor
Evan Simpson wrote: From: "Itai Tavor" [EMAIL PROTECTED] import urllib urllib.__allow_access_to_unprotected_subobjects__ = 1 Ok, this is simple enough, and it works. But... it opens access to everything in urllib. For now, the best way is to use a dictionary of n

Re: [Zope-dev] ZPatterns, ZClasses, Specialists: Assigningresponsibilities

2000-12-17 Thread Itai Tavor
Itai Tavor wrote: I have the following ZClasses, with matching Specialists: Product, Graphic, Order, OrderLineItem. When a customer adds a product to their order, they have to provide a graphic file which will be printed on the product (imagine buying a lunch box with your cat's photo

Re: [Zope-dev] A couple of possible Python Scripts bugs

2000-12-15 Thread Itai Tavor
Evan Simpson wrote: From: Itai Tavor [EMAIL PROTECTED] First, when trying to add a Python Script, I sometimes get: Error Type: AttributeError Error Value: tx Thanks! Fixed in CVS. return container.domains returns AttributeError. This does not occur if I try

[Zope-dev] ZPatterns, ZClasses, Specialists: Assigning responsibilities

2000-12-14 Thread Itai Tavor
is it correct for the Product to even know about Graphics? the alternative is to move the addToOrder methods to either Order or OrderLineItems, but this doesn't make any more sense because these would then have to know a lot more about a Product than is good for them. Any ideas? TIA Itai -- Itai Tavor

[Zope-dev] urllib not available in Python Scripts?

2000-12-14 Thread Itai Tavor
Hi, sorry for the recent barrage of posts... In Python Methods I could do urllib.quote(...). This doesn't work in Python Scripts. Is quote considered a security risk? Itai -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED]

[Zope-dev] Adding and setting properties from a virtual Specialist

2000-12-13 Thread Itai Tavor
from the SkinScript? TIA -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "If you haven't got your health, you haven't got anything" ___ Zope-Dev maillist -

Re: [Zope-dev] Adding and setting properties from a virtualSpecialist

2000-12-13 Thread Itai Tavor
Steve Spicklemire wrote: Hi Itai, "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai "OrderingEntities.getItem(some_id).current_order_id)" shows Itai me the value of current_order_id of the Employee object Itai some_id. But I can't figure out how to

[Zope-dev] Re: ZPatterns, ObjectDomain, UML and all that.....

2000-12-05 Thread Itai Tavor
e diagrams, component diagrams, collaboration diagrams... Itai -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "If you haven't got your health, you haven't got anything" __

[Zope-dev] RE: ZPatterns, ObjectDomain, UML and all that.....

2000-12-05 Thread Itai Tavor
the id attributes and how, when and how reverse connections are done, etc.). Itai -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "If you haven't got your health, you haven

Re: [Zope-dev] ZPatterns, ObjectDomain, UML and all that.....

2000-12-04 Thread Itai Tavor
-- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "If you haven't got your health, you haven't got anything" ___ Zope-Dev maillist - [EMAIL PROTECTED] h

[Zope-dev] Implementing [XOR A] 1 object connections in ZPatterns

2000-12-04 Thread Itai Tavor
it moves some of the responsibility for managing photos into Product. Can anyone add anything on making the choice? Or maybe a 3rd way I haven't thought of? Thanks, Itai -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED]

Re: [Zope-dev] ZPetterns implementation qustions

2000-12-04 Thread Itai Tavor
Phillip J. Eby wrote: At 06:19 PM 11/29/00 +1100, Itai Tavor wrote: Hi, I'm trying to figure out the right way to implement a set of classes and roles in ZPatterns. I asked some questions about this a while ago, and then went away and did some learning, but I'm stuck again and I'm afraid I need

[Zope-dev] ZPetterns implementation qustions

2000-11-28 Thread Itai Tavor
offer. The existing ZPatterns examples all deal with fairly straightforward situations, but it's the more complex class relationships where the bears and tigers are hiding :) Itai -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED]

Re: [Zope-dev] Questions about implementing object models withZPatterns

2000-11-07 Thread Itai Tavor
Phillip J. Eby wrote: At 05:19 PM 11/1/00 +1100, Itai Tavor wrote: Ok... I think I get the "Specialist per role, not per class" part. But I still can't make the jump from a class diagram to a ZClass/Specialist setup. A class diagram contains all the roles - they're the lin

[Zope-dev] Questions about implementing object models with ZPatterns

2000-10-31 Thread Itai Tavor
OrderItems.getItemsForOrder(self.id), then I don't have to maintain a list in Orders, and if I add an OrderItem the Order will immediately know about it without me having to call it and tell it the OrderItem was added. Is there anything wrong with this approach? TIA, Itai -- Itai Tavor

Re: [Zope-dev] Questions about implementing object models withZPatterns

2000-10-31 Thread Itai Tavor
Phillip J. Eby wrote: At 12:35 PM 11/1/00 +1100, Itai Tavor wrote: Hi, How do I implement gen-spec classes using ZPatterns and ZClasses? For example, I want to implement Person and Customer. Writing it in Python, it would be easy to subclass Person to get Customer, and Customer would inherit

[Zope-dev] Problem with LoginManager, UserSource and object re-mapping

2000-10-29 Thread Itai Tavor
understand why a direct getItem() call to CustomerUserSource would trigger the WITH...COMPUTE line, while just doing getItem() on the LoginManager doesn't? As I understand it, getItem() calls each UserSource, so why would there be a difference in behavior? TIA, Itai -- Itai Tavor

Re: [Zope-dev] A couple of ZPatterns questions

2000-10-15 Thread Itai Tavor
At 06:15 PM 10/12/00 +1100, Itai Tavor wrote: Hi, .. 2. I want to store a list of products, and give each one an arbitrary number of photos. I can use a Product ZClass, subclassed from ObjectManager and store Image objects inside it. But what will happen to these objects if I use

[Zope-dev] Re: Zope-Dev digest, Vol 1 #752 - 13 msgs

2000-10-12 Thread Itai Tavor
it's been released. Thanks! -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "If you haven't got your health, you haven't got anything" ___ Zope-Dev maillist

[Zope-dev] Re: Trying to catch up - what are the best Zope tools today?

2000-10-09 Thread Itai Tavor
s. ZPatterns looks great and definitely worth the learning curve - I'm off to buy Coad's book so I can do it right. -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "If you haven't got your health, you haven't got anyt

[Zope-dev] ToDoManager ZPatterns example not working

2000-10-05 Thread Itai Tavor
ibuteError: (see above) -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "If you haven't got your health, you haven't got anything" ___ Zope-Dev maill

[Zope-dev] Trying to catch up - what are the best Zope tools today?

2000-10-04 Thread Itai Tavor
to be able to build support for SQL storage? I couldn't find any examples for SQL use in ZPatterns - did I miss anything? Thanks in advance for any comments. -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "