[web2py] How do I import `gluon.dal` from Python shell?

2013-01-27 Thread Alec Taylor
gluon in the shell? Thanks for all suggestions, Alec Taylor --

Re: [web2py] How to implement web2py password encryption in php

2013-01-27 Thread Alec Taylor
http://php.net/manual/en/function.hash.php On Mon, Jan 28, 2013 at 5:59 PM, Hassan Alnatour halna...@gardeniatelco.com wrote: Dear ALL , How can i implement web2py password encryption in php ? Best Regards, -- --

Re: [web2py] How to implement web2py password encryption in php

2013-01-27 Thread Alec Taylor
: ?php echo hash('ripemd160', 'mypassword'); ? regards, On Mon, Jan 28, 2013 at 10:05 AM, Alec Taylor alec.tayl...@gmail.com wrote: http://php.net/manual/en/function.hash.php On Mon, Jan 28, 2013 at 5:59 PM, Hassan Alnatour halna...@gardeniatelco.com wrote: Dear ALL , How can i

Re: [web2py] Re: How do I use web2py to make a simple GUI?

2013-01-25 Thread Alec Taylor
On Fri, Jan 25, 2013 at 1:59 AM, Alan Etkin spame...@gmail.com wrote: Hi, the answer to this question may well be that I should leave web2py alone and use something else, so I had better start Note that there's a special mobile plugin for web2py. See the instructions at web2py dev

[web2py] web2py and PhoneGap — Do we really have to completely rewrite our views in e.g.: AngularJS?

2013-01-25 Thread Alec Taylor
authentication (hacky solutions do exist though). For PhoneGap, do I really have to rewrite my views in e.g.: AngularJS? Thanks for all suggestions, Alec Taylor PS: One solution is iframe, but I found that to be very slow and lacking history and [most] storage related features. Another solution

[web2py] Exposing validators as JSON?

2013-01-15 Thread Alec Taylor
can then write the equivalent functions in JavaScript and attach them to their corresponding fields. How do I do this with web2py? Thanks for all suggestions, Alec Taylor --

Re: [web2py] Re: How to parse quoted '%20' RESTfully to web2py?

2013-01-07 Thread Alec Taylor
unquotes stuff for you, but you can always use urllib.unquote if necessary, you don't need the htmlparser it's just a url. Segunda-feira, 7 de Janeiro de 2013 5:04:47 UTC, Alec Taylor escreveu: I can't figure out how to parse url quoted inputs to web2py. Here is my attempt: from HTMLParser

Re: [web2py] Re: How to parse quoted '%20' RESTfully to web2py?

2013-01-07 Thread Alec Taylor
On Tue, Jan 8, 2013 at 4:25 AM, Alec Taylor alec.tayl...@gmail.com wrote: Oh oops, reduced my stuff to a test-case and forgot to fill in the rest of my definition. Meant to be `def get_group(*args, **kwargs)` [have it in a @request.restful()) On Tue, Jan 8, 2013 at 3:12 AM, Leonel

[web2py] How to parse quoted '%20' RESTfully to web2py?

2013-01-06 Thread Alec Taylor
')) our_groups_found = db.our_groups(search_for) return dict(our_groups=(our_groups_found or db.our_groups(name=args[0]))) How am I meant to do this? Thanks for all suggestions, Alec Taylor --

Re: [web2py] geodal

2013-01-05 Thread Alec Taylor
Thanks, will test it tomorrow. Examples with long/lat inserts, extracts and distance comparisons would also be handy for the book. On Sun, Dec 23, 2012 at 4:50 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I made some changes to the DAL geo APIs. This is an experimental feature so

[web2py] RESTful authentication with web2py?

2013-01-05 Thread Alec Taylor
on how to do this would be appreciated. Thanks, Alec Taylor --

Re: [web2py] pulsar

2013-01-04 Thread Alec Taylor
Interesting. Would be useful to also compare it with other similar—or subset covering—functionality frameworks such as: - Tornado http://www.tornadoweb.org/ - Twisted Matrix http://twistedmatrix.com/trac/ Or any of these frameworks: http://wiki.python.org/moin/Concurrency#Frameworks On

Re: [web2py] Re: Returning a token for Android app authentication

2013-01-03 Thread Alec Taylor
On Fri, Jan 4, 2013 at 2:57 PM, dlypka dly...@gmail.com wrote: But are you reconnecting to the same web2py session on each request? That's how OAuth Providers work (for the most part) Would be good if we could create an OAuth Provider in web2py though… On Thursday, January 3, 2013 3:20:01

