[web2py] Re: Is it possible to use compiled modules only?, without source code

2016-10-13 Thread Jaime Herrero
wrote: > > What python versions? locally and remotely? > > On Tuesday, 11 October 2016 20:55:46 UTC-5, Jaime Herrero wrote: >> >> Hello group, >> >> I'm working in a couple of applications that requires same modules; I'm >> using site-packa

[web2py] Is it possible to use compiled modules only?, without source code

2016-10-11 Thread Jaime Herrero
Hello group, I'm working in a couple of applications that requires same modules; I'm using site-packages to have just one instance of the modules shared between the applications. Another site requires to use the same modules but I don't want to share the source code, just the modules in pyc

[web2py] Re: Create a pdf and attach it to a mail

2013-07-11 Thread Jaime Herrero
Thanks a lot Alan for the idea, I just tested and I had to do some modifications to the code: pdfasastring = fpdfobject.output(dest="S") import StringIO sio = StringIO.StringIO() sio.write(pdfasastring) sio.seek(0) The following instruction create a mime type for the attachment and now, the obj