[web2py] Re: Funny behavior with referenced Field display if writable=False

2011-04-25 Thread szimszon
With 1.95.1 is the same :(

[web2py] Re: web2py 1.95.1 and open issues

2011-04-25 Thread Oscar
I upgraded to this version, then plugin_wiki is broken, it return an error at menu.py sating that attribute str has not xml method. Oscar.

[web2py] Re: Deploying DB

2011-04-25 Thread Oscar
Thank you for your reply, On 25 abr, 18:09, Massimo Di Pierro wrote: > On a new database you should run at least once with migrate=True and > then you can set migrate=False and it should work. I did it, and didn't work. > If you are getting the errors below I assume you have migrate=True and >

[web2py] Re: how to parse rawsql results?

2011-04-25 Thread cyber
It's my mistake. Of course, autos.out='T' and autos.svh='F'. Thanks! On 25 апр, 16:21, Massimo Di Pierro wrote: > ... autos.out='T' and autos.out='F' ... ? > > On Apr 25, 12:34 am, cyber wrote: > > > > > > > > > I used to use construction like this: > > rows_count=db(db.autos.out=='T').count()

[web2py] Re: Importing Pygments from App Failing

2011-04-25 Thread Massimo Di Pierro
trunk or stable? On Apr 25, 11:07 pm, Julio Schwarzbeck wrote: > I am having this problem in 1.95.1 in OS X: > > DeepSpace9:web2py julio$ python web2py.py -S qastack > web2py Enterprise Web Framework > Created by Massimo Di Pierro, Copyright 2007-2011 > Version 1.95.1 (2011-04-25 17:55:16) > Data

Re: [web2py] Re: FORM Generation Code.

2011-04-25 Thread Bruno Rocha
Not tested yet, but I guess you can do. def user(): db.auth_user.first_name.label = "Name Label" db.auth_user.last_name.label = "Family Name" return dict(form=Auth()) -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Tue, Apr 26, 2011 at 1:05 AM, Ab... wrote: > How do

[web2py] Re: Trunk new importer working?

2011-04-25 Thread mart
Oui! tres cool! Just did fist pass and no issues as far as keeping the existing stuff working as well! :) Now will go for pass 2 by changing some import statements and adding few for testing. Thanks, Mart :) On Apr 25, 11:06 pm, Bruno Rocha wrote: > Cool! I will test it now! Thank you for the

[web2py] Importing Pygments from App Failing

2011-04-25 Thread Julio Schwarzbeck
I am having this problem in 1.95.1 in OS X: DeepSpace9:web2py julio$ python web2py.py -S qastack web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.95.1 (2011-04-25 17:55:16) Database drivers available: SQLite3, pymysql WARNING:web2py:import IPython error;

[web2py] Re: FORM Generation Code.

2011-04-25 Thread Ab...
How do I pass labels to auth forms ? On Apr 25, 7:55 pm, Anthony wrote: > If you want to use the default labels specified in the table definition, you > can manually remove the colons from the labels via the server-side DOM > (seehttp://web2py.com/book/default/chapter/05#Server-side-DOM-and-Pars

Re: [web2py] Re: Trunk new importer working?

2011-04-25 Thread Bruno Rocha
Cool! I will test it now! Thank you for the improvement. Web2py is getting better every 2 weeks \o/ -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Mon, Apr 25, 2011 at 11:53 PM, pierreth wrote: > On 25 avr, 20:44, mart wrote: > > how cool! so if all looks good, will we need to mak

[web2py] Re: Trunk new importer working?

2011-04-25 Thread pierreth
On 25 avr, 20:44, mart wrote: > how cool! so if all looks good, will we need to make a switch or will > both be supported for a while? > > Thanks, > Mart :) The new import function changes how things are loaded when a module is imported from models, controllers or modules (the "modules" directory

[web2py] Re: CLEANUP() removing too many characters

2011-04-25 Thread Massimo Di Pierro
I agree. On Apr 25, 8:59 pm, Jonathan Lundell wrote: > On Apr 25, 2011, at 6:49 PM, Massimo Di Pierro wrote: > > > > > True. It should do what the book says. > > Except that we should probably change the definition to exclude 127, seems to > me. > > > > > > > > > > > On Apr 25, 6:43 pm, pbreit

[web2py] Re: web2py + powerpack on dotcloud complete guide

2011-04-25 Thread luckysmack
well seems their effected my an epic level ec2 outage. that sucks cause ive been wanting to try them (or possibly kodingen.com as well). Hope it's fixed soon. On Apr 25, 3:10 pm, Massimo Di Pierro wrote: > I am going to post a link on reddit.  :-) > > On Apr 25, 4:21 pm, Martín Mulone wrote: > >

Re: [web2py] Re: CLEANUP() removing too many characters

2011-04-25 Thread Jonathan Lundell
On Apr 25, 2011, at 6:49 PM, Massimo Di Pierro wrote: > > True. It should do what the book says. Except that we should probably change the definition to exclude 127, seems to me. > > On Apr 25, 6:43 pm, pbreit wrote: >> CLEANUP() seems to be removing more characters than the Book would sugges

[web2py] Re: Trunk new importer working?

2011-04-25 Thread Massimo Di Pierro
both will be supported for backward compatibility On Apr 25, 7:44 pm, mart wrote: > how cool! so if all looks good, will we need to make a switch or will > both be supported for a while? > > Thanks, > Mart :) > > On Apr 25, 8:09 pm, Jonathan Lundell wrote: > > > > > > > > > On Apr 25, 2011, at 5