Re: [web2py] Re: `auth.login_bare` doesn't work with Unicode?

2013-01-02 Thread Alec Taylor
mapping must return integer, None or unicode How do I get this simple test-case working? Thanks for all suggestions, Alec Taylor -- --

Re: [web2py] Multiple connections/ databases with same app

2013-01-02 Thread Alec Taylor
Yep, that's possible. Feature trivial to utilise in web2py; difficult or unimplemented with other frameworks. On Wed, Jan 2, 2013 at 8:56 PM, Simon Ashley gregs...@gmail.com wrote: Quick question - is this do able i.e. some tables - e.g. db = DAL('sqlite://storage.sqlite), other tables -

Re: [web2py] Re: `auth.login_bare` doesn't work with Unicode?

2013-01-02 Thread Alec Taylor
On Wed, Jan 2, 2013 at 9:30 PM, Niphlod niph...@gmail.com wrote: I'd say you need to convert the password to string (i.e. must not be an unicode string) as for oauth2 servers for web2py, I'm not aware of the existence of a supported app/library. Will write a thread on it with the dev list

[web2py] `@request.restful()` giving errors

2013-01-02 Thread Alec Taylor
): ccode = code else: ccode = compile2(code, layer) exec ccode in environment Thanks for all suggestions, Alec Taylor --

Re: [web2py] Re: `@request.restful()` giving errors

2013-01-02 Thread Alec Taylor
On Wednesday, January 2, 2013 6:28:29 AM UTC-5, Alec Taylor wrote: I have this simple controller: @request.restful()def fevent(): def GET(*args, **kwargs): print 'hello' print 'args =', args print 'kwargs =', kwargs return dict(foo='foo') But it doesn't

Re: [web2py] Multiple connections/ databases with same app

2013-01-02 Thread Alec Taylor
On Wed, Jan 2, 2013 at 10:53 PM, Simon Ashley gregs...@gmail.com wrote: Ok then, should this work? (Version 2.3.2 (2012-12-17 15:03:30) stable, source, nightly build, from 12/31) *Connection* db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all']) db1 =

[web2py] `auth.login_bare` doesn't work with Unicode?

2013-01-01 Thread Alec Taylor
-case working? Thanks for all suggestions, Alec Taylor --

Re: [web2py] Do we have to have first_name in auth tables?

2013-01-01 Thread Alec Taylor
Hey Jason, Reported this same issue a few days ago; I think they're working on it: https://groups.google.com/d/topic/web2py/D8VewP3g-R0 On Wed, Jan 2, 2013 at 5:52 AM, encompass encomp...@gmail.com wrote: I am getting an error when trying to view the database in the admin AttributeError:

[web2py] Serve different files based on JavaScript capability?

2012-12-30 Thread Alec Taylor
; and what are the downsides of this approach? Thanks for all suggestions, Alec Taylor --

Re: [web2py] Re: Python Redis Queue

2012-12-30 Thread Alec Taylor
On Mon, Dec 31, 2012 at 11:37 AM, Bruno Rocha rochacbr...@gmail.com wrote: DONE!!! 1. create a file called web2py-rq.py #!/usr/bin/env python import sys from rq import Queue, Connection, Worker # Preload libraries #import library_that_you_want_preloaded # Provide queue names to listen

Re: [web2py] Re: Server-side AngularJS execution?

2012-12-29 Thread Alec Taylor
driver, and the Python based Spynner. Anthony On Friday, December 28, 2012 11:10:21 PM UTC-5, Alec Taylor wrote: Search spiders such as Google—though they now execute AJAX and parse the result—do not work as well with dynamic content as static content. So I was thinking if there was some way

Re: [web2py] Replaced `auth_user` fields 'first_name' and 'last_name' with 'name'; now getting errors

2012-12-28 Thread Alec Taylor
Thanks, but that still isn't working for me. Interesting parts of the traceback: type 'exceptions.AttributeError'('Row' object has no attribute 'first_name') web2py\gluon\dal.py in __getitem__ at line 6453 code arguments variables Function argument list (self=Row {'interests':

[web2py] Server-side AngularJS execution?

2012-12-28 Thread Alec Taylor
JavaScript support execute it client-side. It would also save the trouble of implementing each view twice; once in web2py views the other in AngularJS MVC. Would this be possible? If not, how would you recommend I go about doing this? Thanks for all suggestions, Alec Taylor --

