Re: [web2py] Restful authentication and CORS

2014-08-10 Thread Christian Foster Howes
ers, Albert. On 29 May 2013 00:21, Christian Foster Howes wrote: i have configured my system to be an oauth provider and added a decorator to all RESTful calls to validate the oauth signature. yes, i do this on each request that i require authentication for. On Tuesday, May 28, 2013 6:01:11 AM

[web2py] Re: Image upload GAE: Can't find file_blob

2014-05-05 Thread Christian Foster Howes
Stephen, i don't see your usage of file_blob or file_data in the sample. did you mean bild_blob is empty? last time i implemented file upload on GAE i was writing to blobstore (cause cloud storage didn't exist yet). i haven't ported that code to cloud storagebut the blobstore code was *v

[web2py] Re: web2py validator doesn´t match

2014-05-02 Thread Christian Foster Howes
did you use a SQLForm? if not then you probably didn't trigger the validators to run. On Thursday, May 1, 2014 9:14:28 AM UTC-7, Thomas Neubrand wrote: > > Hello, > > I have two validators in my db.py for my *auth_user* table for the > password and the domain field, but both don´t work. When I

Re: [web2py] Re: GAE: Downloading uploaded images

2014-05-01 Thread Christian Foster Howes
tephan Am Mittwoch, 30. April 2014 16:28:08 UTC+2 schrieb Christian Foster Howes: are you storing your images in the datastore or in blobstore, or in google cloud storage? if blobstore you can use https://developers.google.com/appengine/docs/python/images/functions#Image_get_serving_urlto store

[web2py] Re: GAE: Downloading uploaded images

2014-04-30 Thread Christian Foster Howes
are you storing your images in the datastore or in blobstore, or in google cloud storage? if blobstore you can use https://developers.google.com/appengine/docs/python/images/functions#Image_get_serving_url to store a URL that serves it directly from blobstore. cfh On Monday, April 28, 2014

Re: [web2py] API Rest authenticatio

2014-04-27 Thread Christian Foster Howes
#x27;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 >> >> >>

[web2py] Re: Auto increment id back to zero

2014-04-26 Thread Christian Foster Howes
auto increment IDs are implemented differently on different databases. the instructions for mysql vs postgres are different for example. It's best to check the documentation for the database that you are using. i'm assuming that you have already removed all rows from the table. :) cfh On Thu

[web2py] Re: how to add web2py app into a hosted web2py in command line

2014-04-26 Thread Christian Foster Howes
the "command line" way to deploy to the running server is to zip the contents of your application directory, transfer to the host, and unzip to the host's applications directory. assuming the your code has no additional dependencies it should work. depending on how you do URL routing you may n

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

[web2py] web2py + gae + google:sql : Not authorized to access (database) instance

2014-02-28 Thread Christian Foster Howes
It's been some time since I connected to cloud SQL myself, but I would suggest triple check the connection string and permissions. You should not have to connect with any other client first. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/w

[web2py] Re: GAE localhost mysql instance

2014-02-15 Thread Christian Foster Howes
did you invoke dev_appserver.py with the options to enable mysql? there's a couple of options that you must pass to dev_appserver to tell it to load and connect to mysql for local emulation of google cloud sql. i haven't done it for a while so i don't remember the exact magic incantations

[web2py] Re: Virtual field for latitude and longitude from geometry field?

2014-01-02 Thread Christian Foster Howes
i bet that by the time your lambda is running the point has been converted to a string already. can you see if that is true? i'm not sure how to invoke db functions in a lambda of a virtual field. :( On Wednesday, January 1, 2014 5:50:54 PM UTC-8, User wrote: > > Suppose I have a table like: >

[web2py] Re: How to measure conversion rate with google analytics?

