Re: [web2py] Re: PIL and Windows 7

2012-01-09 Thread Martin Weissenboeck
You are right, that is the best solution. I have tried it and it works fine. Maybe my approch was a little too academic... By the way: reportlab does not need a temp file, a StringIO does the same job. Somethink like import StringIO out = StringIO.StringIO() c = Canvas(out) # or: doc = SimpleDoc

[web2py] Re: AttributeError: 'Rows' object has no attribute '_db'

2012-01-09 Thread Rahul
I did not get it... What would be an equivalent query I would need to pass for below? I need to just select rows (Friend_name column for all status that are Friend and reguserid is whatever the logged in users id) for below conditions - I thought select was a valid query! Please suggest Existing

[web2py] Re: web2py iteration output

2012-01-09 Thread blackshirt
Thanks Anthony, it was works greatfully On Jan 10, 10:53 am, Anthony wrote: > > import apt_pkg > > def important(): > >     apt_pkg.init() > >     cache = apt_pkg.Cache() > >     for pkg in cache.packages: > >        if pkg.essential: > >            return dict(t=pkg) > > When you call "return" i

[web2py] Re: How can I set alternative DAL when main DAL endpoint is not available?

2012-01-09 Thread Cliff
> For the sake of laziness, I want local database to be sqlite. Bad idea. You need to be testing on your production database from the beginning. For example, the Postgres driver will throw an error when it sees a query like "SELECT foo FROM bar WHERE foo.id NOT IN ()..." Sqlite will accept the q

[web2py] Re: How can I set alternative DAL when main DAL endpoint is not available?

2012-01-09 Thread Anthony
On Monday, January 9, 2012 10:04:54 PM UTC-5, seongjoo wrote: > > Thank you for letting me know a wonderful technique. Web2py rocks! > > For the sake of laziness, I want local database to be sqlite. Then, I see > a little problem that the deployed code will also create its sqlite on the > web se

[web2py] Re: web2py iteration output

2012-01-09 Thread Anthony
> > import apt_pkg > def important(): > apt_pkg.init() > cache = apt_pkg.Cache() > for pkg in cache.packages: >if pkg.essential: >return dict(t=pkg) > When you call "return" in Python, the function terminates, so this will exit the loop after the first itera

[web2py] web2py iteration output

2012-01-09 Thread blackshirt
i have a little problem with web2py. i'm doing simple writing application with web2py. the code look like this for controller : import apt_pkg def important(): apt_pkg.init() cache = apt_pkg.Cache() for pkg in cache.packages: if pkg.essential: return dict(t=pkg) a

[web2py] Re: redirecting python console output to web browser page

2012-01-09 Thread blackshirt
Ross, i think i don't want to use external script, like my_script.py ... On Jan 2, 12:20 am, Ross Peoples wrote: > I use subprocess.Popen a lot to run shell commands from Python. There is no > need for a specific web2py feature. > > This is the method I use whenever I need to call something: > >

[web2py] Re: redirecting python console output to web browser page

2012-01-09 Thread blackshirt
i'm still pretty newbie for them.. but i'll try to search. On Jan 2, 11:42 pm, Ross Peoples wrote: > Yes, you can, though it's much more difficult to stream it live to a web > page. You would need to use JavaScript (comet or polling) to get the output > as it is generated and display it in the br

[web2py] Re: redirecting python console output to web browser page

