[web2py] InstantPress and web2py Version 2

2012-09-19 Thread Andrew W
Anyone using Instantpress with web2py V2.x ? I get this error when I click on Users icon on the panel: File applications/instantpress/modules/plugins/users.py, line 135, in lambda db.auth_user.username.represent = lambda value, row: status(value, row) File

[web2py] Upgrading failure with an app using the scheduler

2012-09-19 Thread Tim Richardson
I've made an app using the scheduler on version 1.99.7 under windows (source distribution). In another directory I have 2.0.9 I copied the folder containing my applicatoin into the 2.0.9 folder hierarchy, also in the applications folder. I start a new server for 2.0.9 on its own port. When I go

[web2py] Re: Upgrading failure with an app using the scheduler

2012-09-19 Thread Tim Richardson
I found a post from August 30 with the same problem. One tip was to delete all records from the scheduler_task table, but I still received the error. Then I delete the scheduler_task table, and now the app generates a ticket saying that it can't find the scheduler_task table. This also happens

Re: [web2py] Re: Presentations + IOError: [Errno 13] with google appengine

2012-09-19 Thread David Sorrentino
Man, you got the point. :) I was running web2py with 2.7 and then I tried the SDK with 2.5. Of course I created a kind of conflict. Cleaning the whole web2py from the pyc files and launching the SDK with python 2.5 worked perfectly! :) I still do not know why on archlinux I cannot develop with

[web2py] Re: Upgrading failure with an app using the scheduler

2012-09-19 Thread Niphlod
a column with a unique costraint was added. Given that you had a scheduler_table not empty, that newly added column was giving you the problems. What did you do when you say I deleted the scheduler_task table ? Il giorno mercoledì 19 settembre 2012 09:38:39 UTC+2, Tim Richardson ha scritto:

[web2py] Re: Upgrading failure with an app using the scheduler

2012-09-19 Thread Tim Richardson
On Wednesday, 19 September 2012 19:17:32 UTC+10, Niphlod wrote: a column with a unique costraint was added. Given that you had a scheduler_table not empty, that newly added column was giving you the problems. What did you do when you say I deleted the scheduler_task table ? I used an

[web2py] Re: Upgrading failure with an app using the scheduler

