[web2py] Re: Book-bug

2012-01-24 Thread Johann Spies
My original email was correct: The statement in the book *You can truncate the table, i.e., delete all records and reset the counter of the id*. is not correct. The id-counter does not get reset during truncate. That is the case with Postgresql. I have not tested that on other databases. The

Re: [web2py] Problem with plugin_PowerFormWizard and Internetexplorer

2012-01-24 Thread Oli
thanks, i will try this later. I found a workaround for my Problem. The PowerFormWizard form was integrated in a Website of googlesites. When i open an extra window, which is not integrated in googlesites, all works fine. Thanks OF.

[web2py] Re: Need help with selecting multiple rows into a single row

2012-01-24 Thread Alan Etkin
I think that your csv output should have a fixed column length. The way you are trying to create the file would produce variable column length for each row, unless you provide a way of adding the blank fields. Row objects have as_dict method. You could use this method to map row data to a new

[web2py] Some database related changes to web2py core

2012-01-24 Thread Ben Goosman
I'm not sure if these are actual bug fixes or simply misinformed hacks (please let me know), but I think they might be useful to the community. My notes are for version 1.99.2 so the line numbers may be a little off. Most of the changes are the result of trying to get Oracle and multiple key

[web2py] Re: to the new user who posted a suggestions...

2012-01-24 Thread Anthony
On Tuesday, January 24, 2012 2:38:16 AM UTC-5, Ben Goosman wrote: Thanks Massimo, I didn't realize there was an approval stage. (hence the 3 submissions :)) Only the first time you post (to prevent spammers from getting in).

[web2py] Re: How to modify the look and text of: Remember me (for 30 days)?

2012-01-24 Thread Ross Peoples
There are settings for almost everything. Sometimes the book doesn't explain every single one though. The best way to figure out what's going on is to open the gluon/tools.py file, and find the Auth class. This class will have all the settings listed with their default values at the top of the

[web2py] Re: Output web2py Errors to stdout/shell/commandline

2012-01-24 Thread Alan Etkin
I cannot find a documented way of directing the traceback to the console. A command line option to show traceback data in the console might be useful. On 23 ene, 13:13, Iwan Gabovitch qubo...@googlemail.com wrote: Hello, I run web2py locally, to develop a website. Whenever there is an error, I

[web2py] Re: How to modify the look and text of: Remember me (for 30 days)?

2012-01-24 Thread Anthony
This is not working (it remains E-mail): auth.messages.label_email = 'Email' Are you using the default auth.define_tables() to create you Auth models? You may need to show some code. Remember me (for 30 days works) - but there is a space above it up to password - how to remove

[web2py] Re: How to modify the look and text of: Remember me (for 30 days)?

2012-01-24 Thread Anthony
Also on Sign Up form I got a message 'too short' below the Password field - in the book link there is not correspondent function to change it. That's coming from the default CRYPT validator. Try: db.auth_user.password.requires[-1].error_message = 'Your custom error message' This assumes

[web2py] Re: google code (mercurial) problem

2012-01-24 Thread Ross Peoples
Which one are we using as the primary repo now, is it Google Code or GitHub?

[web2py] Re: Some database related changes to web2py core

2012-01-24 Thread Massimo Di Pierro
Excellent! Thank you. Uploading your changes to trunk... On Jan 24, 1:39 am, Ben Goosman bgoos...@gmail.com wrote: I'm not sure if these are actual bug fixes or simply misinformed hacks (please let me know), but I think they might be useful to the community. My notes are for version 1.99.2 so

[web2py] Re: accepts KeyError: '_id', latest trunk with postgresql

2012-01-24 Thread Carlos
Thanks, just an update: I'm still getting this error, evern with latest trunk.

[web2py] Re: email_auth works on web2py server, but not GAE

2012-01-24 Thread Alan Etkin
You could try printing this command's output to the console in development: ... server.login(email, password) ... It is in line 29 of web2py source installation/gluon/contrib/ login_methods/email_auth.py gluon/contrib/login_methods/email_auth.py On 23 ene, 13:48, pattu

[web2py] How to get unencrypted auth password?

2012-01-24 Thread thstart
I need to unencrypt auth password having the key. How to do that?

[web2py] Re: book 4th edition in PDF

2012-01-24 Thread Magnitus
I gave up on the first attempt after waiting over 10 minutes for a reply. Second attempt worked and promptly. Used Visa. btw, thanks for the reasonable pricing on the pdf format. I hate it when the price for the physical copy and the price for the pdf are almost the same.

Re: [web2py] Re: book 4th edition in PDF

