Re: [web2py] Re: New web2py logo? [just for fun]

2011-02-12 Thread Marin Pranjic
I set it as a wallpaper on my mobile, hope your daughter won't mind :) On Sat, Feb 12, 2011 at 8:51 AM, Changju wrote: > > How sweet:) > On 2월12일, 오전2시36분, Anthony wrote: > > My 4-year-old daughter has been practicing her writing recently. > Yesterday, > > she handed this to me (she must have f

Re: [web2py] Re: New web2py logo? [just for fun]

2011-02-12 Thread Michele Comitini
Simply beatiful! We need a "contributed art" section on web2py.com! mic 2011/2/12 Marin Pranjic : > I set it as a wallpaper on my mobile, hope your daughter won't mind :) > > On Sat, Feb 12, 2011 at 8:51 AM, Changju wrote: >> >> How sweet:) >> On 2월12일, 오전2시36분, Anthony wrote: >> > My 4-year-ol

[web2py] Re: What user is logged in (or, restricting access based on user)

2011-02-12 Thread villas
You can't give permissions to users, only to groups. Therefore the only way to give permissions to a unique user is through their unique group. The book gives an example where this is used in the section Authorization and CRUD. You don't need to use the inidividual user groups. I have never need

[web2py] Re: What is the convention for using web2py/site-packages for GAE?

2011-02-12 Thread Carl
I've avoided editing oauth10a_account.py by moving the directory oauth2 to web2py (and keeping httplib2 inside oauth2. Not happy that I've put this in Web2py's root but I've avoided editing the framework source and don't need to worry about overwriting files when I upgrade Web2py. On Feb 11, 1:46

[web2py] Re: Authorization for Webhooks

2011-02-12 Thread AsmanCom
First things first, Thanks a bunch for your reply. "Can you just read the cookie" Yes: request.cookies "and match it to a session?" I would like to, but I do not know how? "Do these callbacks occur quickly enough that the session has not expired?" Yes. "the callback is not technically "logge

[web2py] Re: new support platform for web2py - make money

2011-02-12 Thread Francisco Costa
didn't know about it.. when will you release it?

Re: [web2py] new support platform for web2py - make money

2011-02-12 Thread Ovidio Marinho
Francisco voce pode disponibilizar o codigo para podermos ver as novidades que vc colocou nesta app, tipo campos arredondados , icones e etc... 2011/2/11 Francisco Costa > Hello! > During the past months I'm using a lot web2py. > I've been asking a few questions here in this group and I've recei

Re: [web2py] Re: web2py not using global http_proxy

2011-02-12 Thread Luis Díaz
I'm using a virtualization solution. (Proxmox) I have a debian server 5, installed by minimal changes in the script "Setup web2py + apache + ssl + mod_wsgi + postgresql in FEW seconds" I do not use postgresql on this server. I have another server with debian virtualized 5 and in this I have confi

[web2py] form.accepts() with reference to other table

2011-02-12 Thread Oskari
Hi! I'm having trouble making an insert with form.accepts() Currently I have a custom auth_user that has one extra field: Field('accountID', db.accounts) with custom_auth_table.accountID.requires = IS_IN_DB(db,db.accounts.id,id) While trying to modify variables it fails with "not found in db" d

[web2py] .represent not representing

