Re: [Zope] Zope, Threads and Signals
Wilkinson Charlie E wrote: It all began when I was a small child, but I'll skip ahead a bit I almost hate to say this, since your post is an interesting one otherwise, but please don't send HTML email to the list. Some of the people here don't use HTML-capable mail clients. Thanks, Michael Bernstein. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope, Threads and Signals
"Knight" once said: cw, Are you spawning additional threads by chance? Or just the threads that Zope creates? No, I'm a Python newbie who doesn't know of threads yet, so this is just Zope threads working their magic. :-) Right now I'm just shooting for a simple network client as a proof of concept, though ultimately I need to take into account that the server this client is talking to is *cough* single instance and single threaded (i.e. only one client at a time). So what I really need to do for the long haul is set my client software up to hold a persistent connection and multiplex/queue the requests. I assume that means I'll need to rewrite my External Method interface as a Zope Product? Maybe I should try to grok one of the database connection products and model after that? The server is Rand McNally's Unix Resident MileMaker (URMM) milage calculation software for shipping, if you were wondering (what to avoid?) Thanks, Charlie -- ~ Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer... Visit the Radio For Peace International Website: http://www.rfpi.org/ ~ CLOBBER INTERNET SPAM: See!! http://spam.abuse.net/ Join!! http://www.cauce.org/ ~ QOTD: "Bush is a big corporation disguised as a human being running for president." -- Ralph Nader on David Letterman (9/28/00) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope, Threads and Signals
Michael Bernstein [EMAIL PROTECTED] wrote: Wilkinson Charlie E wrote: It all began when I was a small child, but I'll skip ahead a bit I almost hate to say this, since your post is an interesting one otherwise, but please don't send HTML email to the list. Some of the people here don't use HTML-capable mail clients. RANT target="Microsoft" [Charlie draws a deep breath and starts out softly] I'm not a dummy. I've been a UNIX application developer and SysAdmin for ten years. Really goofy hardware too. Ever try and build Sendmail on a Pyramid MIS-4? For ten years before that I was an electronics repair technician. I've forgotten more technical details than most people will ever know, and I relish that I can pick up some strange piece of equipment and figure out how to operate it in a matter of minutes. _And_ I'm a ham radio operator - we *love* buttons and knobs! BUT I CAN'T SHUT OFF HTML IN OUTLOOK TO SAVE MY MISERABLE F*ING LIFE Yes, yes, I've been through all the usual steps. I even check the format settings on the message before sending it to confirm that it is in fact plaintext. No matter. It gets posted with f-ing HTML! This is despite the fact that I'm now stuck sending plaintext to everyone in our organization! My suspicion is that some well meaning but deranged Exchange SMTP gateway server is doing the conversion, as there's a meta tag that says the HTML generator is Exchange. I've tried talking to the people who run the servers, but they are clueless and keep saying it's something I'm doing. So I just try to avoid posting to the list from Outlook, but last night at the office I was (and still am) desparate. But now I'm home with Linux/Mutt. Yay! :-) /RANT Sorry you had to read that. (Where's my medication?) -cw- -- ~ Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer... Visit the Radio For Peace International Website: http://www.rfpi.org/ ~ CLOBBER INTERNET SPAM: See!! http://spam.abuse.net/ Join!! http://www.cauce.org/ ~ QOTD: "Bush is a big corporation disguised as a human being running for president." -- Ralph Nader on David Letterman (9/28/00) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope, Threads and Signals
Charlie Wilkinson wrote: Michael Bernstein [EMAIL PROTECTED] wrote: Wilkinson Charlie E wrote: It all began when I was a small child, but I'll skip ahead a bit I almost hate to say this, since your post is an interesting one otherwise, but please don't send HTML email to the list. Some of the people here don't use HTML-capable mail clients. RANT target="Microsoft" I'm not a dummy. I didn't mean to imply that you were. [snip experience] BUT I CAN'T SHUT OFF HTML IN OUTLOOK TO SAVE MY MISERABLE F*ING LIFE [snip attempts to supress HTML] My suspicion is that some well meaning but deranged Exchange SMTP gateway server is doing the conversion, as there's a meta tag that says the HTML generator is Exchange. I've tried talking to the people who run the servers, but they are clueless and keep saying it's something I'm doing. [snip] /RANT Monday I'll check with our sysadmin and take a look at the Exchange Management UI myself. If I can identify the correct 'knob', I'll let you know, so you can pass this information along to your server admins. Meanwhile, you could use a free web-mail account, and just set the Reply-To or CC to your actual email address. I like netaddress.com (no Reply-To, though). Michael Bernstein. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope, Threads and Signals
cw, Are you spawning additional threads by chance? Or just the threads that Zope creates? Knight [EMAIL PROTECTED] On Fri, 6 Oct 2000, Wilkinson Charlie E wrote: It all began when I was a small child, but I'll skip ahead a bit Last night I wrote a network client class with plans to use it as an External Method in Zope. Works great from the command line. My first real Python program. Mom and Dad were so proud! However, when I plugged it into Zope and tried to call it from a document method, I got this: Error Type: ValueError Error Value: signal only works in main thread Gack!! Um... Silly me, but I wrote all this code to use sigalarm and blocking I/O. Anyone know how I can overcome this great adversity, aside from rewriting it all to use non-blocking I/O? Know of any good examples of External Method network clients you could point me at? Or would making it a Zope Product somehow fix everything? (Sorry, I had to ask...) -cw- -- Charlie Wilkinson TRIS Development Systems Administrator IS:SD:CT:CC:TD Phone: 202-283-3241 MSMail: [EMAIL PROTECTED] SMTP: [EMAIL PROTECTED] Home: [EMAIL PROTECTED] This message constructed from 90% post-consumer electrons. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )