Re: [web2py] Re: Can't store query in session

2012-09-07 Thread Johann Spies
On 7 September 2012 01:17, Limedrop russ...@holtrd.com wrote: Johann, you should look at this slice... http://www.web2pyslices.com/slice/show/1489/save-query-in-session Does it do what you want? Thanks. I will study and try it. Looks like something I can use. Regards Johann --

Re: [web2py] Re: web2py.js error

2012-09-07 Thread Johann Spies
On 6 September 2012 19:20, Richard Vézina ml.richard.vez...@gmail.comwrote: grep : http://en.wikipedia.org/wiki/Grep Thanks. I am an experienced grep user. Fortunately on Debian there is a shortcut for grep -r (rgrep) which, combined with -l quickly shows in which files the regular

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-07 Thread Michele Comitini
lucas, OK. So there is no error at SQL level. The problem is probably a closing cursor that happens somewhere in the DAL, that is triggered by some usage/environment peculiar to your application. Check the following just to be sure: 1) pooling connections. Try to work with pooled connection

[web2py] Re: PythonAnywhere, upgrading to latest Web2Py?

2012-09-07 Thread Nico Zanferrari
Hello Hansel! You can also easily fix the upgrade script as described herehttps://groups.google.com/d/msg/web2py/glJjRw-TLKU/AkmktM7XExYJ and let existing users decide directly from the administrative interface! In this way the upgrade to 2.0.8 seems to work fine, except for a ticket error at

[web2py] New webapp www.DocMator.com uses web2py , need help with login

2012-09-07 Thread Akash Kakkar
Hi All, I have recently launched a web application DocMatorhttp://www.docmator.com , *I would appreciate your Feedback on the application usefulness, usability and suggestions for improvements and enhancements (http://www.docmator.com ) * This application uses web2py framework. Users can login

[web2py] What is the proper way to use external cron with web2py?

2012-09-07 Thread Marin Pranjić
I want to run a script once a day. I need to execute models. I tried with: 0 0 * * * python /path/to/web2py.py -S app -M -N -R applications/app/private /cron_test.py cron.txt 21 And this *works*. But I see web2py has some flags and I am not sure should I use them or not. Does it matter?

[web2py] redirect with method POST

2012-09-07 Thread Pradeeshnarayan
In my web2py application after a form submit, I want to redirect to another page with some POST variables. I couldn't find any option to set then method. My main idea is to avoid those values from users. I would greatly appreciate any suggestions. --

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-07 Thread lucas
On Friday, September 7, 2012 4:57:37 AM UTC-4, Michele Comitini wrote: lucas, OK. So there is no error at SQL level. The problem is probably a closing cursor that happens somewhere in the DAL, that is triggered by some usage/environment peculiar to your application. Check the following

Re: [web2py] redirect with method POST

2012-09-07 Thread Marin Pranjić
You cannot send POST vars. You can send GET vars. You can store vars in session and then access them from another page (if they are in the same app). You can return a page with form and then submit that form with javascript (document.form.submit()) Marin On Fri, Sep 7, 2012 at 12:56 PM,

[web2py] static blog

2012-09-07 Thread Martín Mulone
http://blog.martinmulone.com.ar/post/996-static-blog-in-web2py -- http://martinmulone.com.ar --

[web2py] conditional form submission

2012-09-07 Thread Annet
I have a function with an SQLFORM.factory() form, after submission I check whether the database already contains an organization with the CoC number in the form, when it does I set a response.flash telling the user the database already contains that organization. Some organizations have

[web2py] How to use sheduler when running web2py in apache + mod_wsgi scenario ?

2012-09-07 Thread David Marko
How to use sheduler when running web2py in apache + mod_wsgi scenario ? Is it ok to run it as ussual I mean start it separately from apache-wsgi' python web2py.py -K myapp:group1:group2,myotherapp:group1' ? No problem with this? --

