[web2py] uploading a file with a form ( without SQLFORM)

2018-04-13 Thread 'Multiplery' via web2py-users
Hey folks, I'm attempting to upload a file directly without the use of a SQLForm but rather the ordinary FORM. >From previous threads regarding the topic i figured my controller should look something like this: [code] def index(): import shutil form = FORM( INPUT( _na

[web2py] Re: chinging text of the "submit" button and creating a button without a form

2014-05-19 Thread Multiplery
And is there a way to make a button which leads to a page by click, similar to this: form=FORM('Your name:', INPUT(_type='submit')) form.add_button('click me', URL('index')) Am Sonntag, 18. Mai 2014 13:07:16 UTC+2 sc

[web2py] chinging text of the "submit" button and creating a button without a form

2014-05-18 Thread Multiplery
Hey, i have two questions. 1. when i have this code, is it possible to change the text of the submit button already in the controller or only in the view? form = FORM('Your name:', INPUT(_name='name', requires=IS_NOT_EMPTY()), INPUT(_type='submit')) 2. Is it poss

[web2py] array with in the view

2014-04-14 Thread Multiplery
Hey Guys, i have a few problems with the various view possibilities. The reference manual gives this piece of code as an example for the in the view: [code] >>> print SELECT('', XML('world'), _class='test', _id=0) world [/code] when i just copy this into a view, nothing happens. Whic

[web2py] Re: for... in usage

2014-02-02 Thread Multiplery
well, no errer message, but still it does not work fine, since the page Shows only: at 0x0723B698> (everything else would work fine, so this isn't an error message) I'm sorry that I cause so many Problems :( Am Sonntag, 2. Februar 2014 14:51:33 UTC+1 schrieb Multiplery: > Hey

[web2py] Re: for... in usage

2014-02-02 Thread Multiplery
ntax Am Sonntag, 2. Februar 2014 14:51:33 UTC+1 schrieb Multiplery: > Hey guys, > I have a problem with the for in usage. > > I want an function which creates, depending on a db, URLs. > So in the db is a table with the fields 'name', 'user' 'value'. &

[web2py] Re: for... in usage

2014-02-02 Thread Multiplery
I'm sorry, but it creates an error 'invalid syntax' Am Sonntag, 2. Februar 2014 14:51:33 UTC+1 schrieb Multiplery: > > Hey guys, > I have a problem with the for in usage. > > I want an function which creates, depending on a db, URLs. > So in the db is a ta

[web2py] for... in usage

2014-02-02 Thread Multiplery
Hey guys, I have a problem with the for in usage. I want an function which creates, depending on a db, URLs. So in the db is a table with the fields 'name', 'user' 'value'. testdb = dba(dba.test.user== user).select(dba.test.ALL) now, in the view i want those URLS: A(user,_href=URL(Name + '/' + st