2012-01-24 Thread António Ramos
i bought the 3rd edition from LULU. can i get a free pdf of the 4th edition?

Re: [web2py] Re: book 4th edition in PDF

2012-01-24 Thread Magnitus
If it helps, consider it a donation with benefits ;).

[web2py] First chapter that should be useful to some web2py users

2012-01-24 Thread ma...@rockiger.com
Hello, the tutorial is making some progress: Begining with chapter 5, it should be interesting for web2py users, that are already familiar with the basics of web2py and want to learn about functional testing with selenium. Some links to start: Selenium setup:

Re: [web2py] Re: book 4th edition in PDF

2012-01-24 Thread António Ramos
Well, i need a donation too :) 2012/1/24 Magnitus eric_vallee2...@yahoo.ca If it helps, consider it a donation with benefits ;).

Re: [web2py] Re: google code (mercurial) problem

2012-01-24 Thread Bruno Rocha
I am using Git Em 24/01/2012 12:20, Ross Peoples ross.peop...@gmail.com escreveu: Which one are we using as the primary repo now, is it Google Code or GitHub?

[web2py] Re: First chapter that should be useful to some web2py users

2012-01-24 Thread Willoughby
Awesome! Can't wait to check this out...

[web2py] Stalling out early on... blank page in 'MyApp'

2012-01-24 Thread Monte Milanuk
Hello all, Getting started with the tutorial in the docs... edited default.py as directed and things worked as expected. Edited default/index.html to include the bare html tags as shown in the tutorial... and nothing. On reloading I get just a blank browser window for a view. After spending

[web2py] Re: Stalling out early on... blank page in 'MyApp'

2012-01-24 Thread Monte Milanuk
Ack... missed the '='... whoops. Sorry for the noise.

[web2py] view txt,pdf etc

2012-01-24 Thread davidjensen
I am trying to write html that enables you to view pdf, etc in the browser. This is easy to do in www.mydomain.com/mypdf.pdf How do I do this? previous posts said I had to go to a non web2py site. like app engine? If so, isn't this a bug that should be fixed since displaying pdf, txt, etc is

[web2py] Re: How to get unencrypted auth password?

2012-01-24 Thread pbreit
I don't think that's possible. It's one-way hashed specifically to prevent unencryption.

[web2py] using existing sqlite3 database in web2py without using DAL ?

2012-01-24 Thread Nomad
Im looking for feedback on if this is poor practice situation: i have an existing service that uses a sqlite3 database i was asked to port to a webapp. Being semi-familiar with MVCs and web2py i decided to give this a go. We have functions defined in python to return the expected data

[web2py] Re: using existing sqlite3 database in web2py without using DAL ?

2012-01-24 Thread Massimo Di Pierro
The reason you have to define tables in dal is that a string field in the database may be just a string field but may be a password, or a filename at the web2py level. web2py needs to know. If you do not care and you have no plans to move to any other db engine, than there is nothing wrong in

[web2py] Re: How to get unencrypted auth password?

2012-01-24 Thread Massimo Di Pierro
If that were possible web2py would have a vulnerability. On Jan 24, 9:43 am, thstart thst...@gmail.com wrote: I need to unencrypt auth password having the key. How to do that?

[web2py] Re: How to get unencrypted auth password?

2012-01-24 Thread thstart
I needed to transfer accounts to a new server. It turns out it is not needed.

[web2py] Re: How to get unencrypted auth password?

2012-01-24 Thread thstart
it was not needed to decrypt I wanted to say.

[web2py] Re: How to get unencrypted auth password?

2012-01-24 Thread thstart
Hi Massimo, Could you please comment on related question? https://groups.google.com/forum/#!topic/web2py/DXQ9hBAuVDA Tanks in advance, --Constantine

Re: [web2py] Re: web2py with twitter bootstrap - very clean interface ...

2012-01-24 Thread pbreit
Looks like Twitter Bootstrap 2 is ready. I've seen some positive comments about it in regards to the switch to 12 columns and responsiveness.

[web2py] Re: Ho to implement a SignIn with multiple verified email addresses.

2012-01-24 Thread pbreit
Interesting concept. It's not common but I have seen it at sites like PayPal. Might not be a bad addition to auth. As mentioned above, one approach may be to use list:string for the auth_user email field. Or maybe add a field for secondary emails since you probably want one email address to be

Re: [web2py] Re: web2py with twitter bootstrap - very clean interface ...

2012-01-24 Thread David J
Yeah setup bs2 today and its really sweet. Just need to make some class changes from v1.4 On Jan 24, 2012 6:47 PM, pbreit pbreitenb...@gmail.com wrote: Looks like Twitter Bootstrap 2 is ready. I've seen some positive comments about it in regards to the switch to 12 columns and responsiveness.

