Re: [Zope-dev] Future of ZPatterns

2002-04-15 Thread Steve Spicklemire
Hi Marcello, Wow.. sounds like a neat book. ;-) Seriously, Phil Eby has suggested that there will be some sort of migration helpers to move from ZPatterns to TransWarp (www.eby-sarna.com): http://www.eby-sarna.com/mailman/listinfo/transwarp http://cvs.eby-sarna.com/TransWarp/ Also..

Re: [Zope-dev] Separate staging and development areas for a product

2002-04-15 Thread Steve Spicklemire
I think it's worth having a completely separate Zope. Otherwise there's no way to separate development and staging versions of filesystem based products. You might be interested in ZSyncer, or ZCVSFolder for synchronization. -steve On Monday, April 15, 2002, at 12:12 PM, Ted Skolnick wrote:

Re: [Zope-dev] Manual object-to-relational persistency framework

2002-03-09 Thread Steve Spicklemire
Thanks Dieter, I think ZPatterns is certainly worth a look. It allows you to slice-and-dice what you want to store in ZODB or RDBMS. The best part is you can develop totally in ZODB, then migrate to RDB a bit at a time (if you like) without changing your app, or your data classes. We have

Re: [Zope-dev] Dataskin Zclass + Folder subclassing problem

2001-11-30 Thread Steve Spicklemire
Hi Jean, You might get more feedback from the ZPatterns list on something like this. My gut reaction is that subclassing in python 2.1/1.5 traverses the classes to find methods in a way that makes the *order* of classes very important. IIUC Python 2.2 has a much more sophisticated

[Zope-dev] validate() trouble in Zope-2.5.0a1

2001-10-28 Thread Steve Spicklemire
I don't know if I'm doing something wrong, but when I try to unpack and run Zope-2.5.0a1 I can't seem to authenticate manage_workspace. I haven't snooped much, but it seems that options in Management.py comes back empty:

Re: [Zope-dev] zope redistibution

2001-10-20 Thread Steve Spicklemire
Hi Lukas, Have you tried a simple export/import? -steve On Thursday, October 18, 2001, at 07:44 PM, Lukas Maag wrote: hi, i use zope 2.4.1 and the redistribution fuction works not. i can not distribute a product under allowance of redistribution. if i want to distrbute on

Re: [Zope-dev] Curiously Zope Hanging

2001-07-12 Thread Steve Spicklemire
Hi Andre, What OS? I've had lots of trouble with Postgres and threads on FreeBSD. Have you tried starting Zope with '-D' to see if threads are an issue? -steve Andre Schubert wrote: Hi all, I have a problem with my Zope, he hangs unexpectly if i view a special Method which

Re: [Zope-dev] Curiously Zope Hanging

2001-07-12 Thread Steve Spicklemire
nothing happens. as Steve Spicklemire schrieb: Hi Andre, What OS? I've had lots of trouble with Postgres and threads on FreeBSD. Have you tried starting Zope with '-D' to see if threads are an issue? -steve Andre Schubert wrote: Hi all, I have a problem

Re: [Zope-dev] Curiously Zope Hanging

2001-07-12 Thread Steve Spicklemire
select data from 2001-06-01 5:00 to 2001-06-20 12:10 or from 2001-06-01 5:05 to 2001-06-20 12:10 I hope you understand my explanations in my bad german-english. I think I get the basic picture... but as Steve Spicklemire schrieb: Well, the good news is you have a reproducable

Re: [Zope-dev] Curiously Zope Hanging

2001-07-12 Thread Steve Spicklemire
Sorry.. got distracted and forgot where I was! I think I get the basic picture... but I think maybe we need more details of your system to be of any more help.. -steve as Steve Spicklemire schrieb: Well, the good news is you have a reproducable symptom

[Zope-dev] SQL/ZPatterns examples posted to Zope.org