2013-12-07 Thread Christian Foster Howes
can't you just add google analytics to your site. from there you can see referrers and funnels and conversions etc. with almost no extra work. On Friday, December 6, 2013 12:48:31 PM UTC-8, Mika Sjöman wrote: > > Hi > > I was wondering if it is possible to measure the conversion rate of how > m

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Christian Foster Howes
this strikes me as an old version of web2py. GAE upgraded IDs to be longs a few months back and i know we made sure the DAL in the latest version supports that, yet this looks like such an error. :( On 12/5/13, 21:42 , Massimo Di Pierro wrote: When posting a comment the last 5 lines are usual

[web2py] Re: Running instantpress in GAE: Internal error Ticket issued: unrecoverable

2013-12-05 Thread Christian Foster Howes
i suspect that instapress needs to use a relational database and that if you use google cloud SQL you are more likely to get it to work. the traceback from the logs would be most helpful in debugging. On Thursday, December 5, 2013 2:55:36 AM UTC-8, peibol wrote: > > No, I didn't find any solutio

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Christian Foster Howes
also Prachi, can you visit the GAE logs and paste in the error you are getting? that might make it even quicker for us to help you sort it out. On Thursday, December 5, 2013 1:07:37 PM UTC-8, James Burke wrote: > > Hi Prachi > > When I ran the code the form appeared. > > I didn't try the form.

[web2py] Re: How would you implement paging on a google-results-like page?

2013-12-05 Thread Christian Foster Howes
can you create a module and/or a base template that you can put the "boilerplate" code in so you don't have to duplicate the stuffs in each individual controller and view? or can you write a generic controller that based on parameters/POST data adjusts its queries. On Thursday, December 5, 201

Re: [web2py] Re: bulk_upload to GAE development datastore no longer works?

2013-12-05 Thread Christian Foster Howes
ink ran only on Python 2.5 and probably because of other changes in the yaml file and the --use_sqlite app parameter can't get these to run at all. Thanks! On Thursday, December 5, 2013 1:39:37 AM UTC-5, Christian Foster Howes wrote: this is a documented GAE SDK bug. you'll have to dow

[web2py] Re: bulk_upload to GAE development datastore no longer works?

2013-12-04 Thread Christian Foster Howes
this is a documented GAE SDK bug. you'll have to downgrade your GAE SDK to the last working version of this. i *think* the last working version is 1.8.1 On Wednesday, December 4, 2013 8:46:31 AM UTC-8, David Manns wrote: > > My application runs on GAE. Using Google's bulk loader I make occasio

[web2py] Re: uploading files on GAE - 404 NOT FOUND

2013-12-04 Thread Christian Foster Howes
Can you share the log/stack trace from when that happens? does the form post to the same function that generated it? i have not tried upload in grid()wonder if there is something there that doesn't quite work on app engine? On Tuesday, December 3, 2013 10:49:47 AM UTC-8, James Burke wrote:

Re: [web2py] Re: uploads & GAE

2013-11-24 Thread Christian Foster Howes
that simply does not work. you'll have to write custom code to store in blobstore or cloud storage if you don't want to keep uploaded images in the DB. note that images that are static that you deploy with the application can be stored in a static folder and mapped via app.yaml to be handled

Re: [web2py] Re: uploads & GAE

2013-11-24 Thread Christian Foster Howes
ess these files directly (for example, if they were image files that needed to be modified using the GAE analogy of PIL)? On Saturday, November 23, 2013 4:32:57 PM UTC-5, Christian Foster Howes wrote: Niphlod is correct - no storing on the filesystem. datastore or blobstore to store your uploaded fi

[web2py] Re: uploads & GAE

2013-11-23 Thread Christian Foster Howes
Niphlod is correct - no storing on the filesystem. datastore or blobstore to store your uploaded files on GAE. On Saturday, November 23, 2013 11:24:31 AM UTC-8, Niphlod wrote: > > If I'm not mistaken, GAE filesystem is not writable your only option > is to store the file into the database >

Re: [web2py] Re: OAuth2.0 and Facebook (as from the book)

2013-10-29 Thread Christian Foster Howes
me'], user['last_name']), \ username=user['id'], registration_id=user['id'], email=user['email']) I would like to, at least, show an error message to the user saying that something went wrong trying to get his/her email from Facebook, and

[web2py] Re: OAuth2.0 and Facebook (as from the book)

2013-10-28 Thread Christian Foster Howes
the problem is that facebook is not returning an email. i know, i know, you told facebook that email is required and you can't reproduce such a state. i'm 100% with you, but i see the exact same behavior with my users! i suspect that these are actually returning users who granted email access

[web2py] Re: NDB support for GAE

2013-10-27 Thread Christian Foster Howes
interesting i as skim the NDB docs very quickly and the patch above i see that it is *very* similar to the "DB Datastore"/Big Table. if the APIs are the same then we should just use the same DAL adapter with a parameter to use NDB. Though because of the caching nature of NDB there may be

[web2py] Re: transfer local database to Google App Engine website

2013-10-27 Thread Christian Foster Howes
Also, keep in mind that there is not really a model on GAE big table (google datastore), so there is nothing to view in the console until you write rows to the database. once you write data, you will be able to see the "schema" of the data that was written. cfh On Sunday, October 27, 2013 3:0

[web2py] Re: Python vs Mavericks

2013-10-27 Thread Christian Foster Howes
thanks! i didn't remember that i had installed python 2.7 myself and had to hack it to run with 10.9! cfh On Sunday, October 27, 2013 1:46:49 PM UTC-7, Jonathan Lundell wrote: > > Just FYI, in case this bites you. > > I had installed Python 2.7.2 on my Mac some time back, and had an override

[web2py] Re: web2py vs webapp2 for bootstrap+gae combo

2013-10-17 Thread Christian Foster Howes
the setup is trivial to use bigtable (datastore). once you have it running you'll never think about it again. ;) i have not kept up to date with the default welcome app, but it used to just use the GAE bigtable if it noticed that it's running on GAE. bootstrap i think is used in the welcome a

[web2py] Re: GAE: Running test. issue with exec_environment()

2013-10-15 Thread Christian Foster Howes
unittest on GAE has been a challenge for us as well. right now we trigger our unittests via a controller run in the GAE dev server. it's not pretty, but it mostly works and has the proper GAE env setup. I'd love to figure out a cleaner way to make this happen. here's the controller that we u

Re: [web2py] Re: How can I give google map javascript api marker title a suitably encoded string?

2013-09-26 Thread Christian Foster Howes
--upgrade simplejson On Thursday, September 26, 2013 11:50:18 PM UTC+2, Christian Foster Howes wrote: i agree that if the data is from user input you want to make sure it is escaped. the JSON might work for you. one tip - if you are using python 2.7 it comes with a json lib (import json) that is wr

Re: [web2py] Re: How can I give google map javascript api marker title a suitably encoded string?

2013-09-26 Thread Christian Foster Howes
close the string? On Thursday, September 26, 2013 12:02:55 PM UTC-4, Christian Foster Howes wrote: can you use an inspector to see the actual generated javascript? it's possible that web2py is escaping the apostrophe. you can try {{=XML( myobject.name)}} On Tuesday, September 24, 2013 5:26:2

[web2py] Re: How can I give google map javascript api marker title a suitably encoded string?

2013-09-26 Thread Christian Foster Howes
can you use an inspector to see the actual generated javascript? it's possible that web2py is escaping the apostrophe. you can try {{=XML(myobject.name)}} On Tuesday, September 24, 2013 5:26:29 PM UTC-7, User wrote: > > I'm using the google map javascript api (v3). I have a google map in one

Re: [web2py] Re: OFF topic - Git question

2013-09-26 Thread Christian Foster Howes
i believe that git submodules can also do what you are looking for. not sure if that is easier/harder then symlinks. On Wednesday, September 25, 2013 3:59:18 AM UTC-7, Marin Pranjić wrote: > > Yes gitignore is the answer but I have been burned once trying to git > reset so I lost my app repo. >

Re: [web2py] Re: Some forms need to be submitted multiple times.

2013-09-22 Thread Christian Foster Howes
n. Perhaps we should change it. The problem is how not to pollute the session with un-used keys. On Sunday, 22 September 2013 10:53:26 UTC-5, Christian Foster Howes wrote: i have noticed that if in the same browser i open the same page with the same form in multiple tabs my stored session data onl

[web2py] Re: Some forms need to be submitted multiple times.

2013-09-22 Thread Christian Foster Howes
i have noticed that if in the same browser i open the same page with the same form in multiple tabs my stored session data only stores 1 form key, so the most recently loaded tab will submit the form fine, the others will be denied until i reload the page. any chance you have form key duplicat

[web2py] Re: WEB2PY iOS install APP

2013-08-25 Thread Christian Foster Howes
end server and with uiwebview accessing it. > > i've been looking for it too. > > On Friday, May 17, 2013 10:21:13 PM UTC+8, Christian Foster Howes wrote: >> >> i don't understand the question. what are you trying to do? >> >> web2py can run the server

[web2py] Re: We need a new plan for javascript validators

2013-08-25 Thread Christian Foster Howes
joe, about the money validator - if you set widget *and* requires on the Field object then you won't have the default integer validator. just make sure that your validator converts the string/decimal number to an int so that it can be stored in the DB (which expects an int). good luck! cfh

[web2py] Re: GAE Cron, or some equivelant

2013-08-25 Thread Christian Foster Howes
which version of the SDK are you using? try visiting http://localhost:8000 or http://127.0.0.1:8000 you should then see the GAE SDK admin console, and hopefully there is a link to cron from there. also when you deploy you'll see cron jobs and their status in the gae admin console. On Wednesd

[web2py] Re: (GAE) periodic updates

2013-08-25 Thread Christian Foster Howes
if you have a large number of users running this once a week might take a long time... on app engine, use the app engine cron functionality to schedule a request once a week. i'd point that to an instance that can run for long time periods (these were called backends and then in a recent relea

[web2py] Re: db.py size

2013-08-11 Thread Christian Foster Howes
i personally like to break things into logical units. from an execution perspective i don't think it makes much of a difference how many files your model is broken into, but if there are groups of related tables that can be broken out it might make your editing much faster. On Sunday, August 1

[web2py] Re: deployment to google app engine did not include my static files

2013-08-10 Thread Christian Foster Howes
ctory) > # > runtime: python27 > threadsafe: true# true for WSGI & concurrent requests (Python 2.7 only) > > default_expiration: "24h" # for static files > > let me know if you would like me to test anything... > Dave > > On Sunday, August 4, 20