[web2py] Re: CLEANUP() removing too many characters

2011-04-25 Thread Massimo Di Pierro
True. It should do what the book says. On Apr 25, 6:43 pm, pbreit wrote: > CLEANUP() seems to be removing more characters than the Book would suggest. > > "It just removes all characters whose decimal ASCII codes are not in the > list [10, 13, 32-127]" > > However the regex is '[^ \n\w]' which I

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread JoshC
Ok, I see. THANKS A LOT everyone :) Josh On Apr 25, 9:18 pm, Anthony wrote: > On Monday, April 25, 2011 8:47:17 PM UTC-4, JoshC wrote: > > > What I need to know is how to get information from the view to the > > controllers and database. I wasn't able to figure out how to use this > > for instan

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread JoshC
Anthony, thank you. I see there that it gives the syntax for accessing args (request.args(i)), but it doesn't for vars (the dict). This is the problem I had earlier. What is the syntax for accessing vars? Like this? request.vars(key) On Apr 25, 9:18 pm, Anthony wrote: > On Monday, April 25, 201

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread Anthony
On Monday, April 25, 2011 8:47:17 PM UTC-4, JoshC wrote: > > What I need to know is how to get information from the view to the > controllers and database. I wasn't able to figure out how to use this > for instance: > > URL('a', 'c', 'f', args=['x', 'y'], vars=dict(z='t')) > > How do you acces

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread pbreit
In f(), request.args(0) will be 'x', request.args(1) will be 'y' and request.vars.z will be 't'. http://web2py.com/book/default/chapter/04#request

[web2py] Re: Deploying DB

2011-04-25 Thread mart
nice! I searched the book, but couldn't find a reference to 'migrate_enabled'. Thanks for the info, will come in handy! :) On Apr 25, 8:20 pm, Anthony wrote: > On Monday, April 25, 2011 8:02:48 PM UTC-4, mart wrote: > > > Hi Massimo, > > > I have seen migrate=T/F, but not migrate_enabled=T/F > >

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread JoshC
What I need to know is how to get information from the view to the controllers and database. I wasn't able to figure out how to use this for instance: URL('a', 'c', 'f', args=['x', 'y'], vars=dict(z='t')) How do you access what is saved in the dict from the view on the controller side? On Apr 2

[web2py] Re: Trunk new importer working?

2011-04-25 Thread mart
how cool! so if all looks good, will we need to make a switch or will both be supported for a while? Thanks, Mart :) On Apr 25, 8:09 pm, Jonathan Lundell wrote: > On Apr 25, 2011, at 5:05 PM, mart wrote: > > > > > Sure, I'll throw it in (i have broken several things today, so why > > not ;) ) >

[web2py] Re: Deploying DB

