Re: [web2py] Re: new stuff in trunk...

2010-06-01 Thread Miguel Goncalves
Paypal has multiple workflows and products. The simplest one is "*Website Payments Standard*" where you direct the user to the paypal website for payment. Not great for the user experience but workable and above all there is no monthly fee associated with it. Another version is "*Website Payment

Re: [web2py] csv export/import oddities

2010-02-04 Thread Miguel Goncalves
thanks!! On Thu, Feb 4, 2010 at 10:33 AM, Thadeus Burgess wrote: > The issue is when you export the entire web2py database. It exports it > into a "meta" csv file. > > So its csv, but it has web2py generated metadata about what goes > where, try opening your exported csv file in a text editor and

Re: [web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-22 Thread Miguel Goncalves
I am running into the same problem. Replacing count by len seems to work. Will this fix be included in the next version of web2py or is there a "better"/other way of addressing this? -Miguel On Sun, Feb 21, 2010 at 3:03 PM, what_ho wrote: > I got the same issue, delete operations by id work

Re: [web2py] crud delete weird behavior (on GAE at least)

2010-02-23 Thread Miguel Goncalves
Anybody run into a similar issue? I cannot seem to figure it out. :( Thanks -Miguel On Mon, Feb 22, 2010 at 6:09 PM, Miguel wrote: > Hi > > I implemented the following function to delete an entry in a db: > > @auth.requires_login() > def DeleteSite(): >msg = T("Cannot delete specified r

Re: [web2py] crud delete weird behavior (on GAE at least)

2010-02-23 Thread Miguel Goncalves
27;No such record: %s' % key However the table does contain a record equal to key. What gives? Thanks Miguel On Tue, Feb 23, 2010 at 11:04 AM, Wes James wrote: > Have you uploaded your app to gae and tested it there? > > -wes > > On Tue, Feb 23, 2010 at 10:57 AM,

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-02-23 Thread Miguel Goncalves
How do I do that? On Tue, Feb 23, 2010 at 7:09 PM, mdipierro wrote: > I would try delete and rebuild indices. > > On Feb 23, 7:54 pm, Miguel Goncalves > wrote: > > Yes I tried to upload it to GAE but I ran into the missing indexes issue. > So > > I was trying to run

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-02-26 Thread Miguel Goncalves
I just saw that 1.75.5 is out. Since it has : "fixed problem with GAE deleted by id (thanks what_ho)" Do you think it is related or is this to fix the count vs len issue? In any case I will try it tomorrow morning. Thanks Miguel On Thu, Feb 25, 2010 at 3:33 PM, Miguel Goncalves wr

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-02-26 Thread Miguel Goncalves
it tomorrow morning. > > > > Thanks > > Miguel > > > > On Thu, Feb 25, 2010 at 3:33 PM, Miguel Goncalves < > goncalvesmig...@gmail.com > > > > > wrote: > > > Hi > > > > > I attached a modified "welcome" application t

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-03-02 Thread Miguel Goncalves
What is the file that locally stores the databases/tables contents when using GAE devserver? I would like to delete it (without re-installing) and start from scratch to see if this is due to a local issue. -Miguel On Fri, Feb 26, 2010 at 11:58 AM, Miguel Goncalves < goncalvesmig...@gmail.

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-03-03 Thread Miguel Goncalves
Just installed 1.76.3 and it seems to have fixed the problem. -Miguel On Tue, Mar 2, 2010 at 11:16 PM, Miguel Goncalves wrote: > What is the file that locally stores the databases/tables contents when > using GAE devserver? > I would like to delete it (without re-installing) and s

Re: [web2py] Re: Import modules not working

2010-04-02 Thread Miguel Goncalves
It gives me the following error: ImportError: No module named applications.mlinks.modules On Fri, Apr 2, 2010 at 5:48 AM, mr.freeze wrote: > I was able to create a new app, copy clienttools.py to the modules > directory and import with the code below. Perhaps there is an issue > with local_imp

Re: [web2py] Re: Import modules not working

2010-04-02 Thread Miguel Goncalves
yes I have one but it is empty. On Fri, Apr 2, 2010 at 4:01 PM, mr.freeze wrote: > Do you have an __init__.py in your modules folder? > > On Apr 2, 3:02 pm, Miguel Goncalves wrote: > > It gives me the following error: > > ImportError: No module named applications.mlinks.m

Re: [web2py] Re: Import modules not working

2010-04-02 Thread Miguel Goncalves
mdlinks/modules/__init__.py > > make sure they are there. That is the only possible problem. > > On Apr 2, 7:08 pm, Miguel Goncalves wrote: > > yes I have one but it is empty. > > > > On Fri, Apr 2, 2010 at 4:01 PM, mr.freeze wrote: > > > Do you have an __init

Re: [web2py] Re: Crash in the appadmin db page when trying to view one of my tables

2010-09-06 Thread Miguel Goncalves
Thanks for your comment ! that made me look into the fields that are references and quickly found what was wrong. In my insert, I harcoded the categoryID to 63which does not exist anymore in my category table. Stupid mistake. Sorry. Thanks again; -Miguel

Re: [web2py] xmlrpc does not work on GAE (while it works fine on dev local gae server) ??

2010-09-06 Thread Miguel Goncalves
Found the problem! my url was simply wrong. :( In the call bellow: RPCServer = ServerProxy('http://myapp.appspot.com/welcome/default/ index/call/xmlrpc ') the "welcome" should be "myapp" (and no "index" is needed). So the proper url is

Re: [web2py] Re: Routes.py on GAE

2010-09-06 Thread Miguel Goncalves
Hi I guess this bug has not been fixed yet? I am getting the following error: unable to import Rocket Your routes.py has a syntax error Please fix it before you restart web2py Traceback (most recent call last): File "/base/data/home/apps/reviewround/1.344628390884008259/gluon/rewrite.py", line

Re: [web2py] Re: Routes.py on GAE

2010-09-08 Thread Miguel Goncalves
Hi Massimo Did you, by any chance, make any progress on this issue? Thanks Miguel On Tue, Sep 7, 2010 at 4:43 AM, mdipierro wrote: > Thanks for the reminder. I will look into this today. > > On Sep 7, 1:28 am, Miguel Goncalves wrote: > > Hi > > > > I guess this

Re: [web2py] Re: Routes.py on GAE

2010-09-09 Thread Miguel Goncalves
ch is empty; there's no code until line 4. > >> > >>>> My advice is to resolve the first error (Rocket) before worrying about > the routes error. > >> > >>>>> On Sep 9, 8:03 am, Richard wrote: > >>>>>> I am using t

Re: [web2py] Re: How to insert only new items in db as fast as possible?

2010-09-10 Thread Miguel Goncalves
thanks I'll give it a try. Are Tasks Queues part of web2py or is it something specific to GAE? On Thu, Sep 9, 2010 at 9:41 PM, Richard wrote: > I don't know a good general solution for web2py, but if just targeting > GAE: > 1) request all existing products > 2) find which of your products are n

Re: [web2py] Re: Routes.py on GAE

2010-09-13 Thread Miguel Goncalves
line 133, in load raise e : invalid syntax (, line 5) Not sure what is wrong with the line 5. thanks Miguel On Sun, Sep 12, 2010 at 12:29 PM, Jonathan Lundell wrote: > On Sep 12, 2010, at 11:46 AM, Miguel Goncalves wrote: > > I attached the zipped routed file to this emai

Re: [web2py] Routes.py on GAE

2010-09-14 Thread Miguel Goncalves
Thanks all! On Tuesday, September 14, 2010, mdipierro wrote: > Thanks Jonathan, I will fix this tonight. > > massimo > > On Sep 14, 9:56 am, Jonathan Lundell wrote: >> Massimo, here's a patch. In rewrite.py, change this: >> >>         exec routesfp.read() in symbols >> >> to this: >> >>        

Re: [web2py] How to upload/process data file in GAE?

2010-10-23 Thread Miguel Goncalves
Few options I can think of: 1- use xmlrpc to upload the content of your file. Store it in a variable and process it right there. 2- have a table (well field in a table) dedicated to store the content of your file. Once it is updloaded, process it and empty the field. -Miguel On Fri, Oct 22, 201

Re: [web2py:38487] Re: Are self references broken on GAE?

2010-01-06 Thread Miguel Goncalves
I am on :*Version* web2py Version 1.74.5 (2009-12-30 15:44:00) On Wed, Jan 6, 2010 at 3:33 PM, mdipierro wrote: > which web2py version. this should not happen with 1.74.5. > > On Jan 6, 5:28 pm, Miguel wrote: > > Hi > > > > I have the following model: > > > > db.define_table("sites", > >

[web2py] Re: [web2py:38493] Re: Are self references broken on GAE?

2010-01-06 Thread Miguel Goncalves
I just tried it and it works now. Thanks Massimo! -Miguel On Wed, Jan 6, 2010 at 4:21 PM, mdipierro wrote: > you found a bug. I just fixed it in trunk. > > On Jan 6, 5:37 pm, Miguel Goncalves wrote: > > I am on :*Version* web2py Version 1.74.5 (2009-12-30 15:44:00) > &

Re: [web2py] Re: Easy way to export and import all the tabes at once?

2010-01-19 Thread Miguel Goncalves
Hi Since I am running on GAE I guess the open(...) will not work. Instead I am trying to add exportToCsvAll function to the appadmin.py of my application. I assume I have to iterate through all the tables, export them to csv into a string and then return the string. Question is how do I export e

Re: [web2py] Re: Easy way to export and import all the tabes at once?

2010-01-19 Thread Miguel Goncalves
Great!! that worked. Thanks On Tue, Jan 19, 2010 at 3:55 PM, Thadeus Burgess wrote: > import cStringIO > > mystr = cStringIO.StringIO() > > db.export_to_csv_file(mystr) > > # set content headers > > return mystr.getvalue() > > -Thadeus > > > >

[web2py:14234] Re: web2py with T2 does not work on GAE

2008-12-28 Thread Miguel Goncalves
So I suppose the JOIN in the puppy tutorial is the "friendship" declaration. What is the recommended pattern to "simulate" a JOIN in order to run on the GAE? Thanks Miguel On Fri, Dec 26, 2008 at 2:54 PM, mdipierro wrote: > > you cannot do JOINS on GAE. The puppy tutorial does a JOIN. > > > >

[web2py:14424] Re: t2 looking for files in the wrong directory on GAE

2009-01-02 Thread Miguel Goncalves
hi Massimo, No I do not have an application called "plugin". My directory structure is: CARbox/ Applications/ On Fri, Jan 2, 2009 at 12:35 AM, mdipierro wrote: > > I cannot figure out where that links is built in T2. > Do you have an app called plugins? > > Massimo > > On Jan 2, 2:13 am, Migu

[web2py:14425] Re: t2 looking for files in the wrong directory on GAE

2009-01-02 Thread Miguel Goncalves
)/.*)| )$ Any ideas? Thanks Miguel On Fri, Jan 2, 2009 at 9:05 AM, Miguel Goncalves wrote: > hi Massimo, > > No I do not have an application called "plugin". My directory structure is: > > CARbox/ > Applications/ > > > On Fri, Jan 2, 2009 at 12:35 AM, mdi