2011-02-12 Thread Johann Spies
I get the following output : inwoner.idinwoner.vaninwoner.adres1Spies1 the following code: db.define_table('adres', Field('straat')) db.define_table('inwoner', Field('van'), Field('adres', db.adres, requires = IS_IN_DB(db

[web2py] Re: Rails vulnerability issue (are we protected?)

2011-02-12 Thread Massimo Di Pierro
I need to understand better Rails mechanism to understand what broke there. We do not use http headers to protect against CSRF, we use a one time uuid hidden in the forms.

[web2py] Re: Apache, Wsgi problem

2011-02-12 Thread Massimo Di Pierro
In any case, please check whether upgrading postgresql for you solves the problem. It is possible that mysqldb has/had the same issue. I am very skeptical this is a web2py issue. So we should try isolate the problem. Massimo On Feb 12, 12:12 am, Anthony wrote: > On Saturday, February 12, 2011 1

Re: [web2py] Re: New web2py logo? [just for fun]

2011-02-12 Thread Anthony
On Saturday, February 12, 2011 3:59:01 AM UTC-5, Marin Pranjic wrote: > > I set it as a wallpaper on my mobile, hope your daughter won't mind :) I'm sure that will make her very happy.

[web2py] Re: new support platform for web2py - make money

2011-02-12 Thread Francisco Costa
Hi Ovideo.. English please :) The coding is not finished yet On Feb 12, 11:53 am, Ovidio Marinho wrote: > Francisco voce pode disponibilizar o codigo para podermos ver as novidades > que vc colocou nesta app, tipo campos arredondados , icones e etc... > > 2011/2/11 Francisco Costa > > > > > > >

[web2py] Re: web2py not using global http_proxy

2011-02-12 Thread whowhywhat
Luis i did use the web2py auto config script to try out apache with WSGI. I too noticed that apache seems to hog memory (as compared to cherokee). I think Cherokee is a great web server as its documentation is really good. I will surely document how i set up Cherokee + WSGI + web2py and post it her

Re: [web2py] Re: Apache, Wsgi problem

2011-02-12 Thread Jonathan Lundell
On Feb 11, 2011, at 10:12 PM, Anthony wrote: > On Saturday, February 12, 2011 1:03:48 AM UTC-5, Jonathan Lundell wrote: > On Feb 10, 2011, at 6:19 AM, Massimo Di Pierro wrote: > > > > I offer $300 to whoever can identify within 3 weeks and without > > ambiguity the cause of this problem. The bount

Re: [web2py] Re: What is the convention for using web2py/site-packages for GAE?

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 3:12 AM, Carl wrote: > > I've avoided editing oauth10a_account.py by moving the directory > oauth2 to web2py (and keeping httplib2 inside oauth2. > > Not happy that I've put this in Web2py's root but I've avoided editing > the framework source and don't need to worry about ove

Re: [web2py] Re: Apache, Wsgi problem

2011-02-12 Thread Luis Díaz
Greetings. I could create a web2py.app.error.w2p and detail the specifications of the environment, I will try to put him eye to the issue. I am a rookie .. but I would try Díaz Luis TSU Analisis de Sistemas Universidad de Carabobo Facultad de Odontología

Re: [web2py] Re: Apache, Wsgi problem

2011-02-12 Thread ron_m
FWIW I am on Ubuntu 10.04 with all patches applied and could not reproduce the above problem when I tried. The version of python-psycopg2 from the standard repository is 2.0.13. Not an iron-clad guarantee because something else could be at play but at least a data point. I also drove the applic

[web2py] Re: recommended ERP system?

2011-02-12 Thread Carlos
Thanks very much for your recommendation !

[web2py] plugin_wiki Menu (active flag)

2011-02-12 Thread G. Clifford Williams
I'm playing around with plugin_wiki and can't seem to figure out how to set a menu item's "active flag" if it infact corresponds to the page that's being accessed. Any ideas TIA --Cliff

Re: [web2py] Re: Apache, Wsgi problem

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 8:33 AM, Luis Díaz wrote: > I could create a web2py.app.error.w2p > > and detail the specifications of the environment, > I will try to put him eye to the issue. > > > I am a rookie .. but I would try > Thanks, Luis.

Re: [web2py] Re: Apache, Wsgi problem

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 8:46 AM, ron_m wrote: > FWIW I am on Ubuntu 10.04 with all patches applied and could not reproduce > the above problem when I tried. The version of python-psycopg2 from the > standard repository is 2.0.13. Not an iron-clad guarantee because something > else could be at play b

[web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread Jonathan Lundell
Is there a trick to getting web2py to run locally with the GAE Launcher? (OS X FWIW) I'm playing with the stock stable release. It works fine when deployed, but not locally (immediate ticket, and I don't know how to find the ticket).

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread G. Clifford Williams
On Sat, Feb 12, 2011 at 09:20:02AM -0800, Jonathan Lundell spake: > Is there a trick to getting web2py to run locally with the GAE Launcher? (OS > X FWIW) > > I'm playing with the stock stable release. It works fine when deployed, but > not locally (immediate ticket, and I don't know how to find

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 9:29 AM, G. Clifford Williams wrote: > > On Sat, Feb 12, 2011 at 09:20:02AM -0800, Jonathan Lundell spake: >> Is there a trick to getting web2py to run locally with the GAE Launcher? (OS >> X FWIW) >> >> I'm playing with the stock stable release. It works fine when deployed,

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 9:29 AM, G. Clifford Williams wrote: > > On Sat, Feb 12, 2011 at 09:20:02AM -0800, Jonathan Lundell spake: >> Is there a trick to getting web2py to run locally with the GAE Launcher? (OS >> X FWIW) >> >> I'm playing with the stock stable release. It works fine when deployed,

Re: [web2py] Re: Apache, Wsgi problem

2011-02-12 Thread Luis Díaz
Translation error .. sorry. I could not .. might wonder if any of you? Díaz Luis TSU Analisis de Sistemas Universidad de Carabobo Facultad de Odontología 2011/2/12 Jonathan Lundell > On Feb 12, 2

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread G. Clifford Williams
1) can you paste your app.yaml/ 2) you should have some code like this in your main model file: if request.env.web2py_runtime_gae:# if running on Google App Engine db = DAL('gae') # connect to Google BigTable session.connect(request, resp

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 10:10 AM, G. Clifford Williams wrote: > > 1) can you paste your app.yaml/ application: jkl-web2py-welcome version: 5 api_version: 1 runtime: python derived_file_type: - python_precompiled handlers: - url: /_ah/stats.* script: $PYTHON_LIB/google/appengine/ext/appstats/ui.p

