[web2py] Security question regarding session

2013-09-16 Thread weheh
How secure is session? I'm considering 2 methods for downloading a file: The first is via an A('Download', _href=URL('download', 'file', args=[file_id])). The second would be to have session.file_id = file_id and then have only A('Download', _href=URL('download', 'file')), which causes the app

[web2py] Re: _before_delete callback function to update the other table

2013-09-16 Thread Niphlod
please. we can't continue to feed you the exact bugfix for your own application. start with a small model, print what is passed back and adjust accordingly. Then extend to the more complex model and see what is the addition breaking. There are no limitations whatsoever Il giorno lunedì 16

[web2py] Re: _before_delete callback function to update the other table

2013-09-16 Thread 黄祥
i found the root cause, it related with auth.signature imho, the limitation for using before and after callback, it's not work when using auth.signature. e.g. 1 in models/db.py *not work* from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth = Auth(db) crud, service, plugins

[web2py] Menus do not work if i test my app with an android client browser

2013-09-16 Thread António Ramos
hello, i tested with chrome and default browser. My menus code do not work for example my code response.menu += [(A(I(_class='icon-search'),' Logins', _href=URL('listalertuser')), False, None, [])] adds another entry in the meny but if i press i get redirected to /myapp/default/Logins

[web2py] Re: Suggestion: Add IS_LOWER() to auth_user.email.requires list

2013-09-16 Thread villas
It is *possible* for email names to be case-sensitive, but this is not the practice of at least 99% of users because of the reasons stated on Stackoverflow. Therefore it does make sense that the default for web2py should be what the great majority would wish. I appreciate that changing this

Re: [web2py] Re: simple button in grid question