[web2py] Re: Deploying on GAE through the Admin interface

2013-08-07 Thread Christian Foster Howes
is it hard to warn users of that or disable the button in the admin interface? i probably wouldn't have caught that detail. :( On Wednesday, August 7, 2013 4:26:50 PM UTC-7, Massimo Di Pierro wrote: > > No no no. You need the source version to be able to deploy on GAE. > > On Wednesday, 7 August

[web2py] Re: Google crawler error

2013-08-04 Thread Christian Foster Howes
there is some variable in index.html that is none, but you are trying to access it as a Storage or dict i bet. does you app expect/require login? is there something that is set conditionally based on the user agent? On Saturday, August 3, 2013 9:07:45 PM UTC-7, James Burke wrote: > > Hi, > >

[web2py] Re: deployment to google app engine did not include my static files

2013-08-04 Thread Christian Foster Howes
if you get a chance, can you describe how threadsafe==True was failing on GAE? i'm hoping to focus on making that work here in the next couple of weeks thanks, christian On Sunday, August 4, 2013 12:16:02 PM UTC-7, davedigerati wrote: > > and I only updated the app name in app.yaml and ru

Re: [web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-04 Thread Christian Foster Howes
/4/13 9:47 , Brez Yl wrote: I think, the file is ok, for pdf/pyfpdf (as I said, it works good on devservers). But maybe it is, in some way wrong for GAE... I'm confused. But thanks for suggestion. On Sunday, August 4, 2013 6:42:28 PM UTC+2, Christian Foster Howes wrote: after a quick moment

[web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-04 Thread Christian Foster Howes
, in load > dispatch[key](self) > File > "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/pickle.py", > line 966, in load_string > raise ValueError, "insecure string pickle" > ValueError: insecure string pickle > > > > > On Sa

[web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-03 Thread Christian Foster Howes
can you post the stack trace to help us understand what went wrong? On Friday, August 2, 2013 3:19:43 AM UTC-7, Brez Yl wrote: > > Hello! > > I'm writing an app, which results with pdf file with some text with > unicode characters. On local GAE it works good, but after deploy it can't > import c

[web2py] Re: IS web2py good for largescale

2013-08-03 Thread Christian Foster Howes
i service about 25 requests per second average 24 hours a day on google app engine. perhaps that's only considered medium size these days, but it's running pretty well. cfh On Friday, August 2, 2013 2:46:31 PM UTC-7, Aurelio Tinio wrote: > > Curious to hear, what do you consider large scale? >

[web2py] Re: strange decimal form field comparison result

2013-07-25 Thread Christian Foster Howes
never trust > or < on decimal or floats. both are an in-exact representations of numbers and can have unexpected behaviors for numbers that are close to each other. i have converted my applications that use prices to store all prices in the DB in cents as integers and convert on display to th

Re: [web2py] Re: Mobile and Tablets detection

2013-07-20 Thread Christian Foster Howes
is the WURFL library of devices more or less complete then the mobile browser list? http://wurfl.sourceforge.net/ I used the WURFL 5-6 years ago and found it to be the most complete open-source list at the time. On Wednesday, July 17, 2013 11:57:28 PM UTC-7, AngeloC wrote: > > Hi Marcio, > > I

[web2py] Re: Front-end dev workflow on OS X?

2013-07-20 Thread Christian Foster Howes
also note that you can install web2py from source and then browse the folders as you normally would. you just might have to start the web2py server manually rather then click an icon. On Friday, July 19, 2013 9:27:42 AM UTC-7, Massimo Di Pierro wrote: > > Sorry now I understand. I do not have a

[web2py] Re: Errors after upgrade

2013-07-18 Thread Christian Foster Howes
on google app engine i had a module called utils that started to conflict with a module of the same name in the gluon directory with the updated importer. there is no web2py module called utility that i see, but still you might check for module name collusion. cfh On Tuesday, July 16, 2013 4:

[web2py] Re: Session Issues seen when users log into Web2py with an Andriod App

2013-07-13 Thread Christian Foster Howes
massimo's statement is a good starting point. for debugging i highly recommend getting charles http proxy: http://www.charlesproxy.com/ it's my best friend in debugging network calls from mobile apps! once you have some details about the networks calls and cookies etc we should be able to hel

Re: [web2py] Re: upgrading appengine has broken web2py

2013-07-12 Thread Christian Foster Howes
emcache. thanks for getting back to me. On 12 July 2013 18:26, Christian Foster Howes wrote: I'm storing session in the database given the large number of active users i have at anytime and the un-predictable eviction of GAE memcache. sorry that's not very helpful. :( cfh

Re: [web2py] Re: upgrading appengine has broken web2py

2013-07-12 Thread Christian Foster Howes
y, 18 June 2013 14:20:07 UTC+1, Christian Foster Howes wrote: Carl, i have been working through my web2py upgrade to 2.5.1 + GAE SDK 1.8.1 upgrade and am not seeing any problems with DAL or GQL. i did have to change some cache.ram.flush_all() to cache.ram.clear() to work with the latest web2py, and am m

Re: [web2py] Re: Error writing to session with latest Google App Engine 1.8.1

2013-07-06 Thread Christian Foster Howes
e and work well with GAE version 1.8.1? i want to move now and any notes from you would be helpful. thanks, aravind. On Saturday, 15 June 2013 06:18:06 UTC+5:30, Christian Foster Howes wrote: Yup, that change is why i'm upgrading web2py now. Other GAE users have reported issues with

[web2py] Re: GAE 1.8.1 and logging doesn't work

2013-06-19 Thread Christian Foster Howes
i have not updated my local launcher to 1.8.1 yethopefully tomorrow. but in past versions of GAE i have changed line 74 of gaehandler.py (at the web2py top-level) to: #logging.basicConfig(level=logging.INFO) #access the GAE logging handler and set level to ignore debug logs logging.getLogge

Re: [web2py] Re: How should we work to sync localhost development with GAE?

2013-06-19 Thread Christian Foster Howes
lds)) File "E:\My Dropbox\myWebs\MyApps\myeduapps\gluon\dal.py", line 1210, in insert raise e IntegrityError: column title is not unique El miércoles, 19 de junio de 2013 17:31:49 UTC+2, Christian Foster Howes escribió: I haven't used that code in a long time as my tables a

Re: [web2py] Re: How should we work to sync localhost development with GAE?

2013-06-19 Thread Christian Foster Howes
(db[table].uuid==item.uuid)&(db[table].id!=item.id)).delete() return dict(form=form) def export(): s = cStringIO.StringIO() db.export_to_csv_file(s) response.headers['Content-Type'] = 'text/csv' return s.getvalue() El miércoles, 19 de junio de 2013

Re: [web2py] upgrading appengine has broken web2py

2013-06-19 Thread Christian Foster Howes
xpected by memdb. This is now fixed too. Please submit any patch you may have, even if partial. massimo On Jun 18, 2013, at 8:20 AM, Christian Foster Howes wrote: Carl, i have been working through my web2py upgrade to 2.5.1 + GAE SDK 1.8.1 upgrade and am not seeing any problems with DAL or G

Re: [web2py] Re: How should we work to sync localhost development with GAE?

2013-06-19 Thread Christian Foster Howes
to_csv_file and import_from_csv_file. The export process is working for me right now, but the import process gives an integrity error. Reading the book, it must be some issue with the uuids... El miércoles, 19 de junio de 2013 07:28:02 UTC+2, Christian Foster Howes escribió: i wouldn't

[web2py] Re: How should we work to sync localhost development with GAE?

2013-06-18 Thread Christian Foster Howes
i wouldn't copy data personally, i consider localhost a test environment, and GAE proper production and i just make my production data there. if you do want to copy data look at the GAE bulk loader: https://developers.google.com/appengine/docs/python/tools/uploadingdata -- --- You received

Re: [web2py] Re: upgrading appengine has broken web2py

2013-06-18 Thread Christian Foster Howes
Carl, i have been working through my web2py upgrade to 2.5.1 + GAE SDK 1.8.1 upgrade and am not seeing any problems with DAL or GQL. i did have to change some cache.ram.flush_all() to cache.ram.clear() to work with the latest web2py, and am making adjustments to work with the updated custom_

Re: [web2py] Re: Error writing to session with latest Google App Engine 1.8.1

2013-06-14 Thread Christian Foster Howes
3fc40) - so patch might not be necessary. I'll move to latest web2py and check. Thanks again, Aravind. On Friday, 14 June 2013 20:16:41 UTC+5:30, Christian Foster Howes wrote: Aravind, I see that in trunk (and perhaps the latest web2py release) i think that this has been fixed. Please