2011-04-25 Thread Anthony
On Monday, April 25, 2011 8:02:48 PM UTC-4, mart wrote: > > Hi Massimo, > > I have seen migrate=T/F, but not migrate_enabled=T/F If you specify DAL(..., migrate_enabled=False), it will turn off all migrations, regardless of how the 'migrate' argument is set in individual tables -- so it's a

Re: [web2py] Re: Trunk new importer working?

2011-04-25 Thread Jonathan Lundell
On Apr 25, 2011, at 5:05 PM, mart wrote: > > Sure, I'll throw it in (i have broken several things today, so why > not ;) ) > > I would be curious to know what the changes are? The basic idea is that the regular "import" statement will import from an application's modules directory. Previously,

[web2py] Re: Deploying DB

2011-04-25 Thread pbreit
New in 1.95.1 as of today: https://groups.google.com/d/topic/web2py/oer8IeJ6dc8/discussion

[web2py] Re: Trunk new importer working?

2011-04-25 Thread mart
Sure, I'll throw it in (i have broken several things today, so why not ;) ) I would be curious to know what the changes are? Thanks, Mart :) On Apr 25, 6:03 pm, pierreth wrote: > Hello, > > I am writing this message to know if some users are still experiencing > problems with the new importer a

[web2py] Re: Deploying DB

2011-04-25 Thread mart
Hi Massimo, I have seen migrate=T/F, but not migrate_enabled=T/F Is this new, or something PostgreSQL specific? Thanks, Mart :) On Apr 25, 6:09 pm, Massimo Di Pierro wrote: > On a new database you should run at least once with migrate=True and > then you can set migrate=False and it should wor

[web2py] CLEANUP() removing too many characters

2011-04-25 Thread pbreit
CLEANUP() seems to be removing more characters than the Book would suggest. "It just removes all characters whose decimal ASCII codes are not in the list [10, 13, 32-127]" However the regex is '[^ \n\w]' which I think is more like alphanumeric plus underscore. Is that right?

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread Massimo Di Pierro
On click it always submits via POST but the vars are passed via URL(,vars=...) as GET vars. For more complex scenarions it may be better be more explicit. On Apr 25, 5:37 pm, pbreit wrote: > Interesting. Possible to support a post with vars?

Re: [web2py] Web2Py template engine

2011-04-25 Thread Bruno Rocha
If you put the customizable html files under /static folder, the users will not be able to run any Python command. Are you to giving access to views files for users to edit? or just store CSS and some html in a DB to build the pages? Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Mon

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread pbreit
Interesting. Possible to support a post with vars?

[web2py] Re: web2py + powerpack on dotcloud complete guide

2011-04-25 Thread Massimo Di Pierro
I am going to post a link on reddit. :-) On Apr 25, 4:21 pm, Martín Mulone wrote: > http://martin.tecnodoc.com.ar/default/post/2011/04/25/16_web2py-power... > > -- >  http://martin.tecnodoc.com.ar

[web2py] Re: Meaning of w2p_fl", "w2p_fp" and "w2p_fc" in auto generated form.

2011-04-25 Thread Anthony
On Monday, April 25, 2011 5:02:54 PM UTC-4, Pystar wrote: > > looking at the generated form from my database using SQLFORM(). I > would like to know the meaning of "w2p_fl", "w2p_fp" and "w2p_fc". Looks like w2p_fl and w2p_fc are the CSS classes of the TD elements for the field label and fiel

[web2py] Re: Deploying DB

