[web2py] Re: Restful api for uploading files

2017-10-18 Thread 黄祥
had you read the book : http://web2py.com/books/default/chapter/29/10/services#Restful-Web-Services theres an example to do a post best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Restful api for uploading files

2017-10-18 Thread Mujeeb Farees
https://www.google.com/ :D -- 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 Groups

[web2py] Restful api token based authentication login to CAS

2017-10-18 Thread Sharjeel Ali Shaukat
Currently i have two applications. 1st application is using as a CAS is on different server for the login in 2nd application. Now i want to create a rest service in 2nd application that can utilize the token to be created in 1st application after login any idea regarding this -- Resources: -

[web2py] Restful api for uploading files

2017-10-18 Thread Sharjeel Ali Shaukat
I want to create a restful api through which i can upload files to web2py application using android or other 3rd party applications. Any useful link or code would be very helpful -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Web Services for Remote Portlets?

2017-10-18 Thread Massimo Di Pierro
Never heard of a portlet before. I looked it up and I doubt you will get much help about them in this mailing list. It is not a common protocol. Nothing prevents web2py from interoperating with it but it is not something I intend to support. On Tuesday, 17 October 2017 21:39:05 UTC-5, IVINH

[web2py] Re: response view with markdown

2017-10-18 Thread Massimo Di Pierro
Just create a generic view that does it. It is a good exercise. On Tuesday, 17 October 2017 16:29:24 UTC-5, 黄祥 wrote: > > why web2py can't render the views in markdown format that been assign > (*.md) in most simple way? > e.g. > def testmd(): > response.view = 'default/testmd.md' >

Re: [web2py] Re: Web2py won't start with getLogger error

2017-10-18 Thread Omi Chiba
Massimo, thank you. Everything is ok now after reinstalling python. Yes, I'm still on chicago : ) On Oct 18, 2017 9:57 PM, "Massimo Di Pierro" wrote: > All I can offer is help you debug. Are you still in Chicago? Stop by my > office on Tuesday afternoon. > > > On

[web2py] Re: Cant access Google Cloud SQL on GAE application

2017-10-18 Thread Massimo Di Pierro
I use mysql on google app engine all the time. I use mysqldb with latest web2py and dal without any issue. That is not the right connection string. It should be more something like this: google:MySQLdb://username:password@/dbname?unix_socket=/cloudsql/projectname :us-central1:dbinstanceid On

[web2py] Re: Web2py won't start with getLogger error

2017-10-18 Thread Massimo Di Pierro
All I can offer is help you debug. Are you still in Chicago? Stop by my office on Tuesday afternoon. On Friday, 6 October 2017 18:32:51 UTC-5, Omi Chiba wrote: > > My Python version is 2.7.4. and My Web2py is Version > 2.4.7-stable+timestamp.2013.05.24.17.48.47 > > Nothing changed since I

Re: [web2py] Re: migrating database and updating it

2017-10-18 Thread Anthony
On Wednesday, October 18, 2017 at 10:37:17 AM UTC-4, Yebach wrote: > > I am trying to keep my production db with all its data but update the > structure with the new web2py db code > Yes, then as noted below, just update the web2py code, make sure migrations are on, and do *not* touch the

[web2py] Re: Error ticket handling

2017-10-18 Thread Anthony
Scroll down to the "Context" section and click the "Session" button -- if the user was logged in, there should be an "auth" key in the session, which will include the "user" record. Anthony On Wednesday, October 18, 2017 at 10:27:19 AM UTC-4, Anshil Bhansali wrote: > > is there any way to

Re: [web2py] Re: migrating database and updating it

2017-10-18 Thread Vid Ogris
I am trying to keep my production db with all its data but update the structure with the new web2py db code On Oct 18, 2017 16:26, "Anthony" wrote: > Are you trying to keep the production database and just run migrations on > it, or just create a whole new production

[web2py] Error ticket handling

2017-10-18 Thread Anshil Bhansali
is there any way to display the user id who generated the error ticket? the user id from the auth_user table -- 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)

[web2py] Importing user-defined .dll libraries

2017-10-18 Thread lucaflamignitofwerk
Dear all, I am trying to import a user-written .dll library (win32, as the Python version I use), which I also use in other environments (and it works). However, every time I get the same error from *ctypes*: "The specified module could not be found". 1. I tried loading the .dll from the

[web2py] Re: migrating database and updating it

2017-10-18 Thread Anthony
Are you trying to keep the production database and just run migrations on it, or just create a whole new production database from scratch to match the new code? If the former, don't touch the /databases folder on production -- just update the code and leave migrations on, and the DAL will run

[web2py] switch writable True/False

2017-10-18 Thread Mirek Zvolský
I have a form: SQLFORM.factory(*field_list) First item in field list is a foreign key to some table. I see the selected value and all possible selectable values great. Example: drink : watter from (watter, beer, wine) However: I try make the first field readonly. Now I see it readonly, but with