2012-09-19 Thread Niphlod
if you drop the table you need to delete also the databases/*_scheduler_task.table file, otherwise web2py does not know that the table does not exists. Il giorno mercoledì 19 settembre 2012 12:09:24 UTC+2, Tim Richardson ha scritto: On Wednesday, 19 September 2012 19:17:32 UTC+10, Niphlod

[web2py] Re: Upgrading failure with an app using the scheduler

2012-09-19 Thread Tim Richardson
On Wednesday, September 19, 2012 8:09:24 PM UTC+10, Tim Richardson wrote: On Wednesday, 19 September 2012 19:17:32 UTC+10, Niphlod wrote: a column with a unique costraint was added. Given that you had a scheduler_table not empty, that newly added column was giving you the problems.

[web2py] Re: Upgrading failure with an app using the scheduler

2012-09-19 Thread Tim Richardson
And it works well. Thanks. --

[web2py] Re: password file

2012-09-19 Thread Richard
That works fine :(, thank you. Op dinsdag 18 september 2012 21:01:55 UTC+2 schreef Niphlod het volgende: on modern web2py the password file should look like this password=pbkdf2(1000,20,sha512)$858c916eb3bad575$ea6a279d9d32f82f1dddc24aee153669204f05aa You should create a parameters_*.py

[web2py] Appliances, before 2.0 and after 2.0, (friendship)

2012-09-19 Thread apps in tables
Hi, Appliances are very important tool for learning web2py ( for me) . *(some of these appliances are close to my heart, they helped me a lot. they are my friends.)* They are also good for testing backward compatibility. They can be good also in introducing and testing the big new features of

[web2py] Re: Read file attached from gmail

2012-09-19 Thread Alan Etkin
Every day i did received a email (gmail) with a file attached (text) as rar. My question is how i can read this file attached from web2py? Try this (this recipe is for the last adapter modifications in trunk): # Connect to the IMAP service with web2py # For Gmail the connection string should

Re: [web2py] Re: Is there a way to have a widget like list:string on list:reference?

2012-09-19 Thread Johann Spies
On 16 September 2012 06:24, Bruno Rocha rochacbr...@gmail.com wrote: This one:http://ivaynberg.github.com/select2/#infinite It is easy to implement, just a default text box and you bind this. I want to try this. I am reading through the examples and documentation but to me it is not so easy

[web2py] Re: HTTPS Admin Page Remote Connection

2012-09-19 Thread Francisco Barretto
Hi Folks! Here's how I've solved the problem: I'm now running a web2py local server with regular configuration: nohup python web2py.py -i 127.0.0.1 -p 8000 Then configured apache2 based on the alternative mod_proxy configuration described in http://web2py.com/book/default/chapter/13.

[web2py] Re: HTTPS Remote Admin Page Access

2012-09-19 Thread Francisco Barretto
Hi Massimo! Here's how I've solved the problem: I'm now running a web2py local server with regular configuration: nohup python web2py.py -i 127.0.0.1 -p 8000 Then configured apache2 based on the alternative mod_proxy configuration described in http://web2py.com/book/default/chapter/13. This

[web2py] response.menu args

2012-09-19 Thread lyn2py
Hi guys, This is a typical code response.menu = [ (T('Home'), False, URL('default','index'), []) ] I would like to ask, what does the 2nd arg, False actually refer to? I tried changing it to True but it didn't seem to have any effect on the menu. I tried a quick search on the manual and

[web2py] bug? MSSQL query where date compares - Fails

2012-09-19 Thread KMax
Hello, DAL with MSSQL Query like: db(db.mytable.datenow()).select() Gives error: class 'pyodbc.DataError' ('22007', '[22007] [FreeTDS][SQL Server]Conversion failed when converting character string to smalldatetime data type. (295) (SQLExecDirectW)') now() - translated into: '2012-09-19

[web2py] Re: response.menu args

2012-09-19 Thread Paolo Caruccio
see https://groups.google.com/d/msg/web2py/Jc2qOVJ-Zws/yLzKdWb-y3cJ Il giorno mercoledì 19 settembre 2012 17:55:09 UTC+2, lyn2py ha scritto: Hi guys, This is a typical code response.menu = [ (T('Home'), False, URL('default','index'), []) ] I would like to ask, what does the 2nd

Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-19 Thread Andrew Evans
I upgraded to the nightly build and it still doesn't fix my issue :-( Version 2.0.9 (2012-09-18 20:11:26) stable (Taken from Nightly) MySQL 5.1.63-0+squeeze1 Any ideas and ty for the help Traceback (most recent call last): File /var/www/web2py/gluon/restricted.py, line 209, in restricted

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-09-19 Thread Martin Weissenboeck
Solved. The permission of a lot files have been wrong: I develop an application on a windows system and the target system is a linux machine. Some permissions got wrong values after copying the application files. 2012/9/17 Massimo Di Pierro massimo.dipie...@gmail.com You error seems to

Re: [web2py] Re: Active pages in plugin_wiki

2012-09-19 Thread Martin Weissenboeck
Great feature! I shall convert the application from plugin_wiki to auth.wiki Thank you, Massimo! 2012/9/17 Massimo Di Pierro massimo.dipie...@gmail.com def index(): return auth.wiki(manage_permissions=True or False) It should be straightforward. If it is not something is wrong. Feel free to

[web2py] Layout for forms

2012-09-19 Thread BlueShadow
Hi, I like to change the layout of a couple forms for example for the login form. in my default/user.html the form is just called by {{=form}} I found this on the webtopy site: {{=form.custom.begin}} Image name: div{{=form.custom.widget.name}}/div Image file: div{{=form.custom.widget.file}}/div

Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-19 Thread Andrew Evans
yea I just tried trunk and does not work for me either... Maybe I am writing my code wrong? Any ideas? On Wed, Sep 19, 2012 at 10:47 AM, Andrew Evans ade.ca...@gmail.com wrote: I upgraded to the nightly build and it still doesn't fix my issue :-( Version 2.0.9 (2012-09-18 20:11:26) stable

[web2py] Re: boolean type in MySQL: CHAR(1) vs TINYINT(1)

2012-09-19 Thread MichaelF
I have come across one bug with this. If I add a record using the admin interface, I check the 'Is_home_team' checkbox (Is_home_team is defined as a boolean, of course), yet the record has 0 for that field. Given that, as you might expect then, all records have a 0 for that field. ?? On

Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-19 Thread Andrew Evans
Also the Python Version I am using is 2.6.6 On Wed, Sep 19, 2012 at 10:56 AM, Andrew Evans ade.ca...@gmail.com wrote: yea I just tried trunk and does not work for me either... Maybe I am writing my code wrong? Any ideas? On Wed, Sep 19, 2012 at 10:47 AM, Andrew Evans

[web2py] Re: bug? MSSQL query where date compares - Fails

2012-09-19 Thread Niphlod
in MSSQL, smalldatetime is less precise than standard datetime field. Obviously this table wasn't created by web2py. Anyway, the problem here is that your now() - that is not a function provided by web2py - is set to a too much resoluted (as in too much numbers after the seconds part) value.

[web2py] Re: how to access auth_user.email to send an email

2012-09-19 Thread greaneym
Thank you, Anthony I will try this and re-read ch 3. On Tuesday, September 18, 2012 7:51:09 PM UTC-5, greaneym wrote: Hello, In testing the registration on my app, I am confused about how to send a new user an email. When a new user is registering using the defaults that come with

Re: [web2py] Re: int() argument must be a string or a number, not 'list'

2012-09-19 Thread Andrew Evans
Also updating web2py to Nightly seems to have caused a serious load on SSL caused 100% CPU load and raised up to 40% RAM usage until I reverted back to 1.99.7 and 1.99.7 didn't cause any load. Anyway My Report On Wed, Sep 19, 2012 at 11:38 AM, Andrew Evans ade.ca...@gmail.com wrote:

[web2py] pandas and web2py

2012-09-19 Thread andrej burja
hi is anybody using pandas with web2py i think i can do equipment = db().select.as_dict() df = DataFrame(equipment) but how to display pandas DataFrame object in web2py view? or how to convert in to something i can display in view? andrej --

[web2py] Re: Autocomplete widget customized label name and capital letter

2012-09-19 Thread Omi Chiba
OK so it's not possible right now. Should I post Enhancement request for these two ? On Tuesday, September 18, 2012 9:28:24 AM UTC-5, Omi Chiba wrote: How can we do the following ? 1. Use two fields value for the label name db.TDMUSJ00.TRTRKN works fine but I want to do like

[web2py] How do I implement this using auth groups ?

2012-09-19 Thread Pystar
Hi guys, I need help on how to implement having a super user being able to create admins to administrate db tables using groups. Auth.addgroup() eg? --

[web2py] How do I implement this using auth groups ?

2012-09-19 Thread Pystar
Hi guys, I need help on how to implement having a super user being able to create admins to administrate db tables using groups. Auth.addgroup() eg? --

Re: [web2py] Pushing data to the client..

2012-09-19 Thread Khalil KHAMLICHI
check this file gluon/contrib/comet_messaging.py very simple to implement a works very well On Mon, Sep 17, 2012 at 9:43 PM, hiro hiro...@gmail.com wrote: I am trying to port my Baduk client to an web2py app.. I have tried some writing some small programs and have no problem so far..

[web2py] Re: Appliances, before 2.0 and after 2.0, (friendship)

2012-09-19 Thread apps in tables
I am just suggesting... Regards, Ashraf --

[web2py] Re: 2.0.9 control-f firefox/chrome on mac doesn't work

2012-09-19 Thread Massimo Di Pierro
Looks like codemirror break textsearch. We will integrate this: http://codemirror.net/demo/search.html On Wednesday, 19 September 2012 12:44:24 UTC-5, Adi wrote: Unfortunately, I can't figure out the pattern, but rolled back to 2.0.3 version and search works properly. Brings a find popup

[web2py] Re: Autocomplete widget customized label name and capital letter

2012-09-19 Thread Massimo Di Pierro
Please do. On Wednesday, 19 September 2012 15:27:50 UTC-5, Omi Chiba wrote: OK so it's not possible right now. Should I post Enhancement request for these two ? On Tuesday, September 18, 2012 9:28:24 AM UTC-5, Omi Chiba wrote: How can we do the following ? 1. Use two fields value for the

[web2py] Re: Electronic voting anybody?

2012-09-19 Thread apps in tables
Can jplayer be used to add the video? Ashraf --

[web2py] Re: Electronic voting anybody?

2012-09-19 Thread apps in tables
No, jplayer is for playing media. we are looking for embeding media from other sites. Ashraf --

[web2py] Re: Help with menu error using web2py 2.0.9

2012-09-19 Thread JoeCodeswell
I have gone one more step in trying to isolate the problem. Given the existence of models/[menu.py, db.py] in the previous post, when default-fail.py is copied to controllers/default.py, the sub-menus DO NOT show up when hovered over. However, when default-welcome209.py is copied to

[web2py] URGENT - web2py server crashes

2012-09-19 Thread weheh
I'm getting a web2py crash. Here's the trace at the web2py 1.99.7 (2012-03-04 22:12:08) stable console: DEBUG: connect attempt 1, connection error: Traceback (most recent call last): File C:\web2py\gluon\dal.py, line 5955, in __init__ self.adapter = ADAPTERS[self._dbname](*args) File

Re: [web2py] URGENT - web2py server crashes

2012-09-19 Thread Jonathan Lundell
On 19 Sep 2012, at 5:29 PM, weheh richard_gor...@verizon.net wrote: I'm getting a web2py crash. Here's the trace at the web2py 1.99.7 (2012-03-04 22:12:08) stable console: DEBUG: connect attempt 1, connection error: Traceback (most recent call last): File C:\web2py\gluon\dal.py, line

[web2py] Re: URGENT - web2py server crashes

2012-09-19 Thread LightDot
This error comes from Windows Socket API. It looks like Windows is having problems with TCP connections, consequently the backlog becomes too big for the buffers to handle. I guess this could be caused by the size of the transaction too, not just by the number of connections, I'm not sure.

Re: [web2py] URGENT - web2py server crashes

2012-09-19 Thread weheh
Definitely some kind of running out of memory issue. Now, I'm getting this: web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.99.7 (2012-03-04 22:12:08) stable Database drivers available: SQLite3, pymysql, psycopg2, pg8000, IMAP Starting hardcron... please visit:

[web2py] Re: 2.0.9 control-f firefox/chrome on mac doesn't work

2012-09-19 Thread LightDot
I'm not user that it does. I tested browser search (ctrl+f) in: - Fedora linux: Firefox 15.0, Chromium 20.0.1132.47, Opera 12.02 - Windows 7: IE8, IE9 by using: - windowed browser with default size editor - windowed browser with full size editor - full screen browser with full size editor. In

Re: [web2py] URGENT - web2py server crashes

2012-09-19 Thread Jonathan Lundell
On 19 Sep 2012, at 6:27 PM, weheh richard_gor...@verizon.net wrote: Definitely some kind of running out of memory issue. Now, I'm getting this: Can you run the server without cron? It's probably not *that* significant that newcron shows up in the traceback, but turning it off (if you can) might

Re: [web2py] URGENT - web2py server crashes

2012-09-19 Thread Massimo Di Pierro
yes. Cron can be responsible for memory issue if it locks the database and keeps restarting. I would also suggest moving to 2.0.9. On Wednesday, 19 September 2012 20:37:18 UTC-5, Jonathan Lundell wrote: On 19 Sep 2012, at 6:27 PM, weheh richard...@verizon.net javascript: wrote: Definitely

Re: [web2py] URGENT - web2py server crashes

2012-09-19 Thread weheh
How to disable cron? I've read other threads on this, but can't find the right incantation. On Thursday, September 20, 2012 9:37:18 AM UTC+8, Jonathan Lundell wrote: On 19 Sep 2012, at 6:27 PM, weheh richard...@verizon.net javascript: wrote: Definitely some kind of running out of memory

[web2py] Cookie Based Logon

2012-09-19 Thread Abhishek Gupta
Hi First of all, a lot of thanks for such an awesome piece of software. I am working on a website where I need to implement cookie based logon quite similar to the system described here http://www.phpnerds.com/article/using-cookies-in-php/2 in php. The idea is simple. When a user clicks on

Re: [web2py] URGENT - web2py server crashes

2012-09-19 Thread Jonathan Lundell
On 19 Sep 2012, at 7:19 PM, weheh richard_gor...@verizon.net wrote: How to disable cron? I've read other threads on this, but can't find the right incantation. How are you running cron now? What mode? If you're using Rocket (as it looks like), you can use -N to disable cron. --

Re: [web2py] URGENT - web2py server crashes

2012-09-19 Thread weheh
Thanks, Jonathan. There it is, right there in the doc. I was looking thru old threads. Anyway, I'm trying no cron to see if it works better. On Thursday, September 20, 2012 10:23:06 AM UTC+8, Jonathan Lundell wrote: On 19 Sep 2012, at 7:19 PM, weheh richard...@verizon.net javascript: wrote:

[web2py] Using original or custom filename on uploads

2012-09-19 Thread Tito Garrido
Hi, Is there a way to use the original filename on a upload field or custom filenames? I guess it is possible since we can upload files in appadmin and choose the name but I couldn't find how to do it. Thanks in advance, Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._|

[web2py] Re: response.menu args

2012-09-19 Thread lyn2py
Thanks Paolo! On Thursday, September 20, 2012 1:40:16 AM UTC+8, Paolo Caruccio wrote: see https://groups.google.com/d/msg/web2py/Jc2qOVJ-Zws/yLzKdWb-y3cJ Il giorno mercoledì 19 settembre 2012 17:55:09 UTC+2, lyn2py ha scritto: Hi guys, This is a typical code response.menu = [

[web2py] Re: 2.0.9 control-f firefox/chrome on mac doesn't work

2012-09-19 Thread LightDot
Yes, admin editor is one of the great aspects of web2py. It's important that it's of the highest quality possible. I tried reproducing with the same text as you have problems with but to no avail. I first saved a couple of examples and reopened the file, but it still works straight out of the

Re: [web2py] web2py server crashes [closed]

2012-09-19 Thread weheh
OK, seems to be holding well with the cron turned off. Thanks for the help everyone. I'll continue to monitor and let you know if it breaks again. And Massimo, I'll upgrade as soon as I have some breathing space. --

[web2py] Re: InstantPress and web2py Version 2

2012-09-19 Thread Andrew W
FYI, I've also logged this on the project's bitbucket site: https://bitbucket.org/mulonemartin/instantpress/issue/12/error-clicking-on-users-menu-option In case you're using Instantpress, the issue is caused by a mismatch between the specified fields and then referencing a field that is not

[web2py] hideerror=True is being ignored in 2.0.x

2012-09-19 Thread Matt
Hi there, I use custom forms in my app. I'm getting a problem whereby form errors divs are now appearing in the output of widgets. Even though I've suppressed them via hideerror=True. i.e. logging.info(form.custom.widget[field]) returns input class=string invalidinput id=x_name

[web2py] Appliances, before 2.0 and after 2.0, (friendship)

2012-09-19 Thread Nico de Groot
This would be a rather big change, couldn't you just prefix the application folder name with the major version number? 1x apps with 1 and or the new friends with 2. This would give you the grouping you want. Nico de Groot --