Module ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num If UnaryOpNot Call NameLoad NameLoad body Assign NameStore Num Assign NameStore BinOpAdd NameLoad Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list
N/A dojango.util is_number get_combobox_data N/A N/A request N/A N/A N/A Return the standard live search data that are posted from a ComboBox widget.
    summary:
        A ComboBox using the QueryReadStore sends the following data:
            name - is the search string (it always ends with a '*', that is how the dojo.data API defined it)
            start - the paging start
            count - the number of entries to return
        The ComboBox and QueryReadStore usage should be like this:
            <div dojoType="dojox.data.QueryReadStore" jsId="topicStore" url="/topic/live-search/..." requestMethod="post" doClientPaging="false"></div>
            <input {% dojo_widget "rs.widget.Tagcombobox" "addTopicInput" %} store="topicStore" style="width:150px" pageSize="20" />
        The most important things here are the attributes requestMethod and doClientPaging!
        The 'doClientPaging' makes the combobox send 'start' and 'count' parameters and the server
        shall do the paging.
        
    returns:
        a tuple containing
            search_string - the string typed into the combobox
            start - at which data set to start
            end - at which data set to stop
        'start' and 'end' are already prepared to be directly used in the 
        limit part of the queryset, i.e. Idea.objects.all()[start:end]
    
    throws:
        Exception - if the request method is not POST.
        ValueError - if start or count parameter is not an int.
     N/A N/A N/A N/A request method POST N/A N/A N/A Exception POST request expected. N/A string N/A N/A N/A request POST get name N/A N/A N/A string endswith * N/A N/A string N/A string N/A -1 N/A start N/A int N/A N/A N/A request POST get start 0 N/A end N/A N/A N/A request POST get count 10 N/A N/A N/A is_number end N/A N/A end 10 N/A end N/A start N/A int end N/A N/A string start end N/A