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
"
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
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
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
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
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
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
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
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
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]
--
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
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]
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
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"
__
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
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 -
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
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
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]
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
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
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
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
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
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]
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
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
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
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
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
:
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
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
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
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
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
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 --
-- --
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
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
my
persistent data?
--
--
Itai Tavor -- "Je sautille, donc je suis."--
[EMAIL PROTECTED]-- - Kermit the Frog --
-- --
-- "If you haven't got your health, you haven
? 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
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
/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
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
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
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
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
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
, 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 --
--
? 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
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
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
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
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
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
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
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...
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
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
. 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
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, "
? 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
...
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
62 matches
Mail list logo