[web2py:28458] Newbie Locale Question

2009-08-12 Thread Francisco
Hello everyone. I have just started learning web2py. It's really great! Now the question I have is about the locale. I'm from Mexico so my applications must be in Spanish. In some part of the application I want to get a date doing something like this from within a view: {{=consulta.fecha_consult

[web2py:28632] Re: Newbie Locale Question

2009-08-14 Thread Francisco
y > everywhere. > > On Aug 12, 3:06 pm, Francisco wrote: > > > Hello everyone. > > > I have just started learning web2py. It's really great! > > Now the question I have is about the locale. > > I'm from Mexico so my applications must be in Spanish. I

[web2py:28633] Re: Newbie Locale Question

2009-08-14 Thread Francisco
y > everywhere. > > On Aug 12, 3:06 pm, Francisco wrote: > > > Hello everyone. > > > I have just started learning web2py. It's really great! > > Now the question I have is about the locale. > > I'm from Mexico so my applications must be in Spanish. I

[web2py:28653] Re: Newbie Locale Question

2009-08-14 Thread Francisco
> sure to let the user set their locale. > > I think, Francisco, this is your answer.  You can find what you need to get > started in: > > request.env.http_accept_language > > and, as per article above, you should provide the session a way to modify > this if used as a d

[web2py:28663] Re: Newbie Locale Question

2009-08-14 Thread Francisco
s not solve the problem the in Python local is set per process > > and not per-thread. Am I wrong? > > > Massimo > > > On Aug 14, 1:51 pm, Yarko Tymciurak wrote: > > >http://www.w3.org/International/questions/qa-accept-lang-locales > > > > Discusses a starting poin

[web2py:28669] Re: logo

2009-08-14 Thread Francisco
Well I like more logo A, it's more simple (as everybody has already pointed out). Yet I think the logo fails to describe what web2py is. Well I'm no designer though, so I just might not get it. But the logo is very web 2.0. On 14 ago, 15:29, hcvst wrote: > B > > Although A looks better at the mo

[web2py:35343] Incremental Development

2009-11-14 Thread Francisco
Hi hello every one. I'm building a simple application that consists of three modules but they share some db tables. I have finish the first module and is right now being tested. But I still need to finish the other two modules. When I have finished the second one I would like to "upgrade" the ("h

[web2py] How to change the Not Authorized Page

2012-02-01 Thread Francisco
Hi, I have search in the documentation and in this group older entries but I have not found a simple way to personalize the "Not Authorized" that is displayed when a user tries to access a controller function which requires a group he doesn't belong to. Hope someone can point me into the right dir

[web2py] Re: How to change the Not Authorized Page

2012-02-01 Thread Francisco
> > Anthony > > > > > > > > On Wednesday, February 1, 2012 11:38:10 AM UTC-5, Francisco wrote: > > > Hi, I have search in the documentation and in this group older entries > > but I have not found a simple way to personalize the "Not Authorized" &g

[web2py] Weird behavior of decimal stored in session.

2012-03-05 Thread Francisco
Hi everyone. I just came across a weird behavior and I'm wondering if it's some kind of bug or just my fault. I have a model for a product like this: db.define_table('products', Field('name',length=128, notnull=True), Field('sale_price',type='decimal(14,4)',default=0, notnull=True)) Now

[web2py] Updates and Queries strange behavior

2011-06-03 Thread Francisco
Hi everyone I have a strange issue with web2py and a mysql db. So far I always developed locally in my computer and only uploaded code once development was done, and only small modifications were made then. But right now I have an app that I'm working on a web server. I have been able to add views

[web2py] Re: Updates and Queries strange behavior

2011-06-03 Thread Francisco
gt; On Jun 3, 12:19 pm, Francisco wrote:

[web2py] Problem creating forms inside a form.accepts

2011-08-24 Thread Francisco
Hello everyone I'm building an app where users are going to use a barcode scanner to add products to a cart. In the session I keep up a dictionary of products in cart, so if a product is scanned twice it will increase quantity rather than add another entry. That worked fine, but now I wanted to

[web2py] Re: Problem creating forms inside a form.accepts

2011-08-25 Thread Francisco
Thanks for the help. Here is the complete function defined in the controller: -- code for controller starts -- @auth.requires_login() def new_sale(): response.title="New sale" if not session.cart: session.cart={} if not session.cart_qty: session.cart_qty={} if not session.

[web2py] Re: Problem creating forms inside a form.accepts

2011-08-25 Thread Francisco
dn't get to > qty_form.accepts. > > Anthony > > > > > > > > On Thursday, August 25, 2011 9:50:04 AM UTC-4, Francisco wrote: > > Thanks for the help. Here is the complete function defined in the > > controller: > > > -- code for controller start

[web2py] Query with count not returning value with zeros

2013-07-01 Thread Francisco
Hi everyone. I'm trying to show how many logins every user has done in the last 7 days in a view. I have the following query: log_count=db.auth_event.id.count() usrs = db((db.auth_user.hidden==False)&(db.auth_event.user_id==db.auth_user.id)&(db.auth_event.time_stampdatetime_end)&(db.auth_event.

[web2py] Re: Help with query with count not showing values for zero

2013-07-02 Thread Francisco
I ended up doing two querys. Never got the left (with the count working) If some one has a better alternative I would like to know it. Thanks guys. log_count=db.auth_event.id.count() usrs = db((db.auth_event.user_id==db.auth_user.id)&(db.auth_event.time_stampdatetime_end)&(db.auth_event.descrip

[web2py] Best way to have two auto incremental columns (one is conditional of the other)

2013-11-29 Thread Francisco
I have an application that stores information on invoices of a company. However, this company can have many branches, and each of them must have a unique invoicing sequence. However, all invoices are stored in the same table, I have search for a solution here in the forum and in google for a wa

[web2py] Re: Best way to have two auto incremental columns (one is conditional of the other)

2013-11-29 Thread Francisco
The requirements for the project ask for a consecutive integer (with a letter or letters appended at the end for the branch it belongs to). So that means no gaps. Assuming I have branch A, B and C the invoices would need to be: For branch A: 1A 2A 3A ... For branch B: 1B 2B 3B ... For branch C:

[web2py] Re: Best way to have two auto incremental columns (one is conditional of the other)

2013-12-03 Thread Francisco
Thanks Niphlod. I didn't knew you could do that. I will try and see how this works. El viernes, 29 de noviembre de 2013 15:31:16 UTC-6, Niphlod escribió: > > that's the "idiotest" (does it even exist ? ) scheme ever, but alas, if > you need to because you're forced to, there is absolutely nothin

[web2py] Can't read SQLFORM.grid div with hidden inputs

2013-12-10 Thread Francisco
Hello guys. I'm doing this: grid=SQLFORM.grid(db.mytable) but since I wanted to use a prettier form I created it in the view. It is now complete but it won't let me submit it till I send the _formkey and _formname values, but I can't read them from the grid object. If I do: print grid I ge

[web2py] Re: Can't read SQLFORM.grid div with hidden inputs

2013-12-11 Thread Francisco
I figured out how to fix this. I someone else is trying to modify the view for the SQLFORM.grid don't forget to include the grid[1].hidden_fields in the form. That's all I needed. El martes, 10 de diciembre de 2013 20:11:02 UTC-6, Francisco escribió: > > > Hello guys.

[web2py] Help with query from multiple tables and groupby

2013-12-31 Thread Francisco
Hello Guys (by the way Happy New Year everyone). I'm having a problem writing a query to get product details, price and only one image for every product. I have tables like this: *db.define_table('price_lists'* *Field('name')* *)* *db.define_table('products',* *Field('name'),* *

[web2py] Re: Help with query from multiple tables and groupby

2014-01-02 Thread Francisco
Thanks Niphlod (By the way I thought I have answered but can't find my answer so if I duplicate the entry sorry) I had never worked with PostgreSQL nor any other compliant engine. I have the "bad habits" of MySQL and SQLite. So I was expecting the same behavoir. Below is the sample data, thank

[web2py] Re: Help with query from multiple tables and groupby

2014-01-02 Thread Francisco
Thanks a lot Niphlod. I will modify and code to match that. Thanks again. El jueves, 2 de enero de 2014 15:26:27 UTC-6, Niphlod escribió: > > Given your expected resultset, first and foremost the price_list table is > "out of the picture". > > That's because you want just all the fields from pro

[web2py] Fullcalendar with JSON

2010-05-08 Thread Francisco Costa
Hello, I'm trying to use Fullcalendar in my app, and I would like to call events from a JSON external file like this example: http://arshaw.com/js/fullcalendar/examples/json.html The problem is that I must have the JSOn file in the same directory as the .html How can I do this in web2py?

[web2py] Re: Fullcalendar with JSON

2010-05-08 Thread Francisco Costa
at /init/ajax_lib/events.json. You just need to make sure to > return the correct JSON structure that fullcalendar understands. You > will need a custom json template, because you need to return a list. > > -- > Thadeus > > On Sat, May 8, 2010 at 3:53 AM, Francisco Costa > wrote:

[web2py] Belongs orders results by id

2010-05-13 Thread Francisco Costa
I have this query db(db.space.id.belongs(result_id)).select() the result id is an unsorted array of ids I don't want the query results to be order by id The SQL list this SELECT space.id, space.name FROM space WHERE space.id IN (1,6,136,2,18,119,122) i want the result to be in the order of the id

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Francisco Costa
is this a SQL Bug/feature? how can I change it? On May 13, 11:53 am, Francisco Costa wrote: > I have this query db(db.space.id.belongs(result_id)).select() > the result id is an unsorted array of ids > I don't want the query results to be order by id > > The SQL list th

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Francisco Costa
how can i sort results in the array order then? On May 13, 2:42 pm, mdipierro wrote: > I think this is a SQL feature they sort list to use binary search in > the index for the table for efficiency). > > On May 13, 6:57 am, Francisco Costa wrote: > > > is this a SQL Bug/feat

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Francisco Costa
yes, then 2,18,119,122 On May 13, 3:22 pm, Mengu wrote: > so you want them to be ordered as first 1 then 6, then 136 etc? > > On 13 Mayıs, 13:53, Francisco Costa wrote: > > > I have this query db(db.space.id.belongs(result_id)).select() > > the result id is an unsorted

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Francisco Costa
2,18,119,122)") > > On 13 Mayıs, 17:28, Francisco Costa wrote: > > > yes, then 2,18,119,122 > > > On May 13, 3:22 pm, Mengu wrote: > > > > so you want them to be ordered as first 1 then 6, then 136 etc? > > > > On 13 Mayıs, 13:53, Franc

[web2py] Default Application

2010-03-16 Thread Francisco Costa
Hello! This is my first time on the list. First of all I want to congratulate everyone with the fantastic job you are doing on web2py. Every time I discover more about it I get more fascinated. It's been a very enthusiastic experience learning how web2py works and the possibilities for it are endle

Re: [web2py] Default Application

2010-03-16 Thread Francisco Costa
Thank you very much! I'm on Linux and worked five starts! Francisco Costa http://franciscocosta.com On Tue, Mar 16, 2010 at 13:34, Kuba Kucharski wrote: > linux/unix: > > cd web2py/applications > ln -s your_app init > > I assume you don't have a folder called

[web2py] routes.py not working

2010-03-18 Thread Francisco Costa
Hello I have step up an web2py project on http://bondiu.info I've started to edit the welcome application and I've made an init symbolic link to the welcome application. Now I pretend to remove the /init/ from the urls. This way I renamed routes.example.py to routes.py and made this changes route

[web2py] Re: routes.py not working

2010-03-19 Thread Francisco Costa
Hello! I've tried lots of combinations but none seem to work. I really would like to get rid of the /init/ in the url. Does anyone knows what the problem may be? On Mar 18, 7:08 pm, Francisco Costa wrote: > Hello > I have step up an web2py project onhttp://bondiu.info > > I&#

[web2py] Re: routes.py not working

2010-03-19 Thread Francisco Costa
Hello Vasile, Thank you for your help! I've changed my routes.py to routes_in = ( ('/admin/(.*)', '/admin/$1'), ('/(.*)', '/init/$1'), ) but /init/ still displays as you can see it here: http://bondiu.info I've also chmod the routes.py to 777 but no luck either On Mar 19, 11:50 am, Vasile Ermici

[web2py] Re: routes.py not working

2010-03-19 Thread Francisco Costa
Thank you mr.feeze and Vasile for your help I wasn't.. :/ Now it works perfectly! On Mar 19, 12:32 pm, Vasile Ermicioi wrote: > yes, to apply changes in routes you need to restart web server -- You received this message because you are subscribed to the Google Groups "web2py-users" group. T

[web2py] Add fields to db.auth_user

2010-03-21 Thread Francisco Costa
Hello! I would like to add a few more fields to db.auth_user Where can I do that? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py

[web2py] Re: Add fields to db.auth_user

2010-03-21 Thread Francisco Costa
thank you Mr. Freeze I really should read the book On Mar 21, 7:20 pm, "mr.freeze" wrote: > Look here under Customizing Auth > > http://web2py.com/book/default/section/8/1 > > On Mar 21, 2:14 pm, Francisco Costa wrote:> Hello! > > I would like to add a few mor

[web2py] Friendly URLs

2010-04-04 Thread Francisco Costa
Hello! I've installed WordpressClone http://web2py.com/appliances/default/show/36 and i would like to have each post with a friendly url instead of http://domain/blog/default/post/7 have something like http://domain/welcome-to-pypress/ Thank you -- You received this message because you are subsc

[web2py] Re: Friendly URLs

2010-04-04 Thread Francisco Costa
Thank you very much for the examples. I will take a look at the source code. On Apr 4, 6:09 pm, Thadeus Burgess wrote: > Francisco, > > Take a look at some other existing blog examples. > > mengu's blog ->http://github.com/mengu/blog > currently running on mengu.net >

[web2py] Feed validator

2010-04-08 Thread Francisco Costa
Hello, When validating my feed i get this recomendation: Feeds should not be served with the "text/html" media type: http://beta.feedvalidator.org/docs/warning/UnexpectedContentType.html How can I change the MIME type for application/rss+xml ? -- You received this message because you are subscri

[web2py] Re: Feed validator

2010-04-08 Thread Francisco Costa
> -Thadeus > > On Thu, Apr 8, 2010 at 10:31 AM, Francisco Costa > > wrote: > > Hello, > > When validating my feed i get this recomendation: > > Feeds should not be served with the "text/html" media type: > >http://beta.feedvalidator.org/docs/

[web2py] Re: Feed validator

2010-04-08 Thread Francisco Costa
ntent-Type'] = 'applications/rss+xml' > > > -Thadeus > > > On Thu, Apr 8, 2010 at 10:31 AM, Francisco Costa > > > wrote: > > > Hello, > > > When validating my feed i get this recomendation: > > > Feeds shou

[web2py] Search Function

2010-04-08 Thread Francisco Costa
Hello, i was trying to implement a search function so I've tried this wiki example (http://web2py.com/book/default/section/3/9) I can create pages, but I cannot search for them. Is the search function wrong? Is there others examples of search function? -- You received this message because you are

[web2py] Re: Search Function

2010-04-11 Thread Francisco Costa
Anyone can give me some example on this? Thank you On Apr 8, 7:38 pm, Francisco Costa wrote: > Hello, > i was trying to implement a search function so I've tried this wiki > example (http://web2py.com/book/default/section/3/9) > I can create pages, but I cannot search for them

[web2py] Re: Search Function

2010-04-11 Thread Francisco Costa
> > Try changing this in bg_find: > pattern = '+ request.vars.keyword.lower() + ' > > to this: > pattern = '%' + request.vars.keyword.lower() + '%' > > On Apr 11, 12:07 pm, Francisco Costa wrote: > > > Anyone can give me some exampl

[web2py] Display Image from FieldStorage

2010-04-11 Thread Francisco Costa
Hello, I'm using a custom form that has an upload field in the model. When i submit the form I use a request.vars.name and saves the file as an FieldStorage.. I don't know if the file is uploaded and how I can access it. I would like to have the file upload to appname/uploads directory as if I used

[web2py] Re: Display Image from FieldStorage

2010-04-11 Thread Francisco Costa
still didn't found how to solve this problem.. :/ any help? On Apr 11, 7:23 pm, Francisco Costa wrote: > Hello, > I'm using a custom form that has an upload field in the model. > When i submit the form I use a request.vars.name and saves the file as > an FieldStorage.. >

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
ot;)), DIV(("Street Name"), INPUT(_name="street_name", _size="30")), ... view_space.html {{=XML(spaces.description)}} ... On Apr 11, 11:31 pm, mdipierro wrote: > Please show us your code. > > On Apr 11, 1:23 pm, Francisco Costa wrote: > > >

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
an entry regarding this in the book- > > http://web2py.com/book/default/section/3/6 > > It's almost the same stuff.. > > On Apr 12, 3:54 pm, Francisco Costa wrote: > > > Model > > > db.define_table('space', > >     Field('name')

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
I found the solution reading the "image uploading" thread. On Apr 12, 12:47 pm, Francisco Costa wrote: > Hello lshbit, thank you for your answer, but i think my problem is a > bit different. > I'm using acustomformas you can see in add_space.html and I use a > "

[web2py] Translate small words

2010-04-24 Thread Francisco Costa
Hello! I'm trying to translate small words (2 chars) like T('in') but they don't appear in Editing Language files. If I try with a 4 letters words I can translate. Is there any chance i can reduce the length of the word to 2 chars? Thanks -- Subscription settings: http://groups.google.com/grou

[web2py] Re: Translate small words

2010-04-26 Thread Francisco Costa
n Apr 24, 7:33 am, Francisco Costa wrote: > > > Hello! > > I'm trying to translatesmallwords(2 chars) like T('in') > > but they don't appear in Editing Language files. > > > If I try with a 4 letterswordsI can translate. > > Is ther

[web2py] Image Thumbnails

2010-05-01 Thread Francisco Costa
Hello, I'm thinking in using JCrop (http://deepliquid.com/projects/Jcrop/ demos.php?demo=thumbnail) in a project to users crop their personal avatars. I was wondering if there is any project that has a thumbnail cropping system already developed...

[web2py] append position

2010-08-14 Thread Francisco Costa
Hello! is there any way you can append a value to the first position? I have this for num in all_updates: session.updates.append(num) but I want what i already have in the session.updates to appear last Thanks

[web2py] Re: append position

2010-08-14 Thread Francisco Costa
I've managed to use for num in all_updates:                session.updates.insert(0,num) Avé Massimo

[web2py] Invalid Reset Password

2010-08-25 Thread Francisco Costa
I have this function in the default controller def retrieve_password(): return dict(form=auth.retrieve_password()) and I have this view default/retrieve_password.html {{response.title=T('Retrieve Password')}} {{extend 'layout.html'}} {{app=request.application}} {{=fo

[web2py] Re: Invalid Reset Password

2010-08-25 Thread Francisco Costa
ue) On Aug 25, 2:58 pm, mdipierro wrote: > If you have auth.define_tables(migrate=False), try change it to true > If you use a custom auth_user table, please post it. > > On Aug 25, 7:10 am, Francisco Costa wrote: > > > I have this function in the default controller >

[web2py] Re: Invalid Reset Password

2010-08-25 Thread Francisco Costa
Just realized I was missing this field in the database table: Field('reset_password_key', length=128, default= '', writable=False, readable=False), On Aug 25, 3:10 pm, Francisco Costa wrote: > auth_table = db.define_table( >     auth.settings.table_user_name, >  

[web2py] Custom Forms validation

2010-08-25 Thread Francisco Costa
Hello, I would like to know if you can have ajax validators when using custom forms. I leave here an example of a view to change password: {{form=auth.change_password(next=URL(r=request, c='default', f='login'))}} {{=T('Change Password')}} {{=form.custom.begin}}

[web2py] view SQL query

2010-09-01 Thread Francisco Costa
How can I see the SQL queries made after loading a page?

[web2py] js.call_function with arguments

2010-09-01 Thread Francisco Costa
i have this autorefresh form = SQLFORM.factory(Field('AutoUpdates', requires=IS_IN_SET(['On','Off']),default="On", widget=SQLFORM.widgets.radio.widget)) refresh.ready(jq("input[type='submit']").hide()()) callback = js.call_function(timer_tick) refresh.ready(js.timer(callback,1)

[web2py] Re: view SQL query

2010-09-01 Thread Francisco Costa
I really need to see the SQL that this generate last_updates = db((db.event_social.created_on>session.verificado)&(db.event_social.event_id==this_event)).select(db.event_social.ALL,orderby=~db.event_social.created_on) On Sep 1, 12:24 pm, Francisco Costa wrote: > How can I see the S

[web2py] Re: view SQL query

2010-09-01 Thread Francisco Costa
Yes, that would be very nice! On Sep 1, 2:40 pm, mdipierro wrote: > You cannot see all of them, You can see the last one > > print db._lastdb > > perhaps now that we have app logging capabilities we should add teh > ability to log all queries. > > On Sep 1, 6:24 am

[web2py] Re: js.call_function with arguments

2010-09-01 Thread Francisco Costa
o grab the value of an element, then > you can use the 'args' parameter and it will show up in request.args. > > On Sep 1, 6:44 am, Francisco Costa wrote: > > > > > > > > > i have this autorefresh > > >     form = SQLFORM.factory(Field('AutoUpda

[web2py] Re: js.call_function with arguments

2010-09-01 Thread Francisco Costa
.freeze" wrote: > You can't pass arguments to exposed functions. Use the method(s) I > outlined instead: > def timer_tick(): >     if request.vars.my_var_passed_in_data: >         > > I can be more specific if you tell me what you are trying to pass to > timer_ti

[web2py] Re: js.call_function with arguments

2010-09-01 Thread Francisco Costa
th the value from your db query in the UI? > > On Sep 1, 9:17 am, Francisco Costa wrote: > > > > > > > > > please be more specific.. > > > In timer_tick I do a db query, and I need to pass a value to succeed > > on that query. > > I could save

[web2py] Re: js.call_function with arguments

2010-09-01 Thread Francisco Costa
n from timer_tick will be eval'd by default. > What do you want to do with the value from your db query in the UI? > > On Sep 1, 9:17 am, Francisco Costa wrote: > > > > > > > > > please be more specific.. > > > In timer_tick I do a db query, and I need

[web2py] Re: js.call_function with arguments

2010-09-01 Thread Francisco Costa
Any help? I'm becoming desperate for a solution that works :/ On Sep 1, 3:42 pm, Francisco Costa wrote: > this is at the the controller that loads the restaurant page > >     callback = js.call_function(timer_tick, args=restaurant_id) > > this is at the timer_tick &

[web2py] Re: view SQL query

2010-09-04 Thread Francisco Costa
ability to log all queries. > > On Sep 1, 6:24 am, Francisco Costa wrote: > > How can I see the SQL queries made after loading a page?

[web2py] Verify mail.send in custom form

2010-09-07 Thread Francisco Costa
Hello. I've built a custom registration form. I also use a custom controller to save the user to the db. But would like to use email verification after register. Any thoughts?

[web2py] Re: Verify mail.send in custom form

2010-09-07 Thread Francisco Costa
It's a bit big because of all the validations, but here it goes: import re, random, os, shutil def create(): first_name = request.vars.firstname session.first_name = first_name last_name = request.vars.lastname session.last_name = last_name email = request.vars.email ses

[web2py] Set ID to auth.register()

2010-09-07 Thread Francisco Costa
If this: form=auth.register(next=URL(r=request, c='default', f='create')) form.custom.begin how can I set an ID in the generated html ?

[web2py] Re: Set ID to auth.register()

2010-09-07 Thread Francisco Costa
yes.. I want the html id I've tried as follow but didn't work form=auth.register(next=URL(r=request, c='default', f='create')) form['_id']="ola" form.custom.begin On Sep 7, 5:20 pm, mdipierro wrote: > I assume you mean the html id > &

[web2py] Re: Set ID to auth.register()

2010-09-07 Thread Francisco Costa
Thanks Massimo! =) On Sep 7, 5:42 pm, mdipierro wrote: > You are right. My mistake. You have to do it the old fashion way > > replace {{=form.custom.begin}} with > > enctype="multipart/form-data" id="ola"> > > On Sep 7, 11:37 am, Francisco Costa wr

[web2py] Recommender System

2010-09-11 Thread Francisco Costa
Hi, I'm building this social web app and now I'm considering implement some recommendations to the users based on their usage or profile. Can someone point some available systems that go well with web2py? Would you consider develop your own recommender system or use an existing one?

[web2py] no application URL in function with arguments

2010-09-29 Thread Francisco Costa
Hello! I have the following routes: routes_in = ( ('/$c/$f', '/welcome/$c/$f'), ) routes_out = ( ('/welcome/$c/$f', '/$c/$f'), ) but when I have a function that needs some arguments, the URL link with the 'welcome' application. What should I do?

[web2py] Re: no application URL in function with arguments

2010-09-29 Thread Francisco Costa
I've managed with routes_in = ( ('/(?P.*)', '/welcome/\g'), ) routes_out = ( ('/welcome/(?P.*)', '/\g'), ) but now i can't see some images like: http://domain.com/welcome/controller/download/some.image.png On Sep 29, 11:41 pm, Franc

[web2py] Re: no application URL in function with arguments

2010-09-29 Thread Francisco Costa
nevermind.. this last solution works On Sep 30, 12:03 am, Francisco Costa wrote: > I've managed with > > routes_in = ( >     ('/(?P.*)', '/welcome/\g'), > ) > routes_out = ( >     ('/welcome/(?P.*)', '/\g'), > ) > > b

[web2py] shorting your URL with routes

2010-09-30 Thread Francisco Costa
Hello! I have this url http://domain.com/welcome/user/view/username that shows a user profile page. I've already get rid of the 'welcome application mae by using the following routes routes_in = ( ('/(?P.*)', '/welcome/\g'), ) routes_out = ( ('/welcome/(?P.*)', '/\g'), ) so the URL now is h

[web2py] Re: shorting your URL with routes

2010-09-30 Thread Francisco Costa
Hello Wikus, tx for your answer. It only works if I don't have the previous routes that cut the 'welcome' application. Can you make it work with bouth? I wouldn't like to show the application name in the others controllers/ functions urls. On Sep 30, 11:57 am, Wikus van de Merwe wrote: > Try

[web2py] Re: shorting your URL with routes

2010-09-30 Thread Francisco Costa
any thoughts on this one? On Sep 30, 12:57 pm, Francisco Costa wrote: > Hello Wikus, tx for your answer. > > It only works if I don't have the previous routes that cut the > 'welcome' application. > > Can you make it work with bouth? > > I wouldn't lik

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
Thank you for your answers, both work for me, i didn't know that the order was important. But the thing is that I have others functions in the user controller that stopped to work, unless I have a dedicated route for them. ex: /welcome/user/index is a list of all users and only works if I had rout

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
is it possible? On Oct 1, 10:55 am, Francisco Costa wrote: > Thank you for your answers, both work for me, i didn't know that the > order was important. > But the thing is that I have others functions in the user controller > that stopped to work, unless I have a dedicated rou

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
Has I said before, that way other functions of the controller user don't work :( On Oct 1, 3:10 pm, mdipierro wrote: > yes > > routes_in = ( >   ("/user/(.+)", r"/welcome/user/view/\1"), > ) > > routes_out = ( >   ("/welcome/user/view/(.+

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
s_out = ( ("/welcome/user/view/(.+)", r"/user/\1"), ("/welcome/(.+)", r"/\1"), ) The thing is that I have more functions in the user control and they don't work unless I add a route for each of those functions. On Oct 1, 5:25 pm, Jonathan Lundell wrote: &

[web2py] Re: shorting your URL with routes

2010-10-02 Thread Francisco Costa
Thank you Jonathan and Wikus. I only have a few functions in the users controller so I will list them like Wikus showed. I appreciate all your help. On Oct 2, 1:00 am, Jonathan Lundell wrote: > On Oct 1, 2010, at 9:48 AM, Francisco Costa wrote: > > > > > > > I would like

[web2py] Twitter registration/login

2010-10-08 Thread Francisco Costa
Hello! Is there any available application with twitter register/login?

[web2py] Re: Twitter registration/login

2010-10-08 Thread Francisco Costa
ri, Oct 8, 2010 at 6:12 PM, Francisco Costa > wrote: > > > Hello! > > Is there any available application with twitter register/login? > >

[web2py] Re: Twitter registration/login

2010-10-08 Thread Francisco Costa
s/source/brows... > > On Fri, Oct 8, 2010 at 6:12 PM, Francisco Costa > wrote: > > > Hello! > > Is there any available application with twitter register/login? > >

[web2py] Re: Twitter registration/login

2010-10-11 Thread Francisco Costa
t; > 2010/10/8 Francisco Costa : > > > nevermind.. I've already got it. > > Thank you very much for your help Albert! > > > On Oct 8, 5:30 pm, Albert Abril wrote: > >> Yes, Michelle Commitini wrote the welcome app withtwitterauthetication > >>

[web2py] Facebook/Twitter/Google login + normal login

2010-10-11 Thread Francisco Costa
Hello, I'm trying to implement a twitter login using this auth.settings.login_form=TwitterTest(globals(),CLIENT_ID,CLIENT_SECRET, AUTH_URL, TOKEN_URL, ACCESS_TOKEN_URL) but when you use auth.settings.login_form you lose regular login is there a way to have both?

[web2py] Re: Facebook/Twitter/Google login + normal login

2010-10-11 Thread Francisco Costa
anyone? On Oct 11, 5:18 pm, Francisco Costa wrote: > Hello, > I'm trying to implement a twitter login using this > > auth.settings.login_form=TwitterTest(globals(),CLIENT_ID,CLIENT_SECRET, > AUTH_URL, TOKEN_URL, ACCESS_TOKEN_URL) > > but when you use auth.settings.l

[web2py] Re: Facebook/Twitter/Google login + normal login

2010-10-11 Thread Francisco Costa
anyone? On Oct 11, 5:18 pm, Francisco Costa wrote: > Hello, > I'm trying to implement a twitter login using this > > auth.settings.login_form=TwitterTest(globals(),CLIENT_ID,CLIENT_SECRET, > AUTH_URL, TOKEN_URL, ACCESS_TOKEN_URL) > > but when you use auth.settings.l

[web2py] Re: Twitter registration/login

2010-10-11 Thread Francisco Costa
any help on this one? On Oct 11, 4:53 pm, Francisco Costa wrote: > I have a problem with this solution, because I also offer normallogin. > Is their a way that i can use both? > > On Oct 8, 8:38 pm, Michele Comitini > wrote: > > > Albert, Bruno, thank you guys for

[web2py] 'IS_NOT_EMPTY' is not defined

2010-10-14 Thread Francisco Costa
I'm getting this: NameError: global name 'IS_NOT_EMPTY' is not defined What should i import?

[web2py] Re: 'IS_NOT_EMPTY' is not defined

2010-10-14 Thread Francisco Costa
I was using this on a custom module.. I've follow Martin suggestion by include "from gluon.validators import *" and everythings works well now. Thank you! On Oct 14, 3:14 pm, mdipierro wrote: > what web2py version? Where do you use IS_NOT_EMPTY? > > On Oct 14, 6:16 am

[web2py] .htaccess in web2py

2010-10-30 Thread Francisco Costa
I really would like to protect a website content with a .htaccess password file like this one http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/ I just don't know where to put the file at... Any help?

  1   2   3   4   5   >