[web2py] Re: static blog

2012-09-07 Thread Massimo Di Pierro
+1 I see you used some of the book code in the book. In particular you use MARKMIN the way it is done in the book using extra variables. That is ok and it is done for backward compatibility with old book sources which also need to processed in latex. If that is not important there is a batter

[web2py] Re: conditional form submission

2012-09-07 Thread Massimo Di Pierro
organization=db((db.organization.cocNumber==form.vars.cocNumber)\ (db.organization.subdossierNumber==form.vars.subdossierNumber)).select() should be' organization=db((db.organization.cocNumber==form.vars.cocNumber)\

Re: [web2py] Re: static blog

2012-09-07 Thread Martín Mulone
Yes is based on the book app. I made some changes, in the index I made a change that read extract.markmin because abstract in info.txt is to short in lenght, but I have to render to a file like chapters because is to slow to read it all the time to make an index of posts. Ok I'm going to change

[web2py] [OT] Ubuntu 12.10 will no longer ship with Python 2

2012-09-07 Thread Luther Goh Lu Feng
FYI: Ubuntu 12.10 Quantal Quetzal says bye bye to Python 2. Take note if you run web2py and intend to use 12.10. I am not sure if there are ways to get Python 2 installed though. For 12.10, we intend to ship only Python 3 with the Ubuntu desktop image, not Python 2. Beta-1 continues this

[web2py] Re: [OT] Ubuntu 12.10 will no longer ship with Python 2

2012-09-07 Thread Massimo Di Pierro
I think this is a mistake but installing python 2.7 should be easy enough. Massimo On Friday, 7 September 2012 07:56:59 UTC-5, Luther Goh Lu Feng wrote: FYI: Ubuntu 12.10 Quantal Quetzal says bye bye to Python 2. Take note if you run web2py and intend to use 12.10. I am not sure if there are

[web2py] Re: What is the proper way to use external cron with web2py?

2012-09-07 Thread Jose C
But I see web2py has some flags and I am not sure should I use them or not. Does it matter? -J, --cronjob identify cron-initiated command -C, --crontrigger a cron run manually; usually invoked froma system crontab Do they change anything?

Re: [web2py] Re: static blog

2012-09-07 Thread Ovidio Marinho
You are missing an administrator, or is it just me? 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

Re: [web2py] Re: static blog

2012-09-07 Thread Martín Mulone
I'm not sure if I understand, there no admin, you make post copying and pasting new folder under source_blog in the app, and editing files using your favorite editor like gedit, ultraedit, any ide, etc. 2012/9/7 Ovidio Marinho ovidio...@gmail.com You are missing an administrator, or is it just

Re: [web2py] little css issue and french translation

2012-09-07 Thread Richard Vézina
For sure I can help once in a wild, I am pretty busy... I can take it paragraph by paragraph... :) I will check how it works with Git. Richard On Thu, Sep 6, 2012 at 10:56 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: :-) merci'. Send me a patch when you can. On Thursday, 6

Re: [web2py] redirect with method POST

2012-09-07 Thread Jonathan Lundell
On 7 Sep 2012, at 3:56 AM, Pradeeshnarayan pradeeshnara...@gmail.com wrote: In my web2py application after a form submit, I want to redirect to another page with some POST variables. I couldn't find any option to set then method. My main idea is to avoid those values from users. I would

[web2py] routes_onerror changes error code to 200 OK

2012-09-07 Thread Jose C
This is an old issue as per: https://groups.google.com/forum/#!searchin/web2py/404$20/web2py/D7zU8Ssa3OA/BqJW97wr4HwJ and https://groups.google.com/forum/#!searchin/web2py/404$20/web2py/Fp0jxzNTVUI/fl7doNG2L5IJ Also Yarin has created a workaround for it:

[web2py] Re: [OT] Ubuntu 12.10 will no longer ship with Python 2

