[web2py] Re: web2py 2.7.1 is OUT

2013-10-06 Thread Mirko
Hi, Is it this one ? https://github.com/mdipierro/web2py-book Thanks, Mirko On Monday, October 7, 2013 3:36:09 AM UTC+2, Tim Richardson wrote: > > the trunk version of the book available on GIT is as up to date as > possible (and a lot more recent than the version linked to on the website). > Th

[web2py] Re: HTML error code 206, due to headers not set

2013-10-06 Thread Jayakumar Bellie
I created a new application and just added {{=response.toolbar()}} In my view and check for my response is headers:X-Powered-By:web2pylogo:*web2py*™ On Saturday, October 5, 2013 8:12:21 AM UTC+5:30, Massimo Di Pierro wrote: > > This is where the 206 status is set and

[web2py] Re: IMAP: Insert email to Sent folder

2013-10-06 Thread IVINH
It's OK. Thank Alan Etkin. I need attachments file name before download (ex: big file), how do you get it? I try added new field "files" and modified function "select" IMAP, it's work for me: for part in message.walk(): maintype = part.get_content_maintype()

[web2py] Re: Unsuccessful password reset

2013-10-06 Thread Massimo Di Pierro
I cannot help you without looking at the entire code. Your problem does not come from the code you show us. The code you are showing is wrong because your link contains "%(key)s" which is unresolved but this is not the cause of the (0x22) problem. On Sunday, 6 October 2013 11:53:27 UTC-5, les

Re: [web2py] chat-tornado in web2py using websocket_messaging.py

2013-10-06 Thread Junior Phanter
Sorry my bad english, Analyzing the web2py_websocket inside web2py.js. I noticed that when I used: $(document).ready(function(){ var data; web2py_websocket('ws://127.0.0.1:/realtime/mygroup', function(e){data=eval('('+e.data+')')}); }); the browser console accused

[web2py] capturing the text value of a clicked link using python

2013-10-06 Thread Remya R G
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsub

[web2py] Re: web2py 2.7.1 is OUT

2013-10-06 Thread Tim Richardson
the trunk version of the book available on GIT is as up to date as possible (and a lot more up to the date than the version linked to on the website). The book is simply a web2py app, so you can git clone it into a web2py applications directory and hey presto, you've got the latest version. O

Re: [web2py] Re: web2py 2.7.1 is OUT

2013-10-06 Thread 黄祥
just want to clarify the order field (is not normal) only in windows binary, not in source. already tested (packed from windows binary (that is not normal order field on grid) and upload it to pythonanywhere (that use source) the order field on grid is normal). btw, how can i get the order field

[web2py] Re: IMAP: Insert email to Sent folder

2013-10-06 Thread Alan Etkin
> > I am testing it too and for some mail got this traceback: >> ERROR:web2py.dal:Could not parse date text: 10 Dec 2012 02:23:50 +0100. >> need more than 1 value to unpack >> > There's a pending pull request that should fix the issue http://github.com/web2py/web2py/pull/241 -- Resources: - ht

[web2py] Re: Making a simple scheduler.

2013-10-06 Thread Ramesh Kumar
Hey, Can you please tell how you finally did with the calendar thing? Thanks, Ramesh -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this

[web2py] Re: Custom Style of a textarea.

2013-10-06 Thread Francisco García
Hello Ykä and Paolo, Your answers are very useful for me. The problem is solved. All I needed was this sentence: form.custom.widget.FIELD['_class'] = 'text myclass'} Thank you for your fast answer. Regards. El sábado, 5 de octubre de 2013 09:24:59 UTC+2, Ykä Marjanen escribió: > > Hi Francisco

[web2py] Re: IMAP: Insert email to Sent folder

2013-10-06 Thread Alan Etkin
> > I am testing it too and for some mail got this traceback: > ERROR:web2py.dal:Could not parse date text: 10 Dec 2012 02:23:50 +0100. > need more than 1 value to unpack > There's a problem about reading date-time from the imap server and building queries that use dates as input. The current c

[web2py] Re: SQLFORM.factory

2013-10-06 Thread Kees de Blois
Thanks, Niphlod, that did the trick! On Sunday, October 6, 2013 6:14:22 PM UTC+2, Niphlod wrote: > > whoa, what I meant was passing a variable to a function, not an action > (action being a function that generates a page). > the onvalidation call works only for functions, not actions. > in

[web2py] Re: Reading and managing email boxes - features

2013-10-06 Thread Alan Etkin
> > First of all is it possible to use it also to send email or just to downlowd? > > Just for retrieving (select) or storing (insert). For sending, there's the builtin smtp client (scaffolding app's mail object) > Second: if i want use multiple connection and pass to DAL user name and > pas

[web2py] Re: Unsuccessful password reset

2013-10-06 Thread lesssugar
Massimo (or anyone willing to help), all I'm trying to achieve is use my own email template to send a password-reset message to user. How do I do this properly? Currently, I have this *db.py* auth.messages.reset_password = response.render( 'mailing/pass_reset.html', dict(subject='Passwo

