[web2py] Why should I use the helpers and not the html?

2015-03-16 Thread Omar Sanseviero
I've seen there are lots of helpers like the next ones. Should we use this ones or HTML? I don't see a lot of difference between sending html from controller and creating from view. A, B, BODY, BR, CENTER, CODE, COL, COLGROUP, DIV, EM, EMBED, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HEAD, HR, HTM

[web2py] Integrating with Google App Engine

2015-03-12 Thread Omar Sanseviero
I have a question about web2py. Should I be implementing all the database in web2py or in GAE? -- 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 recei

[web2py] Re: Forcing download of generated PDF

2014-12-01 Thread Omar Meat Boy Gutiérrez
With: return response.stream(open(path, 'rb')) You need save your file first, using tempfile maybe. On Wednesday, October 29, 2014 12:13:39 PM UTC-5, Jason Solack wrote: > > Hello everyone, i'm generating a PDF using pdfkit and i'd like my function > to force the download of the pdf file i'm

[web2py] Re: Another multiple file upload and file drop area demo, this time using dropzone.js

2014-08-11 Thread Omar Meat Boy Gutiérrez
It is a great thing, undoubtedly. On Monday, December 16, 2013 12:21:01 PM UTC-6, Leonel Câmara wrote: > > I did this to see how I could integrate dropzone.js ( > http://www.dropzonejs.com/ ) with web2py as I'm thinking of using it in > some of my projects. > > Hopefuly it can be useful to som

[web2py] How to manage repeated fields/attributes using form.custom.widget.fieldname?

2014-06-26 Thread Omar Meat Boy Gutiérrez
I have three tables (country, state, and town) each one has a field called name: db.define_table('country' Field('name', 'string'), ... more fields ... ) db.define_table('state' Field('name', 'string'), Field('country_id', 'refe

[web2py] Re: How to redirect a page after Google OAuth login?

2014-06-03 Thread Omar Meat Boy Gutiérrez
I solved: vars={'_next':request.env.request_uri} (auth.user or request.args(0) == 'login') or\ redirect(URL('default', 'user', args='login', vars=vars)) On Tuesday, June 3, 2014 5:12:06 PM UTC-5, Omar Meat Boy

[web2py] How to redirect a page after Google OAuth login?

2014-06-03 Thread Omar Meat Boy Gutiérrez
I am using Google OAuth to login in my app. In `default/index.html` I have some buttons (as a menu), each button have a link to specific controller. When I click on one of those buttons, my app go to 'default/user/login'. After login process I am being redirected to `default/index.html`. I'd

Re: [web2py] Re: I'd like to know what is a suitable tool to generate document templates.

2014-03-26 Thread Omar Gutiérrez
Limedrop, > If your customer is happy using MS Word why force them to change? Word > files are just zipped up xml that can be manipulated using tools such as > lxml.etree. We let our customers upload Word templates that we then > populate with data and return to them as docx. That way they can

Re: [web2py] Re: I'd like to know what is a suitable tool to generate document templates.

2014-03-26 Thread Omar Gutiérrez
designed to generate documents. > markmin is more powerful then markdown. > You may also want to look into reportlab. > > On Wednesday, 26 March 2014 11:16:40 UTC-5, Omar Meat Boy Gutiérrez wrote: >> >> >> Hi everyone, >> >> I'd like to discuss with you

[web2py] I'd like to know what is a suitable tool to generate document templates.

2014-03-26 Thread Omar Meat Boy Gutiérrez
Hi everyone, I'd like to discuss with you about your experience with document templates. *I have the next problem:* a) A customer want to generate different kinds of documents. He creates the `templates` using programs like Word. b) I receive the document and I need to convert it to HTML.

Re: [web2py] Re: we2py google login - erroring out

2014-03-07 Thread Omar Meat Boy Gutiérrez
Both solutions work great. Thanks Jayadevan M and Michele Comitini On Friday, March 7, 2014 10:45:26 AM UTC-6, Michele Comitini wrote: > > Jayadevan, > > Cosmetic changes in my patch: > > https://github.com/web2py/web2py/pull/391 > > Can you check if this works for you? > > Thank you! > mic > >

[web2py] Re: How to format rows in a grid in SQLFORM.grid?

2014-01-06 Thread Omar Meat Boy Gutiérrez
w) else: row = TR(TD(i.account), TD(i.concept), _class='blue') new.append(row) return new On Monday, January 6, 2014 10:22:00 AM UTC-6, Omar Meat Boy Gutiérrez wrote: > > > I am using SQLFORM.

[web2py] How to format rows in a grid in SQLFORM.grid?

2014-01-06 Thread Omar Meat Boy Gutiérrez
I am using SQLFORM.grid. I'd like to classify data with colors, for example: | If data in first row is type A| I'd apply the green color to row. | -

Re: [web2py] How to include symbols as ✎ or ✆ in a the helper A()?

2013-12-17 Thread Omar Meat Boy Gutiérrez
It works enclosing the text with XML(). Thanks! On Tuesday, December 17, 2013 7:29:21 PM UTC-6, Roberto Perdomo wrote: > > Try with something like: > > {{=A(XML('✖'), _href=URL('default', 'delete', args=[row.id]))}} > > > > > 2013/12/17

[web2py] How to show HTML entitie symbols using A helper?

2013-12-17 Thread Omar Meat Boy Gutiérrez
I am trying to show a delete symbol like this ✕ or this: ✖. My code is: {{=A('✖', _href=URL('default', 'delete', args=[row.id]))}} My result is simply: ✖ If I use HTML I get the desired result; ✖ However, I'd like to do it using *A helper* because I want to take advantage of it. What am

[web2py] How to include symbols as ✎ or ✆ in a the helper A()?

2013-12-17 Thread Omar Meat Boy Gutiérrez
I have a table of items with a special column to delete each item. I'd like include a symbol like: ✖ or ✕ or ✗, in this way: X Y Z Delete - xy z [✖] xy z [✖] I am trying with: {{=A('✖', _href=URL('default', 'delete', args=[row.id]))}} howev

Re: [web2py] Re: Email form contents after submission

2012-06-22 Thread Omar Technologies
ms... But thanks anyway :) Regards, Omar On Thu, Jun 21, 2012 at 5:50 PM, Anthony wrote: > Assuming you have defined the "mail" mailer object as in the "welcome" app > db.py, something like this: > > if form.process().accepted: > message = ''.

[web2py] Email form contents after submission

2012-06-20 Thread Omar Ali
I'm making a one-page web-app which has one table.. that accepts suggestions (like a feeback thingie).. I'm using SQLFORM to render the form and accept and it's adding everything in the database as expected. But I would like to do an additional step upon submission of form. I want to send an

[web2py] Re: web2py book now free in PDF

2012-06-13 Thread Omar Ali
Hey, that's great. Thanks .. On Tuesday, June 12, 2012 5:17:46 PM UTC+4, Massimo Di Pierro wrote: > > The official web2py book is now free for everybody: > > https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf > > Massimo >

[web2py] Re: Newbie Alert: A flow chart of how things happen

2012-06-07 Thread Omar Ali
ood first experience. Hope to be able to add back to web2py. It looks good so far On Thursday, June 7, 2012 2:15:26 PM UTC+4, Omar Ali wrote: > > I'm a total newbie. I have programmed extensively during the VB days > (event driven programming) (I know, you'd hardly call that

[web2py] Newbie Alert: A flow chart of how things happen

2012-06-07 Thread Omar Ali
I'm a total newbie. I have programmed extensively during the VB days (event driven programming) (I know, you'd hardly call that programming!) so ... Web programming is taking a toll on me. Could someone explain to me the dynamics of web2py programming in a way that an event driven programming d

