[web2py] Re: Getting web2py to reload module files for each return view

2016-04-20 Thread Alex Benfica
Hi! I'm afraid this solution does not work on App engine development environment. Is there any other way? Em sexta-feira, 24 de outubro de 2014 21:52:03 UTC-2, Massimo Di Pierro escreveu: > > Normally modules are not reloaded because they are cached by python. > web2py can bypass this, depen

[web2py] Re: Virtual Fields on auth_user

2012-11-23 Thread Alex Benfica
Hi! I found this... https://groups.google.com/forum/?fromgroups=#!topic/web2py/77ei0yBbuhw Wil this feature be included again some day? Web2py is fine... and it is getting better each day! Em sexta-feira, 23 de novembro de 2012 16h57min33s UTC-2, Alex Benfica escreveu: > > Hi! >

[web2py] Re: Virtual Fields on auth_user

2012-11-23 Thread Alex Benfica
Hi! I have the same problem and the virtual fields availble on auth.user would save me 1 RPC call per request on App Engine. Is that a bug or is it the natural behavior!? I'm using web2py version 2.2.1! Thanks! Em sábado, 23 de abril de 2011 16h55min28s UTC-3, Gregory Hellings escreveu: > >

[web2py] Re: Does web2py Cache Auth Queries

2012-11-15 Thread Alex Benfica
So... What can I do to make than faster? Or should I not be using "has_permission" each time I need to know which permission logged in user have? Em quarta-feira, 2 de março de 2011 12h48min55s UTC-3, Massimo Di Pierro escreveu: > > They are not cached. > > On Mar 2, 9:22 am, Ross Peoples wro

Re: [web2py] Re: Probleme with 301 redirect when URL has hyphens!

2012-11-03 Thread Alex BENFICA
to each of your > URLs with hyphens before they will parse without error. > > i hope that helps point you in the right direction > > cfh > > > On Friday, November 2, 2012 4:18:44 AM UTC-7, Alex Benfica wrote: >> >> Hi people! >> >> I'm creat

[web2py] Probleme with 301 redirect when URL has hyphens!

2012-11-02 Thread Alex Benfica
Hi people! I'm creating a new website using Web2py [ Version 2.0.0 (2012-06-10 21:17:42) dev ] on GAE in a domain where previously I had a WordPress blog! This blog has some urls like these: http://domain.com/novo-modelo/hyundai-hb-20/ http://domain.com/carro-conceito/nanotata/testes/ In order

[web2py] Re: Web2py and Projection Queries

2012-06-12 Thread Alex Benfica
ine/docs/python/datastore/queries#Query_Projection. > > I would think that would result in an error, though. > > Anthony > > On Monday, June 11, 2012 9:35:28 PM UTC-4, Alex Benfica wrote: >> >> Hi Massimo and howesc! >> >> Testing again... I found a problem:

[web2py] Re: Web2py and Projection Queries

2012-06-11 Thread Alex Benfica
).select() On Monday, June 11, 2012 10:10:18 PM UTC-3, Alex Benfica wrote: > > Hello people! > > First of all... thank you Massimo and howesc! > > About this question that I did and Massimo and howesc answerd on Stack > Overflow. > I tried to put some code there... but

[web2py] Re: Web2py and Projection Queries

2012-06-11 Thread Alex Benfica
Doing some research I found the docs... "You cannot project a property that also is referenced in an equality filter. For example SELECT A FROM kind WHERE A = 1 is not supported, but SELECT A FROM kind WHERE B = 1 or SELECT A FROM kind WHERE A > 1 is supported." So I did ... self.db(self.tabe

[web2py] Web2py and Projection Queries

2012-06-11 Thread Alex Benfica
Hello people! First of all... thank you Massimo and howesc! About this question that I did and Massimo and howesc answerd on Stack Overflow. I tried to put some code there... but I could't... http://stackoverflow.com/questions/10940995/does-google-app-engine-projection-queries-are-supported-by-

[web2py] Re: DAL query: limit ?

2012-05-24 Thread Alex Benfica
Hi! Massimo... does it really limits the number of entities queried from GAE datastore? I made some tests while observing quota limits... and seens that each time I do limitby=(0,10), all 845 entities I have are being returned... but web2py only shows 10 first... Is there a way I can only get

[web2py] Re: Automatically reload custom modules?

2012-05-15 Thread Alex Benfica
Hi! I have it on my only file at models folder, at first line. from gluon.custom_import import track_changes; track_changes(True) When using GAE SDK, this option does NOTE reloads modules! The tickets shows erros on wrong line numbers... and changes made on module files are only displayed when

Re: [web2py] Re: Reloading modules

2012-05-10 Thread Alex BENFICA
and i just restart that.  it's not as fast as > auto-reloading but it has been ok for me (though now that i'm doing more and > more in modules it does slow things down) > > > On Wednesday, May 9, 2012 2:27:33 PM UTC-7, Alex Benfica wrote: >> >> Oi Ricardo, >

Re: [web2py] Re: Reloading modules

2012-05-09 Thread Alex BENFICA
Oi Ricardo, Thanks. I add the option to use sql lite and databse keeps data when I restart app engine SDK. And about the module reloading... did you have any problems with it? On Wed, May 9, 2012 at 5:54 PM, Ricardo Pedroso wrote: > On Wed, May 9, 2012 at 8:35 PM, Alex Benfica wr

[web2py] Re: Reloading modules

2012-05-09 Thread Alex Benfica
I'm having a seriuos problem having to stop and start Google App Engine SDK when I want edit modules, otherwise, they are not reloaded. The problem is that, doing this, I lose the entire database content on GAE SDK... Is there a way to edit web2py modules and get then reloaded each time I run

[web2py] Re: Time to move from Google Groups to a web2py or python??

2012-04-22 Thread Alex Benfica
Hi! Maybe move away from Google Groups is really a nice ideia... Even the App Engine groups did that... http://groups.google.com/group/google-appengine/browse_thread/thread/67a5cdffae1c03bc On Saturday, April 21, 2012 1:24:32 PM UTC-3, JoeCodeswell wrote: > > This new look that Google Gro

Re: [web2py] Re: Web2py + Python 2.7 on GAE: Can I use PIL and resize an image when uploading to datastore?

2012-04-19 Thread Alex BENFICA
s://developers.google.com/appengine/docs/python/images/imageclass > > from google.appengine.api import images > > blob = db.marcas(id).logotipo_marca_blob > image = images.Image(blob) > image.resize(32, 32) > data = image.execute_transforms() > > > -- -- Atenciosamente, Alex BENFICA -- "O que não se mede não se gerencia."

[web2py] Web2py + Python 2.7 on GAE: Can I use PIL and resize an image when uploading to datastore?

2012-04-19 Thread Alex Benfica
This is my model. I upload the image to the logotipo_marca_blob field... I can already use from PIL import Image inside app engine SDK without problems... db.define_table('marcas', Field('nome_marca',unique=True), Field('site_marca'), Field('nome_marca_url', readable=False), Fi

[web2py] How can I create new auth_user and auth_group on Web2py running on Google App Engine (GAE)?

2012-04-17 Thread Alex Benfica
I've created an app on my local computer with Web2py and it is running via WSGI with SQLite. I can successfully deploy my app to Google App Engine, using my own domain and doing all url rewrites I need. Now I need a way to create specific administrative users that will be responsible for upda