2011-04-25 Thread Massimo Di Pierro
On a new database you should run at least once with migrate=True and then you can set migrate=False and it should work. If you are getting the errors below I assume you have migrate=True and missing database/*.table files. You must have deleted them. In this case you must run with DAL(,migra

[web2py] Re: Problem with image upload on GAE

2011-04-25 Thread howesc
if you want to upload files larger than 1 mb, take a look at this slice: http://web2pyslices.com/main/slices/take_slice/63

[web2py] Re: Version control database schema?

2011-04-25 Thread Massimo Di Pierro
yes On Apr 25, 3:03 pm, pbreit wrote: > I have databases/* in my .hgignore file but I was wondering how I might keep > track of schema changes in version control. Should I only ignore *.sqlite?

[web2py] Re: MySQL Version Bug????

2011-04-25 Thread Massimo Di Pierro
What is the error exactly? On Apr 25, 3:01 pm, Ialejandro wrote: > Hi every one! I have a web2py app running on a windows server, I'm > using MySQL trough XAMPP 1.7.3 (MYSQL Version =  5.1.41), and > everything works more than fine. > > But today I made an upgrade to XAMPP 1.7.4 (MYSQL Version =

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread Massimo Di Pierro
I just added to trunk... quantity {{=A('add product',callback=URL('add_product',args='id'),target='there))}} On Apr 25, 2:53 pm, pbreit wrote: > And I just noticed that you are going to run into some intricacy with how to > implement the quantity selector. > > You'll either need to create a for

[web2py] Trunk new importer working?

2011-04-25 Thread pierreth
Hello, I am writing this message to know if some users are still experiencing problems with the new importer available in the trunk version. Please tell us if everything is OK or you are having problems. Thank you.

[web2py] Web2Py template engine

2011-04-25 Thread cx42net
Hi! On my way to learning Web2Py, I was wondering to know if the template engine provided by Web2Py allow executing some python code. I plan to use it as a "wildcard website" for my users and they will have the possibility to change the template of their website. With that in mind, it's important

[web2py] Re: about bpython

2011-04-25 Thread pierreth
Hi Jose, Here is the problem: > File "/usr/home/jose/web2py/gluon/shell.py", line 210, in run > bpython.embed(locals_=_env) I don't know the problem but it has nothing to do with the new importer. The old importer has the same behavior. On 23 avr, 22:54, Jose wrote: > Hi > > I edited the

[web2py] web2py + powerpack on dotcloud complete guide

2011-04-25 Thread Martín Mulone
http://martin.tecnodoc.com.ar/default/post/2011/04/25/16_web2py-powerpack-on-dotcloud -- http://martin.tecnodoc.com.ar

[web2py] pyfpdf question, maybe

2011-04-25 Thread Kenneth Lundström
I´m using pyfpdf to create bills and would like to include a barcode. The barcode should be in Code 128C and the Interleaved 2of5 NT that pyfpdf is using does not work. I found this site http://barcode128.blogspot.com/ that let you create Code 128 barcodes with PIL. I succeeded in printing a

[web2py] Meaning of w2p_fl", "w2p_fp" and "w2p_fc" in auto generated form.

2011-04-25 Thread Pystar
looking at the generated form from my database using SQLFORM(). I would like to know the meaning of "w2p_fl", "w2p_fp" and "w2p_fc".

[web2py] Re: Deploying DB

2011-04-25 Thread Oscar
Sorry again, The error is: ProgrammingError: relation "auth_user" already exists Oscar. On 25 abr, 16:34, Oscar wrote: > BTW I tried with migration set to False locally with SqLite and it > worked without issues. > > Oscar. > > On 25 abr, 16:32, Oscar wrote: > > > > > > > > > Hi there, > > >

[web2py] Re: Deploying DB

2011-04-25 Thread Oscar
BTW I tried with migration set to False locally with SqLite and it worked without issues. Oscar. On 25 abr, 16:32, Oscar wrote: > Hi there, > > I'm triying to deploy a W2P project based on Wiki_Plugin. I just > installed the plugin, I did some tests using sqlite, then I wanted to > deploy the c

[web2py] Deploying DB

2011-04-25 Thread Oscar
Hi there, I'm triying to deploy a W2P project based on Wiki_Plugin. I just installed the plugin, I did some tests using sqlite, then I wanted to deploy the code over my server based on PostgreSQL, I did the same and it worked with migrations set to True, but wiki plugins has a comment where I must

[web2py] web2py Typo Report in gluon/sqlhtml.py

2011-04-25 Thread Pystar
In gluon/sqlhtml.py Line 944: It reads "raise RuntimeError, 'formsyle not supported'" instead of "raise RuntimeError, 'formstyle not supported'" This error is the one raise whenever an unsupported value is passed to the formstyle argument of the SQLFORM function.

[web2py] Version control database schema?

2011-04-25 Thread pbreit
I have databases/* in my .hgignore file but I was wondering how I might keep track of schema changes in version control. Should I only ignore *.sqlite?

[web2py] MySQL Version Bug????

2011-04-25 Thread Ialejandro
Hi every one! I have a web2py app running on a windows server, I'm using MySQL trough XAMPP 1.7.3 (MYSQL Version = 5.1.41), and everything works more than fine. But today I made an upgrade to XAMPP 1.7.4 (MYSQL Version = 5.5.8) and nothing works! At the first time I run the web2py app It shows m

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread pbreit
And I just noticed that you are going to run into some intricacy with how to implement the quantity selector. You'll either need to create a for each toy (in which case each toy will also have its own "add to cart" button) or you will have to identify each quantity form field which might make

Re: [web2py] Re: Novice: form input, insert, update

2011-04-25 Thread Stifan Kristi
nice share, massimo, i want to learn it, but your video is too fast, i've already tried to pause it many times, but it seems i lost some part, could you share the code please? thank you so much in advance On Tue, Apr 26, 2011 at 12:15 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: >

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread pbreit
A bit of stylistic advice: toys = db(db... return dict(toys=toys) {{for toy in toys:}} {{=toy.name}} etc.

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread pbreit
Maybe try it like this: A(' Add to cart', _href=URL('add_to_cart', vars={'item': i.item, 'page': request.function}))

[web2py] Re: selecting a value in dropdownlist reference to another value in dropdownlist

2011-04-25 Thread Massimo Di Pierro
I would do something like this: db.define_table('nominee',Field('name'),Field('region_id',db.Regions)) def get_nominees(): region_id = request.vars.region_id return TAG[''](*[OPTION(r.name,_value=r.id) for r in db(db.nominee.region_id=region_id).select()]) def get_form(): script="""

[web2py] Re: Novice: form input, insert, update

2011-04-25 Thread Massimo Di Pierro
Did you see this? http://vimeo.com/20768689 The functionality you need is implemented as an example via ajax. Massimo On Apr 25, 11:46 am, JoshC wrote: > Dear Friends, > > As you may recall, I wrote before mentioning that I am working on a > project for a databases class (an e-store). We were

[web2py] Re: web2py 1.95.1 and open issues

2011-04-25 Thread Massimo Di Pierro
Look up the pyfpdf project on google code. I upgraded on March 30. On Apr 25, 10:35 am, Kenneth Lundström wrote: >  > - importved pyfpdf > > Is there any more info about the improved pyfpdf? > > Kenneth > > > > > > > > > - domain check in email_auth.py, thanks Gyuris > > - added change_password_o

[web2py] selecting a value in dropdownlist reference to another value in dropdownlist

2011-04-25 Thread Mohamed Sami
Hi All, I'm making a website for elections, so i have table for Governorates definition, then region definition related to Governorate also i created a table for nominees which is related to each region and each region can have more than one nominee. also i have a table for voters who is living

[web2py] Novice: form input, insert, update

2011-04-25 Thread JoshC
Dear Friends, As you may recall, I wrote before mentioning that I am working on a project for a databases class (an e-store). We were successful at implementing the model and some of the functions and views. However, we are stuck trying to figure out how to implement the following types of require

[web2py] help with getting user information from web2py when sign in with janrain

2011-04-25 Thread Resa Bee
i am using janrain which basically allows third party authentication in web2py and i have a problem with gettin the user information when soemone signs in... first of all i have noticed that in windows janrain is not that effective as u have to manipulate a token but in linux it works fine without

Re: [web2py] Re: images not loading completely

2011-04-25 Thread pbreit
The "static" folder needs to be configured already. If youre iamges don't need any processing (auth) it seems a better way to go.

Re: [web2py] Re: images not loading completely

2011-04-25 Thread Bruno Rocha
On Mon, Apr 25, 2011 at 3:05 AM, pbreit wrote: > To serve images statically: > > Field('image', 'upload', uploadfolder=request.folder+'static/uploads') > > > I guess it only bypass teh download function, which has a little gain of speed, bit, I am not sure the images will be served statically u

Re: [web2py] web2py 1.95.1 and open issues

2011-04-25 Thread Kenneth Lundström
> - importved pyfpdf Is there any more info about the improved pyfpdf? Kenneth - domain check in email_auth.py, thanks Gyuris - added change_password_onvalidation and change_password_onaccept - DAL(...,migrate_enabled=True) - login_methods/loginza.py, thanks Vladimir - bpython shell support,

[web2py] Re: images not loading completely

2011-04-25 Thread VP
On Apr 25, 1:05 am, pbreit wrote: > To serve images statically: > > Field('image', 'upload', uploadfolder=request.folder+'static/uploads') > > Can please go into the book? Thanks.

[web2py] Re: web2py 1.95.1 and open issues

2011-04-25 Thread Massimo Di Pierro
this has been discussed and I support it. We just have to agree on the exact syntax since we want to allow dependencies in non-alphabetical order and conditional execution. On Apr 25, 10:01 am, Gilson Filho wrote: > I was wondering if in future versions, will have support for models and > control

Re: [web2py] Re: web2py 1.95.1 and open issues

2011-04-25 Thread Gilson Filho
I was wondering if in future versions, will have support for models and controllers in subfolders. For example: +-models +--model01 +model01.py +--model02.py +--model03.py _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/4/25 Massimo

Re: [web2py] FORM Generation Code.

2011-04-25 Thread Anthony
If you want to use the default labels specified in the table definition, you can manually remove the colons from the labels via the server-side DOM (see http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing). Specifically, SQLFORM constructs each label as follows: l

[web2py] Re: web2py 1.95.1 and open issues

2011-04-25 Thread Massimo Di Pierro
I cannot tell you much because Google has not yet released the service publicly. I can tell you I have tested it (they gave me early access for the test) and it supports normal mysql syntax including GROUP BY, JOINs, transactions and web2py automatic migrations. We should just call it GoogleSQL si

Re: [web2py] web2py 1.95.1 and open issues

2011-04-25 Thread Vasile Ermicioi
hi, thank you Massimo, please tell us more about Google MySQL does it support GROUP BY and JOINs ? I need to know that for a library I am working on...

Re: [web2py] web2py 1.95.1 and open issues

2011-04-25 Thread Praneeth Bodduluri
Also available at the cheese shop To install: pip install web2py To upgrade: pip install web2py --upgrade -- Praneeth IRC: lifeeth On Mon, Apr 25, 2011 at 7:49 PM, Stifan Kristi wrote: > great job, massimo n the others, i've download n test it. thank you so much. > > On Mon, Apr 25, 2011

Re: [web2py] web2py 1.95.1 and open issues

2011-04-25 Thread Stifan Kristi
great job, massimo n the others, i've download n test it. thank you so much. On Mon, Apr 25, 2011 at 9:06 PM, Massimo Di Pierro wrote: > Hello everybody, > > web2py 1.95.1 is out with lots of improvements and bug fixes: > ## 1.95.1 > - Google MySQL support (experimental) > - pip support, thanks l

Re: [web2py] FORM Generation Code.

2011-04-25 Thread Bruno Rocha
On Mon, Apr 25, 2011 at 3:28 AM, Ab... wrote: > If there's a workaround other than modifying the core file, I'd like to > know as I'm also facing the same issue. > You can pass your own labels, and the colon will be removed formm = SQLFORM(db.yourtable, labels= dict(field1='My Field', field2='O

[web2py] web2py 1.95.1 and open issues

2011-04-25 Thread Massimo Di Pierro
Hello everybody, web2py 1.95.1 is out with lots of improvements and bug fixes: ## 1.95.1 - Google MySQL support (experimental) - pip support, thanks lifeeth - better setup_exe.py, thanks meredyk - importved pyfpdf - domain check in email_auth.py, thanks Gyuris - added change_password_onvalidation

[web2py] Re: Problems in implementing "cas" !!

2011-04-25 Thread luis diaz
sorry for the image are very small and do not show the problem The following is better http://imgur.com/kcU7Y http://imgur.com/QiGUX

[web2py] Problems in implementing "cas" !!

2011-04-25 Thread luis diaz
greeting .. Problems in implementing "cas" at home everything works fine. but today I just get to work and need to show the project to my boss .. not working properly .. after you login .. "cas" IP redirects the client machine, instead of the IP of the site thatmakes the login request .. pleas

[web2py] Re: A way to select a range of ids ?

2011-04-25 Thread Jose
On 25 abr, 09:18, Alexandre Strzelewicz wrote: > Hi, > > Is there a way to select a range of ids from database ? > > Actually I use db(db.articles.id>20).select(limitby=(20, 30)) > > But I found the SQL keyword 'between' that permits to select a range > of data between two values. > > Thanks Yo

[web2py] Re: Problem with image upload on GAE

2011-04-25 Thread krmboya
Thanks a bunch, Massimo. On Apr 25, 3:25 pm, Massimo Di Pierro wrote: > do > > form = SQLFORM.factory( >             Field('image', > 'upload',uploadfield=os.path.join(request.folder,'uploads'), > requires=IS_UPLOAD_FILENAME(extension='jpg|jpeg|bmp|png')), >         ) > > On Apr 25, 2:46 am, krmb

[web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-25 Thread selecta
> So the solution to multiple forms using LOAD is to define a formname... I > guess... right this is the solution for multiple forms (for all pages, not just LOADed pages) this patch fixes something different: ONE form, multiple submit buttons

[web2py] Re: Problem with image upload on GAE

2011-04-25 Thread Massimo Di Pierro
do form = SQLFORM.factory( Field('image', 'upload',uploadfield=os.path.join(request.folder,'uploads'), requires=IS_UPLOAD_FILENAME(extension='jpg|jpeg|bmp|png')), ) On Apr 25, 2:46 am, krmboya wrote: > Hello web2py users, > I'm working on an application that involves image u

[web2py] Re: A way to select a range of ids ?

2011-04-25 Thread Alexandre Strzelewicz
With db._lastsql I saw that limitby apply an offset, sorry for this question On Apr 25, 1:18 pm, Alexandre Strzelewicz wrote: > Hi, > > Is there a way to select a range of ids from database ? > > Actually I use db(db.articles.id>20).select(limitby=(20, 30)) > > But I found the SQL keyword 'betwee

[web2py] Re: how to parse rawsql results?

2011-04-25 Thread Massimo Di Pierro
... autos.out='T' and autos.out='F' ... ? On Apr 25, 12:34 am, cyber wrote: > I used to use construction like this: > rows_count=db(db.autos.out=='T').count(), but my real query consists > of many conditions. So I decided to use executesql. > > By the way, I wrote the code: >    rows_count = db.e

[web2py] A way to select a range of ids ?

2011-04-25 Thread Alexandre Strzelewicz
Hi, Is there a way to select a range of ids from database ? Actually I use db(db.articles.id>20).select(limitby=(20, 30)) But I found the SQL keyword 'between' that permits to select a range of data between two values. Thanks

[web2py] Problem with image upload on GAE

2011-04-25 Thread krmboya
Hello web2py users, I'm working on an application that involves image uploads to be deployed on the Google App Engine. I have a table that looks like: db.define_table('submission', Field('image', 'upload', uploadfield="myblob"), Field('myblob', 'blob')) and a form like this: form = SQLFO

[web2py] using janrain

2011-04-25 Thread Resa Bee
this is the error im gettin when i run janrain after i have entered my username and password Traceback (most recent call last): . . . File "/usr/lib/python2.6/urllib2.py", line 391, in open response = self._open(req, data) File "/usr/lib/python2.6/urllib2.py", line 409, in _open '

[web2py] Re: Customizing auth in some interesting ways:

2011-04-25 Thread Tarun
We have similar login/register forms at Radbox (http://radbox.me ). Both register and login forms are default provided by web2py enclosed by div and styled using css on enclosing div. e.g. {{=auth.login()}} {{=A('Forgot password?', _href=URL(request.applicat

[web2py] Re: daily usage: best practices

2011-04-25 Thread sebastian
sorry guys I've posted on the wrong group ! On Apr 25, 9:02 am, sebastian wrote: > Hi Guys, > > I've tried several GTD programs and cannot find any other better than > this one. Of course, as any other program, it is not perfect. For > example it could be slow on netbooks... and I guess tha

[web2py] daily usage: best practices

2011-04-25 Thread sebastian
Hi Guys, I've tried several GTD programs and cannot find any other better than this one. Of course, as any other program, it is not perfect. For example it could be slow on netbooks... and I guess than on a cell phone it could be much more slower (I've never tried) and it leaks an UI for small scr