[web2py] Re: put signature on custom auth table

2015-01-24 Thread Cynthia Butler
+ 1 for Name only option. What I do is create an extra field: auth.settings.extra_fields['auth_user'] = [ Field('u_name') ] Then define tables without username because I want to use email for login: auth.define_tables(username=False, signature=True) Then hide the first and last names by

[web2py] Include auth.user in XML?

2015-01-24 Thread LoveWeb2py
Hello, I have a simple app where I return data in XML and I'm wondering if I can also include auth.user. Here is some code: def questions(): response.title = None all_questions = questionsinmydatabase try: for question in all_questions: if

[web2py] how resend html element data from server?

2015-01-24 Thread Dmitry Ermolaev
Hi I wrote example foe change timeout in LOAD http://www.web2pyslices.com/slice/show/2009/change-timeout-interval-in-ajax-load but that not need if i can reload data from server Сделал изменение интервала обновления на лету в LOAD НО если мой сервер сам сможет посылать обновленные данные клиенту

[web2py] Re: RSS feed

2015-01-24 Thread Massimo Di Pierro
yes. Please open a ticket and we will fix it soon. On Friday, 23 January 2015 16:12:28 UTC-6, Dani wrote: Hi: What string type pass for this work? file: gluon/serializers.py (from 25 Sep 2014) line: 182 def safestr(obj, key, default=''): return

[web2py] Re: How to display data at top of nav bar

2015-01-24 Thread Alex Glaros
Jose it works great but I don't understand (1) where do you keep it so it persists in the navbar?How is 3_menu.py called? (2) How did you get your mail_count to run when user first logged in? Where is that function located? also, thanks to Richard for your suggestion. Alex --

[web2py] Does Web2py DAL have something similar to Rails Active Record Associations?

2015-01-24 Thread Niphlod
From what I see on ruby's docs, Dal has it thanks to references. Don't know what are you specifically asking, though -- 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] how to run function right after user first logs in?

2015-01-24 Thread Carlos Hanson
You could put it in the models directory. Everything in that folder is run with each controller function. Carlos -- 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: How to display data at top of nav bar

2015-01-24 Thread Jose C
HI Alex, (1) where do you keep it so it persists in the navbar?How is 3_menu.py called? My 3_menu.py file is located in the /your_application/models/ directory. The files in the directory are processed in alphabetical order (which is why I prefixed a number as my database models are

[web2py] Re: Search for Similar database entries

2015-01-24 Thread Leonel Câmara
Hey, You can do it like this: movie_articles = db(db.article.title.startswith('Movie the article is about')).select() This is equivalent to: movie_articles = db(db.article.title.like('Movie the article is about%')).select() I suggest you create an index on the article's title to make this

[web2py] Re: how to run function right after user first logs in?

2015-01-24 Thread Leonel Câmara
Carlos that's why that's not the preferable solution as you don't want to be executing code needlessly. Alex, you can append your function to *auth.settings.login_onaccept* the functions on this list all get called with the form as argument when the user logs in. -- Resources: -

[web2py] Search for Similar database entries

2015-01-24 Thread BlueShadow
Hi I got a filled db table with articles each article has a title which looks like this: Movie the article is about - Topic discussed what I want to list all articles which have the same first half of the title: Movie the article is about Thanks for your help. -- Resources: -

[web2py] Re: how to run function right after user first logs in?

2015-01-24 Thread Carlos Hanson
Very true about the needless execution. Learning how best to not use the models directory is next on my list. I have to make sure all the important stuff works first, the refactor as I go. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Search for Similar database entries

2015-01-24 Thread BlueShadow
Thanks. how do you make an index? -- 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: Search for Similar database entries

2015-01-24 Thread Leonel Câmara
I really like this solution to create indexes (works for sqlite and postgres) https://groups.google.com/forum/#!msg/web2py/CA35rzPrMc8/JrFvMW2rPgMJ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Does Web2py DAL have something similar to Rails Active Record Associations?

2015-01-24 Thread joseph simpson
Niphlod: Just a general question. I will research web2py references. Thanks for the information, Joe On Sat, Jan 24, 2015 at 1:02 AM, Niphlod niph...@gmail.com wrote: From what I see on ruby's docs, Dal has it thanks to references. Don't know what are you specifically asking, though --