somethings wrong - I just try this from ipython, and it should work ---
 could you post your entire calling line?
Thanks,
Yarko

--------  from iPython (testing dictionary get, w/ default) -------

In [1]: d = {}

In [2]: print d.get('name')
None

In [3]: print d.get('nitems', 25)
25

In [4]: print d.get('nitems')
None

In [5]: d['nitems']=10

In [6]: print d.get('nitems')
10

In [7]: print d.get('nitems',25)
10

In [8]: print d.get('nitems',25)+5
15

In [9]:

can you show your entire call?

On Tue, Nov 18, 2008 at 12:29 PM, Wes James <[EMAIL PROTECTED]> wrote:

>
> i should add, it shows 25 items per page with nitems=10
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to