In the function you could do:
form.element('input[type=submit]').update(_class='btn btn-custom')
and then style .btn-custom in your css file.
Kind regards,
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
Upon login, store response.session_id or response.session_filename in an
extra field in db.auth_user. That will make it easier to retrieve the
session of any given user. If you want to update a session file, be sure to
lock it first.
Maybe have a look at the session code for some ideas:
https:
{{=form.custom.begin}}
Name: {{=form.custom.widget.name}}
File: {{=form.custom.widget.source}}
{{=form.custom.submit}}{{=form.custom.end}}
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google
Please elaborate on how I can do this manually. Thanks.
On Thursday, January 7, 2016 at 7:26:15 PM UTC+5, Anthony wrote:
>
> auth.user_groups is stored in the user's session. If you (as an admin)
> make a change in the database, that will not affect the session of another
> user (which is stored
Thanks again for the help.
I coud create my own certificate, but I have a dude: The standard port for
SSL is 443 and my application runs using the port 8001, How I have to
configure the port in IIS and web2py?
Regards.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
It we have a table with text and string...text will remain same and string
will shrink. Unless all of them are changed equally.
On Tuesday, January 19, 2016 at 5:02:29 PM UTC-5, Richard wrote:
>
> Don't know if there is anything include in bootstrap now for elastic
> textarea (I doubt)... Regard
Don't know if there is anything include in bootstrap now for elastic
textarea (I doubt)... Regarding responsiveness, I don't think simple size
change from css override will bring any issue, except it it lead to the
overriding of the responsive behavior of course.
Richard
On Tue, Jan 19, 2016 at 2
the web is riddled with examples. (un)fortunately IIS has a much wider
adoption than web2py :-P
http://weblogs.asp.net/scottgu/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates
On Tuesday, January 19, 2016 at 9:44:57 PM UTC+1, José Eloy wrote:
>
> Thanks Niphlod for your answer, sorr
Thanks Niphlod for your answer, sorry by my delay in answering.
I was trying running my app using the Rocket Web Server and https. I
created the cerfificate as you indicate me and all is working well, but I
noted the app is slow returning the html views.
I've reading that is better to use web2
On Tuesday, January 19, 2016 at 2:44:30 PM UTC-5, Niphlod wrote:
>
> uhm, it won't start at id = 1 though. at that point it's better to drop .
>
It's actually backend specific. For SQLite and MySQL, db.mytable.truncate()
will reset the ID to 1 (this works for SQLite because the DAL explicitly
de
Yes. I can see the tables...
And yes... I can call the function.. It's working OK...
Thanks...
On Tue, Jan 19, 2016 at 4:39 PM, Fabiano Almeida
wrote:
> Hi Marcello,
>
> Can you see your tables in appadmin?
>
> And your lambda, you can create and call function to count in konsulta's
> table and
uhm, it won't start at id = 1 though. at that point it's better to drop .
On Tuesday, January 19, 2016 at 5:38:34 PM UTC+1, Anthony wrote:
>
> db.mytable.truncate()
>
> It's in the book.
>
> On Tuesday, January 19, 2016 at 10:43:01 AM UTC-5, aston...@gmail.com
> wrote:
>>
>> Please write the sni
Only one thing to be careful of. I believe...If someone use the default
scaffolding css and create the form its responsive by default. Means, you
open the browser and roll back and see the form shrinks with you. Which is
pretty good in a sense that no one needs to have a tablet version or
mobil
Hi Marcello,
Can you see your tables in appadmin?
And your lambda, you can create and call function to count in konsulta's
table and return the number.
Field.Virtual('total', lambda row: kontagem(row.id))
Att.,
Fabiano.
2016-01-19 15:09 GMT-02:00 Marcello :
> Hello,
>
> I have a one to many
Have you read through the book? This section should help.
http://web2py.com/books/default/chapter/29/07/forms-and-validators#The-process-method
You're not passing a record to the form so it doesn't know which one you
want to update/delete.
-Jim
On Tuesday, January 19, 2016 at 11:43:05 AM UTC
def add_bottle():
form=SQLFORM(db.bottle, deletable=True).process()
return locals()
do I get to update with just deletable =True or do I have to write a
different snippet for it too
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/we
Hello,
I have a one to many configuration, using mysql database.
I want to show a grid with the "one" table, and for each row, count the
"many".
For that I created a total virtual field.
It works OK in the shel, for example
But when I call the SQLFORM.grid I get an error
Why do this ha
db.mytable.truncate()
It's in the book.
On Tuesday, January 19, 2016 at 10:43:01 AM UTC-5, aston.ri...@gmail.com
wrote:
>
> Please write the snippet.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.goog
Yes. I agree. Its better to link external css.
On Tuesday, January 19, 2016 at 10:14:09 AM UTC-5, Richard wrote:
>
> Yes cache is often en headache...
>
> Note, you should avoid to put additional CSS into "framework reserved
> files". Create a new app.css for instance and paste your additional st
And why not :
textarea {
width: 1320px;
height: 70px;
}
You don't need js for that...
Also consider make your textarea elastic there is js plugins for that...
:)
Richard
On Tue, Jan 19, 2016 at 10:38 AM, Ron Chatterjee
wrote:
> Add this to your view:
>
> $('textarea').css('width',
import numpy and cython will most likely do the job
On Tuesday, January 19, 2016 at 10:51:13 AM UTC-5, RAGHIB R wrote:
>
> Please explain how to do it.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.goog
Please explain how to do it.
--
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 received this message because you are subscribed to the Google Groups
"w
Please write the snippet.
--
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 received this message because you are subscribed to the Google Groups
"web2
Add this to your view:
$('textarea').css('width','1320px').css('height','70px');
Should change the size.
On Thursday, May 17, 2012 at 5:59:11 PM UTC-4, Pystar wrote:
>
> I would suggest you using custom forms in your view and targeting the
> attribute you wish to change with CSS. I find that ap
Yes cache is often en headache...
Note, you should avoid to put additional CSS into "framework reserved
files". Create a new app.css for instance and paste your additional stuff
there, like that you will avoid issue or file diff and update when you
update web2py.
Richard
On Tue, Jan 19, 2016 at
Works fine. My cache was giving me problem. lol. Cool. Thanks.
On Monday, January 18, 2016 at 8:09:59 PM UTC-5, Ron Chatterjee wrote:
>
> Its based on scaffolding app. But doesn't work (see attached).
>
> On Monday, January 18, 2016 at 3:08:35 PM UTC-8, Paolo Caruccio wrote:
>>
>> web2py.css is
26 matches
Mail list logo