Re: [web2py] Replaced `auth_user` fields 'first_name' and 'last_name' with 'name'; now getting errors

2012-12-28 Thread Alec Taylor
. On Friday, 28 December 2012 21:12:01 UTC-6, Alec Taylor wrote: Thanks, but that still isn't working for me. Interesting parts of the traceback: type 'exceptions.AttributeError'('Row' object has no attribute 'first_name') web2py\gluon\dal.py in __getitem__ at line 6453 code arguments

Re: [web2py] Re: My experience with heroku... also: unable to get database connection

2012-12-27 Thread Alec Taylor
/master/gluon/contrib/heroku.py You must use db = get_db() not db=DAL() on heroku. On Wednesday, 26 December 2012 07:05:55 UTC-6, Alec Taylor wrote: Been using Red Hat OpenShift for 6-months now, but have been annoyed with their lack of DNS. A or CNAMEs simply aren't the same. So today I

Re: [web2py] Re: Heroku error: class 'psycopg2.ProgrammingError' relation auth_user already exists

2012-12-27 Thread Alec Taylor
and make a new one. Massimo On Thursday, December 27, 2012 12:25:51 AM UTC-6, Alec Taylor wrote: Even on the welcome app, I get this error. As a last resort I even tried adding this to my db.py: for table_name in db.tables(): db[table_name].drop() db.commit() But that made

[web2py] Replaced `auth_user` fields 'first_name' and 'last_name' with 'name'; now getting errors

2012-12-27 Thread Alec Taylor
' convention. Can we make this a parameter instead? Or is there another way I can get around this? Thanks for all suggestions, Alec Taylor BTW: The error is: `type 'exceptions.AttributeError' 'Row' object has no attribute 'first_name'` --

Re: [web2py] Replaced `auth_user` fields 'first_name' and 'last_name' with 'name'; now getting errors

2012-12-27 Thread Alec Taylor
Thanks, but that also isn't working: `type 'exceptions.AttributeError' 'Row' object has no attribute 'first_name'` But I do get a different traceback, i.e., here: web2py\gluon\tools.py, line 1285, in navbar user_identifier = user_identifier % self.user On Fri, Dec 28, 2012 at 5:41 PM, Bruno

[web2py] My experience with heroku... also: unable to get database connection

2012-12-26 Thread Alec Taylor
my guide and can help me edit it to make it work properly; i.e.: with DB connection. All the best, Alec Taylor --

Re: [web2py] Re: web3py?

2012-12-26 Thread Alec Taylor
+1 to WebRTC example app On Wed, Dec 26, 2012 at 11:41 PM, Vinicius Assef vinicius...@gmail.com wrote: No, this isn't. They use node.js on the server side: http://www.easyrtc.com/ On Sat, Dec 22, 2012 at 3:39 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Very interesting. Looks

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-26 Thread Alec Taylor
On Sun, Dec 16, 2012 at 6:39 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I was thinking the same. The issue, do we want the conversion done client-side (like brython) or server side (like ocl, https://github.com/mdipierro/ocl#convert-python-code-into-javascript-code) I'd prefer

[web2py] Heroku error: class 'psycopg2.ProgrammingError' relation auth_user already exists

2012-12-26 Thread Alec Taylor
properly on heroku? Thanks for all suggestions, Alec Taylor --

Re: [web2py] Merry Christmas everybody!

2012-12-24 Thread Alec Taylor
+1 Also Happy Chanukah for last week :) On Tue, Dec 25, 2012 at 5:22 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Merry Christmas everybody! -- --

Re: [web2py] Re: basics of DOM manipulation with web2py

2012-12-24 Thread Alec Taylor
Bhaskar: By using the web2py helpers you get a variety of security protections including from: - CSRF - XSS - Code injection You can create custom form attributes that don't appear in your DB also. As for the DOM stuff that you're talking about, listen to Anthony. Also use JavaScript in order

Re: [web2py] Re: basics of DOM manipulation with web2py

2012-12-24 Thread Alec Taylor
don't know how to do this Sorry if this is not making much sense ... But as I am learning web design, my knowledge is very rudimentary Thanks for your help.. On Monday, December 24, 2012 11:32:10 PM UTC-6, Alec Taylor wrote: Bhaskar: By using the web2py helpers you get a variety

