It's not strictly pagination--it's record-based partial get--but this
is what I use for that purpose:
http://bitbucket.org/joeb/django-piston/
If it's useful enough to go upstream I'd support/enhance it. Right
now it does everything I need it to do.
Joe
What would the answer be in this case?
piston/resource.py, L234
range = "records %i-%i/%i" % (start, end, count)
is count (L232) in a inverted way to respect L233?
> If it's useful enough to go upstream I'd support/enhance it. Right
> now it does everything I need it to do.
>
Thanks for this job, I'd really like to enhance it to be merge into
main branch. (I'm used to git, what's the main branch's name in
mercurial?)
Joe Banafato has done some work related to Pagination using the
Partial Get statement. (discussed in this thread) What do you need to
be merged into the main branch?
>
> Jesper
>
> On May 6, 3:14 am, Rock <rockmhow...@gmail.com> wrote:
>> I have been banging on 2.3rc1 (which is the current trunk) including
>> using a custom 'error_handler' function as well as the improved
>> 'validate' decorator. FWIW I am using a recent django trunk (i.e.,
>> 1.2ish) and python 2.6.4 on linux. It all looks good to me and so I
>> recommend an official 2.3 release based on the release candidate
>> unless, of course, somebody comes up with a good reason for holding
>> off.
>>
>> Rock
>>
>> --
>> You received this message because you are subscribed to the Google Groups "django-piston" group.
>> To post to this group, send email to django...@googlegroups.com.
>> To unsubscribe from this group, send email to django-pisto...@googlegroups.com.
>> For more options, visit this group athttp://groups.google.com/group/django-piston?hl=en.
>
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-pisto...@googlegroups.com.
It looks nice, but I can't get it to work... I got oauth 1 working,
after altering the original code.
Oauth2 is a bit harder. A working example (like [1]) would be nice.
I also think i've found a bug; in piston/authentication/auth/
utils.py:L52, I changed/ugly hacked:
missing = list(param for param in params if param not in
oauth_request)
To this:
try:
missing = list(param for param in params if param not in
oauth_request)
except:
missing = params
I discovered this when I tried to run the example project within mine.
Params was not iterable.
- Tom
--
You received this message because you are subscribed to the Google Groups "django-piston" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-pisto...@googlegroups.com.