[web2py] InstantPress and web2py Version 2

2012-09-18 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 db.auth_user.username.represent = lambda value, row: status(value, row) File "applications/instantpress/modules/

[web2py] Re: SQLTABLE: how to customise it?

2012-09-18 Thread Massimo Di Pierro
Should not be *{, 'hvmt2.bytes_total.sum()'*:'USAGE in MB'} but {., str(db.*hvmt2.bytes_total.sum())*:'USAGE in MB'} On Tuesday, 18 September 2012 01:23:58 UTC-5, maverick wrote: > > How do I give a label to calculated fields, like if I used: > > rows = db().select(db.hvmt2.hub,db.*hvmt

[web2py] Re: Lighttpd setup

2012-09-18 Thread Dariusz Cieslak
> > I didn't manage to configure Web2py with this web server (each step > was followed and the only result was directory listing, of course when > enabled). > I'm using web2py + lighttpd for some time. Here's my setup used: http://blog.aplikacja.info/2012/02/leb2py-lighttpd-deploytment/ --

[web2py] Re: SQLTABLE: how to customise it?

2012-09-18 Thread maverick
How do I give a label to calculated fields, like if I used: rows = db().select(db.hvmt2.hub,db.*hvmt2.bytes_total.sum()*, groupby=db.hvmt2.hub, cacheable=True) I want to serialize rows as: Result=SQLTABLE(rows,headers={'hvmt2.hub':'HUB',*'hvmt2.bytes_total.sum()'*:'USAGE in MB'},truncate=60)

[web2py] Re: response.stream and web2py_component

2012-09-18 Thread maverick
Yes it was the older version. Thanks for your suggestions guys, I used a combination of response.js and frame to render the response and also open a save as dialog.. In short: in form_query(): response.js = "jQuery('#ddl').attr('src','form_query_download')" And form_query_download():

[web2py] Can't import module ?

2012-09-18 Thread IVINH
HI, I install python-tesseract (http://code.google.com/p/python-tesseract/downloads/detail?name=python-tesseract-0.7.6.win32-py2.7.exe&can=2&q=), it's work fine on Python interpreter (Win32). But, i can't import tesseract module on web2py source code version 2.0.9. What did I do wrong? Thanks

[web2py] Can't import (tesseract) module ?

2012-09-18 Thread IVINH
HI, I install python-tesseract-0.7.6.win32-py2.7.exeand it's work fine on Python interpreter. But i can't import module on web2py source code version 2.0.9 What did I do wrong? Thank

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

2012-09-18 Thread Anthony
In mail.send(), the "to" argument has to be a list of actual email addresses. You are giving it a string that is the name of a variable that holds a DAL Rows object (but it treats the string itself as the email address). You want something more like: newuser = db(db.auth_user.email==email).sele

[web2py] Re: Odd bootstrap.js behavior while updating AppointmentManager appliance

2012-09-18 Thread dhmorgan
Sorry, I forgot to include that I also had edited "/views/default/appointment_read.html," commenting out the {{for t,f in db.t_appointment._referenced_by:}} loop, thus permitting the appliance to function. (it creates a "too many values to unpack" error) On Tuesday, September 18, 2012 7:11:55

[web2py] fancybox forms issue

2012-09-18 Thread Marco Mansilla
Hi everyone, i try not to ask here before googling my issues but so far i haven't found solution for this one: i have this in my model db.py db.define_table('person', Field('first_name'), Field('last_name'), Field('address'), Field('phone'), Field('email'),

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

2012-09-18 Thread greaneym
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 web2py, I can see in the db that for a new user, there is a field db.auth_user.email, so I am trying to use that to send a mail to t

[web2py] Odd bootstrap.js behavior while updating AppointmentManager appliance

2012-09-18 Thread dhmorgan
I'm interested in using the Appointment Manager appliance ( https://github.com/mdipierro/web2py-appliances/tree/master/AppointmentManager) in conjunction with the latest layout/css/js. I replaced the appliance's "/views/layout.html" and "static/css" with that from the "welcome" application in W

Re: [web2py] Re: Best Method to implement a "like" button

2012-09-18 Thread Mark Li
Thanks for the response guys! I'm going with rochabruno's method as it is the most straightfoward, I hadn't really looked into the compute capabilities. On Tuesday, September 11, 2012 3:55:21 PM UTC-7, rochacbruno wrote: > > The computation should be > > compute= lambda row: "%(username)s-%(song

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread Andrew
Try: SetEnvIf X-Forwarded-Proto https HTTPS=1 I had a similar issue and posted on the wsgi group: https://groups.google.com/forum/?fromgroups=#!topic/modwsgi/Egi6pg7c2X8 Regards, Andrew On Tuesday, September 18, 2012 2:19:41 PM UTC-5, David Phillips wrote: > > Thanks for checking,

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

2012-09-18 Thread Massimo Di Pierro
I think the problem is that you are running web2py with 2.7 and the sdk with 2.5. I suspect when 2.5 finds the pyc created with 2.7 it complains. GAE does not complain because the pyc are not deployed. Try delete all the pyc files, restart the SDK and it should not complain. On Tuesday, 18 Sept

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread Michele Comitini
Apache is an big beast, zillions of options... It could that HTTPS env var in apache is not passed to WSGI. Check: https://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions StdEnvVars must be enabled mic 2012/9/18 David Phillips : > Thanks for checking, Massimo. I'll start looking into t

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

2012-09-18 Thread David Sorrentino
Just tried on my ubuntu server and everything works super fine, both with python 2.5 and 2.7. I also tried a "vanilla" version of archlinux on a virtual machine and nothing changed. I don't know why, but seems like archlinux doesn't like the appengine SDK. :P However, perhaps it's not the best sol

[web2py] Re: Submitting a form on a jQuery-UI modal

2012-09-18 Thread howesc
i think you need the ajax_trap parameter to LOAD(): {{=LOAD('default','ajax1.load', ajax=True, user_signature=True, ajax_trap=True)}} if that does not work, can you run the code with a HTTP inspector in the browser to see what URLs are actually being fetched when? i suspect that the LOADed co

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread David Phillips
Thanks for checking, Massimo. I'll start looking into the web server. David On Sep 18, 2012, at 1:30 PM, Massimo Di Pierro wrote: > This confirms my impression. This is not a web2py 2.0.x issue. Something else > has changed. env.wsgi_url_scheme and env.https are from the WSGI environment.

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

2012-09-18 Thread David Sorrentino
Oddly enough I'm getting these WARNING/ERRORS just with the SDK. I checked the logs of the GAE and they are cleaned. ;) Yes, all of them are related to the content of the folder *plural_rules*. Yes, it looks like they are always the same files. Appengine is giving me some lemons, but I'm not gonn

[web2py] Re: password file

2012-09-18 Thread Niphlod
on modern web2py the password file should look like this password="pbkdf2(1000,20,sha512)$858c916eb3bad575$ea6a279d9d32f82f1dddc24aee153669204f05aa" You should create a parameters_*.py on your machine using web2py (normally, it would create a parameters_8000.py file) and transfer it to your rem

[web2py] [ANNOUNCE] PyCon Argentina 2012: Schedule, Early Bird Registration and more...

2012-09-18 Thread Mariano Reingart
PyCon Argentina 2012, the 4th National Spanish-speaking Python Conference will be held from November 12th to 17th, in Buenos Aires at the main venue of the National University of Quilmes (Bernal City, in the Great Buenos Aires metropolitan area), Urban Station and EducacionIT (Buenos Aires City do

[web2py] Re: Installing Windows Service (2.0.9 Win exe)

2012-09-18 Thread Andrew W
Thanks Tim, Just confirming, you used the settings in options_std.py file in web2 py dir, not the ones shown in book. --

[web2py] Re: password file

2012-09-18 Thread Richard
The password file didn't have the correct content. Now it contains password="" where is my password containing capitals. This is however not the password with which I can login, now I am locked out, I didn't know that web2py could do that! So admin is still not running. Op dinsdag 18 se

[web2py] Re: SQLFORM.grid, links and buttons placement specification (before other columns, after, or both)

2012-09-18 Thread Adi
+1 needed this since January :) links on left side would be great. https://groups.google.com/d/topic/web2py/ZlxQ3AfWrr4/discussion On Tuesday, April 17, 2012 4:57:04 AM UTC-4, nikos wrote: > > Hello there follow web2py users, > > First of all, Massimo, thanks for the great work you have done to

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread Massimo Di Pierro
This confirms my impression. This is not a web2py 2.0.x issue. Something else has changed. env.wsgi_url_scheme and env.https are from the WSGI environment. HTTPS is not defined and WSGI_URL_SCHEME is http. I am suing web2py 2.0.9 with apache and I get request.env.wsgi_url_scheme: https reques

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

2012-09-18 Thread Massimo Di Pierro
Strange. Are you getting the errors with the SDK or GAE or both? Are most of the errors for pyc files or files in plural_rules? does it look they are always the same files? On Tuesday, 18 September 2012 11:08:44 UTC-5, David Sorrentino wrote: > > Apparently it is. > Just tried with python 2.5 an

[web2py] Re: password file

2012-09-18 Thread Richard
443 works better indeed. Thank you. I do get an error ticket now, opening that tickets gives a tickets again :( Op dinsdag 18 september 2012 18:28:40 UTC+2 schreef Niphlod het volgende: > > if you access your ewbsite behind ssl that's usually on port 443. > so you need to create a parameters_443.

[web2py] Re: HTTPS admin access has stopped working

2012-09-18 Thread Cliff Kachinske
You did remember to stop and restart apache after copying the parameters file, right? I ask only because I have overlooked this step. On Monday, September 17, 2012 3:15:40 PM UTC-4, David Phillips wrote: > > I had a web2py 1.99.7 app running on Elastic Beanstalk. I was able to use > the admin i

[web2py] Re: password file

2012-09-18 Thread Niphlod
if you access your ewbsite behind ssl that's usually on port 443. so you need to create a parameters_443.py file (either on the server or in your local machine and then upload that one). Il giorno martedì 18 settembre 2012 18:26:13 UTC+2, Richard ha scritto: > > Hi, > > I have my site hosted at J

[web2py] password file

2012-09-18 Thread Richard
Hi, I have my site hosted at Justhost.com Now I want to use the admin interface directly so I have added SSL, this seems to work. Going to the topics I can not resolve the last issue "admin disabled because unable to access password file". for this I have added parameters_8000.py is the in the

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

2012-09-18 Thread Tito Garrido
That is true, it is very easy to implement thanks! Another question, is there a way to do not allow empty selections on list:reference? On Sun, Sep 16, 2012 at 1:24 AM, Bruno Rocha wrote: > This one:http://ivaynberg.github.com/select2/#infinite > > It is easy to implement, just a default text b

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

2012-09-18 Thread David Sorrentino
Apparently it is. Just tried with python 2.5 and it seems to work. I just get an avalanche of warnings every time a load a page. Here an instance: http://pastebin.com/MPZVS1FM Do you know why all this mess happens? Is it related to the handler defined in app.yaml? I used the one present in the sc

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread David Phillips
Sure. [Tue Sep 18 15:49:25 2012] [error] WARNING:root:request.env.wsgi_url_scheme: http [Tue Sep 18 15:49:25 2012] [error] WARNING:root:request.env.https: None On Sep 18, 2012, at 10:40 AM, Massimo Di Pierro wrote: > Can you please print the values of > > request.env.wsgi_url_scheme and re

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread Massimo Di Pierro
Can you please print the values of request.env.wsgi_url_scheme and request.env.https It will help me understand what is going on. I do not think we changed the request.is_https behavior. web2py my not be able to detect https if behind a proxy. Massimo On Tuesday, 18 September 2012 10:27:34 U

[web2py] 2.0.9 web2py.css smartgrid links instead of previous buttons

2012-09-18 Thread Adi
just updated my previous application 1.9.97 web2py.css with the 2.0.9 and smartgrid default buttons became links. Several custom buttons stayed as buttons. noticed that this code bellow was taken out and replaced with commented part. is there now an other way to create by default smartgrid butt

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

2012-09-18 Thread Massimo Di Pierro
Please let us know if this is something we can improve or document better. Codemirror was recently integrated and it is possible we have broken some key-bindings. On Tuesday, 18 September 2012 10:22:31 UTC-5, Adi wrote: > > Yes, I meant the admin editor. Command-F is a browser search, but > Con

Re: [web2py] HTTPS admin access has stopped working

2012-09-18 Thread David Phillips
Thanks to everyone for their replies. Bruno, that is a neat trick. Unfortunately, it didn't solve my problem. I generated a new password and restarted the apache server, but I am seeing the same behavior -- request.is_https is returning false even though I am using https and I cannot use the ad

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

2012-09-18 Thread Adi
Yes, I meant the admin editor. Command-F is a browser search, but Control-F was a working feature of the editor. Something strange is going on my side with code search, but otherwise I like working in the admin editor... Will check codemirror instructions. Thanks Massimo... On Tuesday, Septem

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

2012-09-18 Thread Massimo Di Pierro
Could this be a problem of 2.5 vs 2.7? Have you tried 2.5? On Tuesday, 18 September 2012 04:20:16 UTC-5, David Sorrentino wrote: > > Hi everybody! > > My name is David and I started "playing" with web2py few days ago. My > first impression is definitely positive and I hope to start soon > contri

[web2py] Re: How to use maps in plugin_wiki

2012-09-18 Thread greaneym
Phil, I don't maintain the plugin, but here's what I did to test to see if it would still work. I made copies of all my files (backup). I read the Google developer page that says that now only businesses have to pay for a key. So if you are learning how to use the api you don't have to pay any

[web2py] I need help to setup the domain...

2012-09-18 Thread Franco
Hello everyone, I need your help!! I don't know how to configure the domain in the routes.py. Which is the regular expression that i need to change this: *http:///application/controller/function * To that: *http:///application/controller/function* ? Thanks in advance. --

[web2py] Autocomplete widget customized label name and capital letter

2012-09-18 Thread Omi Chiba
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 db.TDMUSJ00.TRTRKN + "(" + db.TDMUSJ00.TRTRCD + ")" as label name. 2. Look up the data whether it's small or capital letter Value in the database (db.TDMUSJ00.TRTRKN) is a

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

2012-09-18 Thread Massimo Di Pierro
Do you mean the admin editor? We replaced it with codemirror so some commands may have changed. Yet search is a browser feature, not a feature of the editor so it should not have changed. On Tuesday, 18 September 2012 08:44:24 UTC-5, Adi wrote: > > > tried "search" via control/f in welcome app 2

Re: [web2py] "Lazy Options" plugin

2012-09-18 Thread Richard Vézina
Will need some code! Richard On Mon, Sep 17, 2012 at 6:48 PM, lyn2py wrote: > Hi! > > I'm testing the lazy options plugin again, the website is here: > http://dev.s-cubism.com/plugin_lazy_options_widget > > And I find that if 'form has errors', the selected value gets reset > instead of being r

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

2012-09-18 Thread Adi
tried "search" via control/f in welcome app 2.0.9 stable (firefox and chrome) on mac, and it's not responding. did editor commands change? thanks, Adi --

[web2py] Re: Installing Windows Service (2.0.9 Win exe)

2012-09-18 Thread Tim Richardson
For me, 2.0.9 works as described under Windows 7. using the source distribution. (the only thing I changed in the supplied options.py was the server port) Service install and start works as it did previously. On Tuesday, 18 September 2012 02:35:03 UTC+10, Andrew W wrote: > > I used the nightly

Re: [web2py] sqlform.grid : checkbox in header and confirmation before submit

2012-09-18 Thread Massimo Di Pierro
http://web2py.com/books/default/search/29?search=FORM.confirm On Tuesday, 18 September 2012 07:10:42 UTC-5, Johann Spies wrote: > > On 18 September 2012 12:50, Mandar Vaze >wrote: > >> Hi, >> >> I'm using "selectable=True" in the sqlform.grid. This shows a checkbox in >> first column for all the

[web2py] Re: Electronic voting anybody?

2012-09-18 Thread Massimo Di Pierro
None of them. auth.wiki() support the newer MARKMIN which uses the gluon.contrib.autonlinks module which supports the OEMBED protocol. You just add a link to the original youtube video and it will contact the youtube oembed service to ask for the best way to embed it. {{from gluon.contrib.auto

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

2012-09-18 Thread Massimo Di Pierro
You should always consider the nightly built. It usually contains most of the fixes as trunk but is a snapshot that we think relatively stable. On Monday, 17 September 2012 22:13:48 UTC-5, Andrew Evans wrote: > > Will do I saw it was fixed in Trunk > > Does Trunk mean the not released version? >

Re: [web2py] sqlform.grid : checkbox in header and confirmation before submit

2012-09-18 Thread Johann Spies
On 18 September 2012 12:50, Mandar Vaze wrote: > Hi, > > I'm using "selectable=True" in the sqlform.grid. This shows a checkbox in > first column for all the rows "except the header" > > 2. I also get "Submit Query" button below the table. I've managed to > rename this to "Delete Selected" - Is t

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

2012-09-18 Thread rif
Lots of new customization options and features. Check it out and please report bugs. -rif duminică, 16 septembrie 2012, 13:31:55 UTC+3, rif a scris: > > Check out the new global search, feedback most welcomed. > > Features still to come: > >- Custom Links >- Custom Left join > > > -rif >

[web2py] Re: Check for a value in a table

2012-09-18 Thread lcamara
There are lots of better ways, one would be: count_value = db(db.table.fieldname == value)..count() if not count_value: # Value isn't in db do something Terça-feira, 18 de Setembro de 2012 11:36:11 UTC+1, Hassan Alnatour escreveu: > > Dear ALL , > > How can a check if a value for a Field in

[web2py] sqlform.grid : checkbox in header and confirmation before submit

2012-09-18 Thread Mandar Vaze
Hi, I'm using "selectable=True" in the sqlform.grid. This shows a checkbox in first column for all the rows "except the header" 1. Is there a way to show the checkbox in the header itself, which when selected selects ALL the rows currently displayed ? I think there is a plugin for this bug tha

[web2py] Check for a value in a table

2012-09-18 Thread Hassan Alnatour
Dear ALL , How can a check if a value for a Field in a table , now in this i do this values = [] for i in db().select(db.table.ALL): values.append(i.Field) then i check like this : if i in values: . . Is there a better way to do this ?? Best Regards, --

[web2py] Re: SQLFORM.grid, links and buttons placement specification (before other columns, after, or both)

2012-09-18 Thread Mandar Vaze
I would love for this to go in the main trunk. (Especially interested in links_placement='left') If this can't go into the release, what is the best way that allows me to make this change in my local web2py installation, as well as keep getting subsequent web2py changes ? -Mandar On Tuesday,

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

2012-09-18 Thread David Sorrentino
Hi everybody! My name is David and I started "playing" with web2py few days ago. My first impression is definitely positive and I hope to start soon contributing to this wonderful community! Yesterday I built my first app and deployed it with nginx. Works like a charm! :D So, today I wanted to tr

[web2py] Re: Read file attached from gmail

2012-09-18 Thread yashar
check this: http://stackoverflow.com/questions/8307809/save-email-attachment-python3-pop3-ssl-gmail On Tuesday, September 18, 2012 2:53:35 AM UTC+4:30, visuallinux wrote: > > Dear All. > > Every day i did received a email (gmail) with a file attached (text) as > rar. > > My question is how i c

Re: [web2py] how do I pass multiple variables in a Storage object to a function expecting named parameters?

2012-09-18 Thread Carl Roach
I appreciate the input Anthony. On 18 September 2012 00:37, Anthony wrote: > Sorry, when I replied I only saw Bruno's first reply. I like his option #3 > as well. > > Anthony > > > On Monday, September 17, 2012 3:06:51 PM UTC-4, Carl wrote: >> >> Great idea. But if I use "Bruno option #3" and av