2001-07-10 Thread Steve Spicklemire
I've had several folks ask for some ZPatterns examples with SQL. I've *finally* gotten around to providing them. They're at: http://www.zope.org/Members/sspickle The first is a school attendance application 'skeleton' with the following description: An example of ZPatterns using SQL. Gadfly

[Zope-dev] Re: [ZPatterns] HowTo: Make an Image/File a DataSkin ???

2001-07-10 Thread Steve Spicklemire
Hi Ulrich, Hmm.. can you just call DataSkin.__init__(self, id) in the File's constructor? -steve Ulrich Eck wrote: Hello .. sorry I bother you again with my ZPatterns related Questions .. I just try it once again ;-) I have a Folder w/Customizer in that I want to store

[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

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] 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] (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] 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] 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

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-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] 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] 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 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] 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] 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] 2.3 and Products

2001-01-26 Thread Steve Spicklemire
Take a look.. http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/C0FFC7204901563A -steve "MM" == =?iso-8859-1?Q?Max M=F8ller Rasmussen?= iso-8859-1 writes: MM From: Chris McDonough [mailto:[EMAIL PROTECTED]] This is not true. The behavior is the same as before... the

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] TCPWatch... and closing sockets..

2001-01-22 Thread Steve Spicklemire
Well proxy_receiver seems to set it's terminator to 'None', which seems to indicate that the dispatcher should just send it all as it comes without checking for any special terminator (which is indeed what appears to be happening!) The problem is that this dispatcher code: def recv

[Zope] TCPWatch... and closing sockets..

2001-01-21 Thread Steve Spicklemire
I'm going to try to make a long story short... and the story isn't even over... but I'm getting close. One of our clients is a 'multimedia' company and we're working with a group there that consists mostly of artists and designers who use tools like photoshop and macromedia director. They came

Re: [Zope] [python] creating variable names by adding 2 strings?

2001-01-21 Thread Steve Spicklemire
Hi Lee, You could use a dictionary for this: vars = {} while (p!=0): vars['p'+`p`] = string.replace(component[control], ",", "") p=p-1 control=control+1 then 'vars' will contain keys (e.g., 'p1', 'p2' etc.. ) and corresponding values. If that's totally not what

Re: [Zope] Tools used for programming Zope

2001-01-19 Thread Steve Spicklemire
In it's current released form ZCVSMixin really does help with a lot of the configuration/process problems in developing with Zope. You can still 'grep' for stuff, and it is possible to perform simple edits in the xml representation without much fear of actually breaking anything (it's pretty

Re: [Zope] zope, xemacs and efs

2001-01-18 Thread Steve Spicklemire
Hmmm.. I use emacs/ange-ftp all the time with zope... many versions.. with no trouble. Have you tried that? Since my client is not 'X' (yet) I don't use xemacs... -steve "glw" == Geoffrey L Wright [EMAIL PROTECTED] writes: glw I'd LOVE to be able to use efs with Zope. Right now I end

Re: [Zope] Variable sort and multiple sort in dtml-in

2001-01-18 Thread Steve Spicklemire
Hi Loren, There is also Zieve: http://www.zope.org/Members/sspickle/Zieve Not quite as easy as a 'fixed' dtml-in ... but it does work (today). -steve "Loren" == Loren Stafford [EMAIL PROTECTED] writes: Loren On 02 July 2000, Adam Karpierz, posted a patch that would Loren

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] Calling other frames

2001-01-15 Thread Steve Spicklemire
I think probably Javascript is the 'cleanest' solution in this case, but depending on the complexity of your UI another non-JS approach is to make every link target the topmost frome (e.g., target="_top") and redraw all frames in the frameset on each 'click'. This way you know that all frames

Re: [Zope] PoPy Installation. Where's the BEEF?

2001-01-11 Thread Steve Spicklemire
Did you move this Zope from it's original location in /usr/local/zope? I'm guessing you did.. and those paths are in the .pyc files. try: find /usr/local/EcoZope -name "*.pyc" -delete then (optionally) rerun w(o?)_pgci.py which will (among other things) rebuild the .pyc files. If you don't,