Re: [web2py] Re: web2py with twitter bootstrap - very clean interface ...

2012-01-24 Thread Bruno Rocha
Yes it is very nice, I am already using since the beta in http://movu.ca, I am also developing a boostrap theme for the CMS -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Re: Ho to implement a SignIn with multiple verified email addresses.

2012-01-24 Thread thstart
the simplest way to implement without changing auth table is: 1) user logs in with email/password 2) my app checks if login passed through 3) if not my app checks if the email entered in login matches a list in a different table. 4) if it matches, it checks the password if matches in auth

[web2py] Re: Need help with selecting multiple rows into a single row

2012-01-24 Thread Adi
Thanks Alan for your advise, but I'm not sure how I would implement what you are suggesting? For now I use smartgrid's onpdate and oncreate events to update purchase order items field (type list:string) with all items for that particular order, but I hate this solution since it's computed

[web2py] High memory usage in webfaction

2012-01-24 Thread Joseph Jude
Dear All, I was expecting when I am going to get this message from webfaction team and I got it today. I have searched through this group and found that I could use uwsgi server. Before I go ahead and make changes on the site, I got few questions: 1. Currently it is running on apache. How do I

[web2py] Re: using existing sqlite3 database in web2py without using DAL ?

2012-01-24 Thread Anthony
You don't have to use the DAL, but as Massimo pointed out, SQLFORM uses it (I suppose you could still use SQLFORM.factory and manually handle inserts/updates). Note, you don't necessarily have to create DAL models for every table in your db -- you can model just a subset that would be most

[web2py] Re: view txt,pdf etc

2012-01-24 Thread Anthony
What problem are you having? Can you show the code you tried? What did you expect, and what did you see? On Tuesday, January 24, 2012 4:10:57 PM UTC-5, davidjensen wrote: I am trying to write html that enables you to view pdf, etc in the browser. This is easy to do in

[web2py] Error with ignore_common_filters when using a select string (instead of a DAL query)

2012-01-24 Thread pbreit
I'm getting an error when using a string as a query instead of an actual DAL-style query object. This used to work. My guess is that it broke around the time of this changeset which implemented ignore_common_filters:

[web2py] Re: Error with ignore_common_filters when using a select string (instead of a DAL query)

2012-01-24 Thread Massimo Di Pierro
Can you check trunk? I have fixed that one line but not sure if this should be supported and what the consequences. On Jan 24, 8:40 pm, pbreit pbreitenb...@gmail.com wrote: I'm getting an error when using a string as a query instead of an actual DAL-style query object. This used to work. My

[web2py] how we create admin password and placed in parameters_PORTNUM.py file manually

2012-01-24 Thread blackshirt
i just want to know, is it possible to reconstruct password entries on parameters_PORTNUM.py file manually ?? if it possible, how we can build this password manually ?? Thanks

Re: [web2py] how we create admin password and placed in parameters_PORTNUM.py file manually

2012-01-24 Thread Bruno Rocha
sudo -u www-data python -c from gluon.main import save_password; save_password('somepassword', portnumber) On Wed, Jan 25, 2012 at 1:22 AM, blackshirt fatkhulmusli...@gmail.comwrote: i just want to know, is it possible to reconstruct password entries on parameters_PORTNUM.py file manually ??

[web2py] Re: Error with ignore_common_filters when using a select string (instead of a DAL query)

2012-01-24 Thread Anthony
We recently discussed this here: https://groups.google.com/forum/?fromgroups#!topic/web2py/Ez_pxGFCsVE The book implies passing a string as a query will work: http://web2py.com/books/default/chapter/29/7#Links-to-referencing-records (see the list_records function). However, appadmin doesn't

Re: [web2py] Re: Problem with .smartgrid on tables with links

2012-01-24 Thread rochacbruno
I just got the same error type 'exceptions.KeyError' '_id' Traceback (most recent call last): File /home/bruce/projects/web2py/gluon/restricted.py, line 204, in restricted exec ccode in environment File /home/bruce/projects/web2py/applications/demo/controllers/appadmin.py

Re: [web2py] Re: Problem with .smartgrid on tables with links

2012-01-24 Thread Bruno Rocha
*I forgot to mention that the error was in /default/user/profile action* On Wed, Jan 25, 2012 at 4:51 AM, rochacbruno rochacbr...@gmail.com wrote: I just got the same error type 'exceptions.KeyError' '_id' Traceback (most recent call last ): File