2012-01-09 Thread blackshirt
like hard to implement.. i want simple approach for them On Jan 3, 3:17 am, Paolo Caruccio wrote: > There is another HTML5 technology to push stream from server to client : > EventSource aka Sent-Server Events (http://dev.w3.org/html5/eventsource/). > Its behaviour is like ajax long polling. > I'

[web2py] Re: How can I set alternative DAL when main DAL endpoint is not available?

2012-01-09 Thread seongjoo
Thank you for the solid reference. Reference is like "fog of war." One only discovers it when he/she explores even though it was there all the time.

[web2py] Re: How can I set alternative DAL when main DAL endpoint is not available?

2012-01-09 Thread seongjoo
Thank you for letting me know a wonderful technique. Web2py rocks! For the sake of laziness, I want local database to be sqlite. Then, I see a little problem that the deployed code will also create its sqlite on the web server too. I hope the deployed code stores its data to production db only

Re: [web2py] Python for Android (any takers to run web2py)

2012-01-09 Thread Nik Go
Offhand, I could think of a custom app for that itch you want to scratch .. On Tuesday, January 10, 2012, Plumo wrote: > what is the use case for running a web framework on your Android phone?

[web2py] Re: Python for Android (any takers to run web2py)

2012-01-09 Thread Plumo
what is the use case for running a web framework on your Android phone?

[web2py] Re: pack application

2012-01-09 Thread Massimo Di Pierro
compiled and static are enough if you do not want to distribute the source. On Jan 9, 4:49 pm, Alex wrote: > thanks! do I really need everything in the archive or would the > directories 'compiled' and 'static' be enough? > > On 9 Jan., 22:21, Massimo Di Pierro > wrote: > > > > > > > > > cd appl

[web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread kenji4569
Congratulations! On 1月10日, 午前7:24, Niphlod wrote: > kudos to all devs. I'm happy to be a web2py user for the last couple > of years.

Re: [web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-09 Thread Bruno Rocha
I just finished the article http://movu.ca/demo/article/show/15/how-to-create-content-types-in-movuca-cms "subscribers should receive an alert e-mail" I am open for suggestions and also I appreciate code reviews! -- Bruno Rocha [http://rochacbruno.com.br]

Re: [web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-09 Thread Marco Mansilla
El Sat, 7 Jan 2012 00:46:16 -0200 Bruno Rocha escribió: > Got a domain name! http://movu.ca > Awesome!, congrats!, and thanks for sharing it's a cool idea

[web2py] Re: LOAD, javascript and a loading gif

2012-01-09 Thread Niphlod
I don't recall the exact one happened to be my case, but plenty of jquery plugins use ajax, one was working oddly (maybe a js master could see if that plugin was bugged, but I'm not): I didn't want to mess with that one and those following that, so I hacked web2py.js (didn't think much about that,

[web2py] Re: LOAD, javascript and a loading gif

2012-01-09 Thread Anthony
> > for the first problem I actually "hacked" web2py.js (web2py_ajax.js or > so). > the ajax function needs to be modified > the basic idea is to replace content of the target with a spinner (in > this case, a div containing the message "loading...") before sending > the request, and upon

[web2py] Re: pack application

2012-01-09 Thread Alex
thanks! do I really need everything in the archive or would the directories 'compiled' and 'static' be enough? On 9 Jan., 22:21, Massimo Di Pierro wrote: > cd applications/app > tar zcvf web2py.app.name.w2p * > > On Jan 9, 1:39 pm, Alex wrote: > > > > > > > > > Hello, > > > I want to pack my app

[web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Niphlod
kudos to all devs. I'm happy to be a web2py user for the last couple of years.

[web2py] Re: LOAD, javascript and a loading gif

2012-01-09 Thread Niphlod
uhm, don't know if it'll help you, BTW, I also had to figure a "way" to display some "loading pictures" (from now on, I'll call them "spinners") to my pages. I had to face 2 distinct problems: - loading components via Ajax (through LOAD() or web2py_component()) - prevent FOUC on very complex pages

[web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Massimo Di Pierro
This is indeed good news. Thanks to everybody who has contributed to web2py to make it what it is. :-) massimo On Jan 9, 2:03 pm, Anthony wrote: > On Monday, January 9, 2012 2:52:16 PM UTC-5, Dragonfyre13 wrote: > > > FYI - probably been thrown out there already, but it also won a 2011 > > BOSSI

[web2py] Re: pack application

2012-01-09 Thread Massimo Di Pierro
cd applications/app tar zcvf web2py.app.name.w2p * On Jan 9, 1:39 pm, Alex wrote: > Hello, > > I want to pack my application from a script/command line (not running > in web2py). How can I achieve this? > > I can compile the application with > gluon.compileapp.compile_application('applications/m

Re: [web2py] New select widget plugin available for testing

2012-01-09 Thread monotasker
Thanks, Bruno. I've been writing this for an app that isn't finished yet, but I'll try to at least get some screenshots up soon. And thanks, by the way, for all your coaching as I've been learning web2py. I need to add a "thanks" section to the README.

Re: [web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Anthony
On Monday, January 9, 2012 2:52:16 PM UTC-5, Dragonfyre13 wrote: > > FYI - probably been thrown out there already, but it also won a 2011 > BOSSIE award: http://bit.ly/yjdq1l Yes, InfoWorld reviewed six Python web frameworks and rated web2py best among them. It then awarded web2py one of ten Bo

Re: [web2py] LOAD, javascript and a loading gif

2012-01-09 Thread Anthony
On Monday, January 9, 2012 2:28:43 PM UTC-5, David J wrote: > > There is a loading gif already built into web2py. > > Look at the parameters of the LOAD function it was added almost a year ago. > I believe that only shows up on the initial display of the full page that contains the component, not

[web2py] Re: LOAD, javascript and a loading gif

2012-01-09 Thread Anthony
On Monday, January 9, 2012 1:58:30 PM UTC-5, Liam wrote: > > Hi all, > > I'm currently writing a plugin for part of a bigger project that can take > some time doing processing server side and I'm trying to make it as modular > as possible; thus the plugins and components. The problem I'm trying t

[web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Cliff
Congratulations, Massimo and thanks to all who contribute. On Jan 9, 12:36 pm, Ovidio Marinho wrote: > +1 > >        Ovidio Marinho Falcao Neto >                 Web Developer >              ovidio...@gmail.com >           ovidiomari...@itjp.net.br >                  ITJP - itjp.net.br >        

Re: [web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Tim Alexander
FYI - probably been thrown out there already, but it also won a 2011 BOSSIE award: http://bit.ly/yjdq1l On Mon, Jan 9, 2012 at 11:36 AM, Ovidio Marinho wrote: > +1 > > > >Ovidio Marinho Falcao Neto > Web Developer > ovidio...@gmail.com > ovidiomari

[web2py] Re: New select widget plugin available for testing

2012-01-09 Thread monotasker
I forgot to add that the one dependency of this plugin is jquery-ui (for the dialog). I'd be interested to know what people think of this. Should I write a little dialog script of my own so that there are no external dependencies, or should I avoid reinventing the wheel and use jquery-ui?

Re: [web2py] New select widget plugin available for testing

2012-01-09 Thread Bruno Rocha
Would be very nice to see some screenshots or a live demo! Thank you for sharing it, I am testing! On Mon, Jan 9, 2012 at 5:38 PM, monotasker wrote: > I've written a new plugin that provides a select widget that can be > refreshed via ajax, along with a button that opens a dialog to add new > i

[web2py] pack application

2012-01-09 Thread Alex
Hello, I want to pack my application from a script/command line (not running in web2py). How can I achieve this? I can compile the application with gluon.compileapp.compile_application('applications/myapp') there is gluon.admin.app_pack_compiled to pack it, but this function needs the request obj

[web2py] New select widget plugin available for testing

2012-01-09 Thread monotasker
I've written a new plugin that provides a select widget that can be refreshed via ajax, along with a button that opens a dialog to add new items to the linked table. When the dialog is closed, the select widget is automatically refreshed via ajax and the added item(s) are available as selectabl

Re: [web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-09 Thread Bruno Rocha
Hi all, I am writing a post explaining how datamodels works and how to create your own content types with just a Python class and a view. In this post I will show how to transform the Movuca CMS in a social commerce adding a "Product" content type. http://movu.ca/demo/article/show/15/how-to-crea

[web2py] Re: PIL and Windows 7

2012-01-09 Thread Anthony
Note, you might consider running Python 2.7 rather than Python 2.5 (web2py runs fine with 2.7). On Monday, January 9, 2012 2:30:07 PM UTC-5, Anthony wrote: > > Are you running the web2py binary for Windows? If so, switch to running > the source code version of web2py if you want to make use of y

[web2py] Re: PIL and Windows 7

2012-01-09 Thread Anthony
Are you running the web2py binary for Windows? If so, switch to running the source code version of web2py if you want to make use of your own Python installation. The web2py binary comes with its own Python interpreter, so it won't use your machine's Python installation (with PIL). It's just as

Re: [web2py] LOAD, javascript and a loading gif

2012-01-09 Thread David
There is a loading gif already built into web2py. Look at the parameters of the LOAD function it was added almost a year ago. On 1/9/12 1:58 PM, Liam wrote: Hi all, I'm currently writing a plugin for part of a bigger project that can take some time doing processing server side and I'm tryin

[web2py] PIL and Windows 7

2012-01-09 Thread Martin Weissenboeck
Hi, maybe a simple question, but I did not find the answer for some hours :-( I am using Web2Py 1.99.4 on a Windows 7 computer. Reportlabs works fine, but I need PIL for pictures in pdf-files. - I have tried to install the "Python Image Library1.1.7 for Python 2.5". But the installer asks

[web2py] LOAD, javascript and a loading gif

2012-01-09 Thread Liam
Hi all, I'm currently writing a plugin for part of a bigger project that can take some time doing processing server side and I'm trying to make it as modular as possible; thus the plugins and components. The problem I'm trying to solve is this: The application uses LOAD to embed some html gener

Re: [web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Ovidio Marinho
+1 Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ovidiomari...@itjp.net.br ITJP - itjp.net.br 83 8826 9088 - Oi 83 9334 0266 - Claro Brasil

[web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Omi Chiba
Yeah !! On Jan 9, 9:48 am, Anthony wrote: > http://www.infoworld.com/slideshow/24605/infoworlds-2012-technology-t...http://www.infoworld.com/t/application-development/picking-the-top-te... > > Other winners include Amazon Web Services, Heroku, Node.js, Apple iOS 5, > iPad 2, and other well-known

Re: [web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Javier Quarite
Great news! This year has to be Web2py year! Javier

[web2py] Re: web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread lyn2py
+1 on Bruno's suggestion! On Jan 10, 12:42 am, Bruno Rocha wrote: > great!!! > > the website now needs a page to post every award web2py wins! > > Congratulations everyone, users and developers! > > http://zerp.ly/rochacbruno > Em 09/01/2012 13:48, "Anthony" escreveu: > > > > > > > > > > >http:/

Re: [web2py] web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Bruno Rocha
great!!! the website now needs a page to post every award web2py wins! Congratulations everyone, users and developers! http://zerp.ly/rochacbruno Em 09/01/2012 13:48, "Anthony" escreveu: > > http://www.infoworld.com/slideshow/24605/infoworlds-2012-technology-the-year-award-winners-183313#slide

Re: [web2py] Web2py instant admin

2012-01-09 Thread Javier Quarite
The last time I used it, I had some problems and it seems that its no longer supported (or maybe you should try with past versions of web2py) Javier

Re: [web2py] web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread António Ramos
once again the slideshow is not very intuitive. I send the link to my boss and he doesnt know where to click or to get details of the award of web2py Infoworld Slideshow - Worst slideshow 2012 :) :) 2012/1/9 Nik Go > congratulations Massimo! > > kudos, too, to everyone who makes this mailing

Re: [web2py] web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Nik Go
congratulations Massimo! kudos, too, to everyone who makes this mailing list an excellent peer-to-peer support site. (That goes for you, Anthony.) ;-) On Monday, January 9, 2012, Anthony wrote: > > http://www.infoworld.com/slideshow/24605/infoworlds-2012-technology-the-year-award-winners-183313

[web2py] web2py wins an InfoWorld 2012 Technology of the Year Award

2012-01-09 Thread Anthony
http://www.infoworld.com/slideshow/24605/infoworlds-2012-technology-the-year-award-winners-183313#slide23 http://www.infoworld.com/t/application-development/picking-the-top-technologies-in-wild-year-183463 Other winners include Amazon Web Services, Heroku, Node.js, Apple iOS 5, iPad 2, and other

Re: [web2py] Re: Python for Android (any takers to run web2py)

2012-01-09 Thread Angelo Compagnucci
>From my understanding, it could be possible to make an apk complete with python, libraries and web2py. I'm setting up a dev env! 2012/1/9 Massimo Di Pierro > would python-for-android make it possible to create and apk? > > On Jan 9, 2:23 am, Angelo Compagnucci > wrote: > > I'll try as soon as

[web2py] Re: Python for Android (any takers to run web2py)

2012-01-09 Thread Massimo Di Pierro
would python-for-android make it possible to create and apk? On Jan 9, 2:23 am, Angelo Compagnucci wrote: > I'll try as soon as possible! > > I've previously used sl4a + python and web2py works flawlessy, but it a bit > difficult to setup, it cannot be done by a newbie like installing an apk! > >

[web2py] Web2py instant admin

2012-01-09 Thread Web2Py Freak
Dear all, i am trying to use web2py instant admin , i installed it like in the documentation but when i use the username a and pass a it dosent login and when i use my own authentication it enters the admin interface but i cant see any of my tables ?? how can i fix this ???

[web2py] Re: Log tickets

2012-01-09 Thread DanielB
I agree. In the future I can see myself wanting to using something like this. Do want /Daniel

[web2py] Re: AttributeError: 'Rows' object has no attribute '_db'

2012-01-09 Thread Anthony
SQLFORM.grid takes a query as the first argument, and you are passing a Rows object instead (i.e., you have applied the .select() method to your query). Just pass in the query without the .select(). Anthony On Monday, January 9, 2012 6:12:55 AM UTC-5, Rahul wrote: > > Hi All, > Why do I

[web2py] Re: Receiving Email

2012-01-09 Thread Alan Etkin
I changed my mind (again) :P: Instead of db(...) maybe there should be a __call__ method in Mail to do: mail(query).select()

[web2py] Domain and DNS

2012-01-09 Thread Web2Py Freak
Dear All , i have a private server at ARVIXE and i am using wamp server , i used the deployment for apache in the book but now how can i assign domains to a virtual host , how can i get the reqested domain , i dont know what to do new , web2py is working at localhost:8080 now whats next ??!

[web2py] Re: AttributeError: 'Rows' object has no attribute '_db'

2012-01-09 Thread Rahul
Please Note, if I use this alternate query (just to test) -- It would not give me the error BUT, this is not the query I intend to run.. #query = ((db.friends.reguserid==session.logged_in_user_id) and (db.friends.status=="Sent")) It gives me the error even if I use below query-- query = db.execut

[web2py] Re: Receiving Email

2012-01-09 Thread Alan Etkin
A mistake: > ...mail.settings.add_box("mybox") would be mail.add_box("mybox"), i don't want to modify the Storage class

[web2py] Re: Receiving Email

2012-01-09 Thread Alan Etkin
I am working in a prototype to encapsulate imap queries and mails with imaplib to interface with simple web2py commands. Is there any prior implemetation available (web2pyslice, open source app/plugin)? The idea is to support imap queries like this (just a subset of db query operations): mail_que

[web2py] AttributeError: 'Rows' object has no attribute '_db'

2012-01-09 Thread Rahul
Hi All, Why do I get this error Error - AttributeError: 'Rows' object has no attribute '_db'. Please have a look at the code given below. Whenever I hit the myfriends url, I get the below issue. =ERROR Ticket ID 127.0.0.1.2012-01-09.16-23-52.fb79b661-40af-4431-bdfa

Re: [web2py] Python for Android (any takers to run web2py)

2012-01-09 Thread Angelo Compagnucci
I'll try as soon as possible! I've previously used sl4a + python and web2py works flawlessy, but it a bit difficult to setup, it cannot be done by a newbie like installing an apk! 2012/1/9 Marco Mansilla > El Mon, 9 Jan 2012 00:08:09 -0200 > Bruno Rocha escribió: > > > Look this project > > >