Re: [Zope-dev] ZCVS Mixin class... feedback sought.

2000-05-24 Thread Steve Spicklemire
) and keep track of what's what. The only commands available zope right now are 'add' 'commit' and 'update'. You can of course use CVS in the normal way. -steve "Chris" == Chris Withers [EMAIL PROTECTED] writes: Chris Steve Spicklemire wrote: http://www.zope.org/Members/sspickle

Re: [Zope-dev] ZCVS Mixin class... feedback sought.

2000-05-24 Thread Steve Spicklemire
Hi Jerry, (in case you're wondering.. Jerry really *is* my brother..) "JS" == Jerry Spicklemire [EMAIL PROTECTED] writes: JS Chris Withers wrote: Sounds like a cool idea, but I don't really understand what it does and how you use it. Could you give use some

Re: [Zope-dev] ZCVS Mixin class... feedback sought.

2000-05-24 Thread Steve Spicklemire
Hi Jonothan, Good questions! You can just go to the 'admin' tab and type 'diff'. The admin tab lets you execute just about any cvs command with arguments stat, rtag etc etc. Conflicts.. uh... bad news. ;-) I think it's essentially impossible to 'merge' two different

Re: [Zope-dev] ZCVS Mixin class... feedback sought.

2000-05-25 Thread Steve Spicklemire
Hi Jonothan, Thanks for the thoughts "Jonothan" == Jonothan Farr [EMAIL PROTECTED] writes: Good questions! You can just go to the 'admin' tab and type 'diff'. The admin tab lets you execute just about any cvs command with arguments stat, rtag etc etc.

Re: [Zope-dev] FWIW, ZCVSMixin now at 0.0.2... and rising. ;-)

2000-05-25 Thread Steve Spicklemire
we can add that as soon as we have a sane way of making that work! ;-) Good Luck! -steve "Michael" == Michael Bernstein [EMAIL PROTECTED] writes: Michael Steve Spicklemire wrote: I've not heard any comments about the usefulness of this concept... am I barking up the wrong

[Zope-dev] FWIW, ZCVSMixin now at 0.1.1... and rising. ;-)

2000-06-14 Thread Steve Spicklemire
Hi Folks, I don't know if anyone out there is actually trying to *use* my ZCVSMixin/ZCVS Folder stuff, but if you are you certainly want to get the latest release, ZCVSMixin-0.1.1.tgz from the zope.org site: http://www.zope.org/Members/sspickle/ZCVSMixin I put some screenshots up

Re: [Zope-dev] Zope ...2.1.7 update - patch for EMarket 0.1.03

2000-06-16 Thread Steve Spicklemire
Hi Adam, I looked at your patch... *** EMarket.py.orig Thu Jun 01 00:06:01 2000 --- EMarket.py Fri Jun 16 02:56:35 2000 *** *** 258,265 newMainF.transactionFolder = newTransF Products.MailHost.MailHost.add(newMainF, 'eMarketMailhost', !

Re: [Zope-dev] EMarket and 2.2.0b3

2000-06-29 Thread Steve Spicklemire
I'm sure a lot of this is because EMarket was a 1.x product that has seen relatively little change, in basic structure, since. I'm working on some patched to allow (1) ZClasses to act as MarketItems and Shoppers and (2) ZPatterns integration so that most objects can be optionally stored in RDBM

Re: [Zope-dev] FWIW, ZCVSMixin now at 0.1.1... and rising. ;-)

2000-06-30 Thread Steve Spicklemire
Hi Shane, This is great.. it does what I wanted to do, but by making a 'fixed name' folder, (a la, 'acl_users'), to do the trick. It also works a lot more like a 'real' CVS folder. Cool. And.. icing on the cake... you can put it in any kinda container! Double Cool! "Shane" == Shane

Re: [Zope-dev] EMarket and 2.2.0b3

2000-07-01 Thread Steve Spicklemire
Hi David, I think the design is flawed from the outset and should be changed. Basically I was trying to have my cake and eat it too with this one... and the solution (iterating through the folder class's manage_options and slapping on my own was goofy anyway...) but there's really no need.

Re: [Zope-dev] FWIW, ZCVSMixin now at 0.1.1... and rising. ;-)

2000-07-01 Thread Steve Spicklemire
Hi Jim, et. al... Steve and Shane, We've been positively *dying* to have cvs or cvs-like functionality. It's one of those things where we left the unix-everything-is-a-file-idiom and went, "Oh, um, heh, now what?" =) Well.. I don't know much about cosource but I did just put the

Re: [Zope-dev] More comments on ZPatterns

