[web2py] File generation using web2py

2012-04-28 Thread rahulserver
I wish to generate a few reports in csv or txt or other file formats based on some database data maintained through a crud application. Previously, it was done through an asp.net application with vb as scripting language.But as I explored the wonderful capabilities of web2py, I have become a fan

Re: [web2py] Digest for web2py@googlegroups.com - 16 Messages in 9 Topics

2012-04-28 Thread Rinu Boney

Re: [web2py] date type field issue with db.tablename.fieldname.default = request.vars.fieldname

2012-04-28 Thread Massimo Di Pierro
Please open a ticket about this. It should be done automagically. On Friday, 27 April 2012 15:03:56 UTC-5, Richard wrote: > > Solved : datetime.datetime.strptime(request.vars.test_date, > '%Y-%m-%d').date() > > On Fri, Apr 27, 2012 at 3:09 PM, Richard Vézina < > ml.richard.vez...@gmail.com> wrote

[web2py] Reloading modules

2012-04-28 Thread Yarin
For dev purposes, it would be nice to be able to reload modules without having to restart the server- or to have a setting that automatically reloads on each request- Otherwise it's almost impossible to do active module development from within web2py.

[web2py] Re: Reloading modules

2012-04-28 Thread simon
from gluon.custom_import import track_changes; track_changes(True) On Saturday, 28 April 2012 14:43:42 UTC+1, Yarin wrote: > > For dev purposes, it would be nice to be able to reload modules without > having to restart the server- or to have a setting that automatically > reloads on each request

[web2py] Re: Reloading modules

2012-04-28 Thread Anthony
On Saturday, April 28, 2012 10:24:21 AM UTC-4, simon wrote: > > from gluon.custom_import import track_changes; track_changes(True) And note that only reloads when the module changes, not on every request. Anthony

Re: [web2py] String EOF error

2012-04-28 Thread Bruce Wade
No suggestions on how to fix this? Everytime I go to admin -> application -> errors I get this. On Thu, Apr 26, 2012 at 8:05 AM, Bruce Wade wrote: > Yes I use pickle for my adviewer but that works without a problem. and we > can view all pages. I will look at the link you sent now > > > On Thu,

[web2py] Emails never making it to hotmail accounts

2012-04-28 Thread Bruce Wade
Hi, Any suggestions on fixing the situation where hotmail never gets emails from our servers using the mailer? -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.fittraineronline.com - Fitness Personal Trainers Online http://www.warplydesigned

[web2py] Read excel sheet in web2py

2012-04-28 Thread rahulserver
I wish to read an excel sheet in web2py.I tried few samples from python codes which use the xlrd object.However in web2py, when I import the xlrd object, I get the following error: No module named xlrd So why is it like that? And is there any way to read an excel file without converting it t

[web2py] Re: Read excel sheet in web2py

2012-04-28 Thread Anthony
Where is the xlrd library, and how are you importing it? Are you using the web2py Windows or Mac binary or running web2py from source? Anthony On Saturday, April 28, 2012 12:32:05 PM UTC-4, rahulserver wrote: > > I wish to read an excel sheet in web2py.I tried few samples from python > codes wh

Re: [web2py] Read excel sheet in web2py

2012-04-28 Thread Gary Herron
On 04/28/2012 09:32 AM, rahulserver wrote: I wish to read an excel sheet in web2py.I tried few samples from python codes which use the xlrd object.However in web2py, when I import the xlrd object, I get the following error: No module named xlrd So why is it like that? And is there

[web2py] Re: Reloading modules

2012-04-28 Thread Yarin
Awesome- thanks! On Saturday, April 28, 2012 10:24:21 AM UTC-4, simon wrote: > > from gluon.custom_import import track_changes; track_changes(True) > > On Saturday, 28 April 2012 14:43:42 UTC+1, Yarin wrote: >> >> For dev purposes, it would be nice to be able to reload modules without >> having t

[web2py] Re: Reloading modules

2012-04-28 Thread Yarin
Anthony- is this a performance hit, or can it be left on? On Saturday, April 28, 2012 10:39:00 AM UTC-4, Anthony wrote: > > On Saturday, April 28, 2012 10:24:21 AM UTC-4, simon wrote: >> >> from gluon.custom_import import track_changes; track_changes(True) > > > And note that only reloads when th

Re: [web2py] Re: Cookbook recipe for nginx/uwsgi woes