Re: [Zope] with a variable

2001-01-11 Thread Steve Spicklemire
How about this: dtml-call "REQUEST.set('userid', 979226100)" dtml-with "_[userid]" dtml-var attribute /dtml-with or dtml-call "REQUEST.set('userid', 979226100)" dtml-with "_.getitem(userid)" dtml-var attribute /dtml-with -steve Hi, a small problem!, This works: dtml-with 979226100

[Zope] Re: EMarket 0.1.04b1

2001-01-08 Thread Steve Spicklemire
Sorry.. it's my fault for not providing better docs.. sadly it's not been something I've had time for... esp since all the ZPatterns changes were added. 1) Create ZClasses for your MarketItems, Baskets, BasketItems and Shoppers (be sure to subclass from ZPatterns:DataSkin) 2) In the Racks

Re: [Zope] Re: EMarket 0.1.04b1

2001-01-08 Thread Steve Spicklemire
led to use Emarket James 0.1.04b1? I thought Zpatterns was only needed for EMarket James 0.2. James Jamey James -Original Message----- From: Steve Spicklemire To: James [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] James Sent: 1/8/2001 4:25 PM Subject:

Re: [Zope] How to call ancestral method in ZClass method?

2001-01-07 Thread Steve Spicklemire
Dirksen dtml-call "_ZClass_for_DataSkin.manage_delete()" Dirksen Zope refuses the upload of the dtml method all together! Dirksen Any clues? Dirksen Dirksen Dirksen --- Steve Spicklemire [EMAIL PROTECTED] wrote: Hi Dirksen, In python you would normally do: super_c

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] SQLs from Python strings

2001-01-06 Thread Steve Spicklemire
Hi Lee, Two points: 1) DTML works fine in ZSQL methods and 2) Due to (1) you can use dtml-var xxx and pull in anything from Zope that you like (but be careful... since someone might be able to pull in something you weren't thinking of when you set up the method: e.g., if you have a method

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] How to call ancestral method in ZClass method?

2001-01-05 Thread Steve Spicklemire
Hi Dirksen, In python you would normally do: super_class_object.manage_delete(self) but it might be easier/better in the case of a DataSkin to use a SkinScript 'WHEN OBJECT DELETED xxx '. -steve "Dirksen" == Dirksen [EMAIL PROTECTED] writes: Dirksen I have a ZClass

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] Deleting Connection that hangs Zope

2001-01-04 Thread Steve Spicklemire
Hi Jerry, You could remove the adaptor Product from Zope the Zope Products folder and restart, the object will be broken, but deletable, then restore the Product and restart Zope. -steve "Spicklemire," == Spicklemire, Jerry [EMAIL PROTECTED] writes: Spicklemire, Hi

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] 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] How to make two racks work under one specialist?

2000-12-29 Thread Steve Spicklemire
Hi Dirksen, I think the problem you are having has to do with using 'getItem'. From the SkinScriptSyntax Wiki page: "If the RESULT is NOT_FOUND, the search for the attribute value falls through to the next declaration (or attribute provider if the SkinScript is finished). If there is an

[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] How to make two racks work under one specialist?

2000-12-28 Thread Steve Spicklemire
Hi Dirksen.. try this: WITH Deliverables.getItem(self.id) COMPUTE name=((RESULT is _.None) and 'none available') or RESULT.name What are you using as the 'load by accessing attribute' attribute? -steve ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] [BUG] calling a constructor crashes Zope

2000-12-25 Thread Steve Spicklemire
Hi Andreas, You might try this: Start Zope in debug mode (./start -D ). Then in your __init__... class AJFile: def __init__(self): import pdb pdb.set_trace() self.d = {} Zope will stop in the debugger. Step through with the debugger and see where things are going

Re: [Zope] [BUG] calling a constructor crashes Zope