Re: [web2py] Return excel file and then redirect to different page

2012-12-12 Thread Alec Taylor
Also it might be worth considering export to CSV. On Thu, Dec 13, 2012 at 6:51 AM, Jim S j...@qlf.com wrote: I'm looking for a way to return an Excel sheet to the user and then redirect to a different page all in the same request. Here is what I'm doing now: from reports import

Re: [web2py] Re: web2py and auto-generated RESTful views?

2012-12-08 Thread Alec Taylor
the Controller... anyway, what do you mean by generating decoupled views ? response.render() ? On Friday, December 7, 2012 7:43:31 AM UTC+1, Alec Taylor wrote: AngularJS is a great MVC framework from Google. There are a bunch of others also. Currently I develop my web-apps by: 1. Creating

[web2py] web2py and auto-generated RESTful views?

2012-12-06 Thread Alec Taylor
controllers using AngularJS, that talk RESTfully with my web2py app 3. Create views in AngularJS *sometimes Anything in the pipeline about generating decoupled views; so that I don't need to reimplement my components manually in JavaScript? Thanks for all suggestions, Alec Taylor --

Re: [web2py] Re: Web2Py on OpenShift

2012-12-03 Thread Alec Taylor
On Sun, Oct 21, 2012 at 1:57 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Notice you can do $ pip install pyfilesystem import pyfilesystem s3 = fs.s3fs.S3FS() db.define_table('mytable',,Field('file','upload',uploadfs = s3),...) You can use any pyfilesystem (s3, dropbox,

Re: [web2py] my web2py domain sometimes redirects to 'welcome' or 'myapp'. Any fix for this?

2012-11-18 Thread Alec Taylor
Sounds like a bug. On Sun, Nov 18, 2012 at 6:54 PM, Kenny nis...@gmail.com wrote: I changed the routes_in to redirect one of my domains to some application, it sometimes redirects to welcome. Anyone knows why it does this? -- --

Re: [web2py] Re: Cannot connect to Oracle from web2py? — Just want to use the DAL…

2012-10-24 Thread Alec Taylor
Unfortunately it still isn't working. http://code.google.com/p/web2py/issues/detail?id=1085 On Sun, Oct 14, 2012 at 12:37 PM, Alec Taylor alec.tayl...@gmail.com wrote: On Sun, Oct 14, 2012 at 1:21 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Yes and no. You can generate sql without

Re: [web2py] Re: web2py 2.1.1 is OUT!

2012-10-18 Thread Alec Taylor
Massimo: RE: *type 'exceptions.AttributeError' 'OracleAdapter' object has no attribute 'cursor'*? http://code.google.com/p/web2py/issues/detail?id=1085 On Thu, Oct 18, 2012 at 11:35 PM, hasan alnator halna...@gardeniatelco.comwrote: Dear Massimo , That Is great , Thank you a lot ... Best

Re: [web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Alec Taylor
Thanks but the faking of connections doesn't work… Traceback: http://fiddle.jshell.net/J2Ch2/show/ On Mon, Oct 15, 2012 at 10:55 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Changelog: - overall faster web2py - when apps are deleted, a w2p copy left in deposit folder - change in

Re: [web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Alec Taylor
')) and not db.define_tables('person',Field('name')) On Monday, 15 October 2012 08:08:37 UTC-5, Alec Taylor wrote: Thanks but the faking of connections doesn't work… Traceback: http://fiddle.jshell.net/J2Ch2/show/ On Mon, Oct 15, 2012 at 10:55 PM, Massimo Di Pierro massimo@gmail.com wrote

Re: [web2py] insert with ID

2012-10-14 Thread Alec Taylor
http://web2py.com/books/default/chapter/29/06#insert On Mon, Oct 15, 2012 at 1:53 AM, Hassan Alnatour halna...@gardeniatelco.com wrote: Dear ALL , How can i do an insert and added the id i want ? Regards, -- --

[web2py] Cannot connect to Oracle from web2py? — Just want to use the DAL…

2012-10-13 Thread Alec Taylor
the SQL Output to plug directly into my DB. Thanks for all suggestions, Alec Taylor --

Re: [web2py] Re: Cannot connect to Oracle from web2py? — Just want to use the DAL…

2012-10-13 Thread Alec Taylor
running web2py)? Anyway, open a ticket about this. we can change it so that you can make SQL even without the driver. Thanks Massimo, I've created an issue: http://code.google.com/p/web2py/issues/detail?id=1085 On Saturday, 13 October 2012 04:58:55 UTC-5, Alec Taylor wrote: Getting

[web2py] Generate raw SQL from database schema?

2012-10-11 Thread Alec Taylor
creation commands. Honestly I would be able to use `db._lastsql` or even reverse-engineer the database directly (using Oracle Data Modeller or similar); however a more direct approach would be preferred. Thanks for all suggestions, Alec Taylor --

Re: [web2py] Re: Prettydate and time zones

2012-10-10 Thread Alec Taylor
Also if it makes you feel better LinkedIn hasn't implemented this properly either :P On Wed, Oct 10, 2012 at 10:57 PM, Niphlod niph...@gmail.com wrote: welcome to datetime madness :D It's exactly what you need to take into consideration if you're working with user-inputted datetimes. You'd need

Re: [web2py] Re: creating tables from user input

2012-10-01 Thread Alec Taylor
Probably not. Where are you hosting this? E.g.: Google App Engine doesn't have tables, so the whole concept is irrelevant there. Also, how much data are you talking per team, and how many teams do you expect to be in the database? Unless you're storing an inordinate amount of images or realtime

Re: [web2py] Re: RBAC example?

2012-10-01 Thread Alec Taylor
30, 2012 10:44:05 PM UTC-4, Alec Taylor wrote: I have built up a social-network wherein users can great groups, users can join groups and members of groups can RSVP to group events. How would you recommend I use web2py's in-built RBAC system to enforce these rules? — Or should I not use

Re: [web2py] Re: creating tables from user input

2012-10-01 Thread Alec Taylor
2 (20 teams per game x 50 datapoints X 20 games) data points per 2-3 months. I was thinking of what would happen when more people use it. But I suppose I should not worry about that now. Thanks. On Mon, Oct 1, 2012 at 7:48 AM, Alec Taylor alec.tayl...@gmail.com wrote: Probably

Re: [web2py] Re: creating tables from user input

2012-10-01 Thread Alec Taylor
I have not set it up well. But that is what caused me to worry about this. Anyhow, thanks for the advice. On Mon, Oct 1, 2012 at 9:13 AM, Alec Taylor alec.t...@gmail.com wrote: Those are really low numbers. When you are getting closer to a billion games a week you should consider

[web2py] RBAC example?

2012-09-30 Thread Alec Taylor
Thanks for all suggestions, Alec Taylor --

Re: [web2py] [OT] Has Massimo ever considered a JavaScript framework?

2012-09-28 Thread Alec Taylor
On Sat, Sep 29, 2012 at 3:16 AM, Anthony abasta...@gmail.com wrote: On Friday, September 28, 2012 12:31:26 PM UTC-4, Derek wrote: Have you ever tried using AngularJS with Web2py? It's a mess because all the instructions I tried didn't work. You can't use their templates at all, you have to do

Re: [web2py] [OT] Packpub giving free e-books

2012-09-27 Thread Alec Taylor
Just grabbed myself a getting started with Ruby On Rails and MongoDB book Note that you can also get the web2py cookbook through this On Fri, Sep 28, 2012 at 2:46 PM, Javier Quarite jquari...@gmail.com wrote: I've registered but... it seems that there's a lot of people. I got 503 errors a

Re: [web2py] [OT] Has Massimo ever considered a JavaScript framework?

2012-09-27 Thread Alec Taylor
AngularJS has been gaining a lot of popularity lately. The idea that could make web2py [more] popular, is automatic generating of completely decoupled client-side views in JavaScript+HTML using REST. On Fri, Sep 28, 2012 at 2:22 PM, Ezugworie Ikechukwu ezugworie.ikechu...@gmail.com wrote:

Re: [web2py] Re: framework benchmarks - web2py surprisingly slow?

2012-09-26 Thread Alec Taylor
On Thu, Sep 27, 2012 at 12:12 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: First of all kudos to Andriy, He created an excellent testing code, he was very responsive, and he really took the time to understand some of the web2py code. Moreover he is the author of the excellent

Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-25 Thread Alec Taylor
Just a quick question, is your goal to eventually replace appadmin with this? :) On Tue, Sep 25, 2012 at 8:24 PM, rif feric...@gmail.com wrote: Added django like filters to web2admin. I will stop adding new features for a while and declare the current build as beta. Please test it and

Re: [web2py] Re: New web2py SaaS app, SiteLab.co!

2012-09-25 Thread Alec Taylor
Much better, took 3.37 seconds in Australia. On Wed, Sep 26, 2012 at 2:59 PM, JimK jkel...@gmail.com wrote: OK, I've decided to dump cdn77.com in favor of Akamai. It turns out Rackspace CloudFiles is served over the Akamai network but at a cheap price. It's a bit of a pain since I needed to

[web2py] Radio widget doesn't work with IS_IN_SET validator?

2012-09-22 Thread Alec Taylor
) How do I fix this? Thanks for all suggestions, Alec Taylor --

