it (because usually it's hidden).
try
$.web2py.flash(message, status)
it will insert message into the flash and add status classes to the
corresponding div.
On Sunday, November 3, 2013 1:37:26 PM UTC+1, Andreas Wienes wrote:
Hello,
I try to use response.flash() to inform my users whats
I want to use update_or_insert to insert a value to my DB if it doesn't
exist.
def add_name():
form = SQLFORM(db.name)
if form.process().accepted:
db.name.update_or_insert(db.name.name==request.vars.name,
name=request.vars.name)
return dict(form=form)
But it won't work.
=IS_NOT_IN_DB(...
Look in the Forms and Validators chapter of the online manual for the
correct syntax for IS_NOT_IN_DB.
Look in the Database Abstraction Layer chapter for more information
about the arguments to Field.
On Wednesday, November 6, 2013 5:20:33 PM UTC-5, Andreas Wienes wrote:
I want
Hello,
I try to use response.flash() to inform my users whats happening on my
website. Is there a way to quick update the displayed message?
Example:
User clicks on a button, response.flash() informs about the start of a
process.
The user waits, response.flash() informs about several process
Thanks for your feedback. I'll check the different Mercurial guides and
update my website, if I find a better solution.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
I'm not sure if I understand you right. What do you mean with category?
Maybe you could try this to get all images with a specific gallery-id:
images = db(db.int_table_galleries_images.gallery.id==1).select()
return dict(images=images)
- Andreas
Am Mittwoch, 30. Oktober 2013 11:51:19 UTC+1
Still in trouble with this issue. :-(
--
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
I finally found a solution. It's like Jonathan Lundell explained in this
thread https://groups.google.com/forum/#!topic/web2py/LUCVm9pKX28:
The normal call, form=auth(), is dynamic (see Auth.__call__), and returns
the form that's appropriate to the request URL. Auth.register() does a
This could help for the very first orientation http://learn-web2py.com/.
--
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
I published http://learn-web2py.com a few minutes ago. It's far away from
being perfect, but it's an first attempt. I'm neither an expert in web2py
nor a native speaker. All of your feedback is welcome!
- Andreas
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Thanks for all of your feedback. I've also started using web2py about two
months ago and felt in love with it. It's so clear, simple to use, very
well documented and the community is awesome. I'm grateful for the
development and the quick and friendly support. But although all of this
exists,
Thank you Massimo, I've sent you an email.
Am Mittwoch, 23. Oktober 2013 00:36:37 UTC+2 schrieb Massimo Di Pierro:
Please make a minimalist app to reproduce and post it or email it to me.
On Saturday, 19 October 2013 11:25:34 UTC-5, Andreas Wienes wrote:
Hey guys,
I'm using web2py 2.7.4
Hey guys,
I think it would be great to start a website similar to
http://astonj.com/tech/best-way-to-learn-ruby-rails/ but only for web2py.
So what do you think about my idea and what is your opinion about the best
way to learn web2py?
I'm excited for your suggestions.
- Andreas
--
No ideas?
--
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
web2py-users group.
Hey guys,
I'm using web2py 2.7.4 and get some strange behavior with some redirects.
If I click on change password in the user navbar I want to get redirect
to /default/user/change_password instead I get redirected to
/default/user/profile. It's the same for the logout link and it seems the
What is the best way to change the target of the edit profile
link permanently?
Thanks for your help!
Andreas
--
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
Sorry for the lack of information. Yes I'm talking about the link produced
by auth.navbar(). Thanks for your help Anthony.
- Andreas
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
$('div').find('a:contains(Profile)').attr(href, new_target);
$('div').find('a:contains(Profile)').replaceWith(a href='new_target'i
class='icon-user'/i new linktext /a);
Both worked for me.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
I know this has been asked serveral times before, but I couldn't find a
working solution for me.
I use the auth.login() and auth.register() forms to build a login screen
similar to twitter. I'm doing this with the following lines of code:
{{=login_form.custom.begin}}
Is Annet's solution still the best way handling flash messages?
--
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
Hello Ricardo,
this works like a charm. :-) Thanks a lot!
Where can I look up such information? I didn't found it in the web2py book.
Best regards
Andreas
Am Donnerstag, 10. Oktober 2013 21:58:42 UTC+2 schrieb Ricardo Pedroso:
On Thu, Oct 10, 2013 at 5:50 PM, Andreas Wienes
itsy
Hey guys,
in the web2py-book is an example for a one-to-many relation.
http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#One-to-many-relation
db.define_table('person',
Field('name'),
format='%(name)s')
Yeah but this isn't cool if I use further database queries.
--
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
.
On Monday, September 30, 2013 10:28:08 PM UTC+2, Andreas Wienes wrote:
I want to execute some code, after updating a user profile. So I created
a method edit_profile inside default.py
def edit_profile():
user_form = auth.profile()
if user_form.process().accepted:
# ... do something
Hey guys,
I'm using a Mac app called dash (http://kapeli.com/dash) for a quick
acces to offline documentation. Web2py is unfortunatly not currently not
included, but the author has promissed to create a documentation, if enough
people would ask him.
Maybe you are also interessted in this
Thanks for your advice Anthony. I really appreciate the web2py-community
for it's quick and kind support!
--
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)
---
I want to execute some code, after updating a user profile. So I created a
method edit_profile inside default.py
def edit_profile():
user_form = auth.profile()
if user_form.process().accepted:
# ... do something here ...
redirect(URL('default','index'))
return
Hey guys,
in my current project I need to perform some checks before showing a form
to the user. I'm not sure if I've done this in the best possible way. It
looks a bit complicated to me.
project = db.project(request.args(0))
step = db.project_step(request.args(1))
# Is the
)
On Tuesday, 24 September 2013 04:04:44 UTC-5, Andreas Wienes wrote:
Hey guys,
in my current project I need to perform some checks before showing a form
to the user. I'm not sure if I've done this in the best possible way. It
looks a bit complicated to me.
project = db.project(request.args(0
Okay that worked for me. Thanks for your advice!
--
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
Hello,
I want to upload a file by posting it from another script calling something
like http://mydomain.com/default/acceptfile?filename=test.txt
What is the easiest way doing this?
Thanks a lot for your help!
Andreas
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Hey guys,
do you know a way to record audio files through the web browser?
Best regards
Andreas
--
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
, 2013 at 4:17 PM, Andreas Wienes
itsy...@gmail.comjavascript:
wrote:
Hey guys,
do you know a way to record audio files through the web browser?
Best regards
Andreas
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
Hey guys,
I know it's no web2py related question, but maybe someone of you got a
clue. I'm working with Sublimetext and comment my next targets with # 2Do.
Do you know an easy way to list all my 2Do's ?
Thanks
Andreas
--
Resources:
- http://web2py.com
- http://web2py.com/book
Hello Ramos,
that's not exactly what I'm looking for, but I will try it out. Thanks for
your help!
Am Samstag, 14. September 2013 19:10:16 UTC+2 schrieb Ramos:
install PlainTask for sublime. Look in youtube for a tutorial
2013/9/14 Andreas Wienes itsy...@gmail.com javascript:
Hey guys
I found a great solution called SublimeTODO. Read more about it here
https://github.com/robcowie/SublimeTODO
--
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)
Hey guys,
this is maybe a dumb question, but I'm asking myself, when I should use
other controllers the default.py. In the tutorials and the web2py-book
the default-controller is used most of the time and every action is placed
inside it. I assume to split my code into logical parts, so if I
:
/appname/controllername/functioname
in the end is the url where to retrieve the infos.
On Friday, September 13, 2013 1:56:39 PM UTC+2, Andreas Wienes wrote:
Hey guys,
this is maybe a dumb question, but I'm asking myself, when I should use
other controllers the default.py. In the tutorials
holds every function that
generate a page.
That being said, it's just how you lay out your url-scheme that usually
decides what controller to use:
/appname/controllername/functioname
in the end is the url where to retrieve the infos.
On Friday, September 13, 2013 1:56:39 PM UTC+2, Andreas
Hi,
I got a problem with one of my database tables. The field 'title' isn't set
to be unique. But inserting a row using filter_fields() ends with error
title is not unique.
db.define_table('task',
Field('title', unique=False),
Field('description', 'text', notnull=True),
Thanks a lot Bruno. That worked for me.
--
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
done project_step record only after it is done?
On Tuesday, 10 September 2013 00:02:40 UTC+1, Andreas Wienes wrote:
Thanks for your advice! I corrected the small error and created the new
table. Now I'm trying to copy the steps for a specific project_type to a
new created project.
I tried
Hello,
I've three models called project, project_type and steps.
A project belongs to a certain project_type and depending on what kind of
project it is, includes different steps. For example writing a book is a
new project and belongs to the project_type hobby project.
making a plan and get
Thanks for your advice! I corrected the small error and created the new
table. Now I'm trying to copy the steps for a specific project_type to a
new created project.
I tried the following:
def start():
form = SQLFORM(db.project).process()
if form.accepted:
project_type =
Hello,
I'm new to web2py and python and currently try to build a small application
just for learning purposes. Now I struggle because I don't know if my
solution is the right way doing it.
I got three models called project, project_type and steps.
A project belongs to a certain project_type
45 matches
Mail list logo