2013-09-16 Thread Javier Pepe
You need pass a list of dict links = [{'header':'', 'body': lambda row: A('',_title='Procesar',_class='icon-refresh',_href=URL(c='planilla', {'header':'', 'body': lambda row: A('',_title='Mail',_class='icon-envelope',_href='index/pedircontadores/% {'header':'', 'body': lambda

Re: [web2py] Re: simple button in grid question

2013-09-16 Thread Adi
actually, you can also define a table that links apply to. this way you won't get the error, when applying functionality to a wrong table... links=dict(purchase_order=[ lambda row:(_get_order_details(row)), lambda

[web2py] Re: Security question regarding session

2013-09-16 Thread Massimo Di Pierro
There are two questions in your email. The first is about the security of data in session. By default web2py sessions are stored in files. The data in those files is only accessible to the application, not to the user. The user is linked to the session file via a cookie. If somebody were to

[web2py] one more web2py e-commerce app :)

2013-09-16 Thread Adi
Just completed a core system at nammuhats.com. Can't praise enough how easy, (and rock solid) is to build systems with web2py :) Once again, thanks Massimo and all contributors for the best framework! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Jessica McKellar talking about windows and the future of Python

2013-09-16 Thread Rufus
Good presentation. But I misread Bruno's post originally and thought that Jessica mentioned web2py, and watched the whole presentation and didn't see any web2py specific comments. (because it was actually Bruno's comment) I came back here to ask for the comment timestamp in the video, and

[web2py] Re: one more web2py e-commerce app :)

2013-09-16 Thread Massimo Di Pierro
:-) On Monday, 16 September 2013 09:30:19 UTC-5, Adi wrote: Just completed a core system at nammuhats.com. Can't praise enough how easy, (and rock solid) is to build systems with web2py :) Once again, thanks Massimo and all contributors for the best framework! -- Resources: -

[web2py] beginner questions about REST

2013-09-16 Thread Dimid Korovev
Hi All, I heard about web2py following this question: http://stackoverflow.com/questions/5899483/generate-rest-based-service-from-database-schema My goal is to create a RESTful web service from a DB, such that when the DB is modified, no code changes would be needed. Questions: 1. When

[web2py] how to validate field that depend on each other in the model rather than form

2013-09-16 Thread Hadi Sunyoto
from: http://www.web2py.com/books/default/chapter/29/07/forms-and-validators#Database-validators Validators with dependencies Usually validators are set once for all in models. Occasionally, you need to validate a field and the validator depends on the value of another field. This can be done

[web2py] LOAD component does not load in the target division

2013-09-16 Thread bobiguous
Hey all, I'm trying to use LOAD to load a webpage in the main division div class=span9 id=mainsection {{block center}} {{include}} {{end}} /div After I opened my website (index.html), I clicked the link rendered by my layout file

Re: [web2py] Re: simple button in grid question

2013-09-16 Thread Alex Glaros
Hi Adi and Javier, I can't get the syntax to work. Can you please baby me though the phrasing and just copy the first button twice in this working example so that two identical buttons appear? def view_suggestions(): db.Idea.id.represent = lambda id, r: A('Post shared services idea',

[web2py] Re: Restful API with HTTPS and authentication

2013-09-16 Thread Larry Weinberg
I'm doing exactly that and not running into troubles. Could it be something about your SSL certificate? If it's not a well trusted certificate sometimes you need to install it on the client side. Does it match the domain name you are calling? I test my server with the following python code and

[web2py] Off Topic but worth a post.

2013-09-16 Thread Jason (spot) Brower
I wanted to wish the Marin the best of luck in his brand new company. I found him by putting a bounty out for some work to fix some more challenging aspects of the InterestID too. He did a fantastic job. So well, we continued to use him. Eventually, we actually brought him to Oulu Finland where

[web2py] LDAP-auth debugging

2013-09-16 Thread D.
Dear community, I'm trying to user ldap to authenticate against an MS AD as described in the book but I keep getting Invalid login. I can connect and verify my login through the normal pyhton-console using simple_bind_s and whoami_s just fine - not using web2py however :-( Apparently there's

Re: [web2py] DAL reference but only a subset

2013-09-16 Thread António Ramos
OOPS , not as i wanted. It works to create records but to edit records it does not Editing records using admin, there is not request.vars.emp and my list field is empty. Any ideas? 2013/9/11 António Ramos ramstei...@gmail.com I have the company id in my request.vars.emp variable So its

Re: [web2py] Re: Janrain/RPX widget migration

2013-09-16 Thread molhokwai
Hi Massimo, Since the upgrade will most likely fix the issue I'm having (which can't be fixed for the legacy widget): can you give me pointers so I can implement it locally and if all is well, send the code to you? Thanks... On Sat, Aug 31, 2013 at 9:14 AM, molhokwai molhok...@gmail.com

Re: [web2py] LDAP-auth debugging

2013-09-16 Thread Richard Vézina
Would you post your define ldap_auth method, you may miss some parameters, for instance you need to pass db, but this is not stated in the book I think, I found this info on mailing list. Richard On Mon, Sep 16, 2013 at 1:06 PM, D. s54012...@gmail.com wrote: Dear community, I'm trying to

[web2py] RFC: imapadapter api change

2013-09-16 Thread Alan Etkin
I've been working in some modifications on the experimental imap dal adapter after an issue with field types https://groups.google.com/d/msg/web2py-developers/Jux_FikBQM4/r_3sDQABmGkJ The next dal.py patch will have some relevant changes to the IMAP dal interface so I thought it would be

[web2py] Re: Menus do not work if i test my app with an android client browser

2013-09-16 Thread Paolo Valleri
I can't reproduce it, I've just tested it and it works as expected. On Monday, September 16, 2013 1:36:11 PM UTC+2, Ramos wrote: hello, i tested with chrome and default browser. My menus code do not work for example my code response.menu += [(A(I(_class='icon-search'),' Logins',

Re: [web2py] Re: simple button in grid question

2013-09-16 Thread Alex Glaros
looks like it's getting closer, but receive this error: type 'exceptions.TypeError' 'str' object is not callable On Monday, September 16, 2013 8:46:48 AM UTC-7, Adi wrote: if you replace the grid part, does this work: grid = SQLFORM.grid(db.Idea,editable=is_owner,

Re: [web2py] Re: Menus do not work if i test my app with an android client browser

2013-09-16 Thread António Ramos
Did you tested in android? 2013/9/16 Paolo Valleri paolo.vall...@gmail.com I can't reproduce it, I've just tested it and it works as expected. On Monday, September 16, 2013 1:36:11 PM UTC+2, Ramos wrote: hello, i tested with chrome and default browser. My menus code do not work for

[web2py] Restful API with HTTPS and authentication

2013-09-16 Thread Fredrik
Hi, I'm trying to set up a RESTful API in web2py and have run into some troubles with authentication. The server running the API is setup with WSGI, forced HTTPS and the API controller actions have the @auth.requires_login() decorators. The problem is that I'm not able to make requests to the

Re: [web2py] Re: Menus do not work if i test my app with an android client browser

2013-09-16 Thread Federico Ferraro
Test in android 4.1 and work .. 2013/9/16 António Ramos ramstei...@gmail.com Did you tested in android? 2013/9/16 Paolo Valleri paolo.vall...@gmail.com I can't reproduce it, I've just tested it and it works as expected. On Monday, September 16, 2013 1:36:11 PM UTC+2, Ramos wrote:

[web2py] write_html and fonts

2013-09-16 Thread Warren Block
An HTML table listing works great, done as shown here: http://code.google.com/p/pyfpdf/wiki/Web2Py Generating the PDF version also works, and the font face and size are controllable for headers and footers. How can the font attributes be set or overridden for the body of the listing?

Re: [web2py] LDAP-auth debugging

2013-09-16 Thread Camille Roussel
Also please note that in most AD environment you must pass a baseDN and login password for any logins to work. This can be a service account with simple read only permissions to the domain you are authenticating against. On Monday, September 16, 2013 1:44:27 PM UTC-4, Richard wrote: Would you

[web2py] Re: Active/Ldap directory and Group restrictions access

2013-09-16 Thread Camille Roussel
The way I have approached this is to enable web2py's manage_groups. With this enables and configured any AD user who logs in will have thier AD groups added to auth_groups. with corresponding permissions. From there you can use the built in auth decorators to control access based on group

[web2py] Re: Web2Py compute fields not working on update

2013-09-16 Thread Tim Richardson
The importance of definition order is in the book -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed

[web2py] JQuery Issue in Web2py: JQuery programs dont seem to work

2013-09-16 Thread Horace Cunningham
I am having this strange issue in web2py where Jquery applications such as the datepicker does not work. The Jquery file is present but nothing works. I have tried replacing the Jquery file, commenting it out and adding another from the Jquery CDN, but nothing works. Any suggestions? --

[web2py] New web2py slice: jqGrid in edit mode

2013-09-16 Thread Tim Richardson
I added a slice with some rough notes in using jqGrid including edit mode. http://www.web2pyslices.com/slice/show/1714/jqgrid-including-updating-data -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: one more web2py e-commerce app :)

2013-09-16 Thread samuel bonill
+1 El lunes, 16 de septiembre de 2013 09:30:19 UTC-5, Adi escribió: Just completed a core system at nammuhats.com. Can't praise enough how easy, (and rock solid) is to build systems with web2py :) Once again, thanks Massimo and all contributors for the best framework! -- Resources: -

[web2py] Re: JQuery Issue in Web2py: JQuery programs dont seem to work

2013-09-16 Thread Tim Richardson
On Tuesday, 17 September 2013 07:25:47 UTC+10, Horace Cunningham wrote: I am having this strange issue in web2py where Jquery applications such as the datepicker does not work. The Jquery file is present but nothing works. I have tried replacing the Jquery file, commenting it out and

[web2py] Re: Example of web2py integration with an AJAX grid (preferably jquery based) which updates backend db ?

2013-09-16 Thread Tim Richardson
I persevered with jqGrid and added a new slice on web2py slices, which describes how to get a nice looking jqGrid working for editing records. http://www.web2pyslices.com/slice/show/1714/jqgrid-including-updating-data -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: LDAP-auth debugging

2013-09-16 Thread D.
Here are my auth-settings auth = Auth(db, secure=True) auth.define_tables(username=True) auth.settings.create_user_groups=False auth.settings.actions_disabled = ['register','change_password','request_reset_password','retrieve_username','profile'] auth.settings.create_user_groups = False