2000-07-03 Thread Steve Spicklemire
So let's start throwing some brute force hacking at the problem! ;-) From a mail about the LinuxTag conference: P.S. ABout ZPatterns: everyone I spoke to was thought the basic idea behind ZPattern was good and sound and nice and so on. But _everyone_ complained about it

Re: [Zope-dev] More comments on ZPatterns

2000-07-09 Thread Steve Spicklemire
"pje" == Phillip J Eby [EMAIL PROTECTED] writes: a (default) rack of TableInfo objects. Now... some of the Tableinfo properties, and some of the View properties are *really* in MySQL. I figured out, from the mail list and the source code, that I can create a Generic

Re: [Zope-dev] More comments on ZPatterns

2000-07-09 Thread Steve Spicklemire
I'm missing some basic concept or it doesn't really work that way! ;-) thanks! -steve "Steve" == Steve Alexander [EMAIL PROTECTED] writes: Steve Steve Spicklemire wrote: I just want to make sure I understand... is the intention that property management needs to be d

[Zope-dev] ZPatterns Question - Talking to a Specialist....

2000-08-10 Thread Steve Spicklemire
Hmm... this is probably more of a plain Zope question than a ZPatterns question.. but since I'm *using* ZPatterns, I thought I'd check what other folks are doing to implement apps with ZPatterns. I've been creating Specialists with DataSkin subclassed objects in their defaultRacks. The

[Zope-dev] hmmm.. wierd permission issues with getPersistentItemIDs()...

2000-08-14 Thread Steve Spicklemire
Hi ZPatterns folks... ZPatterns-0.4.1snap1 Zope2.2.0-src I have a specialist with a defaultRack storing DataSkin subclassed ZClass instances with only persistent attribute providers. dtml-var "defaultRack.getPersistentItemIDs()" or dtml-in "defaultRack.getPersistentItemIDs()" ... /dtml-in

Re: [Zope-dev] hmmm.. wierd permission issues with getPersistentItemIDs()...

2000-08-16 Thread Steve Spicklemire
tion would be to add an '__allow_access_to_unprotected_subobjects__' property to the BTreeItems object. I'm not sure who should do that. maybe Rack.py? For now.. I'll just sort the ids. ;-) thanks, -steve "Steve" == Steve Alexander [EMAIL PROTECTED] writes: Steve Steve Spicklemire w

[Zope-dev] ZPatterns and Strategies Patterns etc....

2000-08-18 Thread Steve Spicklemire
Hi Folks, Well.. I never heard any comments about my last question.. so I thought I'd try to frame it differently. I just read Coad's book on Object Models etc.. and I think I pretty well 'grok' it.. at least enough to be mildly dangerous. ;-) I'm implementing a project with ZPatterns and I

[Zope-dev] ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Spicklemire
Hi Folks, OK.. I didn't hear much from my last plea for advice... I thought perhaps such a concrete problem would product lots of sage advice... but there's good news: here's another chance! Really Really Basic: If I have a class like so: class Shopper( OFS.SimpleItem.Item,

[Zope-dev] Re: ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Spicklemire
Cool! Thanks Steve.. I'll give that a try. I guess the question behind the question though is is this a reasonable way to handle property sheets? Is this how the designers of ZPatterns envision property sheets will be used? I keep getting the feeling that I'm missing a basic 'grokism' of

Re: [Zope-dev] Porting EMarket to ZPatterns....

2000-08-27 Thread Steve Spicklemire
Thanks Phillip! OK. that helped a lot. The problem is that when things don't work as I expect.. I guess (usually with a high degree of success) that I am off base. Now I've just been experimenting with this in a simpler 'dtml-only' way just to clarify how it's supposed to work. I created a

Re: [Zope-dev] Problems with EMarket

2000-08-31 Thread Steve Spicklemire
Hi andre... Sorry.. EMarket is currently broken in 2.2.x. I'm trying to find time to fix it (actually... I'm changing the code pretty significantly to use the ZPatterns product) but it's slow going as I have lots of other competing projects. Help, as always, is appreciated. ;-) -steve

Re: [Zope-dev] ZPatterns: transaction bug

2000-09-04 Thread Steve Spicklemire
ZPatterns 0.4.2a1 PlugIns.py bug? I get a 'Name Error' aq_base when I hit the following code while trying to update the index_html method of one of my Specialists from CVSMixin.. I think that this would get hit anytime you add an object whose id is already in the acquisition path -steve

Re: [Zope-dev] PlugIns.py bug.... (was incorrectly ZPatterns: transaction bug)