[web2py] Re: Error writing to session with latest Google App Engine 1.8.1

2013-06-14 Thread Christian Foster Howes
Aravind, I see that in trunk (and perhaps the latest web2py release) i think that this has been fixed. Please make sure you are using the latest web2py version. I'm working on upgrading to the latest web2py version and then the latest GAE SDK to get things working for me. There may be some p

[web2py] Re: Running instantpress in GAE: Internal error Ticket issued: unrecoverable

2013-06-14 Thread Christian Foster Howes
can you paste the traceback, teh web2py version, and the GAE SDK version you are using? i'm currently dealing with some problems with the GAE SDK version 1.8.1 released 2 days ago. On Thursday, June 13, 2013 8:29:35 AM UTC-7, peibol wrote: > > Hi all: > > Everything is running smoothly at l

[web2py] Re: How to use shell with GAE dev server

2013-06-14 Thread Christian Foster Howes
i'm not sure how to get the web2py shell to work with GAE, but how about you use http://127.0.0.1:8000/console that is started when you run the GAE dev server? On Wednesday, June 12, 2013 10:20:16 AM UTC-7, Quint wrote: > > Hello, > > I'm trying to use the interactive shell with the GAE dev serv

Re: [web2py] Re: Web2py Restful api authentication for android app

2013-06-07 Thread Christian Foster Howes
, 2013 at 11:40 PM, Christian Foster Howes wrote: for my resful APIs i use an oauth library to sign the requests. i then use oauth as my authentication mechanism. On Wednesday, June 5, 2013 5:29:23 PM UTC-7, Saurabh Kumar wrote: Hi, I am writing an android app which has web2py as the server side

