[web2py] Key query support in Google App Engine

2010-06-09 Thread Christian Foster Howes
Hi all, attached is a patch for gql.py. Please review and Massimo, if people like this, can we add it to trunk? what does it do? it allows you to do key queries on Google App Engine. this means that you can now perform all ID queries on tables in google app engine. for example: bel

[web2py] Re: Key query support in Google App Engine

2010-06-10 Thread Christian Foster Howes
for your patience and code review! let me know if there are any other changes that i should make. christian On 06/09/2010 08:54 PM, Christian Foster Howes wrote: Hi all, attached is a patch for gql.py. Please review and Massimo, if people like this, can we add it to trunk? what does it do

[web2py] Re: Key query support in Google App Engine

2010-06-11 Thread Christian Foster Howes
, key queries don't work properly there (spent 4 hours trying to figure out what i messed up to find out that others reported it as a bug to google). christian On 06/09/2010 08:54 PM, Christian Foster Howes wrote: Hi all, attached is a patch for gql.py. Please review and Massimo, if people

[web2py] plugin_wiki and auth tables

2010-10-04 Thread Christian Foster Howes
Massimo et. al., Can we update plugin_wiki to use the auth settings for auth table names? Since i have not looked into implementing table namespaces on GAE yet, i rename all my tables with an application prefix so applications don't mix data. when i do that plugin_wiki is not so happy. I d

[web2py] Auth forms and formstyle

2010-10-13 Thread Christian Foster Howes
Massimo, it seems the reset_password and change_password forms are not adhearing to the formstyle setting. can you review and apply the attached patch if appropriate? thanks, christian diff -r ee8db10779ad gluon/tools.py --- a/gluon/tools.pyWed Oct 13 09:51:52 2010 -0500 +++ b/gluon/too

Re: [web2py] Re: Keys and GAE

2011-01-10 Thread Christian Foster Howes
Matt, so now i understand completely. thanks for the clarification. this may be crazy talk, so hopefully those closer to the DAL will weigh in here, but take a look at line select_raw of dal.py (i don't have a line number since i have all modified versions, it's around 2670): el

Re: [web2py] Re: doesn't represents in a string format

2011-01-18 Thread Christian Foster Howes
the requires my not be necessary, i have not tested it. when i have the represent it works for me in SQLTABLE. i have not used the other visualizations. On 01/18/2011 05:08 AM, web2py noob wrote: I have to say that the represent=lambda x: db.stuff[x].name seems to works only for webgrid plug

Re: [web2py] User accessed site without logging in

2012-07-28 Thread Christian Foster Howes
yes i use current in modules, when i get back to testing this and have some details worth reporting i'll open a ticket. this is all that i have right now: https://groups.google.com/forum/?fromgroups&pli=1#!topic/web2py/aaG7YK7fddg thanks, cfh On 7/24/12 14:55 , Massimo Di Pierro wrote: Is

Re: [web2py] Re: Appengine CPU cycles

2012-08-07 Thread Christian Foster Howes
when i last tested it it was with a very complex custom auth + validators. there are probably ways to trim it down. one thing that i did was only init mail and attach mail to auth if i was doing something that required mail. cfh On 8/7/12 6:45 , Alexei Vinidiktov wrote: The app I'm develop

Re: [web2py] Re: Web2py GAE strange error [Errno 13] file not accessible: (jQuery.js)

2012-08-17 Thread Christian Foster Howes
db, auth, response was getting overwritten mid-request. see https://groups.google.com/forum/?fromgroups#!topic/web2py/aaG7YK7fddg[1-25] On 8/17/12 19:49 , Massimo Di Pierro wrote: What kind of thread problems did you have on GAE? On Friday, 17 August 2012 16:23:17 UTC-5, howesc wrote: respo

Re: [web2py] Re: Web2py GAE strange error [Errno 13] file not accessible: (jQuery.js)

2012-08-18 Thread Christian Foster Howes
i agree that it is GAE specific. i've never had a problem elsewhere. On 8/17/12 22:19 , Massimo Di Pierro wrote: I opened an issue on googlecode. If there is a problem with thread safety it is GAE specific. There is some logic created in the early days to cache things on GAE assuming one proces

Re: [web2py] Re: Router for multiple controllers