[web2py] Re: Radio widget doesn't work with IS_IN_SET validator?

2012-09-22 Thread Alec Taylor
Whoops, figured out the problem. Slight problem left though, the radio text are misaligned to the buttons, how do I fix this? Screenshot: http://i.imgur.com/Uykb7.png On Sat, Sep 22, 2012 at 6:43 PM, Alec Taylor alec.tayl...@gmail.com wrote: I've got a simple field in my registration form

[web2py] Unable to get the date widget to work

2012-09-22 Thread Alec Taylor
the date widget to work?* Thanks for all suggestions, Alec Taylor --

Re: [web2py] Send Email After Registration

2012-09-21 Thread Alec Taylor
an error User_Email = auth.user.email AttributeError: 'NoneType' object has no attribute 'email' On Thursday, September 20, 2012 11:15:31 AM UTC+2, Alec Taylor wrote: Nicely done. On Thu, Sep 20, 2012 at 7:13 PM, hasan alnator haln...@gardeniatelco.com wrote: Ok I DID it like

[web2py] Bootstrap icons don't work with latest web2py?

2012-09-21 Thread Alec Taylor
')}} Still, nothing showed up. I've also tried clearing my cache. Could you please fix the bootstrap icons? Thanks, Alec Taylor --

Re: [web2py] Layout for forms