[web2py] Re: New web2py logo? [just for fun]

2011-02-12 Thread Massimo Di Pierro
We could use Martin's app for logo's submission and disable the voting part. On Feb 12, 9:42 am, Anthony wrote: > On Saturday, February 12, 2011 3:59:01 AM UTC-5, Marin Pranjic wrote: > > > I set it as a wallpaper on my mobile, hope your daughter won't mind :) > > I'm sure that will make her very

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread G. Clifford Williams
On Sat, Feb 12, 2011 at 10:28:52AM -0800, Jonathan Lundell spake: > On Feb 12, 2011, at 10:10 AM, G. Clifford Williams wrote: > > > > 1) can you paste your app.yaml/ > *snip* > > builtins: > - remote_api: on > - datastore_admin: on > > > > > 2) you should have some code like this in your main

[web2py] Re: form.accepts() with reference to other table

2011-02-12 Thread villas
Not sure, but the 3rd attrib of 'IS_IN_DB' doesn't look right? Maybe if you tried something like this, e.g. custom_auth_table.accountID.requires = IS_IN_DB(db,db.accounts.id,'% (name)s') On Feb 12, 1:28 pm, Oskari wrote: > Hi! > > I'm having trouble making an insert with form.accepts() > > Curr

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 10:37 AM, G. Clifford Williams wrote: > > If it's the stock app (unmodified in anyway) and you just added it to the GAE > then when you go to http://localhost:[port]/ you should see "Hello World" > > What version of web2py are you trying this with? I've just confirmed this >

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread G. Clifford Williams
On Sat, Feb 12, 2011 at 11:11:16AM -0800, Jonathan Lundell spake: > On Feb 12, 2011, at 10:37 AM, G. Clifford Williams wrote: > > > > If it's the stock app (unmodified in anyway) and you just added it to the > > GAE then when you go to http://localhost:[port]/ you should see "Hello > > World" >

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread feric...@gmail.com
Thanks, I only wanted to see if it just me having this problem. It is not so important to run it with dev_appserver.py. On Sun, Feb 13, 2011 at 12:06 AM, Jonathan Lundell wrote: > On Feb 12, 2011, at 1:45 PM, feric...@gmail.com wrote: > > I'm running the latest version of gae 1.4.2 and latest ver

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 1:41 PM, G. Clifford Williams wrote: > > Depends on the version of GAE you're running. Support for python 2.7 was > added very recently and may still be beta (not sure on this). http://code.google.com/appengine/docs/roadmap.html On it's way, apparently. Good to know.

[web2py] When is db.commit() unnecessary?

2011-02-12 Thread Dane
Hello, wondering if someone could clarify when it's unnecessary to call db.commit()? I've noticed it is needed when doing inserts from the console, but it seems to be implicit in controller functions? Just looking for some quick clarification on this. Thanks!