2000-09-05 Thread Steve Spicklemire
ke either fix is OK... I guess! -steve "Steve" == Steve Spicklemire [EMAIL PROTECTED] writes: Steve ZPatterns 0.4.2a1 PlugIns.py bug? Steve I get a 'Name Error' aq_base when I hit the following code Steve while trying to update the index_html method of one of my S

Re: [Zope-dev] ZPatterns: DropZone example

2000-09-06 Thread Steve Spicklemire
Hi Steve, (and any others who might care to comment) I've been sorting through old ZPatterns email looking for inspiration and I came upon this: "Steve" == Steve Alexander [EMAIL PROTECTED] writes: Steve Hi folks, Steve I've been looking at the DropZone example Phillip Eby

Re: [Zope-dev] ZPatterns: DropZone example

2000-09-06 Thread Steve Spicklemire
Hi Steve, "Steve" == Steve Alexander [EMAIL PROTECTED] writes: ShopperManager.InsertItemIntoShoppersBasket(shopper=aShopper, mi=aMarketItem, quantity=qty), Steve Seeing as the context is clearly ShopperManger (or Steve Shoppers), I don't think there's any need for such a

Re: [Zope-dev] SkinScript, and family

2000-09-08 Thread Steve Spicklemire
Hi Bill, I doubt that skinscript is going to help with 'potentially complicated calculations'. Skin Script works with ZPatterns (Specifically DataSkins) to provide control over how attributes of DataSkins are gotten, and stored. They are normally pretty simple "if THIS then THAT" kinds

Re: [Zope-dev] ZPatterns.... more thoughts about implimentation of a concrete system...

2000-09-20 Thread Steve Spicklemire
! ... I can see it now... who did you say self was again? ;-) thanks, -steve "Itamar" == Itamar Shtull-Trauring [EMAIL PROTECTED] writes: Itamar Steve Spicklemire wrote: (3) Has anyone found a better way to adorn 'plain' objects with methods? Itamar An Attribu

Re: [Zope-dev] Re: [Zope-ZEO] Advice

2000-09-22 Thread Steve Spicklemire
We're using ZCVSMixin for just such a scenario. It's working a lot better than nothing. ;-) It does still have rough edges, and you need to know too much about how it works to do anything complex, but it does allow us to manage changes and test/stage/update etc with a much greater degree of

[Zope-dev] How is 'retrieveItem intended to work with TTW Specialists?

2000-09-25 Thread Steve Spicklemire
Hello ZPatterns Folk. I'm trying to implement 'delagation' with a custom Specialist. The idea, (I think this is one of the goals of ZPatterns... to allow delegation of responsibility after the Framework is built...) I have: a) MarketItemManager (Python subclass of Specialist) Some of

Re: [Zope-dev] How is 'retrieveItem intended to work with TTW Specialists?

2000-09-29 Thread Steve Spicklemire
= Phillip J Eby [EMAIL PROTECTED] writes: pje At 08:00 AM 9/25/00 -0500, Steve Spicklemire wrote: So my retrieve item gets called. *unfortunately* it gets called without any namespace parameter... so my retrieveItem DTML method has no way to acquire a namespace so tha

Re: [Zope-dev] How is 'retrieveItem intended to work with TTW Specialists?

2000-09-30 Thread Steve Spicklemire
Thanks again... it's great that you're willing to entertain my apparantly twisted use of ZPatterns. ;-) "PJE" == Phillip J Eby [EMAIL PROTECTED] writes: PJE To put it another way: design your whitebox specialist how PJE you want it. Make it complete, but of course some parts will

[Zope-dev] Success! Was: Re: [Zope-dev] How is 'retrieveItem intended to work with TTWSpecialists? Specialists?

2000-10-04 Thread Steve Spicklemire
Thanks again... I just wanted to report that this worked like a treat! The actual syntax I ended up using was: WITH ProductSpecialist.getItem(self.id) COMPUTE theRealThing = (RESULT is _.None) and NOT_FOUND or RESULT WITH self.theRealThing COMPUTE

Re: [Zope-dev] Success! Was: Re: [Zope-dev] How is 'retrieveItem intended to work with TTW Specialists? Specialists?

2000-10-05 Thread Steve Spicklemire
.. do you write accessor methods for every type stored in your DataSkins? Anyway.. thanks for the great tools! I'm having fun now. ;-) -steve "Phillip" == Phillip J Eby [EMAIL PROTECTED] writes: Phillip At 09:15 PM 10/4/00 -0500, Steve Spicklemire wrote: This was also nice s