2012-08-21 Thread Christian Foster Howes
that's what i get for typing so quickly! thanks for spotting my mistake. :) On 8/21/12 12:15 , Derek wrote: wrong. routes_in = ( ('/hello', '/app1/controller1/hello'), ('/bye', '/app1/controller*2*/bye')) On Tuesday, August 21, 2012 9:42:27 AM UTC-7, howesc wrote: routes_in = ( ('/hello',

Re: [web2py] Re: Router for multiple controllers

2012-08-21 Thread Christian Foster Howes
i *think* it is one or the other, but not both. :( there may be a routers equivalent to my suggestion, but i don't know it. :( i know that you can convert routers into the routes_in/routes_out style. On 8/21/12 12:41 , Daniel Gonzalez wrote: Thanks howesc and Derek, Your solution is working

Re: [web2py] Re: Scaling Web2py

2012-09-03 Thread Christian Foster Howes
about the iOS api - we have RESTful requests that are responded to in json and we have a couple of views rendered as HTML. much more JSON though. GAE just turns on more instances as there are more requests. they will happily run up your bill up to the maximum daily limit that you set. i hav

Re: [web2py] Re: facebook comments

2012-09-25 Thread Christian Foster Howes
what does http://developers.facebook.com/tools/debug tell you when you put your page URL in it? i use that to get feedback from facebooksounds like there is something odd going on. cfh On 9/25/12 8:40 , Jose wrote: Hi if the url is http://www.my-domain.com the message is not shown, but

Re: [web2py] Re: Options for making a chat application with web2py

2012-05-04 Thread Christian Foster Howes
yup, i'm using it with web2py. i just RTFM (for once the google docs are decent) and their python examples work just fine in web2py. the javascript worked as advertized. the one thing i had to do was map the /_ah callbacks for connect/disconnect in app.yaml to go to web2py and in web2py rout

Re: [web2py] Re: Reloading modules

2012-05-10 Thread Christian Foster Howes
yes, sorry, i meant in development time. in one project i moved models to modules and shaved about 33% off of the GAE production request time. another project is in test this week and i will hopefully have numbers soon. note that when you don't need auth (not all of my requests use auth) not

Re: [web2py] Re: Unit Testing

2012-05-14 Thread Christian Foster Howes
Attached (assuming google groups accepts it) is my unit testing controller that i run on GAE development SDK. also note that my db connection is defined as: db = DAL('google:datastore') # connect to Google BigTable if request.test_db or request.function == "_TEST": db = DAL('go

Re: [web2py] Re: Error facebook login

2012-05-15 Thread Christian Foster Howes
i don't understand, https://graph.facebook.com/oauth/authorize?redirect_uri=http%3A%2F%2Fjuegozona.com%2Fuser%2Flogin&response_type=code&client_id=225870074195502 is not an option? i think that is what facebook needs. cfh On 5/15/12 13:54 , www.diazluis.com wrote: Thanks for responding n

Re: [web2py] Re: GAE datastore: how to unindex a field?

2012-05-16 Thread Christian Foster Howes
actually the question at hand here i think is whether or not web2py can support indexed=False in the property constructor when defining GAE models: https://developers.google.com/appengine/docs/python/datastore/propertyclass class Property(verbose_name=None, name=None, default=None, required=Fa

Re: [web2py] Re: hot to Run Python 2.5 scripts from python (for automating PSSE)

2012-05-31 Thread Christian Foster Howes
i start we2py with: python2.5 web2py.py -a note that i have python2.5 on my path. i'm also running the source distribution. is that what you needed to get the python version for web2py? cfh On 5/31/12 16:23 , Janath wrote: Thank you for the reply. I am on doing last method of your

Re: [web2py] Re: Send push notifications to IOS devices?

2012-06-05 Thread Christian Foster Howes
as long as your list is small urban airship provides a decent service. we were spending too much on them so we wrote our own. :) On 6/5/12 16:11 , Jonathan Lundell wrote: On Jun 5, 2012, at 4:06 PM, howesc wrote: i coworker wrote a stand-alone (not web2py) push server for a project - but that

Re: [web2py] Re: How can I have static files outside of static directory?

2012-06-09 Thread Christian Foster Howes
ok, then can you use your webserver to handle the static file handling rather than web2py? that sounds like your best bet given your restrictions. cfh On 6/9/12 15:20 , Carl wrote: It'd be nice that it wouldn't matter but tech often like that. Web2py treats files differently based upon locat