[web2py] Re: form.accepts() with reference to other table

2011-02-12 Thread Oskari
Thank you for your answer villas! I don't think that is the problem. I am able to make inserts through the appadmin-site, but somehow it fails with form.accepts(). I also tried what you suggested, but could not quite get it working. On Feb 12, 8:45 pm, villas wrote: > Not sure, but the 3rd attri

[web2py] Re: When is db.commit() unnecessary?

2011-02-12 Thread Massimo Di Pierro
every http request works like this: try: run all models run controller function run view commit all open trasactions except: rollback all open transactions So in models, controllers and views only you need to db.commit() if you want to commit despite possible uncaught exceptions la

[web2py] Web2py in combination with mod_python

2011-02-12 Thread Grezly
I'm trying now for a few days to get web2py working with mod_python (on a shared hosting). Because i have no other options of configuring apache or anything else. I did find a small tutorial on how to configure web2py with mod_python. (http://www.web2py.com/AlterEgo/default/show/231). So far i ha

Re: [web2py] Re: New web2py logo? [just for fun]

2011-02-12 Thread Albert Abril
Is thist the begginning of something like art.web2py.com ? :) On Sat, Feb 12, 2011 at 7:36 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > We could use Martin's app for logo's submission and disable the voting > part. > > On Feb 12, 9:42 am, Anthony wrote: > > On Saturday, February

[web2py] Re: Help me with the coding for making a table

