[web2py] time data type and sql forms

2010-04-19 Thread dave
) Also the date and datetime helpers are working, but pop up behind the form instead of on top of the form. Thanks, Dave -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] IS_INT_IN_RANGE

2010-04-22 Thread dave
When using validator IS_INT_IN_RANGE(1900,2100) and a value of 2100 is entered an error message of 'enter an integer between 1900 and 2099' is displayed. A value of 1900 is accepted. Seams like the range of the validator should be inclusive for BOTH ends. I have not check

[web2py] is there or hot to create an 'IS_ALPHA' validator

2010-04-22 Thread dave
I'm interested in only there letters 'a..z' and 'A..z'. I'm sure its easy with regx, but I'm looking to see how such would be defined it it was native to web2y. I'm a database/batch guy, but this framework makes it look like I know what I'm doing with a GUI !!! -- Subscription settings: http:/

[web2py] 1 dal.select(sql),() statement for different set of columns being retrieved.

2010-04-25 Thread dave
) statements, I want to build the set of columns to be retrieved first and then have just 1 statement like rows=db.select(sql)(???). But what is the ??? syntax? Thanks, Dave -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Expando and Polymodel on GAE?

2010-09-02 Thread Dave
I'm new to Web2py and trying to get a sense for its GAE support, beyond the basic "RDBMS-like" functions (which Web2py seems to support very well!) Expando models and PolyModel: Is there any way to use either of these with the DAL currently? Are there plans to, if not? PolyModel especially seem

[web2py] Re: Expando and Polymodel on GAE?

2010-09-04 Thread Dave
add support for expando classes, it might be a bit awkward. ~Dave On Sep 4, 10:34 am, mdipierro wrote: > Can you help testing polymodel? In trunk: > > db=DAL('gae') > db.define_table('contact',Field('address'), polymodel=True) > db.define_table('pers

[web2py] Re: Expando and Polymodel on GAE?

2010-09-09 Thread Dave
Using the test code you provided before, I now get this error: --- Traceback (most recent call last): File "C:\Users\Dave\Documents\Python\web2py\gluon\restricted.py", line 188, in restricted exec ccode in environment

[web2py] Re: Expando and Polymodel on GAE?

2010-09-10 Thread Dave
base table. Here's the trace: Traceback (most recent call last): File "C:\Users\Dave\Documents\Python\web2py\gluon\restricted.py", line 188, in restricted exec ccode in environment File "C:\Users\Dave\Documents\Python\web2py\applications\welcome/ models/db.py", line

[web2py] Re: Expando and Polymodel on GAE?

2010-09-10 Thread Dave
erson" >address = people[0].address Works, and returns the address of the first person. >name = people[0].first_name Crashes, with the following trace: Traceback (most recent call last): File "C:\Users\Dave\Documents\Python\web2py\gluon\restricted.py", line 188, in restricte

[web2py] Re: Expando and Polymodel on GAE?

2010-09-13 Thread Dave
Sounds great! I'm on vacation this week, but I look forward to trying it out next week. ~Dave On Sep 12, 10:56 pm, mdipierro wrote: > This is now fixed. Here is a final example of usage: > > db=DAL('gae') > db.define_table('contact',Field('address&#x

[web2py] Re: Expando and Polymodel on GAE?

2010-09-22 Thread Dave
I gave it a quick test, and it seems to work for all the simple tests I tried this time. Great work! I'll see how it holds up once I start using it for more than simple tests. Thanks! ~Dave

[web2py:18689] Two links in a list - Invalid Syntax

2009-03-27 Thread Dave
27;])) )}} {{pass}} Which should simply do this: projectname xml But I get errors /projects/index.html", line 91 A('xml', _href=URL(r=request,f='show',args=[project.id,'xml'])) ^ SyntaxError: invalid syntax Thanks Dave --~--~-~

[web2py:18692] Re: Two links in a list - Invalid Syntax