2000-12-25 Thread Steve Spicklemire
Hi Andreas, I would be really surprised if this were a python problem. Are you using any other extensions with your product? Can you post a more complete set of code that shows how this constructor is really called? It sounds like the heap is getting corrupted somehow, maybe a bad

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

Re: [Zope] Reality check PYZOMA = python / zope for Mac ?

2000-12-24 Thread Steve Spicklemire
Jason ___ Jason Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] Jason Steve Spicklemire [EMAIL PROTECTED] wrote: Have you seen: http://www.zope.org/Members/sspickle/MacOSXBHFS Zope-2.3a1 runs with Python-1.5.2. I've run

Re: [Zope] Reality check PYZOMA = python / zope for Mac ?

2000-12-24 Thread Steve Spicklemire
"Jim" == Jim Harrison [EMAIL PROTECTED] writes: Does anyone know what Apple's plans are for MacOSX introduction Jim haven't found a source for a compiled 1.5.2. I've tried to Jim follow Steve's directions for the 1.5.2 build at Jim

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] Reality check PYZOMA = python / zope for Mac ?

2000-12-23 Thread Steve Spicklemire
Hi Jason, Have you seen: http://www.zope.org/Members/sspickle/MacOSXBHFS Zope-2.3a1 runs with Python-1.5.2. I've run Zope-2.2.x on MacOSX and it runs great. At some point someone with time, or a paying customer, or both will get an Open Database (MySQL, PostegreSQL, ... ) running on MacOSX

Re: [Zope] How to make two racks work under one specialist?

2000-12-22 Thread Steve Spicklemire
myName hr Description:dtml-var myDescriptionbr hr I'm due: dtml-var dueDate dtml-var standard_html_footer and all is working OK. What ZClass are you using for your instances? -steve "Steve" == Steve Spicklemire [EMAIL PROTECTED] writes: Steve Hi Dirksen, Steve Hmm.. this i

Re: [Zope] How to make two racks work under one specialist?

2000-12-22 Thread Steve Spicklemire
Hi Dirksen, For your 'otherwise' case, could you have a single instance that serves as an 'unknown' object: WITH Deliverables.getItem(self.id) COMPUTE originalObject=RESULT or NOT_FOUND OTHERWISE originalObject=Deliverables.getItem('Unknown') where it is known that the Deliverables

Re: [Zope] How to make two racks work under one specialist?

2000-12-21 Thread Steve Spicklemire
Hi Dirksen, Did you say you were using 0.4.3b1 or b2? I think that this sounds like the bug from b1: http://lists.zope.org/pipermail/zope-dev/2000-October/007650.html -steve "Dirksen" == Dirksen [EMAIL PROTECTED] writes: Dirksen One more question, i.e. the following expression

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] [BUG] Background processes interfere with Zope's HTTP responses

2000-12-19 Thread Steve Spicklemire
Hi Deiter, Hmm.. I just tried this with my highly experimental product (LocalProc 0.0.1) and I didn't observe the same effect that you did behind my Proxy Server. (I normally run with Rewrite... but when I got your note I tried ProxyPass and it worked on the first try.) (Good howto Anser!

Re: [Zope] How to make two racks work under one specialist?

2000-12-18 Thread Steve Spicklemire
Hi Dirksen, Ok.. you need to set the 'load by accessing attribute' field to 'original_object'. You may need to change your SkinScript to something like: WITH getMale(self.id) COMPUTE original_object=(RESULT is _.None) and NOT_FOUND or RESULT So that when getMale returns _.None, the

Re: [Zope] How to make two racks work under one specialist?

2000-12-16 Thread Steve Spicklemire
Hi Dirksen, Hmm... why not have the query that gets data qualify by gender: SQL Query: getMemberByGender parameters member_id, gender select * from members where dtml-sqltest member_id type=string and dtml-sqltest gender type=string Then in the SkinScript for maleMemberRack: WITH

Re: [Zope] How to make two racks work under one specialist?