[web2py] Re: IMAP: Insert email to Sent folder

2013-10-06 Thread piero crisci
I am testing it too and for some mail got this traceback: ERROR:web2py.dal:Could not parse date text: 10 Dec 2012 02:23:50 +0100. need more than 1 value to unpack Il giorno domenica 6 ottobre 2013 13:06:03 UTC+2, Alan Etkin ha scritto: > > Please add any example or comment on the issue here > >

[web2py] Reading and managing email boxes - features

2013-10-06 Thread piero crisci
I am trying to use the new features of imap connection. I am using the code imapdb = DAL("imap://user:password@server:port", pool_size=1) First of all is it possible to use it also to send email or just to downlowd? Second: if i want use multiple connection and pass to DAL user name and passwor

[web2py] Re: bug in rewrite.py ?

2013-10-06 Thread Niphlod
> > 1) why web2py puts strange (to me) value in HTTP_REAL_PORT? > > 2) why is wsgi.url_scheme: > http > > and not https? > > at the cost of being repetitive those are NOT set by web2py (nor flask, django, etc). Everything that is in CAPS comes directly from the wsgi env

[web2py] Re: SQLFORM.factory

2013-10-06 Thread Niphlod
whoa, what I meant was passing a variable to a function, not an action (action being a function that generates a page). the onvalidation call works only for functions, not actions. in that case, why don't you simply use redirect() from one action to another ? On Sunday, October 6, 2013 5:46:

[web2py] Re: SQLFORM.factory

2013-10-06 Thread Kees de Blois
Thanks Niphlod for putting me on the right track. How do I load the session.thema variable in the target function (in the place of request.args(0)) @auth.requires_login() def tekstperthema(): response.flash = "Tekstregister items per thema view!" form = SQLFORM.factory(Field('thema',re

[web2py] Logging http audit

2013-10-06 Thread Arnon Marcus
Hi, I would like to log more HTTP-traffic-related data into logstash - no webserver outputs the information I need. I know there is already a built-in http logger, but just like any webserver, it does not include the body and other data (controller-action, args, vars, user, session, etc). I wan

[web2py] Re: bug in rewrite.py ?

2013-10-06 Thread Gour
On Sat, 5 Oct 2013 11:47:36 -0700 (PDT) Niphlod wrote: > web2py looks for remote_port to look for the parameters_xxx.py file, > not http_x_forwarded port. I did some further testing... First of all, tried to write minimal Flask app showing headers and tolerating web2py bashing in #flask. Then

[web2py] Re: what is web2py ??

2013-10-06 Thread Tim Richardson
On Sunday, 6 October 2013 15:35:33 UTC+11, Massimo Di Pierro wrote: > > Saying you want to use cgi with Python is a little like saying you want to > use a bicycle with a jet engine. > Actually, that sounds like fun. http://www.youtube.com/watch?v=ByemtRt_CP0 Perhaps like using a car powered b

[web2py] Re: bug in rewrite.py ?

2013-10-06 Thread Niphlod
> > > If it's instead 80, something else is running web2py that reports > > remote_port as 80. > > Or web2py is setting remote_port to 80 itself? > > it can't . you won't find any piece of code that fiddles setting remote_port. it's an environmental variable that is only read by web2py.

[web2py] Re: SQLFORM.factory

2013-10-06 Thread Niphlod
I'd use onvalidation http://web2py.com/books/default/chapter/29/07/forms-and-validators#onvalidation On Sunday, October 6, 2013 1:05:44 PM UTC+2, Kees de Blois wrote: > > How do I send the variable of the drop down list to another function? > > def tekstperthema(): > response.flash = "Tekstre

[web2py] SQLFORM.factory

2013-10-06 Thread Kees de Blois
How do I send the variable of the drop down list to another function? def tekstperthema(): response.flash = "Tekstregister items per thema view!" form = SQLFORM.factory(Field('thema',requires=IS_IN_DB(db,db.thema.id, '%(name)s'))) if form.process().accepted: response.flash

[web2py] Re: IMAP: Insert email to Sent folder

2013-10-06 Thread Alan Etkin
Please add any example or comment on the issue here http://code.google.com/p/web2py/issues/detail?id=1707 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) ---

[web2py] Re: IMAP: Insert email to Sent folder

2013-10-06 Thread Alan Etkin
> > OK, how can save my email (in Sent imap folder) after sending? > You cannot (with the imap adapter). Maybe the adapter could be modified so it accepts any property as .insert input. I'll open an issue in the project page. -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] Re: bug in rewrite.py ?

2013-10-06 Thread Gour
On Sat, 5 Oct 2013 11:47:36 -0700 (PDT) Niphlod wrote: > are you sure that is the only one gunicorn instance running in your > env ? if yes, do you access web2py using 127.0.0.1:62019 ? Yes, 127.0.0.1:62019 is the port gunicorn is listening on. > if remote_port is set to 62019, then the instanc