Re: [web2py] Re: GAE - Datastore and CloudSQL together

2013-03-04 Thread Christian Foster Howes
ahh, the connection stuff is in the book: #store sessions in the DB session.connect(request,response,db = db) http://web2py.com/books/default/chapter/29/13#Avoid-the-filesystem On Monday, March 4, 2013 9:50:02 PM UTC-8, Philip Kilner wrote: > > Hi, > > On 05/03/13 02:02, howesc

[web2py] Re: GAE Hosting Issue

2013-03-04 Thread Christian Foster Howes
hrmmaybe it's time for GAE's next code update. i frequently notice a degradation in performance just before they announce a new SDK version. i'm not seeing anything out of the ordinary on my GAE apps right now, but i do agree that the GAE team is not as transparent as i would like. i would

[web2py] Re: GAE Hosting Issue

2013-03-05 Thread Christian Foster Howes
urious what query/command web2py is trying to run on the database. that might open the door to the missing answer! cfh On Monday, March 4, 2013 11:07:13 PM UTC-8, Philip Kilner wrote: > > Hi Christian, > > On 05/03/13 06:12, Christian Foster Howes wrote: > > hrmmaybe it&#x

[web2py] Re: GAE Hosting Issue

2013-03-06 Thread Christian Foster Howes
ements as needed. if the database/schema does not exist, there will be errors. cfh On 3/6/13 0:07 , Philip Kilner wrote: Hi Christian, On 06/03/13 07:42, Christian Foster Howes wrote: the ticket you linked to looks like it is not failing on the connection, but rather failing on a query.

[web2py] Re: GAE DB vs NDB

2013-03-09 Thread Christian Foster Howes
i've not used NDB, but i use the GAE datastore quite a lot. lucky for me the projects i'm working on are OK with paying to use GAE so quota per-se is not a concernbut overall cost is. some things that i have done: - i moved sessions to the DB, counter-intuitive i know, but they kept gettin

[web2py] Re: Is it possible to deploy using Tornado on GAE?

2013-03-09 Thread Christian Foster Howes
greetings, i don't know much about asynchronous i/o in web servers. GAE provides its own web server. there is no file writing in GAE (unless you use the blobstore), and most google API calls that you make can be made asynchronously with the proper settings. overall i am very satisfied with GA

[web2py] Re: web2py under GAE: disabling indexes

2013-03-09 Thread Christian Foster Howes
Massimo, Scott, i filed https://code.google.com/p/web2py/issues/detail?id=1373 with a patch against trunk. Looks like my first patch on this thread made it to the latest release, but the second patch did not. If that can be applied i think we'll be all set. perhaps i now need to start submit

[web2py] Re: Is it possible to deploy using Tornado on GAE?

2013-03-11 Thread Christian Foster Howes
; GAE does that to applications that have not been accessed recently. If not, > it is slightly disappointing that GAE will not be very reliable when it > comes to loading speed. > That is certainly very helpful to know, so thanks again. > > > > On Saturday, March 9, 2013 9:41:18

