Hi, Can anybody tell me what the following warning means, or where I can find documentation on this warning? ZServer warning : server accept() threw EWOULDBLOCK Thanks in advance Tom Deprez
On Thursday 11 January 2001 21:13, Tom Deprez wrote:
Hi,
Can anybody tell me what the following warning means, or where I can find documentation on this warning?
Since nobody else has , yet...
ZServer warning : server accept() threw EWOULDBLOCK
Odd... this is a Sockets level error, meaning that the operation (in this case accept() ) requested on a non-blocking socket would have caused it to block (stall).
Thanks in advance
Tom Deprez
As to what would cause this.... from the documentation I can find, accept() shouldn't produce this error. And even if it can, it would be a poor program design indeed that called accept() when there were no connections pending. All I can think of immediately is someone went to connect, but dropped the connection before the server could react. Now, the timing we're talking about here is likely _very_ slim... but possible. Other than that, I'd actually have to look at the source.. (o8 Have a better one, Curtis Maloney
Hi, a small problem!, This works: <dtml-with 979226100> <dtml-var attribute> </dtml-with> This doesn't: <dtml-call "REQUEST.set('userid', 979226100)"> <dtml-with "_.getitem('userid')"> <dtml-var attribute> </dtml-with> Nor this: <dtml-call "REQUEST.set('userid', 979226100)"> <dtml-with "userid"> <dtml-var attribute> </dtml-with> Nor this: <dtml-call "REQUEST.set('userid', 979226100)"> <dtml-with userid> <dtml-var attribute> </dtml-with> What I want to do is have a varible passed to the page which says what zclass instance to get the properties of. any help appreciated. josh on =========================== write: josh@futurefarmers.com read: www.futurefarmers.com read: www.crd.rca.ac.co.uk/~josh interrupt (i love it): (415) 552 2124 =============================
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> <dtml-var attribute> </dtml-with>
This doesn't: <dtml-call "REQUEST.set('userid', 979226100)"> <dtml-with "_.getitem('userid')"> <dtml-var attribute> </dtml-with>
Nor this: <dtml-call "REQUEST.set('userid', 979226100)"> <dtml-with "userid"> <dtml-var attribute> </dtml-with>
Nor this: <dtml-call "REQUEST.set('userid', 979226100)"> <dtml-with userid> <dtml-var attribute> </dtml-with>
What I want to do is have a varible passed to the page which says what zclass instance to get the properties of.
any help appreciated.
josh on
=========================== write: josh@futurefarmers.com read: www.futurefarmers.com read: www.crd.rca.ac.co.uk/~josh interrupt (i love it): (415) 552 2124 =============================
_______________________________________________ Zope maillist - Zope@zope.org 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 )
thanks Steve and Rick, Unfortunately both your solutions brought up this error: Error Type: SystemError Error Value: bad argument to internal function
<dtml-call "REQUEST.set('userid', 979226100)"> <dtml-with "_[userid]"> <dtml-var attribute> </dtml-with> or <dtml-with "_.getitem(userid)">
This works: <dtml-with 979226100> <dtml-var attribute> </dtml-with>
I want to get some properties for a zclass instance after being passed its id in a variable. In these tests I have been defining the varible in the code, in the final case it will be passed through the url. Using the id directly as above works fine, it writes the attribute to the page. Thanks for any help, Josh On
I got it to work thanks for the help! <dtml-call "REQUEST.set('userid', '979226100')"> <dtml-with "_[userid]"> <dtml-var attribute> </dtml-with> it was the cobination of no quotes around the the userid AND setting the variable as a string not an integer! arrrggghh... thank godness, now I can have lunch. josh on
// I want to get some properties for a zclass instance after being // passed its // id in a variable. In these tests I have been defining the varible in the // code, in the final case it will be passed through the url. // // Using the id directly as above works fine, it writes the // attribute to the // page. // // Thanks for any help, // // Josh On Hi Josh, I'm kinda new to this stuff, but I think I am doing something similar to what you need. I have a DTML method that grabs a ZCLass object's id from the query string and uses it to gain access to that ZCLass object. It looks like I'm generating the id's the same way you are (not that that matters...) I do it like this: The URLs look something like this: addUserToEvent?977952867 where 977952867 is the id of the ZClass object I want to work with and the "addUserToEvent" method has this in it: <dtml-with "_.getitem(QUERY_STRING)"> ...Do stuff with the ZClass reference here... </dtml-with> I hope that helps. Eric.
I want to read an zclass instances' properties. I want to make some dtml that can be passed the instances' id then give me the properties that I request. I was trying <dtml-with> and it worked when I plugged the id striaght into it, but when I tried substituting that with a dynamic varible I couldn't get it to work. I have been trying some other approaches that maybe someone could tell me if I am on the right track or if there is some cumentaion that could help me out. I have been going through the list archives for hours! here is a my latest failed attempt! <dtml-call "REQUEST.set('userid', 979226100)"> <dtml-var "_[userid]._getAttribute(hairpart)"> I know that I could use the Catalog, but it seems crazy to have to track everyvariable property of an object that I want to access. I am sure that this is a basic problem and would love some help with it. josh on
participants (5)
-
Curtis Maloney -
Eric Walstad -
josh on -
Steve Spicklemire -
Tom Deprez