Re: [web2py] Re: REST Unit Testing

2014-05-01 Thread Samuel Marks
That's fine; you'll just want to write some helper functions (`get`, `post`, `put`, `delete`, `patch`) to make it more semantic: self.assertEqual(get("", vars={"x": "y"}), {"a":"b"}) Samuel Marks http://linkedin.com/in/samuelmarks

Re: [web2py] Re: REST Unit Testing

2014-05-01 Thread Samuel Marks
I use bottle with webtest. You could probably do the same with web2py. (WSGI and all) Samuel Marks http://linkedin.com/in/samuelmarks On 02/05/2014 12:11 am, "samuel bonill" wrote: > I really do not know how to do a REST Unit Testing with web2py api, I use > postman ( http://ww

Re: [web2py] Re: API Rest authenticatio

2014-04-29 Thread Samuel Marks
You should be using DI and throwing things into header defaults. Otherwise you won't be promoting DRY. Anyway, when you get to that point you move away from web2py (like I have done). Recommend checking out Bottle. Samuel Marks http://linkedin.com/in/samuelmarks On Wed, Apr 30, 2014 at

Re: [web2py] Re: API Rest authenticatio

2014-04-29 Thread Samuel Marks
User credentials grant flow with expiring and manually invalidatable tokens (I implemented it as logging out from one device logs you out everywhere) Samuel Marks http://linkedin.com/in/samuelmarks On 29/04/2014 4:38 pm, "Leonel Câmara" wrote: > How do you save API authentication c

Re: [web2py] API Rest authenticatio

2014-04-26 Thread Samuel Marks
I'm a big RFC6749 fan Quite simple; and you can implement your own custom grant for e.g.: higher security using x509 certificates. Samuel Marks http://linkedin.com/in/samuelmarks On 27/04/2014 12:05 am, "samuel bonill" wrote: > thanks Marks, i'm using phonegap(android

Re: [web2py] API Rest authenticatio

2014-04-25 Thread Samuel Marks
Sure, take a look at x509 at http://web2py.com/books/default/chapter/29/09/access-control Samuel Marks http://linkedin.com/in/samuelmarks On Sat, Apr 26, 2014 at 12:33 PM, samuel bonill wrote: > is there an example of API Rest authentication based in private/public key > with web2py

Re: [web2py] !! NEW ADMIN !!

2014-01-06 Thread Samuel Marks
Very nice! Samuel Marks http://linkedin.com/in/samuelmarks On Tue, Jan 7, 2014 at 8:29 AM, Richard Vézina wrote: > Nice! > > Richard > > > On Mon, Jan 6, 2014 at 4:19 PM, samuel bonill wrote: > >> Admin Plus(A-Plus) is a web2py plugin that provides an easy-to-us

Re: [web2py] Re: Jessica McKellar talking about windows and the future of Python

2013-09-15 Thread Samuel Marks
Everything I use seems to be cross platform anyway… virtualenv, pip, web2py, Bottle, Flask, PyCharm, Eclipse, nano, curl, Firefox, Chrome, Opera The only real learning curve was getting Visual Studio setup properly to compile Python packages containing C extensions. Samuel Marks http

[web2py] [ANNOUNCEMENT + RFC] Implemented the OAuth2 authentication server

2013-02-01 Thread Samuel Marks
ne is based off its 20th Draft) Would welcome testers and developers to get involved with improvements + bug findings =] *https://github.com/SamuelMarks/web2py-oauth2* Thanks and enjoy, Samuel Marks PS: Once it's fully tested, lets package it up with web2py; and throw the documentation into

[web2py] Re: New Plugin to add client side validation to your SQLFORM

2012-09-22 Thread Samuel Marks
Any update on the clientvalidation=True extension to the SQLFORM class? On Wednesday, July 25, 2012 4:44:55 AM UTC+10, Massimo Di Pierro wrote: > > Can you tell us more about how it works? > > On Tuesday, 24 July 2012 09:38:51 UTC-5, Franco wrote: >> >> >>

Re: [web2py] Congratulations to Bruno and Mariano

2012-08-17 Thread Samuel Marks
Mazel tov! Samuel Marks On Sat, Aug 18, 2012 at 12:13 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Congratulations to Bruno Rocha and Mariano Reingart, > > New members of the Python Software Foundations. > > http://pyfound.blogspot.com.br/2012/08/welcome-new-psf-members.html > > > -- > > > > --

Re: [web2py] Re: Announcement: Open-source meetup.com alternative released

2012-08-06 Thread Samuel Marks
ow to reduce # of db queries? Also I should be able to directly reference the group name from the events table, rather than just its ID. This would save many queries and simplify my code. How can I do this? Thanks for all suggestions, Samuel Marks On Fri, Aug 3, 2012 at 4:58 AM, Derek wrote: &g

[web2py] Announcement: Open-source meetup.com alternative released

2012-08-02 Thread Samuel Marks
o you will notice a bit of hacky code here and there, and lack of caching. Please recommend where+when I should cache, and how to de-hackify the code. Thanks and I hope you enjoy my project, Samuel Marks --