[web2py] Re: Web2py Restful api authentication for android app

2013-06-07 Thread Christian Foster Howes
for my resful APIs i use an oauth library to sign the requests. i then use oauth as my authentication mechanism. On Wednesday, June 5, 2013 5:29:23 PM UTC-7, Saurabh Kumar wrote: > > Hi, > > I am writing an android app which has web2py as the server side backend. > What are the authentication p

[web2py] Re: Problem running web2py with Google Appengine - invalid controller (default/index)

2013-06-07 Thread Christian Foster Howes
if some pages/apps load but some pages give you "invalid controller" i bet there is an error in your routing. check both app.yaml (the GAE specific routing) and your web2py routing config. remember that it's best to restart the GAE SDK each time you change app.yaml or a web2py route. cfh On

[web2py] Re: Scheduler task in GAE

2013-06-07 Thread Christian Foster Howes
you may use the taskqueue from inside your controllers or modules. here's a sample invocation that i used recently: taskqueue.add( url=URL(r=request, f=function_to_run), params={ 'created_on':start, 'end':chunk_end, '

Re: [web2py] Re: upgrading appengine has broken web2py

2013-06-05 Thread Christian Foster Howes
our app to the latest Web2py version? [I don't think there can be many users of Web2py who deploy on GAE - this forum is very quiet considering Web2py hasn't supported GAE for around two months now.] On Friday, 12 April 2013 23:34:13 UTC+1, Christian Foster Howes wrote: i'm not hav