2012-09-20 Thread Alec Taylor
That's in gluon\tools.py On Thu, Sep 20, 2012 at 5:44 PM, Kevin Bethke kevin.bet...@gmail.com wrote: I'm using the standard auth_user. there is a checkbox remember me for 30 days. I can't find anything like that in the db. On Thu, Sep 20, 2012 at 9:09 AM, Johann Spies johann.sp...@gmail.com

Re: [web2py] Send Email After Registration

2012-09-20 Thread Alec Taylor
Isn't there an example in the scaffolding app? https://github.com/web2py/web2py/blob/master/gluon/tools.py#L816 Just set that to True (in your db.py), and it will require verification. If you want to send an email not for verification, just scroll down to the code for verification and edit it

Re: [web2py] CAPTCHA and reCAPTCHA in registration form

2012-09-20 Thread Alec Taylor
Go to the reCAPTCHA page and generate yourself a public and private key pair. http://www.google.com/recaptcha On Thu, Sep 20, 2012 at 6:04 PM, Hassan Alnatour halna...@gardeniatelco.com wrote: Dear ALL , I am trying to use reCAPTCHA in my default/user.html page on registration form , now i

Re: [web2py] CAPTCHA and reCAPTCHA in registration form

2012-09-20 Thread Alec Taylor
will i apply it to my registration form ? On Thu, Sep 20, 2012 at 11:06 AM, Alec Taylor alec.tayl...@gmail.com wrote: Go to the reCAPTCHA page and generate yourself a public and private key pair. http://www.google.com/recaptcha On Thu, Sep 20, 2012 at 6:04 PM, Hassan Alnatour halna

Re: [web2py] Send Email After Registration

2012-09-20 Thread Alec Taylor
Nicely done. On Thu, Sep 20, 2012 at 7:13 PM, hasan alnator halna...@gardeniatelco.com wrote: Ok I DID it like this : auth.settings.register_next = URL('Welcome') def Welcome(): User_Email = auth.user.email mail.send(User_Email,'Welcome To website','Welcome To website') if

Re: [web2py] Re: Count users

2012-09-16 Thread Alec Taylor
Another solution would be to use the built-in RBAC to set access; allotting a group to each user. Then to provide the same access as that user to another user, simply add that second user to the first users' group. Finally for a non-db solution you could just throw information into the session,

Re: [web2py] Re: what validator do I use to produce radio boxes in html?