2000-12-16 Thread Steve Spicklemire
Hi Dirksen, Forgot to mention... you should probably choose some attribute other than 'id' as the attribute to check for your DataSkin. The 'id' attribute is always there... -steve "Steve" == Steve Spicklemire [EMAIL PROTECTED] writes: Steve Hi Dirksen, Steve

Re: [Zope] skinscript and ZSQL

2000-12-16 Thread Steve Spicklemire
This set works for me: -- WHEN OBJECT ADDED CALL sqlInsertProduct(client_name=self.id, email=self.email, rate=self.rate, last_payment=self.last_payment, primary=self.primary, services=self.services) WHEN OBJECT CHANGED

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] HTTP status code 302

2000-12-10 Thread Steve Spicklemire
Hi Hung Jung, Did you set a 'Host' header in your request? Is the request going straight to ZServer, or through Apache? (Also... do you have a SiteRoot?) These can all affect how the request is handled by the server... It woould be interesting to try urllib, rather than httplib since it

Re: [Zope] HTTP status code 302

2000-12-10 Thread Steve Spicklemire
Hi Hung, No! Urllib does that too! import urllib x = urllib.urlopen('http://user:pass@host:8080/path/to/get') print x.read() -steve "Hung" == Hung Jung Lu [EMAIL PROTECTED] writes: Hung From: "Steve Spicklemire" [EMAIL PROTECTED] Did you set a 'Host' he

Re: [Zope] just curious

2000-12-07 Thread Steve Spicklemire
wget? -steve "michael" == michael angelo ruberto [EMAIL PROTECTED] writes: michael what i meant was, is there a way to remove my files in michael Zope back to the filesystem? i'm having serious concerns michael about the stability of this product and need to know if i michael

Re: [Zope] Zope 2.2.4 dying under Solaris 2.6

2000-12-07 Thread Steve Spicklemire
It might be interesting to turn on the -M option of z2.py and see if there is any pattern to the crash. This can happen for a number of reasons (e.g., a buggy Python extension, an infinite recursive loop, ). -steve "Michael" == Michael Best [EMAIL PROTECTED] writes: Michael I have

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.

[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

Re: [Zope] How to build a c extension on a linux system

2000-12-04 Thread Steve Spicklemire
I keep my own CVS'ed versions of ZPatterns and PlugIns so I can patch/change with a little control. For my own convenience I put a build.py file in the ZPatterns directory and my usual sequence is: cvs co ZPatterns cvs co PlugIns cd ZPatterns python build.py this way I don't have to think

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] Wampum generator on Zope 2.2.4 fails / _isBeingUsedAsAMethod

2000-12-03 Thread Steve Spicklemire
Hmm.. I *know* I've seen this before. I think it was when I was trying to move ZClasses that were *created* under Zope 2.2.0+ to Zope 2.1.x. Are you sure you're working with 100% 2.2.4? -steve "Brad" == Brad Clements [EMAIL PROTECTED] writes: Brad Selecting the Security Tab on a Wampum

Re: [Zope] Installation and Startup

2000-12-02 Thread Steve Spicklemire
Norm... 'services' is an NT concept. Just run the bat file from the command line. -steve "Norm" == Norm LaDuke [EMAIL PROTECTED] writes: Norm I have installed Zope on a 300Mhz K6 machine with 92 Megs of Norm RAM running Windows 98. It seemed to install ok except that Norm it

Re: [Zope] mysql zope

2000-11-30 Thread Steve Spicklemire
Hi Ruediger, You might consider ZPatterns. It allows you to develop applications with ZODB, and then, later, 'easily' switch to other forms of attribute storage for your objects. -steve "Alexander" == Alexander DePauli [EMAIL PROTECTED] writes: Alexander Hi Zopistas! Alexander

Re: [Zope] strange behaviour of ZSQL methods

2000-11-29 Thread Steve Spicklemire
How about: dtml-var "theQuery(REQUEST=REQUEST, src__=1)" -steve "Oliver" == Oliver Bleutgen [EMAIL PROTECTED] writes: Hi listies, something strange is happening with my ZSQL methods. I have a huge query that works great when testing it in the management-interface - it

