[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: 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: 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: 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: (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: 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: 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: 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: 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

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

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. >

[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: 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

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

[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

[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: 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: 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: 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: 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

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: 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: 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

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

[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:

[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

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: 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: 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: 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
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: 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

[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: 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] 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

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] 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

[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

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: 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] 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: 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

[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

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

<    1   2