2012-09-15 Thread Alec Taylor
Something like this: Field('sex', requires=IS_IN_SET(['male','female'], widget=SQLFORM.widgets.radio.widget) On Sun, Sep 16, 2012 at 4:32 AM, Pystar aitoehi...@gmail.com wrote: Doing that threw this error: type 'exceptions.SyntaxError' widget cannot determine options of auth_user.sex On

Re: [web2py] Example for supporting multiple oauth?

2012-09-09 Thread Alec Taylor
I'm pretty sure in the next version of web2py sanction (or similar) will be integrated into web2py to simplify OAuth setup https://github.com/demianbrecht/sanction Just remind the devs :) [I'm not a dev, trying to increase popularity of web2py through advocating at usergroups + open-sourcing

Re: [web2py] Re: web2py book on github

2012-09-08 Thread Alec Taylor
The documentation is starting to look much better :) Maybe the chapters have gotten a little large though and should each be separated into Basic use and Advanced use... Also the new code boxes are much nicer than before, but still doesn't have python syntax-highlighting. Can we get this also?

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-05 Thread Alec Taylor
, and bootstrap.css defines the background color of that class as whiteSmoke. You can override that with your own CSS rule for the form-actions class. Anthony On Tuesday, September 4, 2012 1:18:13 PM UTC-4, Alec Taylor wrote: Thanks, in that case I think I've found a bug in that formstyle setting. Around

[web2py] Override auth.login()?

2012-09-05 Thread Alec Taylor
]')[0][_value] = Login form.elements('input[type=submit]')[0][_class] = btn btn-large btn-primary How can I perform this override? Thanks for all suggestions, Alec Taylor --

Re: [web2py] Tweet this and web2py forms. How do I design this?

2012-09-04 Thread Alec Taylor
Maybe what you're looking for is a self-populating javascript modal with a tweet this button. That should be trivial to implement by appending the write information to the twitter URL. (see share code for correct URL) On 31/08/2012 6:42 AM, Pystar aitoehi...@gmail.com wrote: But I am only using

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Alec Taylor
there on github.com/niphlod/w2p_tvseries, but included in web2py 2.0.6 there is other code for bootstrap-compatible forms Il giorno martedì 4 settembre 2012 05:03:59 UTC+2, Alec Taylor ha scritto: Hi Niphlod, Now that web2py 2 has been released, could you release the code for your form manipulation

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Alec Taylor
', the same way you use formstyle=divs , ul, etc Il giorno martedì 4 settembre 2012 10:34:07 UTC+2, Alec Taylor ha scritto: Thanks, but I can't seem to find anything in the release about how to use bootstrap with forms: https://groups.google.com/**forum/#!topic/web2py/* *0Uk5b34LUsc https

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Alec Taylor
: crud.settings.formstyle = 'bootstrap' Anthony On Tuesday, September 4, 2012 5:36:55 AM UTC-4, Alec Taylor wrote: Unfortunately that didn't work: type 'exceptions.TypeError' create() got an unexpected keyword argument 'formstyle' type 'exceptions.TypeError' update() got an unexpected keyword argument

[web2py] Unable to use date in DD/MM/YYYY format

2012-09-03 Thread Alec Taylor
suggestions, Alec Taylor --

[web2py] Re: Bootstrap and custom forms and widgets

2012-09-03 Thread Alec Taylor
Hi Niphlod, Now that web2py 2 has been released, could you release the code for your form manipulation? Thanks a heap, Alec taylor On Sunday, May 20, 2012 2:48:57 AM UTC+10, Niphlod wrote: me too, but in a different way. I'm working on an app and waiting for web2py 2.0 to release

Re: [web2py] Re: client-side validation plugin

2012-09-03 Thread Alec Taylor
Can you also please add the IS_EMPTY_OR validator? On Fri, Aug 17, 2012 at 1:37 AM, Alec Taylor alec.tayl...@gmail.com wrote: Thanks :) On Fri, Aug 17, 2012 at 1:15 AM, Franco franco.alar...@gmail.com wrote: Try with this version. I need to warning you the python regex are different

Re: [web2py] XML Webservice

2012-09-02 Thread Alec Taylor
Just add the @service.xml decorator to your controller. Tutorial: https://web2py.com/books/default/chapter/29/10 On Sun, Sep 2, 2012 at 5:57 PM, Hassan Alnatour halna...@gardeniatelco.comwrote: Dear ALL, I want to create a web service that returns an xml of the some recorders in a table ?

Re: [web2py] XML Webservice