2012-04-28 Thread Pedro Vasconcelos
If you installed uWSGI from debian/ubuntu packages you need to load the python plugin, as RIF mentioned. The uwsgi Quickstart says: *WARNING the following tutorials are based on the official releases, if you are using a debian-based package (that

[web2py] Re: Emails never making it to hotmail accounts

2012-04-28 Thread villas
Hi Bruce, Going to 'spam' is one thing but if it never even gets delivered by Hotmail then I guess your server is blocked. It is often difficult to get to the bottom of this, so I suggest the following: (1) 'Clean up' the content, so it doesn't score high on the spam filters, (2) Use a truste

[web2py] Re: Emails never making it to hotmail accounts

2012-04-28 Thread Alan Etkin
Consider using .send() with raw=True in case the receiver account is performing some payload filter. On Saturday, April 28, 2012 1:04:51 PM UTC-3, Bruce Wade wrote: > > Hi, > > Any suggestions on fixing the situation where hotmail never gets emails > from our servers using the mailer? > > -- >

[web2py] Re: Reloading modules

2012-04-28 Thread Yarin
I've been trying this and it is *not* working. I put this exact line: from gluon.custom_import import track_changes; track_changes(True) in my 0.py model file, before any other code. But still any changes I make in my modules do not take effect until I restart server- or if they do it is incons

[web2py] Re: Reloading modules

2012-04-28 Thread Anthony
On Saturday, April 28, 2012 1:50:25 PM UTC-4, Yarin wrote: > > Anthony- is this a performance hit, or can it be left on? > It has to check the modification time of each file upon import, so may be a small performance hit. Anthony

[web2py] Re: File generation using web2py

2012-04-28 Thread Alan Etkin
Hi The book example: http://web2py.com/books/default/chapter/29/10#CSV You might want to check the recipes site for other ideas. http://www.web2pyslices.com/home Making a "csv output" search at this group's search feature could be helpful too. On Saturday, April 28, 2012 7:20:15 AM UTC-3, rahu

[web2py] Re: Reloading modules

2012-04-28 Thread Anthony
Hmm, it's working for me. Can you post a module and some code for which it's not working? Anthony On Saturday, April 28, 2012 2:40:35 PM UTC-4, Yarin wrote: > > I've been trying this and it is *not* working. > > I put this exact line: > from gluon.custom_import import track_changes; track_change

Re: [web2py] Read excel sheet in web2py

2012-04-28 Thread Anthony
> > That just means you didn't install or import the module correctly. Both > are easy. > > Place the xlrd folder hierarchy in the modules folder of your app. > > Then import it with: > xlrd = local_import('xlrd') > Note, local_import has been deprecated. Even for modules in the applicatio

[web2py] Re: Time to move from Google Groups to a web2py or python??

2012-04-28 Thread Yarin
@Gour- The whole point of SO is you can usually find what you're looking for, and if not- your question will be quickly answered and easily found by the next person. That, and the ability to close redundant questions means you build a quality knowledgebase- something that doesn't happen with ir

[web2py] Re: Reloading modules

2012-04-28 Thread Yarin
@Anthony- There's really nothing specific to post, its a general thing, and not the first time i've dealt with it- just that this code fix doesn't change anything. Moreover, now I'm experiencing some truly odd behavior. 1. I have a module that was throwing an error, and fixing it doesn't

Re: [web2py] Re: Reloading modules

2012-04-28 Thread Bruno Rocha
I have a similar problem. example: if I change this modules under this package: https://github.com/rochacbruno/Movuca/tree/master/modules/datamodel they never reloads, so I need to restart the server. But if I change something in modules under this: https://github.com/rochacbruno/Movuca/tree/mas

[web2py] autodelete image computed field

2012-04-28 Thread CtrlSoft
hi i have a resize function wich creates image thumbanils... def THUMB(image, nx=120, ny=120): from PIL import Image import os try: img = Image.open(request.folder + 'static/img_folder/' + image) img.thumbnail((nx,ny), Image.ANTIALIAS) root,ext = os.path.spl

Re: [web2py] Read excel sheet in web2py

2012-04-28 Thread RAHUL PRIYADARSI
Dear All, Thank you very much for your reply. I was getting this error because as Anthony pointed out "That just means you didn't install or import the module correctly. ".So I downloaded xlrd from this link: http://pypi.python.org/packages/source/x/xlrd/xlrd-0.7.7.tar.gz#md5=ba46c586b4c1df977bf7bd

Re: [web2py] autodelete image computed field

2012-04-28 Thread Bruno Rocha
try setting uploadfolder=request.folder+'static/img_folder' to the thumbnail field. I guess web2py will look this to unlink the file. On Sat, Apr 28, 2012 at 9:06 PM, CtrlSoft wrote: > uploadfolder=request.folder+'static/img_folder' > -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Re: SQLFORM.factory Field2 depends on Field1

2012-04-28 Thread cory n
Yeah, I thought it would have to be a little complicated, I was hoping there was an easy way out. Any how, I got it working and will post it as a slice next week. Thank you gentlemen. Cory On Friday, April 27, 2012 1:44:58 PM UTC-5, Anthony wrote: > > See > http://stackoverflow.com/questions

Re: [web2py] String EOF error

2012-04-28 Thread Massimo Di Pierro
If I undestand the issue, you have a corrupted error ticket. The web2py in trunk should detect that and give you a graceful erro. what version do you have? On Saturday, 28 April 2012 10:27:04 UTC-5, Bruce Wade wrote: > > No suggestions on how to fix this? Everytime I go to admin -> application

[web2py] Re: Emails never making it to hotmail accounts

2012-04-28 Thread Massimo Di Pierro
When you send it, you set a sender which is probably not the same domain as the sending machine. Some servers notice that and consider the email as spam. You should make sure the domain of the server is the same as the email sender address. On Saturday, 28 April 2012 13:34:36 UTC-5, Alan Etkin

Re: [web2py] String EOF error

2012-04-28 Thread Bruce Wade
1.99.7 is the version I am using. On Sat, Apr 28, 2012 at 9:32 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > If I undestand the issue, you have a corrupted error ticket. The web2py in > trunk should detect that and give you a graceful erro. what version do you > have? > > > On Satu

Re: [web2py] Re: Emails never making it to hotmail accounts

2012-04-28 Thread Bruce Wade
Domain youadworld.com sending address sys...@youadworld.com On Sat, Apr 28, 2012 at 9:34 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > When you send it, you set a sender which is probably not the same domain > as the sending machine. Some servers notice that and consider the email

[web2py] SQLFORM

2012-04-28 Thread Vibhor Purandare
HOW TO CHANGE STYLE OF SQLFORM(eg TEXT BOX Style) I want to change text box style?