2009-03-27 Thread Dave
Thanks - this works: {{=LI( A(project.name,_href=URL(r=request,f='show',args= [project.id])), XML(' '), A('(xml)', _href=URL (r=request,f='show',args=[project.id,'xml'])) ) }} -Dave On Mar 27, 7:38 pm, mdipierro wrote: > LI(A(...),A(...))

[web2py:20146] flex3, amfrpc and gae

2009-04-20 Thread Dave
. Could someone verify? After running the flex app and Create Project form will display with 5 fields. Just click submit to verify that it contacts the service and calls function f(a,b,c). It should just concatenate the hardcoded values and return onetwothree Thanks! -Dave My controller function:

[web2py:20152] Re: flex3, amfrpc and gae

2009-04-20 Thread Dave
'POST', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0', 'TZ': 'UTC', &#x

[web2py:20395] how to call service_run function with date string

2009-04-23 Thread Dave
ow can I pass a date value such as: /myApp/foo/call/run/create/fred/2009-04-23+00%3A00%3A00/ @service.run def foo(name,birthdate): parseDate(birthdate) insert(name, birthdate) return ok Thanks! Dave --~--~-~--~~~---~--~~ You received this message becaus

[web2py:20402] Re: how to call service_run function with date string

2009-04-23 Thread Dave
llows. Dave On Apr 23, 5:14 pm, Dave wrote: > Hello, > > I'm using service.run to call a function from a remote client. I'm > able to call the function with strings and integers, but I would like > to pass a date string. I've tried uuencoding the datestring, but th

[web2py:20694] TypeError: run() takes no arguments (1 given)

2009-04-27 Thread Dave
rs))'%request.args[0]) return 'Not Authorized' @run def create(name): print name I appreciate any feedback on this typeerror. Also, can I assume this should work the same way service decorators do? Is there any advantage? Thanks, Dave --~--~-~--~~~---

[web2py:20850] Re: help with google openid

2009-04-29 Thread Dave
Just reading through the docs ... here's where I found the registration link: http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html Dave On Apr 29, 1:51 pm, mdipierro wrote: > I am trying to allow Auth to access google open id. This is a test. > > 1) regist

[web2py] "Unable to create application" on WebFaction

2010-12-11 Thread Dave
I created a web2py app on WebFaction using the custom install script posted on the WebFaction site. I then linked it to two subdomains: Name: web2py_admin Https: yes Subdomains: admin.web2py.dlawrence.webfactional.com Site apps: web2py Name: web2py_public Https: no Subdomains: web2py.dlawrence.w

[web2py] Re: "Unable to create application" on WebFaction

2010-12-12 Thread Dave
but could not: "Internal error". Ideas? And why is this occurring at all? This seems to be a larger problem than just not being able to use the create app buttons in the web interface. Dave On Dec 12, 3:45 am, annet wrote: > Hi Dave, > > To workaround this problem I always cr

[web2py] Re: "Unable to create application" on WebFaction

2010-12-12 Thread Dave
app copied from the welcome app. So thank you Annet. I do not understand the reason for the problem, but at least there is a workaround. Dave

[web2py] web2py.com offline

2012-07-20 Thread Dave
can't get to the website today. --

Re: [web2py] web2py.com offline

2012-07-20 Thread Dave
er that we will create mirrors. > > massimo > > On Friday, 20 July 2012 13:40:53 UTC-5, rochacbruno wrote: >> >> >> Well, I think web2py.com and web2pyslices.com needs a better hosting >> solution. >> >> >> On Fri, Jul 20, 2012 at 2:22 PM, Dave wrote: >> >>> can't get to the website today. >>> >>> -- >>> >>> >>> >>> >> >> --

[web2py] SQLFORM.grid pagination refresh

2012-07-22 Thread dave
Is there a way for SQLFRORM.grid pagination to not refresh the whole page without the use of LOAD function? --

[web2py] Re: SQLFORM.grid pagination refresh