[web2py:14464] Re: [web2py:/] Re: t2 looking for files in the wrong directory on GAE

2009-01-03 Thread Miguel Goncalves
nto this but I cannot reproduce your problem. I do not > see how the wrong url can be generated. I believe that file is part of > fancyzoom. > > Do you have an old version of plugin_t2? > > I reposted the latest version in case I made a mistake in the past. > > Massimo > >

[web2py:14529] Re: [web2py:/] Re: t2 looking for files in the wrong directory on GAE

2009-01-04 Thread Miguel Goncalves
ok, for now I modified the code of web2py.js to point to the correct path. The other js scripts are not used in my app. On Sat, Jan 3, 2009 at 10:35 AM, Miguel Goncalves wrote: > Hi > > the following file refers to the "/plugins/static/t2/media" directory: > /plugi

[web2py:16312] How to create a REST service

2009-02-13 Thread Miguel Goncalves
Hi I would like to create a RESTfull web service with web2py using JSON as the 'encoding' format. Suppose I would have a model containing the following data: -book_id -title -author -brief_description and I want CRUD functions accessible through a REST web service. How would I go about that?

[web2py:16337] problems running web2py with GAE locally

2009-02-14 Thread Miguel Goncalves
Hi I am trying to setup a new project (using web2py version in trunk) and got the following error when trying to access the application /welcome/default/index.html INFO 2009-02-15 00:03:12,543 dev_appserver.py] "GET /welcome/default/index HTTP/1.1" 200 - DEBUG2009-02-15 00:03:12,543 dev_