2012-09-07 Thread LightDot
Please don't spread FUD. The news only says that the DESKTOP CD IMAGE will not contain python 2.x, this doesn't mean Ubuntu 12.10 will remove python 2.x from the distribution. This also doesn't affect server images, or any other Ubuntu images. The server cd image and other images will contain

Re: [web2py] little css issue and french translation

2012-09-07 Thread Massimo Di Pierro
A zip of the files will do. On Friday, 7 September 2012 08:50:56 UTC-5, Richard wrote: For sure I can help once in a wild, I am pretty busy... I can take it paragraph by paragraph... :) I will check how it works with Git. Richard On Thu, Sep 6, 2012 at 10:56 PM, Massimo Di Pierro

Re: [web2py] little css issue and french translation

2012-09-07 Thread Massimo Di Pierro
Or simply a reminder to pull from your github repo when you make changes. On Friday, 7 September 2012 08:50:56 UTC-5, Richard wrote: For sure I can help once in a wild, I am pretty busy... I can take it paragraph by paragraph... :) I will check how it works with Git. Richard On Thu,

[web2py] Re: routes_onerror changes error code to 200 OK

2012-09-07 Thread Massimo Di Pierro
Can you please open a ticket and link those threads? On Friday, 7 September 2012 08:53:13 UTC-5, Jose C wrote: This is an old issue as per: https://groups.google.com/forum/#!searchin/web2py/404$20/web2py/D7zU8Ssa3OA/BqJW97wr4HwJ and

Re: [web2py] Re: What is the proper way to use external cron with web2py?

2012-09-07 Thread Jonathan Lundell
But I see web2py has some flags and I am not sure should I use them or not. Does it matter? -J, --cronjob identify cron-initiated command -C, --crontrigger a cron run manually; usually invoked from a system crontab Do they change

Re: [web2py] sqlform.grid and query conditions

2012-09-07 Thread MichaelF
I appreciate that web2py has ways to handle this, and I also agree that it's somewhat hackish. The problem remains, though, that we're still exposing (publishing) internal primary keys to the browser. Isn't the main problem the fact that we're dealing with primary key values being sent to the

[web2py] Re: How to use sheduler when running web2py in apache + mod_wsgi scenario ?

2012-09-07 Thread Niphlod
Perfectly fine.it's the recommended way! Apache co. kill processes that hang up (usually a certain timeout) because normally a page should return something in a small timeframe. This feature is useful to free up resources if the code to generate your webpage is too heavy on the machine,

[web2py] Re: routes_onerror changes error code to 200 OK

2012-09-07 Thread Jose C
On Friday, September 7, 2012 3:18:10 PM UTC+1, Massimo Di Pierro wrote: Can you please open a ticket and link those threads? Done. --

[web2py] Re: How to add a web2py GUI for a background process ?

2012-09-07 Thread Esteban García-Gurtubay
Thanks, Andrew. I had a look into Qpid. It certainly can do the job, but on the same spirit, I think a simpler client/server implementation with XMLRPC might work as well. Besides, XMLRPC libraries are bundled with Python by default. /E.- On Friday, September 7, 2012 5:06:56 AM UTC+2,

[web2py] Re: Validating form fields manually

2012-09-07 Thread Daniel Gonzalez
Thanks Bruno and Anthony, that worked. For others who might need this, this is my code: def validate_my_form(form): destination = form.vars.destination log.error(call_channel='%s' % (form.vars.call_channel)) if form.vars.call_channel == VOICEMAIL_CHANNEL: _, err_msg =

[web2py] Using the template system to generate messages

2012-09-07 Thread Daniel Gonzalez
As explained here: http://web2py.com/books/default/chapter/29/8#Using-the-template-system-to-generate-messages The following code can be used to render a view file to send via email: for person in db(db.person).select(): context = dict(person=person) message =

Re: [web2py] Re: What is the proper way to use external cron with web2py?

