<div class="gmail_quote">On Fri, Dec 25, 2009 at 11:35 AM, Carsten Haese <span dir="ltr"><<a href="mailto:carsten.haese@gmail.com">carsten.haese@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Victor Subervi wrote:<br>
> Well I've done that. What happens is the storeColNames registers the<br>
> "Availability" field naturally enough; however, as I stated before, the<br>
> getlist doesn't fetch anything because there is nothing to fetch! No<br>
> such value is passed!<br>
<br>
</div>Well, what does getlist return when the situation you're describing as<br>
"getlist doesn't fetch anything" occurs? Does is raise an exception?<br>
Does it return 0? Does it return None? Does it return an empty list? An<br>
empty string? An empty tuple? Does it return False? Does it not return<br>
at all and causes the universe to fall into a black hole?<br></blockquote><div><br>It returns nothing. I believe I've stated that three times now. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
So, what I need to do is figure out a way to log<br>
> the fact that no value is fetched. What I have currently, unfortunately,<br>
> simply ignores the unfetchable value. As I stated before, I need to log<br>
> the fact that no such value is obtained. Please...how do I do that??<br>
<br>
</div>Please be less vague. What part do you have a problem with? Checking<br>
whether "no value is fetched" or "log the fact"?<br></blockquote><div><br></div></div>No value is fetched because there is no value to fetch. I want to be able to log the fact that no value was fetched. How do I do that? Am I not being clear? Here, let me try again, as I began this thread with my first post. I thought it was so easy, so clear. If I use getfirst, I can set a default to log whether getfirst gets anything or not. I cannot do that with getlist. Is there a work-around?<br>
TIA,<br>beno<br>