[Zope] Want to access ZClass Instance from external program

2000-10-17 Thread Jon Prettyman
I have a folder containing a bunch of ZClass instances that I want to access from an external (non-web) python application. I need to be able to read the values of the instance properties. Is there a way to do this with the ZClient stuff? If not, what can I use. If yes, any pointers? -jon __

Re: [Zope] Want to access ZClass Instance from external program

2000-10-18 Thread Jon Prettyman
Well, I've gotten xmlprclib and fixed it up so I can talk to my server. So far I can retrieve objectIds and retrieve objects via an objectid, but I can't figure out how to get to the property sheets. Here's what I've got: server = Server( "http://jonprettyman.com" ) print server for k,v in se

Re: [Zope] Want to access ZClass Instance from external program

2000-10-18 Thread Jon Prettyman
tle base Both of these are properties of server.EBQ. -jon Ender <[EMAIL PROTECTED]> writes: > Jon Prettyman wrote: > > > > Well, I've gotten xmlprclib and fixed it up so I can talk to my > > server. So far I can retrieve objectIds and retrieve objects via an > >

Re: [Zope] ZSQL Method & AUTHENTICATED_USER

2000-10-18 Thread Jon Prettyman
I'm pretty sure that all variables have to be passed in explicitly with SQLMethods. Namespaces are not passed in. Try specifying username as an argument in the ZSQLMethods edit form and pass it in like this: (Untested) -jon Aaron Straup Cope <[EMAIL PROTECTED]> writes: > Hi, > > I'm

Re: [Zope] Want to access ZClass Instance from external program

2000-10-19 Thread Jon Prettyman
This works like a charm. Thanks much for the help. -jon Ender <[EMAIL PROTECTED]> writes: > Sorry Jon, i've lead you down a slippery slope... > > unlike ttw dtml-methods and the rest of zope which relies on the > security context soley, for a filesys python method to be exposed > through the

[Zope] Help with general purpose ZSQL Method

2000-11-03 Thread Jon Prettyman
I want to write a generic table browser ZSQL method and am having trouble getting the output that I want. Given a ZSQLMethod that looks like this: ID:browse_table Arguments: table:string="" Script: SELECT * FROM I'm trying to write a DTML method to display the results of this method WI

[Zope] Another Aiieee.....

2000-11-03 Thread Jon Prettyman
I am once again encountering the mysterious Aiieee error with core dumps from Zope/Python on a Solaris boxen. SunOS sparky 5.7 Generic_106541-08 sun4m sparc SUNW,SPARCstation-20 Python 1.5.2 (#1, Oct 24 2000, 11:56:43) [GCC 2.8.1] on sunos5 Zope-2.2.2 DCOracle 1.3.2 448M ram I get the following

Re: [Zope] Ah, I found it -- Estimate of community size

2000-11-29 Thread Jon Prettyman
And if you're in the telco/network business, you probably count them more than once! -jon "Steve Drees" <[EMAIL PROTECTED]> writes: > > But anyway, there's no concrete way to count zope users: estimation is > > the best we'll ever get. > > This is America. When people subscribe we count them.

Re: [Zope] Zope eating CPU/RAM - how do I find the culprit?

2000-12-29 Thread Jon Prettyman
Are you using ZSQLMethods by any chance? -jon [EMAIL PROTECTED] (Cees de Groot) writes: > Our production Zope machine has developed a habit over Christmas where > it starts eating CPU and RAM (one Python thread on 100% CPU time, and > I've seen kernel messages indicating that Zope was killed b

Re: [Zope] Zope eating CPU/RAM - how do I find the culprit?

2000-12-30 Thread Jon Prettyman
ousands of leaked instances of SQLAlias causing our memory usage to skyrocket. -jon [EMAIL PROTECTED] (Cees de Groot) writes: > Jon Prettyman <[EMAIL PROTECTED]> said: > >Are you using ZSQLMethods by any chance? > > > Yes, why? (I think I've fixed /this/ problem,

Re: [Zope] Question: How to generate a core file in Solaris 2.6

2001-01-03 Thread Jon Prettyman
I had a similar problem quite some time ago. I never could get a core file to generate, but since the crash occured so often, I was able to attach gdb (GNU debugger) to the process and was able to see the segmentation violation that was occurring. I never did figure out why I couldn't get a core

Re: [Zope] FTP Woes and no answer

2001-01-12 Thread Jon Prettyman
Try using PASSIVE mode for your FTP client. Did someone perchance put a firewall up between you and your server? -jon "J. Atwood" <[EMAIL PROTECTED]> writes: > I have FTP'd into Zope before. No problems but all of a sudden it > seems like neither I nor the people I am working with can FTP in w