2012-07-22 Thread dave
Wow, that was fast, first time asker here, I have an SQLFORM.grid in a view, when I click the pagination links at the bottom of the page 1, 2, 3 etc, the whole page refreshes. To avoid this problem, I created a component and put it in a view {{=LOAD('default','ajaxTable2.load',ajax=True, target

[web2py] Re: SQLFORM.grid pagination refresh

2012-07-23 Thread dave
the problem is whatever I do, the clicking the pagination triggers a whole page refresh, the links are not trapped, This describes the problem Trapped Ajax links A Ajax links Normally a link is not trapped, and by clicking in a link inside a component, the entire linked page is loaded. Someti

[web2py] Re: SQLFORM.grid pagination refresh

2012-07-24 Thread dave
The problem is when I filter using input boxes from outside, I need to use the ajax function from the view, like , and I do replace the load function which is inside the div grid {{=LOAD('default','ajaxTable2.load',ajax=True, target='grid', content='loading...')}} when the first page lo

[web2py] Re: SQLFORM.grid pagination refresh

2012-07-25 Thread dave
ok so this is what I have for the view $('#input4').keyup(function(){ input_value = $("#input4").val(); web2py_component('{{=URL("default", "ajaxTable3.load")}}' + '?count=' + input_value, 'grid'); }); and this is the controller function def ajaxTable3(): query = (db.appli

Re: [web2py] Re: SQLFORM.grid pagination refresh

2012-07-25 Thread dave
I actually dont want 60, I just gave that as an example --

[web2py] Re: SQLFORM.grid pagination refresh

2012-07-25 Thread dave
Thank you very much this solved the problem, very nice people around, I guess im sticking to web2yp for my framework of choice --

[web2py] dynamic queries

2012-07-28 Thread dave
I have something like qset=db() if arg1 == "xyz": qset=qset(db.abc.id > 0) if arg2 == "abc": qset=qset(db.abc.age > 5) returned = qset.select() return SQLFORM.grid(returned) qset.select returns all the rows with all the columns I think, I know that SQLFORM.grid accepts a t

[web2py] Re: dynamic queries

2012-07-29 Thread dave
you can insert this query into SQLFORM.grid(query) On Saturday, July 28, 2012 11:07:33 PM UTC-7, dave wrote: > > I have something like > qset=db() > if arg1 == "xyz": qset=qset(db.abc.id > 0) > if arg2 == "abc": qset=qset(db.abc

[web2py] web2pyslices.com down

2012-07-31 Thread Dave
it was down yesterday too --

Re: [web2py] Re: web2py 2.0 almost done

2012-08-14 Thread dave
this is one of the main changes I was looking forward for 2.0, I would rather wait until the integration is complete On Thursday, August 9, 2012 9:43:28 AM UTC-7, AngeloC wrote: > > Hi Massimo, > > I think I cannot complete the bootstrap/web2py css merging in time for > 2.0, it's really a lot of

[web2py] routes in windows service not working??

2012-08-19 Thread Dave
I generally am not the person to be monkeying around with things on Windows. That said, one of my customers is about to take over management and ownership of a web2py application I have written for them. I seem to be having an issue testing the deployment for them. I created an options.py fil

[web2py] Re: connect to paypal

2012-08-29 Thread Dave
There are several ways to integrate with paypal. What are you looking to do? The simplest is to use a "buy it" button. The most complicated would be rolling a complete shopping cart with paypal checkout. On Wednesday, August 29, 2012 11:54:08 PM UTC-4, Picheth wrote: > > I want to connect

[web2py] Re: A new and easier way to test your apps

2012-08-29 Thread Dave
Very cool! On Wednesday, August 29, 2012 6:49:14 PM UTC-4, Massimo Di Pierro wrote: > > I think you are going to like this: > https://github.com/web2py/web2py/blob/master/gluon/contrib/webclient.py > > start web2py on port 8000. Then in a normal python shell: > > from gluon.contrib.webclient i

[web2py] Example for supporting multiple oauth?

2012-09-09 Thread Dave
I have a project that I need to support authentication from multiple oauth providers. In addition I want to allow the user to link their account to multiples. Initially I need to support: LinkedIn Facebook Twitter In the future we will likely add google and perhaps others (pinterest, etc). I

Re: [web2py] Example for supporting multiple oauth?

2012-09-09 Thread Dave
e devs :) >> >> [I'm not a dev, trying to increase popularity of web2py through >> advocating at usergroups + open-sourcing projects built with it] >> >> On Mon, Sep 10, 2012 at 3:29 AM, Dave wrote: >> > I have a project that I need to support authen

[web2py] custom auth clarification

2012-09-11 Thread Dave
I am working on my own external authentication. >From reading the source of gluon.tools and gluon.contrib.login_methods it appears I need a class that implements the following methods to do my own authentication: get_user() login_form() Then in my db.py just do an auth.settings.login_form = [m

[web2py] Re: Send Errors To Email

2012-09-27 Thread Dave
I have written a script that will load the error pickle file and email me parts of it. The thing I had to be careful about was compliance. One of my apps is an ecommerce app. If there is an error during the checkout process, there is a chance that sensitive data may be in the error file. In

[web2py] Remember me with custom or alternate login?

2012-09-27 Thread Dave
Is there an easy way to allow "remember me" functionality with anything but the standard Auth()? I am nearly finished writing my own open authentication class for a project I am working on. I dont see this functionality in the baked Janrain / RPX class either though. Im trying to figure out

[web2py] Re: Remember me with custom or alternate login?

2012-09-27 Thread Dave
ion > session.auth.remember = True > > So, if you add a "remember me" checkbox to the login form, just check > whether it is selected, and if so, run the above two lines. > > Anthony > > On Friday, September 28, 2012 12:10:10 AM UTC-4, Dave wrote: >> >> Is th

[web2py] Re: Remember me with custom or alternate login?

2012-09-27 Thread Dave
pon login. Or just > let the user set the option in their profile (perhaps defaulting to being > enabled). > > Anthony > > On Friday, September 28, 2012 12:51:37 AM UTC-4, Dave wrote: >> >> Hm. >> >> In the case of RPX, the "login form" is actual

[web2py] Re: Send Errors To Email

2012-09-28 Thread Dave
and disowned it from the parent shell PID. HTH On Friday, September 28, 2012 10:08:57 AM UTC-4, Hassan Alnatour wrote: > > Dear Dave , > > Where did you add this file , and how do you use it ? > > Best Regards, > Hassan Alnatour > > On Friday, September 28, 2012 6:38:

[web2py] Re: Remember me with custom or alternate login?

2012-09-28 Thread Dave
y, September 28, 2012 12:51:37 AM UTC-4, Dave wrote: >> >> Hm. >> >> In the case of RPX, the "login form" is actually an iframe. It doesn't >> get posted to the web2py framework except through a callback URL. >> >> My service is similar t

[web2py] Re: Remember me with custom or alternate login?

2012-09-28 Thread Dave
ssion includes auth.expiration > and auth.remember. If auth.expiration hasn't expired, the user is > considered logged in. The login form/method/function shouldn't be involved > at this point. > > Anthony > > On Friday, September 28, 2012 6:59:11 PM UTC-4, Dave wrote: >

[web2py] Re: Send Errors To Email

2012-09-28 Thread Dave
using os.popen leaves you potentially vulnerable to attack. I would use a mail API that way you reduce the possibility of shell injection. If someone is crafty enough they may be able to break out of your mail notification and execute arbitrary commands as your web user. Neat approach, I woul

[web2py] Load data from sqlite file?

2012-05-10 Thread Dave
it possible to just use the uploaded file as a new dal, then transfer the data to the main dal, all within a function? Thanks in advance, Dave

[web2py] Re: Load data from sqlite file?

2012-05-17 Thread Dave
hanks, Dave On Friday, 11 May 2012 16:22:57 UTC-6, Brian M wrote: > > So the user is going to be uploading a .sqlite file which you want to > connect to with the DAL and import? > > You should be able to create a new DAL connection within a controller > function or probably bett

[web2py] Re: Web Development Introduction Based On Web2py

2012-07-05 Thread dave
the site is down Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may ha

[web2py] Issue getting Janrain working

2012-07-09 Thread Dave
I am running latest trunk. Added the private/janrain.key file as prescribed with the domain:key When navigating to the /default/user/login page I get a 500 server error. It appears that the reset_password button is trying to be rendered even though using janrain should disable it. I tried man

[web2py] Re: Issue getting Janrain working

2012-07-09 Thread Dave
{{if not 'request_reset_password' in auth.settings.actions_disabled:}} +{{form.add_button(T('Lost Password'),URL(args='request_reset_password'))}} +{{pass}} {{pass}} {{=form}} On Tuesday, July 10, 2012 12:27:39 AM UTC-4, Da

[web2py] Re: Has anyone done a detailed security analysis or attempted a methodical attack on web2py?

2012-07-10 Thread Dave
take on a more "formal" assessment if there is consensus Dave On Monday, July 9, 2012 11:48:39 AM UTC-4, scausten wrote: > > One of the awesome things about web2py is of course the built-in and > well-documented resilience against a range of attack methods, but I was >

[web2py] Authorization w/ Janrain

2012-07-10 Thread Dave
I spent some time searching for this and have not come up with much. Has anybody implemented or tried to implement user authorization (read: limit users that may sign in) with Janrain? I think there are two possibilities here... The first possibility falls under standard authorization where yo

[web2py] Re: Authorization w/ Janrain

2012-07-10 Thread Dave
done but how it is done depends on the details of your policy. > > > > > On Tuesday, 10 July 2012 11:40:08 UTC-5, Dave wrote: >> >> I spent some time searching for this and have not come up with much. >> >> Has anybody implemented or tried to implement us

[web2py] Re: Broken admin in trunk?

2012-07-10 Thread Dave
the /admin app only works either over https or via 127.0.0.1 / ::1 You can hack the app to change that, but it is default behavior On Tuesday, July 10, 2012 5:04:43 PM UTC-4, Michael Toomim wrote: > > I just upgraded to the trunk. I'm trying to log into the admin, but > there's no password entry

[web2py] Re: Authorization w/ Janrain

2012-07-11 Thread Dave
)] > if auth.user and not auth.user.authorized and not URL()==url1: > redirect(url1) > > > > > > On Tuesday, 10 July 2012 13:15:44 UTC-5, Dave wrote: >> >> Agreed. It is not a Janrain specific issue, I am sure the same applies >> for other non-local authentica

[web2py] {less} ify the welcome styles?

2012-09-30 Thread Dave
Massimo et al, I wonder if it would be a good idea to look at building .less styles for the welcome scaffolding. That could allow for easier customization of the app. While I love Twitter bootstrap, it's quite a pain in the rear to edit the minified CSS. Also, its beta, but I am doing some t

[web2py] symmetric key encryption using PyCrypto

2012-10-01 Thread Dave
I wanted to post to the group that I have created a utility class for performing encryption and decryption using the PyCrypto library. It really can't be baked in to web2py due to 1, export restrictions, but also the underlying PyCrypto library is not pure python. There is some optimized C in

[web2py] Re: {less} ify the welcome styles?

2012-10-02 Thread Dave
abstraction for new users (new to python/html/css already). > > On Sunday, 30 September 2012 13:42:42 UTC-5, Dave wrote: >> >> Massimo et al, >> >> I wonder if it would be a good idea to look at building .less styles for >> the welcome scaffolding. That cou

[web2py] Re: symmetric key encryption using PyCrypto

2012-10-02 Thread Dave
. > > Massimo > > On Monday, 1 October 2012 17:15:51 UTC-5, Dave wrote: >> >> I wanted to post to the group that I have created a utility class for >> performing encryption and decryption using the PyCrypto library. It really >> can't be baked in to web2py

Re: [web2py] Re: symmetric key encryption using PyCrypto

2012-10-02 Thread Dave
AM UTC-4, Jonathan Lundell wrote: > > On 2 Oct 2012, at 8:51 PM, Dave > wrote: > > Sorry... there was supposed to be a 2 as well... i was making a numbered > list. These days my brain is not functioning as well as I would like given > my health. > > My utility clas

[web2py] Cache recommendations

2012-10-06 Thread Dave
I have just started caching more expensive sections of code in my app. I was wondering if there are any best practice recommendations in this area. Is it recommended to cache things like db or auth? I had some weirdness when I attempted either. Occasionally getting errors like db has no memb

[web2py] how to display the value of a reference field, instead of the id in sqlform.grid

2012-10-07 Thread dave
grid = SQLFORM.grid(query, args=[request.args(0)], fields=[db.auth_user.test0, db.auth_user.test1, db.auth_user.test2, I have defined this in my controller, the value of test1 is a referen

[web2py] IS_IN_DB and IS_IN_SET dont work insied INPUT

2012-10-07 Thread dave
I have the following code def test(): # gets fired for first page load, it loads the filter applicants form on the left side form = SQLFORM(db.auth_user, request.args(0), buttons=[], separator = ' ', formstyle = 'divs', deletable=True, fields = ['test1', 'test2', 'test3'],upload =URL(r=req

[web2py] Re: how to display the value of a reference field, instead of the id in sqlform.grid

2012-10-07 Thread dave
UTC-7, Anthony wrote: > > How is your "test1" field defined? > > On Sunday, October 7, 2012 3:26:31 AM UTC-4, dave wrote: >> >> >> grid = SQLFORM.grid(query, args=[request.args(0)], >>

[web2py] Re: IS_IN_DB and IS_IN_SET dont work inside INPUT

2012-10-07 Thread dave
it__ method, which is called before you > add the additional field. If you want a dropdown, you'll have to insert a > SELECT() element instead of an INPUT() element. > > Anthony > > On Sunday, October 7, 2012 5:44:48 AM UTC-4, dave wrote: >> >> I have the fo

[web2py] Re: IS_IN_DB and IS_IN_SET dont work inside INPUT

2012-10-07 Thread dave
> automatically web2py will turn that field into a SELECT with the correct > options. > > On Sunday, October 7, 2012 9:01:48 PM UTC+2, dave wrote: >> >> ok I got it to display using select() >> >> SELECT(_type='text', _name='test0', requir

[web2py] Re: IS_IN_DB and IS_IN_SET dont work inside INPUT

2012-10-07 Thread dave
) -- the SELECT() > doesn't know it should get the options from the IS_IN_DB validator. > > Anthony > > On Sunday, October 7, 2012 3:01:48 PM UTC-4, dave wrote: >> >> ok I got it to display using select() >> >> SELECT(_type='text', _name='te

[web2py] Re: how to display the value of a reference field, instead of the id in sqlform.grid

2012-10-07 Thread dave
e displaying the "name" value from the "ranking" > table. However, if you explicitly define your own "requires" attribute, > then you don't get the automatic "represent" attribute, and you have to > explicitly define that as well (I thin

[web2py] Re: IS_IN_DB and IS_IN_SET dont work inside INPUT

2012-10-07 Thread dave
items not wrapped in OPTION, it will automatically do so. > > Anthony > > On Sunday, October 7, 2012 9:42:06 PM UTC-4, dave wrote: >> >> so how do I go about doing that, can you show me the syntax please. I >> have this so far SELECT(_type='text', _name

[web2py] OAuth2/Facebook auth alongside standard authentication

2012-11-12 Thread Dave
d inside the FaceBookAccount class? or am I going down the wrong path with that approach? Is there an easier way? Thanks Dave --

[web2py] Re: wxpython app using web2py username and password

2012-11-17 Thread Dave
Jim, If your windows users are logging in via active directory you could just make your web2py app authenticate through ldap to AD. That would ensure AD is your source of truth fo user authentication and management. Just a thought. On Thursday, November 15, 2012 12:32:03 PM UTC-5, Jim S wrote

[web2py] Looking for occasional per-project based help

2012-11-20 Thread Dave
uilding up my rolodex for upcoming projects. Thanks in advance. Dave --

[web2py] posts being deleted again?

2012-11-20 Thread Dave
I posted three replies to this thread: https://groups.google.com/forum/?fromgroups=#!topic/web2py/Z7ZoN6Bn6pU And all three have shown up as "deleted". I know Anthony and Massimo have said in the past they don't delete posts. Have other people seen this phantom post stealing ghost in Google G

[web2py] Re: Encrypting password verify

2012-11-21 Thread Dave
I posted a reply with sample code, but it has been deleted. PM me and I can help. Not sure who deleted the message or why. On Sunday, November 18, 2012 4:58:51 PM UTC-5, Daniele wrote: > > I have a field in my register form for verifying the password, as such: > > Field

[web2py] Re: Encrypting password verify

2012-11-21 Thread Dave
It is quite annoying that someone keeps deleting my posts. Whomever you are contact me and kindly let me know why you are doing it. On Sunday, November 18, 2012 4:58:51 PM UTC-5, Daniele wrote: > > I have a field in my register form for verifying the password, as such: > > Field

[web2py] Re: Encrypting password verify

2012-11-21 Thread Dave
Since the CRYPT validator generates a unique salt for each password hash, they will never be equal. If you are going to create your own custom register form, you will need to implement your own register controller logic to validate the password & confirm password match in clear text, then hash

[web2py] Re: Login logout links drop down not working on mobile

2012-12-12 Thread Dave
I am having the same issue. It must be related to touch vs. click recognition, because everything works fine if you're not using a mobile device. On Monday, 8 October 2012 01:03:52 UTC-6, lyn2py wrote: > > Per the subject line, I can click to drop down the links but I can't click > on them.

Re: [web2py] Re: Cannot login via web2py mobile admin (V 2.0.6)

2012-12-12 Thread Dave
I also cannot login into a normal app using a mobile (touchscreen) device when using the navbar. I'm using version 2.2.1. Touching any option just closes the login dropdown. Dave On Friday, 5 October 2012 09:24:52 UTC-6, Massimo Di Pierro wrote: > > This should now be fi

[web2py] web2py sitting behind load balancer showing lb IP not client IP

2011-12-22 Thread Dave
Since I've moved my installation behind a load balancer all my session IP addresses show as the back-side IP of the load balancer, not the real client IP. Have any of you figured out a way to pull the {X-Forwarded-For} entry from the HTTP environment for the "remote_addr" instead?

[web2py] Re: web2py sitting behind load balancer showing lb IP not client IP

2011-12-23 Thread Dave
AN RFC1018 address not the Internet source. On Dec 23, 5:42 am, nils wrote: > Hi, what load balancer are you using? > Regards, > Nils > On Dec 23, 2011 5:17 a.m., "Dave" wrote: > > > > > > > > > Since I've moved my installation behind a load bala

[web2py] Re: web2py sitting behind load balancer showing lb IP not client IP

2011-12-27 Thread Dave
ch checks http_x_forwarded_for before using remote_addr. The code for writing the session to database was just using remote_addr which was always showing my private IP of the load balancer. The above patch should take care of it. Thanks, Dave On Dec 23, 7:40 pm, pbreit wrote: > What web server

[web2py] Custom col 3 on register form

2011-12-31 Thread Dave
nothing to differentiate the login form from the other forms in any of the css or html markup in order to hide the comment. Is there a way to do this? Thanks, Dave

[web2py] Re: How do you manage your app repo with Mercurial

2012-01-12 Thread Dave
I just put an entry in /etc/hosts on my mac to resolve the database server hostname to 127.0.0.1. That way I'm not changing anything at all that may later in a quick bug-fix -> deploy mode I might miss. That way the connect string is always the same. I run my apps on EC2 using the RDS so the host

[web2py] password storage with per-user salt

2011-09-20 Thread Dave
I have just started using web2py but already, I'm quite impressed. In the past couple days I've already rolled out an entire site rewrite and I'm working on my second project. The project I'm working on right now is currently in PHP. I was in the process of converting it to a Java / Spring MVC p

[web2py] Re: password storage with per-user salt

2011-09-21 Thread Dave
t does not > know the salt. Anyway, let me know if you have a suggestion. > > Massimo > > On Sep 20, 9:25 pm, Dave wrote: > > > > > > > > > I have just started using web2py but already, I'm quite impressed.  In > > the past couple days I've a

[web2py] Re: password storage with per-user salt

2011-09-28 Thread Dave
ready to share the diff files because I want to re-work it so that it's reverse compatible with auth_user data created with the default settings. On Sep 21, 1:05 pm, Dave wrote: > Well  clearly I've sparked plenty of discussion.  I am working on this > to fit my app need.  Once I hav

[web2py] Re: password storage with per-user salt

2011-09-28 Thread Dave
. In this case you woud change only the > validate function in dal.py and CRYPT. > > On Sep 28, 6:39 pm, Dave wrote: > > > > > > > > > I've made this work.  I still need a little bit of time to make it > > backward compatible with non-salted passwords

[web2py] Re: password storage with per-user salt

2011-09-28 Thread Dave
yway, I have not looked into this with sufficient detail to know > what is cleaner (or dirtier). > I we pass an optional record argument to validate we will need to > change sqlhtml as well. > > Massimo > > On Sep 28, 8:11 pm, Dave wrote: > > > > > > > > &g

[web2py] Re: password storage with per-user salt

2011-09-29 Thread Dave
r bet is to continue along your original idea of > tweaking auth. > In general it may not be a good idea to have validators access the > record before validation, it could cause DoS problems. > > Massimo > > On Sep 28, 9:47 pm, Dave wrote: > > > > > > &g

[web2py] Re: password storage with per-user salt

2011-09-29 Thread Dave
I have the patch. I wasn't sure where to put the file, so I emailed it directly to you Massimo. The only thing that seems to be missing is updating the login_bare method to use the new hashing. The code is backward compatible with pre-exiting non-salted passwords. On Sep 29, 1:38 pm,

[web2py] Re: really nice credit card processing service

2011-09-30 Thread Dave
This is interesting. They look like they've got their heads in the right places. The security FAQ answers look good as well. One thing to pay particularly close attention to is the "Prohibited Businesses" section in the terms of use contract. I have had several issues with software I maintain f

[web2py] Re: really nice credit card processing service

2011-09-30 Thread Dave
Absolutely! :) On Sep 30, 12:23 pm, Massimo Di Pierro wrote: > No. But they provide Python api and I think will will be better than > paypal, google checkout and authorize.net for most users. > > On Sep 29, 11:01 pm, Ovidio Marinho wrote: > > > > > > > > > powered web2py , massimo? > > >      

[web2py] Serving non-uploaded, permission based files

2011-11-18 Thread Dave
to be downloaded? I'm sure there is a better way of doing this and a point in the right direction would be appreciated. Thanks, Dave

[web2py] gevent helper script integration with web2py

2011-11-20 Thread Dave
needs access to the DAL to manage jobs and perform manual file uploads (http://web2py.com/book/default/chapter/06#Manual-Uploads). Is there a good way to do this without having the monkey patched standard library (socket module, sll module, etc.) from impacting web2py? Thanks, Dave

[web2py] Re: gevent helper script integration with web2py

2011-11-21 Thread Dave
within the models folder, and the scope of the globals)? On Nov 20, 3:17 pm, Dave wrote: > I have a script that uses gevent which monkey patches the standard > library to use green threads (cooperative coroutines). I'd like this > to run as a background task using techniques described in

[web2py] issue with form.process in default/user

2011-11-24 Thread Dave
I'm a bit stumped on this one... I need to do some 'stuff' after either a user registeres or updates their profile. Basically there's a half dozen boolean fields which correspond to mailing lists the user may "opt-in" to. I tried customizing the default/user controller like so: form = auth.regi

  1   2   3   4   5   6   7   8   9   10   >