[web2py] Re: web2py api call from angular 4

2018-03-19 Thread Dave S
> > login(user): Promise{ > let url: string = `${this.BASE_URL}/login`; > return this.http.post(url,user).toPromise(); > } > > *here my web2py api* > > @request.restful() > def login(): > def POST(username, password): > user = auth.login

[web2py] API for database sequence?

2018-02-01 Thread David Orme
Hi, I've got a table where I want to group related rows with a unique id. I could use something like: next_val = db.table.unique_id.max() + 1 But that does not seem safe against updates happening at almost the same time (I might be being paranoid). I could also use: next_val = uuid.uuid4 But

Re: [web2py] Re: web2py api call from angular 4

2018-01-22 Thread yogeshwar khalkar
s code 405. >> > > Just to clarify, you're supporting your Angular app with a node.js server > running on port 4200, right? > > > >> >> *here is my angular code* >> >> login(user): Promise{ >> let url: string = `${this.BASE_URL}/login

[web2py] Re: web2py api call from angular 4

2018-01-22 Thread Dave S
ing = `${this.BASE_URL}/login`; > return this.http.post(url,user).toPromise(); > } > > *here my web2py api* > > @request.restful() > def login(): > def POST(username, password): > user = auth.login_bare(username, password) > if user: >

[web2py] web2py api call from angular 4

2018-01-22 Thread yogeshwar khalkar
string = `${this.BASE_URL}/login`; return this.http.post(url,user).toPromise(); } *here my web2py api* @request.restful() def login(): def POST(username, password): user = auth.login_bare(username, password) if user: return json(user.id) return user ret

[web2py] API Response workaround

2017-11-14 Thread Marco Mansilla
Hi, I'm working on a new project that requires a restful api service and found a problem. Following the examples in the book and Bruno's example in web2py slices could successfully write an API service, also tried the APIMaker example from expert4solutions. In the second case didn't get valida

[web2py] API changed ?

2017-02-24 Thread Olivier Choquet
Hi everyone. My question might look a little bit weird but in the (very good) tutorial videos of web2py a link to the API is shown. It goes to quite detailled API pages with the regular look of API pages... If I follow the link now provided within the Web2Py site it goes to the chapter 4 of the

Re: [web2py] API

2015-10-09 Thread Anthony
On Friday, October 9, 2015 at 7:13:59 AM UTC-4, PAVAN DHAVALESWARAPU wrote: > > To use API of other applications in my application. > In that case, there's nothing special about web2py -- you can access external APIs the same way you would from any Python module or code. Just follow the document

Re: [web2py] API

2015-10-09 Thread PAVAN DHAVALESWARAPU
To use API of other applications in my application. On Saturday, October 3, 2015 at 10:21:56 PM UTC+5:30, Kiran Subbaraman wrote: > > Can you provide more details - which API are you talking about? > Are you thinking of creating APIs for your web2py application - see this > for some ideas: > h

Re: [web2py] API

2015-10-03 Thread Kiran Subbaraman
Can you provide more details - which API are you talking about? Are you thinking of creating APIs for your web2py application - see this for some ideas: http://web2py.com/books/default/chapter/29/10/services?search=REST#Remote-procedure-calls, and http://web2py.com/books/default/chapter/29/10/

[web2py] API

2015-10-03 Thread PAVAN DHAVALESWARAPU
How can I use API in web2py modules ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google G

[web2py] API authorization without decorators

2014-11-21 Thread Francesco S
I am novice in web2py. I am developing an angularjs+web2py web application. In addition to using web2py to write the APIs, at least at the first stage, I would like to use the web2py authentication class (i.e., no API approach for authentication) and to have it working even when calling the APIs

Re: [web2py] API Rest authenticatio

2014-04-28 Thread Dave S
On Saturday, April 26, 2014 7:20:02 AM UTC-7, Samuel Marks wrote: > > I'm a big RFC6749 fan > > Quite simple; and you can implement your own custom grant for e.g.: higher > security using x509 certificates. > > Is there a handy link to a good discussion of that? I was concerned by the arguments f

Re: [web2py] API Rest authenticatio

2014-04-27 Thread samuel bonill
Thanks Christian... 2014-04-27 12:58 GMT-05:00 Christian Foster Howes : > attached is our auth code. i made a few minor adjustments to remove some > things that are specific to our app - hopefully it still runs. > > note that we use this as a decorator to controller methods. > > > On Saturday,

Re: [web2py] API Rest authenticatio

2014-04-27 Thread Christian Foster Howes
attached is our auth code. i made a few minor adjustments to remove some things that are specific to our app - hopefully it still runs. note that we use this as a decorator to controller methods. On Saturday, April 26, 2014 6:09:13 PM UTC-7, samuel bonill wrote: > > Yes Christian, I'd like take

Re: [web2py] API Rest authenticatio

2014-04-26 Thread samuel bonill
Yes Christian, I'd like take a look... 2014-04-26 17:24 GMT-05:00 Christian Foster Howes : > i have an oauth implementation that i used on app engine. i can try and > clean it up a touch and share it if you would like. > > cfh > > > On Saturday, April 26, 2014 7:05:55 AM UTC-7, samuel bonill wr

Re: [web2py] API Rest authenticatio

2014-04-26 Thread Christian Foster Howes
i have an oauth implementation that i used on app engine. i can try and clean it up a touch and share it if you would like. cfh On Saturday, April 26, 2014 7:05:55 AM UTC-7, samuel bonill wrote: > > thanks Marks, i'm using phonegap(android, iOS) as my client and angularjs > consume the API Res

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, iOS) as my client and ang