[web2py] Re: PAAS supporting web2py

2013-05-28 Thread Christian Foster Howes
i use GAE with BigTable for some live sites. from a teaching perspective there are some pros and cons. pros: - there is a free daily allotment, though it is quite small - all managed via web interfaces that are pretty easy to navigate cons: - web2py admin and code editor don't work. - i wou

Re: [web2py] Restful authentication and CORS

2013-05-28 Thread Christian Foster Howes
i have configured my system to be an oauth provider and added a decorator to all RESTful calls to validate the oauth signature. yes, i do this on each request that i require authentication for. On Tuesday, May 28, 2013 6:01:11 AM UTC-7, Ruben D. Orduz wrote: > > Yes, most REST patterns I've see

[web2py] Re: How to limit user votes

2013-05-17 Thread Christian Foster Howes
your code never writes the updated votes string. and i'm not sure that using the "in" operator on a string like that will give you the results that you want. you probably want another table say votelog db.define_table('voetlog', Field('content_id', 'reference content'), Field('user_id', 'r

[web2py] Re: WEB2PY iOS install APP

2013-05-17 Thread Christian Foster Howes
i don't understand the question. what are you trying to do? web2py can run the server code of a client-server application. web2py has nothing specific for iOS and has no control over the installation of iOS apps. On Tuesday, May 14, 2013 3:51:06 PM UTC-7, Allan K wrote: > > Hi, > > I need to

