[web2py] Re: How to use response.flash() to inform user about current status of a process

2013-11-06 Thread Andreas Wienes
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

[web2py] A newbie question about update_or_insert

2013-11-06 Thread Andreas Wienes
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.

[web2py] Re: A newbie question about update_or_insert

2013-11-06 Thread Andreas Wienes
=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

[web2py] How to use response.flash() to inform user about current status of a process

2013-11-03 Thread Andreas Wienes
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

[web2py] Re: web2py resources

2013-10-31 Thread Andreas Wienes
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

[web2py] Re: Many to many

2013-10-30 Thread Andreas Wienes
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

[web2py] Re: change_password and logout redirects to user/profile and leads to too many redirects

2013-10-30 Thread Andreas Wienes
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

[web2py] Re: change_password and logout redirects to user/profile and leads to too many redirects

2013-10-30 Thread Andreas Wienes
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

[web2py] Re: web2py resources

2013-10-29 Thread Andreas Wienes
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

[web2py] Re: Best way to learn web2py

2013-10-28 Thread Andreas Wienes
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) -

[web2py] Re: Best way to learn web2py

2013-10-26 Thread Andreas Wienes
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,

[web2py] Re: change_password and logout redirects to user/profile and leads to too many redirects

2013-10-23 Thread Andreas Wienes
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

[web2py] Best way to learn web2py

2013-10-23 Thread Andreas Wienes
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 --

[web2py] Re: change_password and logout redirects to user/profile and leads to too many redirects

2013-10-22 Thread Andreas Wienes
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.

[web2py] change_password and logout redirects to user/profile and leads to too many redirects

2013-10-19 Thread Andreas Wienes
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

[web2py] Change target of edit profile link permanently

2013-10-18 Thread Andreas Wienes
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

[web2py] Re: Change target of edit profile link permanently

2013-10-18 Thread Andreas Wienes
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) -

[web2py] Re: Change target of edit profile link permanently

2013-10-18 Thread Andreas Wienes
$('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) -

[web2py] resizing inputbox without javacsript

2013-10-10 Thread Andreas Wienes
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}}

[web2py] Re: Does your Response Flash get in the way?

2013-10-10 Thread Andreas Wienes
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

Re: [web2py] resizing inputbox without javacsript

2013-10-10 Thread Andreas Wienes
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

[web2py] How to program a form for one to many relations?

2013-10-02 Thread Andreas Wienes
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')

[web2py] Re: How to program a form for one to many relations?

2013-10-02 Thread Andreas Wienes
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

[web2py] Re: little problem with custom edit_profile method

2013-10-01 Thread Andreas Wienes
. 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

[web2py] Please vote for web2py support in Dash

2013-10-01 Thread Andreas Wienes
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

[web2py] Re: little problem with custom edit_profile method

2013-10-01 Thread Andreas Wienes
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) ---

[web2py] little problem with custom edit_profile method

2013-09-30 Thread Andreas Wienes
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

[web2py] Perform checks before showing a form to the user

2013-09-24 Thread Andreas Wienes
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

[web2py] Re: Perform checks before showing a form to the user

2013-09-24 Thread Andreas Wienes
) 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

[web2py] Re: Upload file using POST

2013-09-20 Thread Andreas Wienes
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

[web2py] Upload file using POST

2013-09-18 Thread Andreas Wienes
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) -

[web2py] Recording audio through web browser

2013-09-17 Thread Andreas Wienes
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

Re: [web2py] Recording audio through web browser

2013-09-17 Thread Andreas Wienes
, 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

[web2py] Is there an easy way to list all my 2Do's in a project?

2013-09-14 Thread Andreas Wienes
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

Re: [web2py] Is there an easy way to list all my 2Do's in a project?

2013-09-14 Thread Andreas Wienes
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

[web2py] Re: Is there an easy way to list all my 2Do's in a project?

2013-09-14 Thread Andreas Wienes
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)

[web2py] Question about basic concept of controllers

2013-09-13 Thread Andreas Wienes
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

[web2py] Re: Question about basic concept of controllers

2013-09-13 Thread Andreas Wienes
: /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

[web2py] Re: Question about basic concept of controllers

2013-09-13 Thread Andreas Wienes
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

[web2py] Table field isn't set to be unique, but results in error title is not unique

2013-09-12 Thread Andreas Wienes
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),

[web2py] Re: Table field isn't set to be unique, but results in error title is not unique

2013-09-12 Thread Andreas Wienes
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

[web2py] Re: Please help me to design my database structure

2013-09-10 Thread Andreas Wienes
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

[web2py] Please help me to design my database structure

2013-09-09 Thread Andreas Wienes
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

[web2py] Re: Please help me to design my database structure

2013-09-09 Thread Andreas Wienes
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 =

[web2py] understanding problem - use models or classes?

2013-09-05 Thread Andreas Wienes
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