2012-09-02 Thread Alec Taylor
def call(): session.forget() return service() @service.run def xmlservice(): solutoins = db().select(db.solutions.ALL) return locals() then i get this : http://gardeniatelco.com/call/xml/xmlservice On Sun, Sep 2, 2012 at 11:08 AM, Alec Taylor alec.tayl...@gmail.comwrote

Re: [web2py] XML Webservice

2012-09-02 Thread Alec Taylor
',Field('title'),Field('Description','text',length=99,default=Description Will Be Soon Provided,widget=ckeditor.widget)) On Sun, Sep 2, 2012 at 12:36 PM, Alec Taylor alec.tayl...@gmail.com wrote: Yeah, that's right. Sounds like you'll need to do some preprocessing before posting

Re: [web2py] Re: web2py 2.0.2 is out

2012-09-02 Thread Alec Taylor
This is what I have for the moment, but I plan to implement this properly using the variables from gluon.tools; consider this a PoC: {{if response.flash:}}header {{if 'errors' in response.flash:}} div class=alert alert-block alert-error fade in button type=button class=close

[web2py] Date widget isn't displaying?

2012-09-01 Thread Alec Taylor
), Field('DOB', 'date', requires=IS_DATE_IN_RANGE(minimum=date(1920,1,1)), label=T('D.O.B.'), widget=SQLFORM.widgets.date.widget), ) How do I get this to work? Thanks for all suggestions, Alec Taylor FYI: I'm using a custom scaffolding layout, so might not be including the right JS. What JS

[web2py] Re: wrong link to usergroup on the web site

2012-09-01 Thread Alec Taylor
Also we don't need the question mark, i.e.: this will work fine - https://groups.google.com/forum/#!forum/web2py On Sunday, September 2, 2012 3:29:41 AM UTC+10, Massimo Di Pierro wrote: Looks like it is a markmin bug (combined with a weird choice of url link from google). On Saturday, 1

Re: [web2py] Re: web2py 2.0.2 is out

2012-08-31 Thread Alec Taylor
I've got a better flash code using bootstrap components. It works quite nicely, giving different colours based on severity of message. [alert-error, alert-success etc] Was planning on waiting until the new bootstrap was integrated before throwing a pull-request, or did you want a pull request

Re: [web2py] Removing labels from forms

2012-08-31 Thread Alec Taylor
. It doesn't work for postcode because your dictionary has post_code as the key instead of postcode, which is the name of the form field. Anthony On Thursday, August 30, 2012 12:01:18 AM UTC-4, Alec Taylor wrote: Thanks, but unfortunately that didn't work. {{ form=auth.register() my_extra_element

Re: [web2py] Removing labels from forms

2012-08-31 Thread Alec Taylor
Perfect, thanks to you both :) --

Re: [web2py] web2py 2.0.2 is out

2012-08-30 Thread Alec Taylor
Thank you kindly! On Thu, Aug 30, 2012 at 1:41 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: After 5 months. It is done. This is the most waited and the most feature-packed release. I am sure we'll find some corners that need to be ironed but it is considerably better than

Re: [web2py] Removing labels from forms

2012-08-30 Thread Alec Taylor
it as expected? On Thursday, August 30, 2012 12:01:18 AM UTC-4, Alec Taylor wrote: Thanks, but unfortunately that didn't work. {{ form=auth.register() my_extra_element = CAT('Agree to ', A('terms conditions', _href=/legal/agreement/)), INPUT(_name='agree',value=True**,_type='checkbox') form

Re: [web2py] Removing labels from forms

2012-08-30 Thread Alec Taylor
Thanks, but that only worked for the first input (email): http://pastie.org/4616739 On Thu, Aug 30, 2012 at 9:43 PM, Anthony abasta...@gmail.com wrote: Try: for input in form.elements(input[type=text]): On Thursday, August 30, 2012 3:51:13 AM UTC-4, Alec Taylor wrote: No placeholders

[web2py] Overwrite readable/writable

2012-08-29 Thread Alec Taylor
values except one. Thanks for all suggestions, Alec Taylor --

Re: [web2py] Re: Overwrite readable/writable

2012-08-29 Thread Alec Taylor
Thanks On Thu, Aug 30, 2012 at 2:51 AM, Annet anneve...@googlemail.com wrote: I think this is what you're looking for: SQLFORM(table,...,ignore_rw =True,...) Annet -- --

<    1   2   3   4   5   >