Re: [web2py] Re: parse_as_rest date and time range?

2013-05-06 Thread Christian Foster Howes
al.py->parse_as_rest() The three above queries are and-ed together in the line : "dbset=dbset(query)" On Monday, May 6, 2013 3:39:13 PM UTC-7, Christian Foster Howes wrote: there are a couple of characters that web2py is not nice about in the URL parsing. for the forma

Re: [web2py] Re: parse_as_rest date and time range?

2013-05-06 Thread Christian Foster Howes
013 3:28:03 PM UTC-7, Christian Foster Howes wrote: can you url escape the : and have it work? if not, maybe use a different separator and change the string to timestamp parsing to expect your format. cfh On Monday, May 6, 2013 1:42:40 PM UTC-7, Bernard wrote: Hi Web2py users, I am usi

[web2py] Re: Making a query and projection not working.

2013-05-06 Thread Christian Foster Howes
to get a GAE projection query you have to specify projection=True in your query: db(db.auth_user.id==user_role.user_id).select(db.auth_user.first_name, projection=True) why? well, for backwards compatibility reasons. prior to projection queries being supported on GAE the default behavior was

[web2py] Re: parse_as_rest date and time range?

2013-05-06 Thread Christian Foster Howes
can you url escape the : and have it work? if not, maybe use a different separator and change the string to timestamp parsing to expect your format. cfh On Monday, May 6, 2013 1:42:40 PM UTC-7, Bernard wrote: > > > Hi Web2py users, > I am using the parse_as_rest feature for filtering by date

[web2py] Re: saving UPS shipping labels

2013-04-25 Thread Christian Foster Howes
how are you setting self.accept_result.dict_response? if it is request args or vars web2py does some checking to prevent various code injection attacks. maybe that is mucking with your binary data? On Friday, April 19, 2013 1:51:29 PM UTC-7, Jim Gregory wrote: > > I'm working on a script to ge

[web2py] Re: “Exceeded soft private memory limit” when upload (1.56M) on GAE

2013-04-18 Thread Christian Foster Howes
Lio, there are potentially 2 problems here: - the request thread is using too much memory/has a memory lead - the size of the file is too large. i know you are having the second problem, not sure about the first. it's possible that the second problem is being reported to you with a mis-leadi

Re: [web2py] Re: AppStats doesn't work in my App. [GAE]

2013-04-17 Thread Christian Foster Howes
works. Any clues to low the overhead? On Tuesday, April 16, 2013 6:28:30 PM UTC+2, Christian Foster Howes wrote: ahhh yes...i remember. given that appstats, while helpful for testing, has a significant performance overhead (200ish ms per request i think), and that some (like me) have c

Re: [web2py] Re: AppStats doesn't work in my App. [GAE]

2013-04-16 Thread Christian Foster Howes
, April 16, 2013 8:19:51 AM UTC+2, Christian Foster Howes wrote: Jose, i'm behind in my web2py upgrades but can you check: - do you have app stats enabled in app.yaml? - what does your appengine_config.py look like? cfh On Monday, April 15, 2013 12:28:59 AM UTC-7, José Manuel López w

[web2py] Re: AppStats doesn't work in my App. [GAE]

2013-04-15 Thread Christian Foster Howes
Jose, i'm behind in my web2py upgrades but can you check: - do you have app stats enabled in app.yaml? - what does your appengine_config.py look like? cfh On Monday, April 15, 2013 12:28:59 AM UTC-7, José Manuel López wrote: > > >

Re: [web2py] Re: upgrading appengine has broken web2py

2013-04-13 Thread Christian Foster Howes
The 2 versions that i have used this week with the latest GAE are: Version 2.0.8 (2012-09-07 03:47:51) stable Version 2.0.9 (2012-09-13 23:51:30) stable cfh On 4/12/13 21:13 , Carl Roach wrote: What version are you using Christian? On 12 Apr 2013 23:34, "Christian Foster Howes" wr

Re: [web2py] Re: upgrading appengine has broken web2py