[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

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

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

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

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

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: delete on GAE

2012-10-20 Thread Christian Foster Howes
sure. i'll make a patch soon... thanks for the input! cfh On 10/20/12 13:29 , Massimo Di Pierro wrote: I meant to skip count. On Saturday, 20 October 2012 15:28:56 UTC-5, Massimo Di Pierro wrote: How about adding a gae only parameter to the gae adapter_args that tells it to skip fetch? On

Re: [web2py] Re: Multi-language website with GAE + parameter-based system

2012-11-15 Thread Christian Foster Howes
it's in app.yaml, so it's GAE specific. On 11/15/12 17:45 , Massimo Di Pierro wrote: Where is this regex? On Thursday, 15 November 2012 13:10:50 UTC-6, David Sorrentino wrote: Hi howesc, Testing the regex I found out the error. Intead of: url: /(?P.+?)/static/\w\{2}?/(?P.+) it should be:

Re: [web2py] Re: Unable to send email in web2py

2012-11-21 Thread Christian Foster Howes
i have used 587 successfully in the past. i noticed that username if not a gmail account is the full email address like: b...@foo.com:password perhaps try that even with the gmail account? cfh On 11/21/12 16:43 , Daniele Pestilli wrote: I tried with port *465* and *587* any other port su

Re: [web2py] Re: web2py 2.3.2 added "+ -" to some form elements

2012-12-20 Thread Christian Foster Howes
ok, here is a patch against current *trunk*. this should never allow you to remove the last item from the list. note that when the list is empty (showing one field with no data) the + and - buttons appear to be no-op. On 12/20/12 7:06 , Massimo Di Pierro wrote: For now I have remove the "-"

Re: [web2py] Re: web2py 2.3.2 added "+ -" to some form elements

2012-12-20 Thread Christian Foster Howes
and here is the diff between the 2.3.2 release and the patch i made in case you want to apply it to gluon/sqlhtml.py in your environment. sorry for the headache! cfh On 12/20/12 7:06 , Massimo Di Pierro wrote: For now I have remove the "-" button. On Wednesday, 19 December 2012 23:48:37 UTC-

Re: [web2py] Re: web2py 2.3.2 added "+ -" to some form elements

2012-12-20 Thread Christian Foster Howes
(my first try didn't post) ok, here is a patch against current *trunk*. this should never allow you to remove the last item from the list. note that when the list is empty (showing one field with no data) the + and - buttons appear to be no-op. -- diff -r 4c55a243c4c2 gluon/sqlhtml.py -

Re: [web2py] Re: Implementing task queue using web2py

2012-02-14 Thread Christian Foster Howes
what is the error in the logs when the task fails? what is the URL shown in the task list? something is either amok with the URL itself, or something is causing that function to fail when called via the task queue. On 2/13/12 20:05 , Saurabh S wrote: It worked when I passed a different cont

Re: [web2py] Re: Anyone using Backbone.js?

2012-02-16 Thread Christian Foster Howes
i did this to use static files to contain my handlebars code: $.get("{{=URL(r=request, c='static', f='js/handlebars/views/popup.html')}}", function(data) { popup_template = Handlebars.compile(data); }); On 2/15/12 23:33 , David Marko wrote: I'm also making decision right now and evaluating e

Re: [web2py] Re: web2py + GAE memory usage

2012-02-18 Thread Christian Foster Howes
good question. i suppose that is my weekend homework. :) On 2/17/12 15:23 , Massimo Di Pierro wrote: Can you reproduce this with the welcome app? On Feb 17, 2:09 pm, howesc wrote: Hi all, I see this in mt GAE logs from time to time: 1. 2012-02-17 11:35:59.737 Exceeded soft private

Re: [web2py] Re: web2py + GAE memory usage

2012-02-19 Thread Christian Foster Howes
i see similar behavior on python2.5, i just did my test on 2.7 as i'm trying to move my clients that way anyway. i'm going to do some more digging this afternoon. On 2/19/12 11:53 , Jonathan Lundell wrote: On Feb 19, 2012, at 11:41 AM, Massimo Di Pierro wrote: I am very puzzled by this. I was

Re: [web2py] Re: Web2Py/Google App Engine Apps - How to get ID or key after Inserting New Rec

2012-02-21 Thread Christian Foster Howes
yes, bulk_insert changed from needing a dict to needing the ** notation at some point. are the docs out of sync? and look at this: http://code.google.com/appengine/docs/python/datastore/functions.html#put looks like GAE bulk PUT does return a list of keys. perhaps i smell a DAL enhancement

Re: [web2py] Re: Attaching files stored in blobstore in a mail

2012-02-22 Thread Christian Foster Howes
do you have a full stack trace with that and a code sample? I've never tried to do this myself, but perhaps i can help debug. On 2/22/12 22:55 , Saurabh S wrote: Yes I m using GAE blobstore. I am sending the blob reader as payload and a filename. I m getting this error: "'Int' object has no a

Re: [web2py] Re: web2py - Amazon Webservices Integration

2012-02-22 Thread Christian Foster Howes
there is nothing web2py specific about the Boto library, so you can just read their docs: https://github.com/boto/boto and http://readthedocs.org/docs/boto/en/latest/ On 2/22/12 20:26 , Osama Khan wrote: Any freely available tutorial/how-to article on this online? Might be a good idea to ad

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

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

[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

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

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

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

[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

[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

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

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

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

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

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

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_

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

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

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

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

[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

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

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

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

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

  1   2   >