2011-02-12 Thread DenesL
This seems to work: def absent_form(): header=['roll', 'name', 'absent'] data=[['1', ''], ['2', ''], ['3', ''], ['4', '']] head=THEAD(TR( *[TH(x) for x in header[:-1]] + \ [TH((DIV(header[-1]), \ DIV(LABEL("(", \ INPUT(_name="absentall",_type="checkbox",_val

[web2py] Re: new support platform for web2py - make money

2011-02-12 Thread DenesL
Interesting idea Francisco. Besides Q&A, there can also be a chipin process towards a request, where people would add to the pot until somebody agrees to do the work, the pot can be on consignment until delivered and still be open for more contributions. On Feb 11, 2:45 pm, Francisco Costa wrot

Re: [web2py] Re: new support platform for web2py - make money

2011-02-12 Thread Ovidio Marinho
sorry for a moment thought I was on the Brazilian list. But I can provide you the code? 2011/2/12 Francisco Costa > Hi Ovideo.. English please :) > The coding is not finished yet > > On Feb 12, 11:53 am, Ovidio Marinho wrote: > > Francisco voce pode disponibilizar o codigo para podermos ver as

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread rif
Shoud these steps work? - download google app engine - download web2py - run ./dev_appserver.py ../web2py/ - go to http://localhost:8080 Should it display the welcome app? I am on a fedora system with python 2.7 and it doesn't (it gives me an long stacktrace). Is it because of python version?

[web2py] GAE database namespace

2011-02-12 Thread Jonathan Lundell
I'm trying now to get the trunk running locally in the GAE local server, and again getting tickets, and have a question about the GAE db namespace handling. In welcome's db.py, we have db = DAL('gae://mynamespace') ...while example uses: db = DAL('gae') and admin's access.py uses:

[web2py] Re: GAE database namespace

2011-02-12 Thread Massimo Di Pierro
Good point. This is a bug. The tickets must be in the same namespace... Can you please open an issue on google code? On Feb 12, 3:38 pm, Jonathan Lundell wrote: > I'm trying now to get the trunk running locally in the GAE local server, and > again getting tickets, and have a question about the G

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread G. Clifford Williams
On Sat, Feb 12, 2011 at 01:33:00PM -0800, rif spake: > Shoud these steps work? > > - download google app engine > - download web2py > - run ./dev_appserver.py ../web2py/ > - go to http://localhost:8080 > > Should it display the welcome app? > I am on a fedora system with python 2.7 and it doesn't

[web2py] integer out of range

2011-02-12 Thread LightOfMooN
DataError: integer out of range How to make field bigint?

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread feric...@gmail.com
I'm running the latest version of gae 1.4.2 and latest version of web2py. It didn't work for me on mac so I am trying it on linux now. It works if I deploy it. Does it work out of the box for you? On Sat, Feb 12, 2011 at 11:41 PM, G. Clifford Williams < g...@notadiscussion.com> wrote: > On Sat,

[web2py] Re: integer out of range

2011-02-12 Thread Massimo Di Pierro
You can use SQLCustomField or (better) type='decimal' On Feb 12, 3:49 pm, LightOfMooN wrote: > DataError: integer out of range > > How to make field bigint?

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 1:45 PM, feric...@gmail.com wrote: > I'm running the latest version of gae 1.4.2 and latest version of web2py. It > didn't work for me on mac so I am trying it on linux now. It works if I > deploy it. > > Does it work out of the box for you? I've been fighting similar proble

Re: [web2py] Re: GAE database namespace

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 1:41 PM, Massimo Di Pierro wrote: > > Good point. This is a bug. The tickets must be in the same > namespace... Can you please open an issue on google code? Done. I'm listed as the owner, but unless the fix is simply to strip out the namespace (which worked for me), I'm not

[web2py] Re: When is db.commit() unnecessary?

2011-02-12 Thread Dane
Thanks, that is helpful. On Feb 12, 6:05 pm, Massimo Di Pierro wrote: > every http request works like this: > > try: >    run all models >    run controller function >    run view >    commit all open trasactions > except: >    rollback all open transactions > > So in models, controllers and view

[web2py] GAE local running oddity

2011-02-12 Thread Jonathan Lundell
(Current GoogleAppEngineLauncher on OS X) This is odd. I've been working on a patch for a little cleanup on web2py's handling of sys.path. When gluon.main is imported, it prefixes some paths to sys.path. These changes show up as expected in normal operation, and on GAE. But if we run inside GA

[web2py] Re: form.accepts() with reference to other table

2011-02-12 Thread villas
Try commenting out the line 'custom_auth_table.accountID.requires...' If that doesn't give you any progress, post all your auth model. I'm sure someone should be able to spot something obvious -- these bugs can be right under our noses sometimes :) -D On Feb 12, 11:03 pm, Oskari wrote: > Thank y

[web2py] Re: testing ldap communication?

2011-02-12 Thread tomt
When I tried to get ldap_auth working I used wireshark to look at the protocol exchange. I was able to see that I had the ou set incorrectly and when corrected the authentication worked perfectly. ... some changes I made to db.py . from gluon.contrib.login_methods.ldap_auth import

[web2py] Re: new support platform for web2py - make money

2011-02-12 Thread Plumo
I got this error when trying to login with facebook: An error occurred with tymr. Please try again later. Twitter login works. But then when I click on most links I get an error: The page you are looking doesn't exist. The error image with code showing through is neat!

Re: [web2py] web2py and GoogleAppEngineLauncher

2011-02-12 Thread howesc
on ubuntu (and also on osx) i run from the command line. my command looks like this: python2.5 /home/cfhowes/tools/gae/google_appengine/dev_appserver.py --datastore_path /home/cfhowes/clients/test/db/dev_appserver_sqlite.datastore --blobstore_path /home/cfhowes/clients/test/db/test.blobstore

[web2py] apache, wsgi, redirect http to https

2011-02-12 Thread Ed Greenberg
I'd like to redirect http to https so that users who don't specify https are forced to use it, especially for login/password transactions. Also it would be nice if the admin pages, which are blocked in http, would redirect, rather than fail. There were some postings about htaccess in the group, bu

Re: [web2py] Re: Application logging

2011-02-12 Thread pbreit
What is current recommendation for app logging?

Re: [web2py] apache, wsgi, redirect http to https

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 8:44 PM, Ed Greenberg wrote: > > I'd like to redirect http to https so that users who don't specify > https are forced to use it, especially for login/password > transactions. Also it would be nice if the admin pages, which are > blocked in http, would redirect, rather than fai

Re: [web2py] Re: Application logging

2011-02-12 Thread Jonathan Lundell
On Feb 12, 2011, at 9:44 PM, pbreit wrote: > What is current recommendation for app logging? You can start by copying logging.example.conf to logging.conf, and then editing it to suit your requirements. Either log with web2py.app (logger_app) or create a new logger specific to your own applicat