2013-04-12 Thread Christian Foster Howes
i'm not having any problems with GAE + web2py.though i'm not fully upgraded on my web2py versions...perhaps i should do a test upgrade and see if i hit the same issues. On Friday, April 12, 2013 9:10:10 AM UTC-7, Carl wrote: > > Perhaps 2.5 isn't far away given 2.4.6 is out. > > I'll be happ

[web2py] Re: iOS + web2py

2013-04-11 Thread Christian Foster Howes
The backend for starmakerstudios.com and the various applications distributed by StarMaker Interactive are primarily run by web2py on GAE. In addition to the things Jonathan lists in his message, i love the support of this community - finding bugs, submitting patches, and generally keeping me

[web2py] Re: Query for an entity in GAE using id

2013-04-09 Thread Christian Foster Howes
Jose, in theory that should work. what does your decrementNumRooms method look like? How do you know that it is not the right entity key? For what it is worth, i don't use the gae Key object in my code, i just pass the web2py id to run_in_transaction and query based on that. I know that it

[web2py] Re: auth.user.id in restful api

2013-04-07 Thread Christian Foster Howes
can accomplish this, using the > @require_restful() decorator in my API. > > Thank you & regards, > Philipp > > > Am Samstag, 6. April 2013 19:40:39 UTC+2 schrieb Christian Foster Howes: >> >> have you tried decorating your GET/PUT/POST/DELETE methods wit

[web2py] Re: Building Query object based on Rows avoiding 'belongs'

2013-04-07 Thread Christian Foster Howes
speaking without reading the docs.so i might be misguided. assuming that you can setup a grid with a rows object, you can use that patch. just & the rows together and magic will happen. the key no matter what is to setup multiple queries on GAE and & the results together, or re-imagine

[web2py] Re: auth.user.id in restful api

2013-04-06 Thread Christian Foster Howes
have you tried decorating your GET/PUT/POST/DELETE methods with the @requires_login()? @request.restful() def user(): @requires_login() def GET(*args, **kwargs): i'm doing something similar to that...but with a custom decorator rather than requires_login. cfh On Friday, Apr

[web2py] Re: need teaching advice (JS+jQuery)

2013-04-06 Thread Christian Foster Howes
i was shown a demo recently of a project that pulled a bunch of data from a server into local storage (using HTML 5 local storage stuffs in modern browsers) and then doing some pretty nifty visualization in the browser. is use of local storage too server like for this class? On Wednesday, Apri

[web2py] Re: does Field attribiute unique=True work on GAE?

2013-03-26 Thread Christian Foster Howes
i do make use of the IS_NOT_IN_DB() validator. Note that you can still have duplicates if 2 requests are received by GAE at nearly the same time. assuming your requests are more than say 1 second apart, if IS_NOT_IN_DB() is failing i would consider it a bug. NOTE that GAE dev_appserver.py rele

[web2py] Re: update existing project model without breaking backward compatibility...

2013-03-25 Thread Christian Foster Howes
perhaps i'm a bit old-fashioned, but i don't allow automatic SQL migrations on production. what i tend to do: - use automatic migrations in develop - record the SQL executed. - create a script that combines the migration SQL web2py generates with my data migration. - put production into main

[web2py] Re: Uploading and Downloading Bulk data GAE

2013-03-15 Thread Christian Foster Howes
i use the bulk uploader/downloader from google (with some custom transforms to keep the same IDs across copies). i've found it to be the most efficient and reliable way to get large amounts of data transferred. On Thursday, March 14, 2013 5:00:20 AM UTC-7, José Manuel López wrote: > > Hi, > I'

Re: [web2py] Re: Ticket Error: could not open port /dev/ttyAMA0:

2013-03-15 Thread Christian Foster Howes
the "user" for web2py depends on how you launch it... if you call: python web2py.py then it runs as you if you: sudo su bob python web2py.py it runs a bob. if you use apache or some other server i believe by default it runs as the user that is running apache. On Thursday, March 14, 2013 8:

[web2py] Re: web2py on GAE: Connect to google:sql and google:datastore

2013-03-15 Thread Christian Foster Howes
note that unless the book calls out google:sql vs google:datastore it's referring to google:datastore. SQL was added much later by google, but it's a mysql compatible database, and so should have most (perhaps all?) the mysql features. On Tuesday, March 12, 2013 2:14:39 AM UTC-7, decu...@uemd.

[web2py] Re: how to use web application to send serial commands?

2013-03-15 Thread Christian Foster Howes
i'm not familiar with netcat and minicom.are those python libraries? or are there python libraries that know how to speak those things? assuming you can write python that sends commands to the device (which i bet you can do), then it shouldn't be hard to have a URL call a controller that cr

  1   2   >