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

2013-10-05 Thread IVINH
OK, how can save my email (in Sent imap folder) after sending? Vào 18:48:08 UTC+7 Thứ bảy, ngày 05 tháng mười năm 2013, Alan Etkin đã viết: > > And >> q = imapdb.Sent.created==request.now.date() >> row = imapdb(q).select().first() >> return row but row.created is null. Why? >> > > Size property i

[web2py] Re: SQLFORM.grid information leakage: SESSION instead of GET possible?

2013-10-05 Thread Massimo Di Pierro
No. The session is used for storing the state. The URL is used to identify a resource. In the case of the grid you need the URL to identify the record you want to edit. You need the ID in the URL for that. You cannot use a state variable for that purpose. One could try but one would break all

[web2py] Re: what is web2py ??

2013-10-05 Thread Massimo Di Pierro
Saying you want to use cgi with Python is a little like saying you want to use a bicycle with a jet engine. I do not think anybody uses CGI any more (http://stackoverflow.com/questions/1162029/what-are-cgi-scripts-used-for-these-days) I assume you are interested in building web applications usi

[web2py] Re: what is web2py ??

2013-10-05 Thread 黄祥
http://en.wikipedia.org/wiki/Web2py best regards, stifan -- 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 subsc

[web2py] Re: what is web2py ??

2013-10-05 Thread Willoughby
http://web2py.com/books/default/chapter/29/01/introduction#Introduction -- 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

[web2py] Re: get user name and email on External cas login

2013-10-05 Thread ora marin
So I am still stuck on this problem :( I have None in all my fields of auth_user ( first_name, last_name, email ) It creates a entry in the database correctly but just fill Registration_id with https://auth.foo.bar/cas/[login] Should I implement something more or should I get the infos dir

[web2py] what is web2py ??

2013-10-05 Thread Subhash kumar
please someone tell me what is web2py ..?? is it a web server ?? I want to use cgi with python .. thanks :) -- 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] SQLFORM.grid information leakage: SESSION instead of GET possible?

2013-10-05 Thread Martin Zach
Hi, the SQLFORM and SQLFORM.grid is very nice, very short code and a quick working result. BUT these grids are showing some internal informations like the id in database_examples/manage_transactions/person/product.seller_id/1 ?_signature=4c5ae928e1c6011a71e52ae341364b5620209908 I can use sig

[web2py] Re: Example of web2py integration with an AJAX grid (preferably jquery based) which updates backend db ?

2013-10-05 Thread Simon Ashley
Just remark out/ delete the truncate fleas line. If the 'upd_dog_name' function is not called, check installation and calling of jeditable -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Re: Table inheritance: _before_insert?

2013-10-05 Thread Anthony
On Saturday, October 5, 2013 8:04:54 PM UTC-4, User wrote: > I do have writable=False and I understand that will work for normal > forms, but it still shows up in appadmin > Yes, appadmin ignores the writable attribute. Is it really important to distinguish between the time the form is loaded a

[web2py] Re: Table inheritance: _before_insert?

2013-10-05 Thread User
I do have writable=False and I understand that will work for normal forms, but it still shows up in appadmin On Saturday, October 5, 2013 6:28:08 PM UTC-4, Anthony wrote: > If you don't want the user to see or be able to edit the created_on value, > just set readable=writable=False for that fie

[web2py] Re: Table inheritance: _before_insert?

2013-10-05 Thread Anthony
If you don't want the user to see or be able to edit the created_on value, just set readable=writable=False for that field. When an insert is done, the default value set at the time of the insert request will be used. Anthony On Saturday, October 5, 2013 5:36:32 PM UTC-4, User wrote: > > When u

[web2py] Re: Table inheritance: _before_insert?

2013-10-05 Thread User
When using default field value, if I add a record through appadmin, the default is populated in the form and therefore the actual database insertion time is not recorded but rather the form generation time. Is there a way around this? On Wednesday, October 2, 2013 8:57:35 AM UTC-4, Anthony w

[web2py] Re: fpdf: problem with last line of report

2013-10-05 Thread stefaan
The problem is solved if I comment out all calls to "self.output_table_sep" in the file html.py of gluon/contrib/fpdf Not sure if that would break other stuff, but it works for me. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sourc

[web2py] Re: fpdf: problem with last line of report