Re: [Zope-dev] Accessors for DataSkin attributes (was Re: [Zope-dev] Success!

2000-10-05 Thread Steve Spicklemire
Hi Phillip First of all... please forgive the long message. When I started it was going to be a quick note... now it's turned into a bit of a novel... but you don't have to read it all. ;- I'm spewing all this out in part to illustrate some of the things I've done 'wrong' so that others

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Steve Spicklemire
OK.. here's the dumbest example I could cook up. It was my first experiment with ZPatterns in July of last summer. It was based on a really early release, I don't remember which, but it seems to work with the latest.. (I just barely testted it... ) Load the Product ToDoProducts.zexp into the

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Steve Spicklemire
Ack.. of course I forgot to test creating new instances there was a snippet of code for editing and creating that didn't work with the new propertysheet stuff. I fixed it just now... so it really works. ;-) -steve "Steve" == Steve Spicklemire [EMAIL PROTECTED] writes:

Re: [Zope-dev] Thank you very much SteveS for your efforts and the working zpatterns example.

2000-10-05 Thread Steve Spicklemire
I'd love to bask in the glory of having done something really significant. but just remember... it *is* the Worlds Simplest (some might say Dumbest) example! ;- -steve "James" == James Johnson [EMAIL PROTECTED] writes: James At last some meat AND potatoes for us feely touchy

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Steve Spicklemire
t type=submit value="OK" /form /center dtml-var standard_html_footer deleteInstances: -- dtml-var standard_html_header h2Deleting Instances/h2 p dtml-in ids dtml-let ni="getItem(_['sequence-item'])" dtml-call "ni.manage_delete()"

Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Steve Spicklemire
I should point out a couple of things that might not be obvious (that I noticed only on a second 'read' of the explaination): 1) getPersistentItemIds() can be a pain. dtml-in "defaultRack.getPersistentItemIDs()" sort is straightforward enough... but what if I don't care if they are sorted, or

Re: [Zope-dev] ToDoManager ZPatterns example not working