Re: [web2py] API Rest authenticatio

2014-04-26 Thread samuel bonill
thanks Marks, i'm using phonegap(android, iOS) as my client and angularjs consume the API Rest. x509 its grate but, work x509 on app engine ?, or what do you think about use Oauth 2.0 ? 2014-04-25 21:41 GMT-05:00 Samuel Marks : > Sure, take a look at x509 at > http://web2p

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?? > i don'

[web2py] API Rest authenticatio

2014-04-25 Thread samuel bonill
is there an example of API Rest authentication based in private/public key with web2py?? i don't want use username and password tokens for each request -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.googl

[web2py] Re: web2py API document, and method return values

2014-02-20 Thread Leonel Câmara
Why are you trying to do C style error checking? Python has exceptions. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because

[web2py] Re: web2py API document, and method return values

2014-02-20 Thread Kiran Subbaraman
Massimo, Thanks for the reply. I should have mentioned that am using the update_record as an example. Basically, I want to figure out the return values for methods that deal with the CRUD operations on the database (via the DAL), and how to interpret if an operation succeeded or not. listing it

[web2py] Re: web2py API document, and method return values

2014-02-14 Thread Massimo Di Pierro
yes. Should return 1 or 0. On Friday, 14 February 2014 18:09:46 UTC-6, Kiran Subbaraman wrote: > > Hello, > I was looking at this specific method update_record, and found it to be > useful. I would like to know what its return values are based on whether > the update succeeded or failed. > I r

[web2py] web2py API document, and method return values

2014-02-14 Thread Kiran Subbaraman
Hello, I was looking at this specific method update_record, and found it to be useful. I would like to know what its return values are based on whether the update succeeded or failed. I realized that on success, the updated Row is returned. Not sure what happens if there is any sort of failure.

Re: [web2py] web2py api search - edit_area plugin

2010-03-19 Thread Wes James
On Fri, Mar 19, 2010 at 11:34 AM, Thadeus Burgess wrote: > You could do a > > def install(): >   if db(db.table.id > 0).count() == 0: >      db.table.insert(record1) >      db.table.insert(record2) >   if db(db.table2.id > 0).count() == 0: >      db.table2.insert(record1) > > install() > > -Thadeu

Re: [web2py] web2py api search - edit_area plugin

2010-03-19 Thread Thadeus Burgess
re is how to get "web2py api search" plugin to work: > > 1. unzip web2py_api_srch.zip in to > web2py/applications/admin/static/edit_area/plugins > 2. unzip databases.zip in to web2py/applications/admin > 3. add the following to web2py/applications/admin/models/0.py : >

[web2py:17357] Re: Web2py API

2009-03-02 Thread ceej
Are you using Tiger or Leopard? ( at the moment Leopard is only support with Titanium, but it will be adding Tiger very soon ) On Mar 2, 4:49 pm, mdipierro wrote: > To me it says: > > ApplicationError > Missing Installer and Application has additional modules that are > needed. > > Massimo > >

[web2py:17354] Re: Web2py API

2009-03-02 Thread mdipierro
To me it says: ApplicationError Missing Installer and Application has additional modules that are needed. Massimo On Mar 2, 3:03 pm, ceej wrote: > Hey All, > > I'm creating a desktop application that works on Mac, Windows and > Linux. It will have a total reference to all web2py functions plus

[web2py:17344] Web2py API

2009-03-02 Thread ceej
Hey All, I'm creating a desktop application that works on Mac, Windows and Linux. It will have a total reference to all web2py functions plus lots of tips and trick like setting up your first server, using widgets and so on. The application will automatically update and also work offline. I built

[web2py:9939] Re: Web2py API Doc?

2008-10-07 Thread Phyo Arkar
Eh , good, ok I think i deleted examples .. :D i will unzip from source. On Tue, Oct 7, 2008 at 9:34 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > They come with web2py. > > http://127.0.0.1:8000/examples/static/epydoc/index.html > > On Oct 7, 4:33 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > >

[web2py:9938] Re: Web2py API Doc?

2008-10-07 Thread mdipierro
They come with web2py. http://127.0.0.1:8000/examples/static/epydoc/index.html On Oct 7, 4:33 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > Gr8! > > Thanks a lot Massimo! the SuperWeb2py Man! . > > Any downloadable one? > > If not , i will grab using scrapbook. > > On Tue, Oct 7, 2008 at 9:26 PM

[web2py:9936] Re: Web2py API Doc?

2008-10-07 Thread Phyo Arkar
Gr8! Thanks a lot Massimo! the SuperWeb2py Man! . Any downloadable one? If not , i will grab using scrapbook. On Tue, Oct 7, 2008 at 9:26 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > Like this: > > http://mdp.cti.depaul.edu/examples/static/epydoc/index.html > > On Oct 7, 4:23 pm, "Phyo Arkar"

[web2py:9932] Re: Web2py API Doc?

2008-10-07 Thread mdipierro
Like this: http://mdp.cti.depaul.edu/examples/static/epydoc/index.html On Oct 7, 4:23 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > Hello all; > > I have not got API DOc for webpy yet. Is there any already ? --~--~-~--~~~---~--~~ You received this message because

[web2py:9930] Web2py API Doc?

2008-10-07 Thread Phyo Arkar
Hello all; I have not got API DOc for webpy yet. Is there any already ? --~--~-~--~~~---~--~~ 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 un