2013-10-05 Thread stefaan
I had linked to the wrong online example at first, then corrected it, but gmane users won't see the updated link, so here it is again: online example. The problem is visible at the bottom of page 24. On Saturday, October 5, 2013 9:47:11 PM UTC

[web2py] fpdf: problem with last line of report

2013-10-05 Thread stefaan
Hello all, I notice that the last line of my pdf report is wrong: the bottom lines of the table horizontally extend too far. The online example on the web2py web siteshows the same problem: Any workarounds? Best regards, Stefaan. -- Resources

Re: [web2py] Re: How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-05 Thread Tito Garrido
Thanks!!! I will try! On Fri, Oct 4, 2013 at 11:32 PM, IVINH wrote: > > Nginx config: > > > server { > listen 80; > server_name demo.ivinh.com www.demo.ivinh.com; > include deny_admin.txt; > access_log logs/demo.ivinh.com.access.log; > error_log logs/demo.ivinh.com.error.log; > location / {

[web2py] Re: bug in rewrite.py ?

2013-10-05 Thread Niphlod
> > How you explain that gunicorn is listening on port 80 when after > starting it, it reports e.g.: > > 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 ? if remote_port is set to 62019, then the instance you're acces

Re: [web2py] Re: Web2py on apache2 is slow

2013-10-05 Thread Ricardo Pedroso
On Sat, Oct 5, 2013 at 12:36 AM, Derek wrote: > Yes, Python will be slower than PHP. No, Python will not be slower than PHP. Some things are faster in Python other are faster in PHP. > PHP doesn't have a VM or garbage collection. How PHP does not have a VM? How PHP code runs, then? PHP > 5.

[web2py] Re: onselect ajax...

2013-10-05 Thread Avi A
def echo(): value = request.post_vars.f_item_category filtered_sub = db(db.t_sub_categories.f_category_id == value).select(db.t_sub_categories.ALL,orderby=db.t_sub_categories.f_sub_category_name, cache=(cache.ram,10),cacheable=True) filtered_sub = dict(filtered_sub = filtered_sub)

[web2py] Re: bug in rewrite.py ?

2013-10-05 Thread Gour
On Sat, 5 Oct 2013 06:08:37 -0700 (PDT) Niphlod wrote: > I don't think that there's a bug. is_https is set because of the > http_x_forwarded_proto header, that is an header sent by your > webserver back to web2py telling it that the request is coming from > an https realm. OK. > http_port is

[web2py] Re: Example of web2py integration with an AJAX grid (preferably jquery based) which updates backend db ?

2013-10-05 Thread Tim Richardson
look on web2pyslices On Saturday, 5 October 2013 21:25:28 UTC+10, Py Dev wrote: > > Hi, > > thank you for sharing the idea and the code! > > When I tried the code, I had some errors: > > First the second line in populate does not fit to the > model: #db.fleas.truncate() #AttributeError: 'DAL' ob

[web2py] Re: bug in rewrite.py ? (wasRe: admin disabled... or why is parameters_80.py needed)

2013-10-05 Thread Niphlod
I don't think that there's a bug. is_https is set because of the http_x_forwarded_proto header, that is an header sent by your webserver back to web2py telling it that the request is coming from an https realm. http_port is set to 80, so it's now totally clear that your setup has a web2py app mo

[web2py] bug in rewrite.py ? (wasRe: admin disabled... or why is parameters_80.py needed)

2013-10-05 Thread Gour
On Sat, 5 Oct 2013 05:05:26 -0700 (PDT) Niphlod wrote: > and see where web2py is told to listen on :D I belive it's bug in web2py, iow. how it handles working behind reverse proxy. See the env: HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-05 Thread Niphlod
the strange thing is that while I don't have access to your setup, web2py.py -a password -p 8000 definitely checks for a parameters_8000.py file, while in your case doesn't. Even anyserver.py -s gunicorn -p 8000 checks for a parameters_8000.py file. Are you totally sure that you aren't copy-p

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-05 Thread Gour
On Sat, 5 Oct 2013 05:05:26 -0700 (PDT) Niphlod wrote: > then let's make things even easier web2py expects a > parameters_xxx.py file that is extracted from > request.env.server_port OK, now it's even more clear. > make a test page that does > > def test(): > return dict(a=request.env

[web2py] Re: web2py 2.7.1 is OUT

2013-10-05 Thread Arnon Marcus
How updated are the documentation? What version does the book reflect? -- 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 y

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-05 Thread Niphlod
then let's make things even easier web2py expects a parameters_xxx.py file that is extracted from request.env.server_port make a test page that does def test(): return dict(a=request.env.server_port) and see where web2py is told to listen on :D BTW, I didn't mean that you **need**

[web2py] Re: Hosting para Web2py

2013-10-05 Thread Alan Etkin
> > Hola a todos mi nombres es Juan Carlos, quiero implementar una pagina web > en web2py, y desearia que alguien me pueda recomendar un hosting para la > pagina > Hola Juan, te paso el link a la lista en español: http://groups.google.com/group/web2py-usuarios Saludos -- Resources: - http

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

2013-10-05 Thread Alan Etkin
> > And > q = imapdb.Sent.created==request.now.date() > row = imapdb(q).select().first() > return row but row.created is null. Why? > Size property is measured by the adapter on .select and the created property is ignored by insert. The insert method implementation is meant just for adding dra

[web2py] Re: Example of web2py integration with an AJAX grid (preferably jquery based) which updates backend db ?

2013-10-05 Thread Py Dev
Hi, thank you for sharing the idea and the code! When I tried the code, I had some errors: First the second line in populate does not fit to the model: #db.fleas.truncate() #AttributeError: 'DAL' object has no attribute 'fleas' Second, the "dogs" view shows a web2py grid, I can edit it normal

[web2py] Re: User Login causes error on GAE

2013-10-05 Thread Andy W
Done - issue 1706 On Friday, October 4, 2013 11:28:08 PM UTC+4, Massimo Di Pierro wrote: > > Can you please open a ticket an point it to this thread? > > On Friday, 4 October 2013 12:20:42 UTC-5, Andy W wrote: >> >> Thanks for that Massimo. >> Using lazy tables seems to be the cause (although it d

Re: [web2py] Hosting para Web2py

2013-10-05 Thread Alfonso de la Guarda
Juan Carlos, This an english list by the way. (Esta es una lista en inglés) Saludos, Alfonso de la Guarda Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 2013/10/3 Juan Carlos G

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

2013-10-05 Thread IVINH
And q = imapdb.Sent.created==request.now.date() row = imapdb(q).select().first() return row but row.created is null. Why? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Re

[web2py] Re: Custom Style of a textarea.

2013-10-05 Thread Paolo Caruccio
By using server-side DOM and parsing ( see the book http://www.web2py.com/books/default/chapter/29/05/the-views?search=DOM#Server-side-DOM-and-parsing ) you could collect all textareas and after make a loop on the collection to change the css class. For example in your controller all_textareas

[web2py] Re: web2py 2.7.1 is OUT

2013-10-05 Thread Gour
On Fri, 4 Oct 2013 19:54:25 -0500 Massimo DiPierro wrote: > Changelog When I try with the trunk just cloned from github: python web2py.py -p localport -a "" and attempt to access admin remotely (see the "admin disabled... or why is parameters_80.py needed" thread, I get only 'a' as response f

[web2py] Re: Hosting para Web2py

2013-10-05 Thread Gael Princivalle
Hi Juan carlos. I've search also recently for the best web2py hosting for newbies. I've choose webfaction, it's fast cheap and support is really reactive and friendly. Il giorno giovedì 3 ottobre 2013 23:45:29 UTC+2, Juan Carlos Gonzales Vitte ha scritto: > > Hola a todos mi nombres es Juan Ca

[web2py] Re: onselect ajax...

2013-10-05 Thread Avi A
Thanks. Yes, I will look carefully, but it looks like the html is in the controller. On Saturday, October 5, 2013 2:31:10 AM UTC+3, Derek wrote: > > This question gets asked frequently here, there should be a FAQ somewhere > and this should be in it... > > Is this what you want? > > http://www.w

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-05 Thread Gour
On Fri, 4 Oct 2013 14:04:09 -0700 (PDT) Niphlod wrote: Hello Niphlod, > > > > > as often, you're making things much more complicated then they > > > really are. > > > > I don't understand? > > > > if you read the code of admin, you'll quickly realize. First of all I thought that in the above

[web2py] Re: Custom Style of a textarea.

2013-10-05 Thread Ykä Marjanen
Hi Francisco, happy to help you, as I've gone a 4 day intensive bootstrap 3 integration to web2py and learned a lot about customizing the views and forms. This might not be the best (or only) solution, but has worked well for me: - Web2py form includes classes based on their type, which I recom