[web2py:16638] db insert does not work with unicode strings

2009-02-20 Thread Miguel Goncalves
Hi When I call the following code : import gluon.contrib.simplejson as json def create(): ### http:///create?fields= va = dict( json.loads(request.vars.fields, encoding='ascii' ) ) returndb.book.insert(**va) With the url: http://localhost:8000/welcome/service/create?field

Re: [web2py] Re: Path to jquery and other libs is wrong in the admin app (2.9.11)

2014-10-02 Thread Miguel Goncalves
Hi The app.yaml does indeed contain the following line that is supposed to get rid of the version number in the path to static files. - url: /(.+?)/static/_\d.\d.\d\/(.+) static_files: applications/\1/static/\2 However this seems to be ignored by the GAE SDK (running local). I replaced it by:

Re: [web2py] Re: Path to jquery and other libs is wrong in the admin app (2.9.11)

2014-10-02 Thread Miguel Goncalves
url: /(.+?)/static/(.+) # static_files: applications/\1/static/\2 # upload: applications/(.+?)/static/(.+) # secure: optional Seems like the 2nd url was overwritting the 1st one. Any ideas if this will create any other issues? Thanks Miguel On Thu, Oct 2, 2014 at 6:18 AM, Miguel Goncalves w

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-02 Thread Miguel Goncalves
Try to do comment the 2dn url line in the the app.yaml : handlers: # Warning! Static mapping - below - isn't compatible with # the parametric router's language logic. # You cannot use them together. - url: /(.+?)/static/_\d.\d.\d\/(.+) static_files: applications/\1/static/\2 upload: applicati

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-02 Thread Miguel Goncalves
, 2014 at 7:27 AM, Lucas Geiger wrote: > Hi Miguel, sorry which line specifically? > Also did you use the "web2py.py -G config " to generate these? > I did. It seems that would be a bug? > > Lucas Geiger > On Oct 2, 2014 9:47 AM, "Miguel Goncalves" > wrote

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-03 Thread Miguel Goncalves
p5xy47ckb/Screenshot%202014-10-02%2012.55.58.png?dl=0 > > I didn't notice it until clearing the browser cache. > > Can you confirm? > Thanks > > On Thu, Oct 2, 2014 at 9:47 AM, Miguel Goncalves > wrote: > > Try to do comment the 2dn url line in the the app.ya

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-08 Thread Miguel Goncalves
's release pipeline with > Github? It seems the yml is not valid and fails. Wondering if it's > related. See here: > https://groups.google.com/forum/#!topic/web2py-developers/ldksNnV7EeQ > > On Fri, Oct 3, 2014 at 8:56 AM, Miguel Goncalves > wrote: > > Hi > >

Re: [web2py] web2py.py -G configure issues? Trouble with /admin on GAE

2014-10-13 Thread Miguel Goncalves
m not having luck with that. Can you post your yml file here? >>> >>> Another question: have you tried using GAE's release pipeline with >>> Github? It seems the yml is not valid and fails. Wondering if it's >>> related. See here: >>> https://gro