2000-10-06 Thread Steve Spicklemire
Erp! Sorry... I think the ZClass and the Rack got out of sync... I'll upload a new 'consistent' pair.. sorry! -steve "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai Hi, Itai I installed the ToDoManager/ToDoProduct example Itai

Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Steve Spicklemire
Ack.. sorry... I was making little changes last night to make sure the ZClass was completely consistent with my explaination, and to make sure I could start 'from scratch'. I created a 'new' ZClass, and a 'new' rack. This confused the 'old' Rack. (I didn't update the ToDoManager.zexp, so if you

Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Steve Spicklemire
"pje" == Phillip J Eby [EMAIL PROTECTED] writes: - Propertysheets: You don't expressly say that Shared needs to be a 'Common Instance Property Sheet'. pje Actually, if it's intended to be shared across all instances, pje there seems to me to be little reason to have it in

Re: [Zope-dev] Accessors for DataSkin attributes (was Re: [Zope-dev] Success!

2000-10-06 Thread Steve Spicklemire
"pje" == Phillip J Eby [EMAIL PROTECTED] writes: pje It is *not* undesirable to have ZClasses be subclasses of pje your core logic base class. Just make sure they *also* pje subclass DataSkin, or that you use the metaclass definition pje stuff above. You've actually got a

[Zope-dev] Refresh and debugging product creation issues.....

2000-10-07 Thread Steve Spicklemire
Debugging products is a pain... restarting Zope all the time is a Pain THANK GOD for Shane Hathaway. ;-) I am delighted to report general success with the Refresh product! My only problem is while debugging the process of creating new EMarket instances, I find that every time I run

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-30 Thread Steve Spicklemire
0 Oct 2000, Steve Spicklemire wrote: Hi Joachim, Hmm.. I would start start really simple here, and then 'work up' to the sql query Create a default rack with the following SkinScript. WITH ['a','b','c'] COMPUTE movie_link=RESULT[0],movie_title=RESULT[

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-30 Thread Steve Spicklemire
ope-2.2.0/lib/python/DocumentTemplate/DT_With.py, JS line 146, in render (Object: theItem) KeyError: (see above) JS what's the best way to debug this ? JS On Mon, 30 Oct 2000, Steve Spicklemire wrote: Hi Joachim, Hmm.. I would start start really simple here, and then 'work

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Steve Spicklemire
OK I think I found the problem(s): *** Expressions.py 2000/10/18 23:11:55 1.1.1.3 --- Expressions.py 2000/10/31 14:14:09 *** *** 133,139 def eval(self,mapping): """Return the result of looking up/calling the name from 'mapping'. If the object was

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Steve Spicklemire
Hi Joachim, "Joachim" == Joachim Schmitz [EMAIL PROTECTED] writes: Joachim Hi Steve, Joachim that did it, many thanks, how did you debug this ? The debugger is your friend. ;-). Seriously I'd be lost without it: http://www.zope.org/Members/michel/HowTos/TheDebuggerIsYourFriend

Re: [Zope-dev] ZPatterns, Racks, Customizers, etc.

2000-11-02 Thread Steve Spicklemire
Would something like this work? newSpecialist = Specialists.Specialist() newSpecialist.id = 'goobers' newSpecialist.title = "Goober Manager" myFolder._setObject(newSpecialist.id, newSpecialist) newSpecialist = newSpecialist.__of__(myFolder)

Re: [Zope-dev] Debugging ConflictErrors

2000-11-06 Thread Steve Spicklemire
Hi John, This is one of the problems with SkinScript, and I've not found any great way to sort through it. Here are my two (three?) cents worth 1) Break the SkinScript triggers down to the simplest possible event, and test them individually. If this is not possible, then debug the

Re: [Zope-dev] It's been a while

2000-11-06 Thread Steve Spicklemire
Hi Roche, PJE produced some great comments about this in reaction to my lame attempt at an example. There also some good discussion about other questions on the list. Here are a few choice posts: http://lists.zope.org/pipermail/zope-dev/2000-October/007232.html

Re: [Zope-dev] ZPatterns, MySQL, Full Text Searching

2000-11-08 Thread Steve Spicklemire
Hi Chris, ZPatterns and ZCatalog work fine. Here is a skin script I've been using to keep a catalog up to day with DataSkins: WHEN OBJECT ADDED CALL Catalog.catalog_object(self, _.string.join(self.getPhysicalPath(),'/')) WHEN OBJECT DELETED CALL

Re: [Zope-dev] Best way to start on ZPatterns ?

2000-11-10 Thread Steve Spicklemire
Hi Nigel, Yes.. the example still works. I am working on an update that incorporates some of the suggestions folks have made and better illustrates some ZPatterns concepts. Basically the example is *too* simple, and it doesn't separate PD, and UI issues very well.. -steve "Nigel" ==

Re: [Zope-dev] ZPatterns: Remapping object from on to another specialist

2000-11-13 Thread Steve Spicklemire
Hi Jimbo, I'm not sure what you mean by 'not getting anywhere...' but I've generally found it useful to work on problems like this one little step at a time. I might be tempted to just try: WITH EmployZManager.getItem(self.id) COMPUTE original_object = (RESULT is _.None) and NOT_FOUND or

Re: [Zope-dev] Specialists, Racks, and Objects, oh my!

2000-11-13 Thread Steve Spicklemire
Hi Bill, The 'type' of object is set in the Storage tab of the rack. The specialist can decide which rack to use based on circumstances that dicate one type of object or another. -steve "Bill" == Bill Anderson [EMAIL PROTECTED] writes: Bill I want a specialist to have two (or more

Re: [Zope-dev] TTW Product not showing up.

2000-11-15 Thread Steve Spicklemire
Hi Jimbo, DataSkin and CatalogAware are incompatable. You can however use SkinScript to emulate CatalogAwareness here is a snippet I use on one site WHEN OBJECT ADDED CALL Catalog.catalog_object(self, _.string.join(self.getPhysicalPath(),'/')) WHEN OBJECT DELETED CALL

Re: [Zope-dev] CVS and Zope methods

2000-11-16 Thread Steve Spicklemire
Hi Petr, If you're running on something unixy.. you could use ZCVSMixin... -steve "PK" == Petr Knapek [EMAIL PROTECTED] writes: PK Hi Zopists, I am working on a Zope project and we decided to PK store source code in CVS. With python Zope products there is PK no problem. The

Re: [Zope-dev] CVS and Zope methods

2000-11-16 Thread Steve Spicklemire
Hi Robin, You can FTP to the 'methods' tab of your ZClass using: ftp://name@server:xx21/Control_Panel/Products/YourProductFolder/YourZClass/propertysheets/methods -steve "Robin" == Robin Becker [EMAIL PROTECTED] writes: Robin On the same kind of note I find that while the code in my

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] Method calls

2000-11-23 Thread Steve Spicklemire
Hi Roch, The whole traceback would be helpful.. one clue: Error Type: TypeError Error Value: hasattr, argument 2: expected string, int found 'hasattr' is the function that is complaining do you use it in your code? -steve "Roch'e" == Roch'e Compaan [EMAIL PROTECTED] writes:

Re: [Zope-dev] Method calls

2000-11-23 Thread Steve Spicklemire
Hmm... OK ... next question... what are you doing *in* the 'in' tag? Somehow you're trying to access an object contained in an object manager (one of your modules?) and you're using an 'int' rather than a string as an id. Can you post the code? thanks, -steve "Roch'e" == Roch'e Compaan

[Zope-dev] Re: ZPatterns getPersistentItemIDs() bug?

2000-11-27 Thread Steve Spicklemire
machinery. However, 'sort' short-curcuits the machinery so that you can 'handle' them (in this hack, you store them in a simple python list). Anyway.. it's not clear it's a bug worth fixing... if it's a bug at all. -steve "Chris" == Chris Withers [EMAIL PROTECTED] writes: C

Re: [Zope-dev] Create Virtual DataSkin

2000-11-27 Thread Steve Spicklemire
Hmm... since triggers are done at transaction commit time, could it be that the 'change' trigger doesn't happen if the change occurs on the same transaction as an 'add'? -steve "bentzion" == bentzion [EMAIL PROTECTED] writes: bentzion This simple issue is driving me crazy... I am

Re: [Zope-dev] ZPoPyDA for FreeBSD... was (Hmmmm.... what do *you* do when Zope is 'stuck'.)

2000-12-03 Thread Steve Spicklemire
Thanks... I'm pretty sure now that what I was was pthreads/popy related. I didn't realize there was a new/updated PoPy/ZPoPyDA on the zope site with lots of thread related (sem_init, sem_wait,... ) changes so I built it on my FreeBSD boxen and haven't seen the same behavior since. -steve P.S.

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

2000-12-05 Thread Steve Spicklemire
Hi Itai, "Itai" == Itai Tavor [EMAIL PROTECTED] writes: ... Itai The 2nd way seems to go better with OO principles - all Itai handling of photos is delegated to the Photos Specialist and Itai the Product doesn't care if the photo exists or not, or Itai where it comes from.

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

2000-12-13 Thread Steve Spicklemire
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 change the property Itai so it get changed in the

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

2000-12-13 Thread Steve Spicklemire
Hi Itai, "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai Say I got several Participants, and some of those need to be Itai able to place orders. I create the Specialist Itai OrderingEntities to implement the role of 'someone who Itai places orders'. From what I understand

Re: [Zope-dev] 'Subclassing' another product

2000-12-19 Thread Steve Spicklemire
Hi Morten, There are two ways to subclass products. You can use straightforward Python subclassing: e.g.,In your custom Product.. here is an example from Zwiff: import Products.PythonMethod.Guarded from Globals import HTMLFile, MessageDialog from App import Common

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

2000-12-23 Thread Steve Spicklemire
Hi Itai, "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai I'm already using globally unique ids, but still, doesn't Itai using the same id for the Participant and the Actor make Itai these objects too tightly coupled? Seems to me that Actors Itai should provide an interface

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

2000-12-24 Thread Steve Spicklemire
Hi Itai, Good idea! I'll try to add this to the example. thanks! -steve Itai P.S. I've been struggling with a problem that might get Itai cleared up if you added it to the example: Itai Say you want to allow a user to add a ToDo from the Itai Deliverable screen (in

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

2000-12-05 Thread Steve Spicklemire
Thanks Roche! "RC" == RC Compaan [EMAIL PROTECTED] writes: RC Hi Steve RC I'm also a babe in the woods when it comes to object RC modelling, but here's my pennie's worth. Since code RC generation was not really required in the models I recently RC did for Zope Apps and

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

2000-12-28 Thread Steve Spicklemire
Hi Folks, The Dumb ZPatterns example is updated. Now there is some more realistic object referencing going on, borrowing of code snippets between Specialists and suchlike. There is also more in the way of reasonable documentation, though everything is in flux, and it still doesn't resemble

Re: [Zope-dev] ZPatterns question

2000-12-28 Thread Steve Spicklemire
Hi Christian, Well, nobody else answered that I saw... so I'll take a crack at your questions "CS" == Christian Scholz [EMAIL PROTECTED] writes: CS Hi there! CS Finally I managed to get a basic understanding of how to do CS things with ZPatterns ;-) So seems quite cool :)

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

2001-01-01 Thread Steve Spicklemire
Hi Itai, "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai Steve Spicklemire wrote: Hi Folks, The Dumb ZPatterns example is updated. Now there is some more blah blah blah Itai Nice work, Steve. Thanks! Itai Removing id lists looks good.

Re: [Zope-dev] How to confuse the publishing process

2001-01-03 Thread Steve Spicklemire
/test2/test1 I get: html head base href="http://myhost:8080/test1/test2/test1/" / /headbody I am in the test1 folder. /body/html I don't see the behavior you describe.. What did I misunderstand? thanks, -steve "CW" == Chris Withers [EMAIL PROTECTED] writes: CW Ste

Re: [Zope-dev] Objects with multiple parents and storage flexibility, ZPatterns?

2001-01-03 Thread Steve Spicklemire
Hi Chris, Random thoughts follow. ;-) I think that if you make your DataSkins folderish it will be hard to make the storage anything other than ZODB. However, Steve Alexander posted a neat trick the other day where __bobo_traverse__ is supplied by an attribute provider. You could use this

Re: [Zope-dev] Objects with multiple parents and storage flexibility, ZPatterns?

2001-01-04 Thread Steve Spicklemire
Hi Chris, "Chris" == Chris Withers [EMAIL PROTECTED] writes: Chris Steve Spicklemire wrote: I think that if you make your DataSkins folderish it will be hard to make the storage anything other than ZODB. Chris Well, I don't mind the 'skins' being stored i

Re: [Zope-dev] Re: ZPatterns: __getitem__ on a DataSkin instance

2001-01-05 Thread Steve Spicklemire
Hi Steve, Hmm.. is the 'id' of your PythonScript also getattr? thanks, -steve "Steve" == Steve Alexander [EMAIL PROTECTED] writes: Steve Steve Alexander wrote: Let's say I have a DataSkin-derived ZClass that has the attribute "forename" (in a dataskin attribute

Re: [Zope-dev] ZPatterns: SAVING doesn't tolerate missing attributes

2001-01-06 Thread Steve Spicklemire
Hi Steve, Could you let some other value represent no car? (e.g., _.None?). untested... WITH CompanyCars.getCar(self.car_id) or NOT_FOUND COMPUTE car=RESULT, car_registration=registration OTHERWISE LET car=_.None car_registration="no car" WHEN OBJECT CHANGED CALL

Re: [Zope-dev] Massive scalability

2001-01-17 Thread Steve Spicklemire
Hi Andy, I'm not sure what you mean by 'interface/way', so.. I'm going to guess at two possible interpretations. 1) Basically ZPatterns allows you to define classes (DataSkins) instances of which can optionally be used to view/create/change/delete external data through methods of the class

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

2001-01-23 Thread Steve Spicklemire
Hi Itai, I'm sure there's something clever you could do here with an attribute provider for you user object that supplied __roles__ dynamically somehow, but I'd need to think about that more... one easy way to limit who can see different stuff is to use a wrapper around your access methods

Re: [Zope-dev] http headers

2001-02-12 Thread Steve Spicklemire
Another you might consider (though Shane's is great, but required Tkinter, which not everybody (me!) has really easy accesss to... ) is the more browser based, but less flexible: http://www.cyberclip.com/webdebug/ -steve "SA" == Steve Alexander [EMAIL PROTECTED] writes: SA Tim

Re: [Zope-dev] freebsd file: table is full when starting zope2

2001-02-14 Thread Steve Spicklemire
If you bump maxusers up to 64 (from the default 32) and rebuild the kernel the messages should go away... it's worked for me. -steve "RDM" == Zope mailing lists [EMAIL PROTECTED] writes: RDM On Wed, 14 Feb 2001, Sin Hang Kin wrote: When starting Zope2.3 from the freebsd box, the

Re: [Zope-dev] ZPatterns feature patch: kickTriggers

2001-02-23 Thread Steve Spicklemire
Hmmm... tripTriggers(...) pullTriggers(...) fireTriggers(...) ;-) dunno... kickTriggers works for me... -steve "SA" == Steve Alexander [EMAIL PROTECTED] writes: SA I've patched DataSkins.py to add this method: ... SA I'd welcome suggestions on a better name for the method

Re: [Zope-dev] ZCatalog stuff

2001-02-23 Thread Steve Spicklemire
Hi Chris, RDM.. There's also Zieve for this sort of thing... it seems to work well enough for me... -steve "RDM" == R David Murray " [EMAIL PROTECTED] writes: RDM On Thu, 22 Feb 2001, Chris Withers wrote: Apart from that, any ideas how I'd search for a record where the

Re: [Zope-dev] ZPatterns: getItem returns None

2001-03-19 Thread Steve Spicklemire
Hi Roche, In all simplicity I still can't get it to work but here's some more info from the console: Traceback (innermost last): File C:\PROGRA~1\ZOPE230\lib\python\Products\ZPatterns\AttributeProviders.py, line 335, in _AttributeFor (Object: GAPMixin) File

Re: [Zope-dev] ZPatterns style question

2001-03-21 Thread Steve Spicklemire
Hi Lex, This is a little bit of a tricky question. Here is what I think is the *intent* of ZPatterns. The details of storage are to be left up to the implementor/integrator. Given that they are the only ones who really know where all the goodies are hidden (sql? zodb? etc.. ) your app

Re: [Zope-dev] Implementing ZPattern: Containment

2001-03-21 Thread Steve Spicklemire
Hi Johan, I wrote: The best way I've found is to provide a method (or methods) in the Specialist of the contained item to get ids of those instances satisfying certain criteria... e.g., getToDoIdsForDoer( aDoer ) (the contained item keeps a reference to the id of its container.)

Re: [Zope-dev] FTP interface being worked on?

2001-03-24 Thread Steve Spicklemire
Hi Folks, I posted this to the Wiki... but it's not "in-your-face" like email, so I never know if anyone reads it. Here are a few, possibly random, but nonetheless concrete, thoughts of mine on the matter. I'm looking at all this from the perspective of someone who is using the current xml/zexp

Re: [Zope-dev] FTP interface being worked on?

2001-03-26 Thread Steve Spicklemire
Hi Fred, "Fred" == Fred Wilson Horch [EMAIL PROTECTED] writes: Fred Steve Spicklemire wrote: I'm looking at all this from the perspective of someone who is using the current xml/zexp code to manage objects in CVS today Fred Can you tell me how you do that? Our b

Re: [Zope-dev] FTP interface being worked on?

2001-03-27 Thread Steve Spicklemire
Hi Fred, "Fred" == Fred Wilson Horch [EMAIL PROTECTED] writes: Fred Wanted to follow up on Steve's points. Fred I don't know if we need just one serialization interface Fred that tries to solve all five issues. Ok.. Fred We currently have two serialization interfaces in

[Zope-dev] Btree problems on recent CVS update..

2001-03-28 Thread Steve Spicklemire
Hmm.. anybody seen this? -steve cc -fpic -I../Components/ExtensionClass/src -I../Components/BTree -I./ZODB -O -pipe -D_THREAD_SAFE -I/usr/local/include/python1.5 -I/usr/local/include/python1.5 -DHAVE_CONFIG_H -c ./../Components/BTree/BTree.c ./../Components/BTree/BTree.c: In function

Re: [Zope-dev] (ZPatterns) Speeding up Skinscripts

2001-03-29 Thread Steve Spicklemire
Hi John, Makes sense to me! I'm guessing eval was used since it's a little simpler not to have to keep track of both the string expression and the compiled expression.. but that's just a guess. However it does bring up a point I've been wondering about anyway. Now that Ty and Phillip have

[Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Spicklemire
Has anyone seen anything like this? I have the following script in a Specialist: ## Script (Python) deleteAllTracks ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## trackMaster=context.Tracks

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Spicklemire
) dList=[] for id in iList: theItem=trackMaster.getItem(id) theItem.manage_delete() dList.append(id) return (OK! deleted %i elements % len(iList)) + string.join(iList,',') On Wednesday, May 23, 2001, at 10:59 AM, Steve Alexander wrote: Steve Spicklemire

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Spicklemire
Hi Phil, Yup.. I realized it when I could *list* all the ids, but not delete them. ;-) I'm wondering if it might be better to change the implementation of getPersistentItemIDs to return a plain list? This would also help avoid permission errors that folks run in to when trying to use it in

Re: [Zope-dev] ZCVSFolder not running on windows

2001-07-01 Thread Steve Spicklemire
Hi Robert, Sorry.. ZCVSFolder is not supported for Windows. Patches accepted! -steve Robert Rottermann wrote: Hi there, I installed the newest version of ZCVSMFolder on my windowsbox. As it uses fork it can not work. However I used a former version under windows. Is this not

[Zope-dev] DateTime class not recognizing timezone correctly...

2001-07-08 Thread Steve Spicklemire
Hi -dev folk.. I ha(d) a problem where DateTime was basing the local timezone on time.tzname, and getting it wrong. (tzname comes from the abbreviation, which in Indiana is 'EST', but DateTime really wants 'US/East-Indiana'. So.. I patched DateTime as follows.. I saw a proposal in the archives

  1   2   >