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
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
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
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
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
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
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
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
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
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.
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
>
>
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.
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. |
-
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
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
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
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 = ''.
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
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
>
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
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
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
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
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
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
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
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 /
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
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
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
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:
> > >
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
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
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
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
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
36 matches
Mail list logo