2012-09-07 Thread Jose C
Using system/external cron, you should use the -J flag. Jonathan, could you elaborate on what the `J` flag is supposed to do? I've just run external cron tests both with and without that flag and can't see any visible difference. I've scanned the source but can only find reference to

Re: [web2py] Re: What is the proper way to use external cron with web2py?

2012-09-07 Thread Jonathan Lundell
On 7 Sep 2012, at 8:06 AM, Jose C houdinihoun...@gmail.com wrote: Using system/external cron, you should use the -J flag. Jonathan, could you elaborate on what the `J` flag is supposed to do? I've just run external cron tests both with and without that flag and can't see any visible

[web2py] Re: Using the template system to generate messages

2012-09-07 Thread Niphlod
it's a path relative to the app's *views *folder. With this code your * message.html* should be next to layout.html, just in the *yourapp/views/*folder. Il giorno venerdì 7 settembre 2012 17:04:27 UTC+2, Daniel Gonzalez ha scritto: As explained here:

Re: [web2py] Re: What is the proper way to use external cron with web2py?

2012-09-07 Thread Jose C
Mainly, it avoids some unnecessary overhead, and automatically sets some other useful flags (like -N). And in the trunk (so wait for 2.0.8), it sets nobanner and nogui. Also, it overrides requires_https. (I don't actually see a reference to it in newcron.py...) Great, thanks for the

[web2py] Re: I can't display a thumbnail?

2012-09-07 Thread Anthony
On Friday, September 7, 2012 11:22:41 AM UTC-4, BlueShadow wrote: I tried your solution and it just leaves the thumb field empty and no thumbnail is created in the upload folder. Are you referring to Paolo's solution or this one: thisImage.update_record(thumb=db.Images.thumb.store(im,

[web2py] Re: I can't display a thumbnail?

2012-09-07 Thread BlueShadow
I was referring to paolos post On Friday, September 7, 2012 5:38:15 PM UTC+2, Anthony wrote: On Friday, September 7, 2012 11:22:41 AM UTC-4, BlueShadow wrote: I tried your solution and it just leaves the thumb field empty and no thumbnail is created in the upload folder. Are you

Re: [web2py] Re: What is the proper way to use external cron with web2py?

2012-09-07 Thread Jonathan Lundell
On 7 Sep 2012, at 8:33 AM, Jose C houdinihoun...@gmail.com wrote: Mainly, it avoids some unnecessary overhead, and automatically sets some other useful flags (like -N). And in the trunk (so wait for 2.0.8), it sets nobanner and nogui. Also, it overrides requires_https. (I don't actually

Re: [web2py] Re: static blog

2012-09-07 Thread Andrew W
Good work Martin, I was thinking of looking at the book app for the same purpose. I want to document some Disaster Recovery procedures, so I therefore also need to create a PDF version as well. Do you think the book app vs auth.wiki() is better (easier?) for generating PDFs.? So many

[web2py] Re: I can't display a thumbnail?

2012-09-07 Thread Anthony
Yes, I see a message was deleted -- don't know who deleted it. Can you post the error again? On Friday, September 7, 2012 11:41:05 AM UTC-4, BlueShadow wrote: I was referring to paolos post your solution gives me just the error message I don't understand Anthony. I posted the error message

[web2py] Re: I can't display a thumbnail?

2012-09-07 Thread BlueShadow
Traceback (most recent call last): File F:\Website\web2py\gluon\restricted.py, line 209, in restricted exec ccode in environment File F:/Website/web2py/applications/testthumb/controllers/default.py http://127.0.0.1:8000/admin/default/edit/testthumb/controllers/default.py, line 128, in

[web2py] Getting auth.wiki pages to display without login

2012-09-07 Thread Andrew W
Pasting in one of my urls into the browser, I always get a login screen. I haven't turned on permissions=True. Is there an extra step ?. --

Re: [web2py] sqlform.grid and query conditions

2012-09-07 Thread Massimo Di Pierro
I strongly disagree with this. Publishing record IDs does not imply indirect object reference vulnerability. Any application that publishes record information must have a way to reference individual records. If the individual access is not validated than the app is vulnerable to indirect

Re: [web2py] Re: [OT] Ubuntu 12.10 will no longer ship with Python 2

2012-09-07 Thread Richard Vézina
Again bad Ubuntu decision! Richard On Fri, Sep 7, 2012 at 9:54 AM, LightDot light...@gmail.com wrote: Please don't spread FUD. The news only says that the DESKTOP CD IMAGE will not contain python 2.x, this doesn't mean Ubuntu 12.10 will remove python 2.x from the distribution. This also

[web2py] Re: Getting auth.wiki pages to display without login

2012-09-07 Thread Massimo Di Pierro
cannot reproduce. Can you provide an example? Did you pass url=True? On Friday, 7 September 2012 11:25:34 UTC-5, Andrew W wrote: Pasting in one of my urls into the browser, I always get a login screen. I haven't turned on permissions=True. Is there an extra step ?. --

[web2py] Re: How to add a web2py GUI for a background process ?

2012-09-07 Thread Andrew
Sure thing :) One thing to consider is that the messaging implementation can be completely asynchronous. I don't know if that's important for your use-case. Since qpid supports persistent queues it even allows you to allow the broker to be down for maintenance etc. On Friday, September 7,

Re: [web2py] Re: [OT] Ubuntu 12.10 will no longer ship with Python 2

2012-09-07 Thread Bruno Rocha
Let's create a virtual-env with Python 2.7 and it will not be a problem. --

[web2py] Re: How to use sheduler when running web2py in apache + mod_wsgi scenario ?

2012-09-07 Thread David Marko
Thanks! also in one of other threads you mentioned NSSM for runnig programs as services on Windows. Does is also work for scheduler worker? Do you have experience with this as an scheduler author :-) ? David Dne pátek, 7. září 2012 16:40:26 UTC+2 Niphlod napsal(a): Perfectly fine.it's

[web2py] Re: I can't display a thumbnail?

2012-09-07 Thread Anthony
How about if you do something like: from cStringIO import StringIO tmp = StringIO() im.save(tmp, 'jpeg') tmp.seek(0) thisImage.update_record(thumb=db.Images.thumb.store(tmp, filename= 'thumbnail.jpg')) Anthony On Friday, September 7, 2012 12:07:27 PM UTC-4, BlueShadow wrote: Traceback (most

Re: [web2py] sqlform.grid and query conditions

2012-09-07 Thread MichaelF
Thanks, Massimo. Re. needing a way to reference individual records: of course. But it doesn't have to be the internal record id (primary key value). The php code we used gave out unique-per-request values so that one couldn't, say, use a key retrieved from one form in another form. The @auth

[web2py] Re: How to use sheduler when running web2py in apache + mod_wsgi scenario ?

2012-09-07 Thread Niphlod
yep, works perfectly. On Friday, September 7, 2012 6:54:45 PM UTC+2, David Marko wrote: Thanks! also in one of other threads you mentioned NSSM for runnig programs as services on Windows. Does is also work for scheduler worker? Do you have experience with this as an scheduler author :-) ?

[web2py] Re: Why would I use DIV classes/helpers, over an html template?

2012-09-07 Thread Cliff Kachinske
Because you can do stuff like this: rows = db(...#get some arbitrary rows tbody = TBODY() for r in rows: tbody.append(TR(...# do complex stuff with row data. If a list of rental properties, for example, style the address red if vacant table=TABLE(THEAD(...arbitrary column headings), tbody)

[web2py] Re: Why would I use DIV classes/helpers, over an html template?

2012-09-07 Thread Andrew W
Good example Cliff. --

[web2py] Re: Getting auth.wiki pages to display without login

2012-09-07 Thread Andrew W
No I didn't. Only just found out about URL=True. Di I pass as a URL variable ? --

Re: [web2py] Re: Why would I use DIV classes/helpers, over an html template?

2012-09-07 Thread Shawn McElroy
But see, to me, now that's putting HTML in the controller. Which I see as a negative. Ideally I would pass the data to the view and use a foreach over the data contents. And for marking a field as red, I would put some metadata into the data sent to the view. I would just test if vacant was true,

Re: [web2py] sqlform.grid and query conditions

2012-09-07 Thread Massimo Di Pierro
In some sense the grid does what you say. For example: @auth.requires_login() def index(): db.define_table('thing',Field('name'),auth.signature) grid = SQLFORM.grid(db.thing.created_by==auth.user_id) return locals() Notice all the URLs linked by the grid are digitally signed.

Re: [web2py] Re: static blog

2012-09-07 Thread Martín Mulone
book app and this are static generation of the content, focus on lightweight aproach. Auth.wiki is all included is a cms, auth, edit create, delete system grid, etc. I think you can render a pdf with no problem from markmin. 2012/9/7 Andrew W awillima...@gmail.com Good work Martin, I was

[web2py] Re: Getting auth.wiki pages to display without login

2012-09-07 Thread Massimo Di Pierro
Strange. It should work even without url=True. You should be able to paste any URL in markmin and it should work. MARKMIN(text, url=True) simply allows you to user the shortcuts @/app/controller/function/args and they will be converted in http:///app/controller/function/args where app,

Re: [web2py] sqlform.grid and query conditions

2012-09-07 Thread Kevin Cackler
I guess I need to look into the auth.signature functionality. We already had our grid conditional be db.pages.stores_id=STORE_INFO.id but we were able to edit Store 1's page while logged into Store 2's administration area, just by changing the ID in the URL. Are you saying that

Re: [web2py] Re: static blog

2012-09-07 Thread Massimo Di Pierro
If you use: from gluon.contrib.autolinks import expand_one html = MARKMIN(page.body,url=True,environment={}, autolinks=lambda link: expand_one(link,{})).xml() embedding in markmin any link to a public document (pdf, doc, docx, xls, etc.) will call google doc viewer and embed

Re: [web2py] Re: web2py book on github

2012-09-07 Thread Ezugworie Ikechukwu
Hello, Please am a windows user and I don't know how to use mercurial or git so i downloaded the book in 'tar.gz' format. I managed to install the book but the images are not displaying (streaming). I don't know why. Please could someone help me with what to do. Thanks On Tue, Sep 4, 2012 at 8:54

Re: [web2py] sqlform.grid and query conditions

2012-09-07 Thread Massimo Di Pierro
I only talk for 2.0.x. Yes. That is prevented with the default user_signature=True. If you disable user signature with user_signature=False than you expose yourself to major security risks and may expose the entire database. user_signature = False should only be used for testing or if you

Re: [web2py] sqlform.grid and query conditions

2012-09-07 Thread Massimo Di Pierro
I should add that if user_signature=False the tables are always exposed in readonly mode: SQLFORM.grid(..,editable=False, create=False, deletable=False) On Friday, 7 September 2012 14:50:56 UTC-5, Massimo Di Pierro wrote: I only talk for 2.0.x. Yes. That is prevented with the default

Re: [web2py] Re: static blog

2012-09-07 Thread Andrew W
Thanks. My intention is to make , and print, a PDF of the markmin content, just like the book. For disaster recovery doco, I want a hard copy. With the new book app, are you still planning to have available a PDF from the files? --

Re: [web2py] Re: static blog

2012-09-07 Thread Massimo Di Pierro
Yes. I will post the script soon. I need to fix it because I changed the markmin syntax of links so my previous script broke. On Friday, 7 September 2012 14:58:06 UTC-5, Andrew W wrote: Thanks. My intention is to make , and print, a PDF of the markmin content, just like the book. For

Re: [web2py] sqlform.grid and query conditions

2012-09-07 Thread MichaelF
Ahhh; thanks for pointing that out. I had breezed over the mention about digitally signed (my fault). Makes sense. I'll have to think about the public db keys. Using them through web2py seems to be handled, though. Thanks again. Michael On Friday, September 7, 2012 1:39:47 PM UTC-6, Massimo

[web2py] Re: I can't display a thumbnail?

2012-09-07 Thread Anthony
cStringIO.StringIO is a file-like object. The code saves the thumbnail to that object and then passes it to the .store() method, which treats it like an actual file. Anthony On Friday, September 7, 2012 4:24:46 PM UTC-4, BlueShadow wrote: Anthony you are the best. I got pretty much no Idea

Re: [web2py] Re: Why would I use DIV classes/helpers, over an html template?

2012-09-07 Thread Anthony
On Friday, September 7, 2012 3:21:30 PM UTC-4, luckysmack wrote: But see, to me, now that's putting HTML in the controller. Which I see as a negative. Ideally I would pass the data to the view and use a foreach over the data contents. And for marking a field as red, I would put some

[web2py] Re: web2py 2.0.8 posted

2012-09-07 Thread shartha
Hi Massimo. Correct me if I am wrong, but is *gluon.contrib.pyfpdf* not included in the new version? On Thursday, September 6, 2012 7:55:29 PM UTC-7, Massimo Di Pierro wrote: Minor bug fixes, some recent tickets closed and fixed a problem with the windows binary distribution. It should now

[web2py] How do I incorporate git into my web2py workflow?

2012-09-07 Thread Pystar
I would like to know how coders here incorporate git or any other VCS into their coding workflow with web2py? Thanks --

Re: [web2py] sqlform.grid and query conditions

2012-09-07 Thread Massimo Di Pierro
Anyway, thank you for brining out security issues. It is very important for web2py. The more people look at it from the security point of view, the better. On Friday, 7 September 2012 15:33:11 UTC-5, MichaelF wrote: Ahhh; thanks for pointing that out. I had breezed over the mention about

[web2py] Re: web2py 2.0.8 posted

2012-09-07 Thread Massimo Di Pierro
Was renamed gluon.contrib.fpdf by the author (Mariano). There is a gluon.contrib.pyfpdf.py that should enable backward compatibility. On Friday, 7 September 2012 16:48:17 UTC-5, shartha wrote: Hi Massimo. Correct me if I am wrong, but is *gluon.contrib.pyfpdf* not included in the new

[web2py] Re: How do I incorporate git into my web2py workflow?

2012-09-07 Thread Massimo Di Pierro
One of the new features is that in admin you can use a git url to install a web2py directly from github. You can also push an app to github. All of this requires python-git. We are working on adding better git/hg features. On Friday, 7 September 2012 17:24:42 UTC-5, Pystar wrote: I would

[web2py] Re: web2py 2.0.8 posted

2012-09-07 Thread shartha
Thanks for the clarification. On Thursday, September 6, 2012 7:55:29 PM UTC-7, Massimo Di Pierro wrote: Minor bug fixes, some recent tickets closed and fixed a problem with the windows binary distribution. It should now run on XP and more recent versions of windows without pyhton

[web2py] Re: response.stream and web2py_component

2012-09-07 Thread maverick
I do want to also display content in the DIV. In addition to displaying content in the DIV, I want the controller to also trigger a file download. A more accurate version of the form_query() controller would be something like: In reponse to the form submission, it has to return a dict

[web2py] Re: response.stream and web2py_component

2012-09-07 Thread Anthony
window.open('{{=URL('reports', 'form_query')}}' + '/' + jQuery(this).val()); is still the way to trigger the download. The jQuery change event handler could trigger the component loading *in addition* to triggering the above command. Another option might be to include the above JS in a script