[web2py] Re: Unexpected exception

2012-04-10 Thread Omar Fariñez
yes of course here you go: TRACEBACK 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Traceback (most recent call last): File "gluon/restricted.py", line 205, in restricted File "C:/Omar/web2py/applications/gestpro/controllers/appadmin.py" <http://127.0.0.1:8000/admin/default/e

[web2py] Unexpected exception

2012-04-10 Thread Omar Fariñez
hello guys, i would like to know how to solve this exception: '_id' it appears when i want to insert a new register in the table 'bobinas', that table was defined this way: db.define_table ('bobinas', Field('serial','string',notnull=True), Field('peso_kg','i

[web2py] Re: "SSL is OFF" error message when starting the server

2010-05-21 Thread OMAR
No, I'm still stuck. Not sure where to go from here, so I'm starting over with a fresh install of the OS. Perhaps I'll pick something with python 2.6 ? Obviously I don't have to implement the ssl through python, I can make the connection through another web server, but I hate to give up after inve

[web2py] Re: "SSL is OFF" error message when starting the server

2010-05-20 Thread OMAR
Tim, you were very close. libssl-dev - Massimo, I went the route of installing distutils so I could easy_install, but once again was met with an error: sudo easy_install ssl Processing ssl error: Couldn't find a setup script in ssl Thank you for the suggestions. I see where plenty of

[web2py] Re: "SSL is OFF" error message when starting the server

2010-05-20 Thread OMAR
Yes, I understand. I already downloaded package ssl 1.15 However, I was unable to install the module. See the listing of errors posted above. I don't mean to clutter this group with questions not directly related to web2py. I'm currently stuck because I do not understand how to install the ssl mo

[web2py] Re: "SSL is OFF" error message when starting the server

2010-05-19 Thread OMAR
Tim, thanks for the speedy reply. Sorry to say I'm still stuck. I downloaded the ssl1.5 package and unpacked it. I figured the next step would be, "python setup.py install" Here was the output: looking for /usr/include/openssl/ssl.h looking for /usr/local/ssl/include/openssl/ssl.h looking for /

[web2py] "SSL is OFF" error message when starting the server

2010-05-13 Thread OMAR
I have web2py installed on a remote Debian server. When connecting via my local Windows box, the admin is disabled for Web2py because of the unsecure channel. I set up an SSH tunnel for the connection, and I've created a private certificate authority for the SSL connection. When starting the serve

[web2py:28801] Re: Strange error:

2009-08-17 Thread Omar Munk
Wow, Is this real? Did i really forget to post it? Sorry man! http://pastebin.com/f4e374c6d Sorry again... 2009/8/17 mdipierro > > where did you post it? > > On Aug 17, 6:06 am, Pynthon Pynthon wrote: > > Hello > > > > I posted the error and my code here. I used the new methods as Massimo > tol

[web2py:22574] Re: Why?

2009-05-24 Thread Omar Munk
Thanks, and indeed. I also want to know what r = request is for. 2009/5/24 weheh > > redirect is meant to send the web page to a URL address. I haven't > tried it myself, but I assume you could say >redirect("http://www.google.com";) > URL(r=request,f='first') will generate a url that will d

[web2py:20425] Re: Compliments

2009-04-24 Thread Omar Munk
gt; > > > Massimo > > > > > On 22 Apr, 09:11, Pynthon Pynthon wrote: > > > > I also use WIndows. What is btw T1 and T2 *shame*? > > > > > > 2009/4/22 Fran > > > > > > > On Apr 21, 8:59 pm, Omar Munk wrote: > > >

[web2py:20207] Re: Compliments

2009-04-21 Thread Omar Munk
Windows isn't much used in the "Web-Framework-Scene":(. Do you recommend Ubuntu or Windows for W2P developping? Omar 2009/4/21 mdipierro > > Mac mostly. > > Massimo > > On 21 Apr, 14:50, Omar Munk wrote: > > BTW, are you using MAC, Ubuntu or Wind

[web2py:20204] Re: Compliments

2009-04-21 Thread Omar Munk
BTW, are you using MAC, Ubuntu or Windows? What are you recommend Ubuntu or Windows? 2009/4/21 Omar Munk > We need indeed more "users". Then there can be blogs with screencasts like > railscasts etc. But Web2Py team! This is the best looking web-framework > ever! And I ev

[web2py:20203] Re: Compliments

2009-04-21 Thread Omar Munk
We need indeed more "users". Then there can be blogs with screencasts like railscasts etc. But Web2Py team! This is the best looking web-framework ever! And I even didn't use it :P. 2009/4/21 mdipierro > > I do not know. Probably not. > > Massimo > > On 21 Apr, 13:34, mikech wrote: > > Are ther

[web2py:20197] Re: Compliments

2009-04-21 Thread Omar Munk
All my friends are PHPers. I told them about Web2Py but they said "PHP is the most used web language". So they want to: 1. Work 4 weeks on a blog in OOP? Without the design? # W2P is already OOP. Your blog is created in less then 2 hours. 2. Cleaner # Your whole website in one file, you cant find

[web2py:20183] Re: Compliments

2009-04-21 Thread Omar Munk
I know, I have now the cutted PDF file with 70 pages. Hopefully this is easier then Rails. Rails also looked very simple but when you starting its really really hard. However Friday I'm going to buy the book hopefully! 2009/4/21 Michal Jursa > > SO SAY WE ALL!!! : > > Michal > > Pynthon wrot