Re: [Zope] Editing SQL methods from Emacs (+ FTP server)?

2000-11-29 Thread Steve Spicklemire
I'm trying to get a list of lists using ZSQL Methods... I have two related tables, hounds and items. I want to get the hound_id in items like this but can't work out how to pass the hound_id variable... dtml-in get_hounds bdtml-var name dtml-var id/b dtml-in

Re: [Zope] ZopeWeaver?

2000-11-28 Thread Steve Spicklemire
Hi Andy, "Andy" == Andy McKay [EMAIL PROTECTED] writes: There are now all manner of Dreamweaver extensions, both Andy I tried it briefly and found that Dreamweaver cant seem to Andy handle a file with no extension such as index_html, so gave Andy up. Yes.. it's apparently

[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] RE: BSD 4 installation

2000-11-25 Thread Steve Spicklemire
Hi Lee, I'm not sure if this will help.. but I do know that I routinely build Zope on multiple FreeBSD systems and it has never caused a problem like this. Did you build your own python, or use a port? What flavor of BSD? I've never had to edit Makefile.pre.in or do.py on FreeBSD 3.x, or

Re: [Zope] how to get the created table names

2000-11-24 Thread Steve Spicklemire
Hmm.. I think there is a method of a ZSQL result object called 'names'.. Here is a snippet from some working code: dtml-let specificTypes="getTypes(ttid=type, name='', tttype='')" theNames="specificTypes.names()" where 'getTypes' is a ZSQL Method and theNames is the list of column

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

Re: [Zope] New ZPatterns example... was Re: [Zope] New releases of Zwiff and ZCVSMixin...

2000-11-23 Thread Steve Spicklemire
Urp.. yes. sorry! Thanks! -steve "Rik" == Rik Hoekstra [EMAIL PROTECTED] writes: OK.. The new ZPatterns Example is up there now off to fix some EMarket problems Rik for which the secret url is: Rik http://www.zope.org/Members/sspickle/DumbZPatternsExample

Re: [Zope] Problems with new Todo example.

2000-11-23 Thread Steve Spicklemire
Hmmm... er.. it's just page with a picture and some text there's nothing zopey at all... I (almost) never run IE or Windowsso I'll dig around here and see if I can reproduce it it's wierd though.. it's just simple html! Does the app part work for you? -steve "jimbo" == jimbo

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

[Zope] New releases of Zwiff and ZCVSMixin...

2000-11-22 Thread Steve Spicklemire
For those who are paying attention ;-) there are new releases of Zwiff and ZCVSMixin at zope.org. There will be a new DumbZPatternsExample later today or tomorrow... The Zwiff release has been updated with the latest patches of ming and now has lots of working examples. You download the

Re: [Zope] XML-RPC

2000-11-21 Thread Steve Spicklemire
A number of folks have asked me about ming-0.0.4 and Zwiff. I have just uploaded a new Zwiff that uses ming-0.0.4+ (there is actually a full ming distribution this time with all the patches needed to work with Zwiff.) Let me know how it goes! http://www.zope.org/Members/sspickle/Zwiff -steve

Re: [Zope] random object with properties

2000-11-21 Thread Steve Spicklemire
Hmm.. How about something like: dtml-let random_image="_.whrandom.choice(objectValues('Photo'))" dtml-var random_image dtml-if "_.hasattr(random_image,'caption')"dtml-var "random_image.caption"/dtml-if /dtml-let -steve ___ Zope maillist -

Re: [Zope] Search and replace

2000-11-20 Thread Steve Spicklemire
Hi Robin, ZCVSMixin works with ZClasses. It's a little cumbersome at the moment due to the Container/Contained problem and others: http://dev.zope.org/Wikis/DevSite/Proposals/SynchronizationMechanismZCVSMixin But it does manage ZClass method and properties on the filesystem. You do need to

  1   2   >