[web2py] Re: MongoDB and Web2py

2011-10-12 Thread Francisco Costa
:52 -0700, Francisco Costa wrote: I don't want to spam the group about this, but I would like to have some official incites about when will the DAL have a MongoDB Adapter. Since this is the most requested feature by the web2py community http://web2py.uservoice.com/forums/42577-generalare

[web2py] Re: MongoDB and Web2py

2011-10-12 Thread Francisco Costa
On Oct 12, 11:00 am, David Marko dma...@tiscali.cz wrote: Hi Francisco, how do you manage the connection to MongoDB server? Do you establish and close connection on every request or do you use some connection pooling ? Hi Marko, for now we are using pymongo like this: from pymongo import

[web2py] Re: MongoDB and Web2py

2011-10-12 Thread Francisco Costa
we use it in db.py, not sure where should be the optimal way for it On Oct 12, 11:52 am, David Marko dma...@tiscali.cz wrote: Assume this code is in some db.py file ... so its executed on every request ...?

[web2py] MongoDB and Web2py

2011-10-02 Thread Francisco Costa
I don't want to spam the group about this, but I would like to have some official incites about when will the DAL have a MongoDB Adapter. Since this is the most requested feature by the web2py community http://web2py.uservoice.com/forums/42577-general are there any plans or schedule for this

[web2py] Re: MongoDB supported by DAL

2011-09-29 Thread Francisco Costa
Are you planning to resume development? I'd need the MongoDBAdapter for a project, and I am willingly to cooperate. I'm quite new both to MongoDB and web2py but I'm learning fast; the only problem I see is the apparent lack of documentation on which methods an adapter should implement and

[web2py] Heroku supports Python

2011-09-28 Thread Francisco Costa
Today Heroku started to also support Python (they only supported Ruby before): http://blog.heroku.com/archives/2011/9/28/python_and_django/ Who wants to give a try with web2py on it?

[web2py] Re: what about web2py 2.0?

2011-09-22 Thread Francisco Costa
MongoDB support by the DAL it's the #1 requested feature at http://web2py.uservoice.com/forums/42577-general

[web2py] response.view and URL

2011-09-19 Thread Francisco Costa
instead of this: response.view = 'controller/function.html' Why you cant do this? response.view = URL(a = 'application', c = 'views', f = 'controller', args = 'function.html')

[web2py] Parameter-Based System routers errors

2011-08-30 Thread Francisco Costa
On the Parameter-Based System http://web2py.com/book/default/chapter/04#Parameter-Based-System is there a way we can redirect to an error page when the controller or the function are invalid or a ticket is generated?

[web2py] Re: Comet Server

2011-08-07 Thread Francisco Costa
On Jul 16, 5:16 pm, Anthony abasta...@gmail.com wrote: Maybe check out this three part tutorial:http://greg.thehellings.com/2011/04/web2py-websockets-and-socket-io-p The third part (http://greg.thehellings.com/2011/05/web2py-websockets-and-socket-io-p...) discusses usage of Socket.IO

[web2py] Re: MongoDB supported by DAL

2011-08-07 Thread Francisco Costa
Is anyone working on the MongoDBAdapter? On Aug 5, 11:25 am, David Marko dma...@tiscali.cz wrote: Mongo over couch? Why? Adhoc Queries ...

[web2py] Re: mongoDBAdapter test ......

2011-08-07 Thread Francisco Costa
On Aug 6, 6:34 pm, joseph simpson jjs0...@gmail.com wrote: It is my understanding that some people are interested but they do not have the time to create the adapter. May or may not have time to test but would put it on the priority list. Have fun I would fully test the adapter

[web2py] Re: MongoDB supported by DAL

2011-08-05 Thread Francisco Costa
Mongo over couch? Why? basically performance, but you can read more here http://www.mongodb.org/display/DOCS/Comparing+Mongo+DB+and+Couch+DB or search for some benchmarks

[web2py] Re: default function of a controller

2011-08-05 Thread Francisco Costa
On Aug 5, 12:54 am, pbreit pbreitenb...@gmail.com wrote: That should be easy to support. In default.py: def user():     if request.args(0):         user = request.args(0)         ...     else: # list     ... def restaurant():     if request.args(0):         restaurant =

[web2py] Re: mongoDBAdapter test ......

2011-08-05 Thread Francisco Costa
On Aug 4, 7:05 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Nobody is really pushing for this... nobody has provided any feedback about the adapter. I think there is a lot of people interested in this: http://groups.google.com/group/web2py/browse_thread/thread/ec2a16b9f4e957a0

[web2py] Re: MongoDB supported by DAL

2011-08-04 Thread Francisco Costa
any news? On Jul 25, 10:02 am, Francisco Costa m...@franciscocosta.com wrote: When will MongoDBAdapter finalize so we can use it with DAL?

[web2py] Re: default function of a controller

2011-08-04 Thread Francisco Costa
I have controller over my URLs I have this controller 'user' with 2 functions: index(list of users), view(user details) I have another controller 'restaurant' with 2 functions: index(list of restaurants), view(restaurant details) I wanted to have this urls: http://domain.com/user/mcdonalds and

[web2py] Re: Tiny example on uwsgidecorators+web2py

2011-08-04 Thread Francisco Costa
Is it possible to have this in web2py: imagine i have a function for user registration: after the db.auth_user.insert() i want to send an email to the user I would like to have the sent_email() function in a spool, this way the controller could execute faster and the emails would be sent in

[web2py] Re: mongoDBAdapter test ......

2011-08-04 Thread Francisco Costa
I will look at this again when I get a chance... When will MongoDBAdapter finalize so we can use it with DAL?

[web2py] Re: MongoDB supported by DAL

2011-08-04 Thread Francisco Costa
On Aug 4, 3:46 pm, David Marko dma...@tiscali.cz wrote: Also inteersted here. Can afford some time for testing ... This would be great to have. MongoDb is being widely adopted by a larger number of organizations. If DAL could support MongoDB, it would have a major impact in some development

[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Francisco Costa
Looks very good, but I can't login with superuser credentials (usearname = a, password = a) I get this message: We're sorry. Please enter a password with at least six characters. On Aug 1, 2:16 pm, Anthony abasta...@gmail.com wrote: Looks very promising, but I cannot log into the demo (I've

[web2py] MongoDB supported by DAL

2011-07-25 Thread Francisco Costa
When will MongoDBAdapter finalize so we can use it with DAL?

[web2py] Re: Web2py talk proposal - Codebits 2011

2011-07-23 Thread Francisco Costa
I was also going to do it.. but if you submitted first I'm going to watch it :) On Jul 23, 2:10 am, blackthorne francisco@gmail.com wrote: Hi, just submitted a talk proposal on web2py for the Codebits 2011 event yield in Lisbon, Portugal (November). I invite you to support me with your

[web2py] web2py Talks - spreading the love

2011-07-21 Thread Francisco Costa
Hi, I would love to do a presentation about web2py at Codebits 2011 (http://codebits.eu) Is there any central repository with web2py presentations/videos that I'm not aware of? I'm going to perform a standard search (slideshare, vimeo, etc) but if you guys have more data related to web2py I

[web2py] Re: default function of a controller

2011-07-12 Thread Francisco Costa
On Jun 14, 7:57 pm, Jonathan Lundell jlund...@pobox.com wrote: On Jun 14, 2011, at 11:42 AM, Francisco Costa wrote: You can only do this for the default controller. You do it by specifying a list of the functions in the default controller: functions = [...]. I have that for the default

[web2py] Python 3 and the future of web2py

2011-07-11 Thread Francisco Costa
I read this on the announcement of the latest Python release: http://www.python.org/download/releases/3.2.1/ Since the final release of Python 2.7, the 2.x line will only receive bugfixes, and new features are developed for 3.x only. Does web2py have any plans to migrate to Python 3.x now that

[web2py] How web2py works - performance

2011-07-11 Thread Francisco Costa
Hi, is there any visual chart or text that explain what happens when a page request is made? For my knowledge this is the order: - Models - Controller - View But what exactly is executed? I know if I open a certain page it only executes that controller and view, but it seams that Models are all

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-08 Thread Francisco Costa
Hardo to say. 0.9.7 branch is now obsolete, and a lot of fix has been added to signal framework in 0.9.8. If you want to manage timer reliably you should use the latest tip (it is really the 0.9.8.2 release, i am only waiting for a last patch before release) -- Roberto De

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Francisco Costa
I do not know if it is pertinent with the topic, but uWSGI has tons of (cheap, very cheap compared with solutions like celery) facilities to allow this sort of tasks: http://projects.unbit.it/uwsgi/wiki/Decorators I have uwsgi-0.9.7.1 installed is it compatible with uwsgi decorators?

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Francisco Costa
Is Celery compatible or easy to use with web2py? On Jul 4, 6:35 pm, Mengu whalb...@gmail.com wrote: go ahead and use celery. On Jul 4, 3:47 pm, Valter Foresto valter.fore...@gmail.com wrote: It is possible to call from inside WEB2PY a 'short user function' based on time tick

[web2py] Analytics application

2011-06-27 Thread Francisco Costa
Hello, does anyone has build some site analytics application? It would be great to have some statistics about user navigation, traffic measure, etc Something like piwik (http://piwik.org/)

[web2py] default function of a controller

2011-06-14 Thread Francisco Costa
Hello, I have this controller (not the default one) that I would like to have a default function (not index) How can I do that?

[web2py] Re: default function of a controller

2011-06-14 Thread Francisco Costa
is this possible? On Jun 14, 11:55 am, Francisco Costa m...@franciscocosta.com wrote: Hello, I have thiscontroller(not thedefaultone) that I would like to have adefaultfunction(not index) How can I do that?

[web2py] Re: default function of a controller

2011-06-14 Thread Francisco Costa
On Jun 14, 6:25 pm, pbreit pbreitenb...@gmail.com wrote: You can set default_controller and default_function in routes.py but that changes it for your whole app. Yes, I have index as the default function but for a specific controller I want it to be a different default function. But why

[web2py] Re: default function of a controller

2011-06-14 Thread Francisco Costa
If you use the parameter-based URL rewrite system (seehttp://web2py.com/book/default/chapter/04#Parameter-Based-System), you can specify default_function in either the BASE router or an application specific router, but I think that would set the default function for all controllers, not

[web2py] Re: default function of a controller

2011-06-14 Thread Francisco Costa
Well, it does support matching the host name, so I suppose it should be doable. And in the Parameter-Based System how do you bypass a function in the url Something like this: http://domain.com/app/controller/arg1/

[web2py] Re: default function of a controller

2011-06-14 Thread Francisco Costa
You can only do this for the default controller. You do it by specifying a list of the functions in the default controller: functions = [...]. I have that for the default controller, but in this case I need to have it in a non-default controller It's not possible to have this feature?

[web2py] response.meta attributes

2011-06-06 Thread Francisco Costa
Hello, I would like to have some meta tags that look like this: meta property=og:type content=activity / This is because of the facebook like button: https://developers.facebook.com/docs/reference/plugins/like/ (Step 2 - Get Open Graph Tags) The thing is when you try response.meta.foo =

[web2py] Re: response.meta attributes

2011-06-06 Thread Francisco Costa
you have to edit the layout.html I suppose I could but I won't get a like button in every pages and I'm trying to have a clean code. That's why I would like to be able to define those meta tags in controllers or views.

[web2py] Re: Subdomain Duplicates Content

2011-06-04 Thread Francisco Costa
Are this changes in the new version? On May 28, 3:50 pm, Jonathan Lundell jlund...@pobox.com wrote: There's support for exclusive domain mapping enforcement in the trunk now. It'd be good if someone could try it out, because the unit tests I was able to come up with aren't all that close to

[web2py] Re: Subdomain Duplicates Content

2011-05-26 Thread Francisco Costa
:10 PM, Francisco Costa wrote: The URL calling is fine.. the problem is how web2py manages different apps from different domains/subdomains I really believe that they should be improved! web2py (URL) isn't generating a domain *at all* in the URL unless you explicitly specify one

[web2py] Re: Subdomain Duplicates Content

2011-05-26 Thread Francisco Costa
The easiest option: a flag to forbid a cross-domain URL call. URL would raise an exception if you try to do that. (Actually, the rewrite logic would do that.) That option would be great!

[web2py] short url idea

2011-05-26 Thread Francisco Costa
Hello, we are building a short-url app. We are using MongoDB to save in a table the long-url (ex.: http://google.com) and respective short-url (ex.: eWTy) We pretend to use it just like bit.ly To make the redirect working we have to point the browser to a function like http://domain.com/r/eWTy

[web2py] Re: short url idea

2011-05-26 Thread Francisco Costa
You need to specify functions=[list of functions in default controller]. The rewrite logic needs this so that it can verify that the first arg is not a valid function name. Great advice.. I will try it Thank You

[web2py] Re: Subdomain Duplicates Content

2011-05-24 Thread Francisco Costa
I agree with him, sometimes search robots finds apps under different domains... -- Bruno Rocha [ About me:http://zerp.ly/rochacbruno] On Mon, May 23, 2011 at 9:40 PM, Jonathan Lundell jlund...@pobox.comwrote: On May 23, 2011, at 6:10 PM, Francisco Costa wrote: The URL calling

[web2py] Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
Hello, I have a main app and a blog app My routes.py are like this: routers = dict( BASE = dict( default_application = 'main', default_controller = 'default', default_function = 'index', domains = { domain.com : main, blog.domain.com :

[web2py] Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
Hello, I have a main app and a blog app My routes.py are like this: routers = dict( BASE = dict( default_application = 'main', default_controller = 'default', default_function = 'index', domains = { domain.com : main, blog.domain.com :

[web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
is this a bug? On May 23, 6:15 pm, Francisco Costa m...@franciscocosta.com wrote: Hello, I have a main app and a blog app My routes.py are like this: routers = dict(     BASE = dict(         default_application = 'main',         default_controller = 'default',         default_function

[web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
 (but URL()  does not do that) -- Bruno Rocha [ About me:http://zerp.ly/rochacbruno] On Mon, May 23, 2011 at 2:00 PM, Francisco Costa m...@franciscocosta.comwrote: Hello, I have a main app and a blog app My routes.py are like this: routers = dict(    BASE = dict

[web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
Yes! I've tried URL(host = 'domain.com', a = 'main', c = 'test', f = 'index') and it generates the link correctly. The thing is that I have a lots of URLS() and I didn't want to change them all But the bug is still there. If I manually enter http://blog.domain.com/main/test/index the page opens

[web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
? I wouldn't expect to see a domain there at all. On May 23, 2011, at 12:00 PM, Francisco Costa m...@franciscocosta.com wrote: Hello, I have a main app and a blog app My routes.py are like this: routers = dict(    BASE = dict(        default_application = 'main

[web2py] PowerTable editable callback

2011-05-06 Thread Francisco Costa
Hello, I'm using PowerTable and I love it! But I have an issue: I want to edit a column named status, but only that column. And I want to alter de value of that column (status) on the databse, with an update. I've made an editable function, but something is missing, I guess, because it doesn't

[web2py] Short URL app

2011-04-27 Thread Francisco Costa
Does anyone know any short url application made in web2py? If not, how would you do it?

[web2py] Pagination in web2py

2011-04-12 Thread Francisco Costa
Hi! What is the ideal pagination method in web2py? Are there any plugins or examples?

[web2py] Re: Pagination in web2py

2011-04-12 Thread Francisco Costa
The thing is that I use paginations on a lot of different controllers, and I would love to have a more generic solution On Apr 12, 11:29 am, Tom Atkins minkto...@gmail.com wrote: This worked for me: http://www.web2py.com/book/default/chapter/12#Pagination On 12 April 2011 11:16, Francisco

[web2py] Re: new support platform for web2py - make money

2011-02-15 Thread Francisco Costa
was on the Brazilian list. But I can provide you the code? 2011/2/12 Francisco Costa m...@franciscocosta.com Hi Ovideo.. English please :) The coding is not finished yet On Feb 12, 11:53 am, Ovidio Marinho ovidio...@gmail.com wrote: Francisco voce pode disponibilizar o codigo para

[web2py] Re: new support platform for web2py - make money

2011-02-12 Thread Francisco Costa
didn't know about it.. when will you release it?

[web2py] Re: new support platform for web2py - make money

2011-02-12 Thread Francisco Costa
Hi Ovideo.. English please :) The coding is not finished yet On Feb 12, 11:53 am, Ovidio Marinho ovidio...@gmail.com wrote: Francisco voce pode disponibilizar o codigo para podermos ver as novidades que vc colocou nesta app, tipo campos arredondados , icones e etc... 2011/2/11 Francisco Costa

[web2py] new support platform for web2py - make money

2011-02-11 Thread Francisco Costa
Hello! During the past months I'm using a lot web2py. I've been asking a few questions here in this group and I've received help from people all around the world. Sometimes I really felt like I should give back something to those kind souls.. So that's why in the past 2 days I've created

[web2py] Re: dynamic session variables

2011-02-01 Thread Francisco Costa
I want something like this: if not session.id[page_id]: session.id[page_id]=str(request.now) but i get this error: KeyError: '74' I want to validate if a dynamic variable exists.. if not I want to create it and to get the time On Feb 1, 4:17 am, Jason Brower encomp...@gmail.com

[web2py] Re: dynamic session variables

2011-02-01 Thread Francisco Costa
[page_id]=session.id.get(page_id,str(request.now)) On Feb 1, 9:59 am, Francisco Costa m...@franciscocosta.com wrote: I want something like this:     if not session.id[page_id]:         session.id[page_id]=str(request.now) but i get this error: KeyError: '74' I want to validate

[web2py] Re: dynamic session variables

2011-02-01 Thread Francisco Costa
: On Feb 1, 2011, at 11:54 AM, Francisco Costa wrote: the problem is when i open a second tab, it copies the session.id and doesn't recognize the new page_id basically what i want is a diferrent session.id[page_id] for each tab i open where is page_id coming from? Perhaps the intended code

[web2py] Re: dynamic session variables

2011-02-01 Thread Francisco Costa
=lastcheck and then query the db for posts created after firstcheck if returns any results: session.id[post_id]=str(request.now) On Feb 1, 8:27 pm, Francisco Costa m...@franciscocosta.com wrote: I'm trying to do a realtime commenting system. I have this place for comments in posts, and I

[web2py] dynamic session variables

2011-01-31 Thread Francisco Costa
Hello, I want to have dinamic session variables like this: session.id where id is different from page to page.. I've tried id = variable session.id and session.id['variable'] without any results. I would like to be able to open different pages at the same time and the browser

[web2py] direct access to page

2011-01-24 Thread Francisco Costa
Hello, I have this view that I call in other. I don't want this view to have direct access.. thoughts?

[web2py] Re: direct access to page

2011-01-24 Thread Francisco Costa
I've used: if not request.env.http_referer: redirect page pass On Jan 24, 8:45 pm, Francisco Costa m...@franciscocosta.com wrote: Hello, I have this view that I call in other. I don't want this view to have direct access.. thoughts?

[web2py] Re: web2py social network designer/architect

2011-01-17 Thread Francisco Costa
Thank you all for the inclusion. I haven't made any promotion here, because tymr.com is a one man project for now, and i'm not yet fully satisfied with the result. I'm looking for some angel ou vc investment but the economy is not very good in Portugal at the moment. On Jan 17, 4:58 pm, Anthony

[web2py] Re: web2py social network designer/architect

2011-01-17 Thread Francisco Costa
together, I can try something in Brazil. Bruno Rochahttp://about.me/rochacbruno/bio 2011/1/17 Francisco Costa m...@franciscocosta.com Thank you all for the inclusion. I haven't made any promotion here, because tymr.com is a one man project for now, and i'm not yet fully satisfied

[web2py] Re: ajax append target

2011-01-14 Thread Francisco Costa
. Use the jQuery append() function to add your ajax result in any DOM part of your page. cfhttp://api.jquery.com/append/ 2011/1/13 Francisco Costa m...@franciscocosta.com: Hello! I have an ajax function that return some values. The thing is that I don't want it to replace

[web2py] Re: SCRIPT tag

2011-01-13 Thread Francisco Costa
SCRIPT() works just like Massimo told... I just realized that I was coppying the resulting div that contained the javascript through an document.getElementById(id).innerHTML; to another div, and the script tags arrent supported! Thank you for your help, and sorry for the confusion I've made. On

[web2py] ajax append target

2011-01-13 Thread Francisco Costa
Hello! I have an ajax function that return some values. The thing is that I don't want it to replace the content of my target div. Instead i would like to append it to the values that are already there. Is this possible?

[web2py] Re: ajax append target

2011-01-13 Thread Francisco Costa
(',\\') On Jan 13, 4:31 pm, Francisco Costa m...@franciscocosta.com wrote: Hello! I have an ajax function that return some values. The thing is that I don't want it to replace the content of my target div. Instead i would like to append it to the values that are already

[web2py] Re: ajax append target

2011-01-13 Thread Francisco Costa
forget it.. it works! the thing is that i have a script on the content... and when it returns, the script is gone On Jan 14, 12:05 am, Francisco Costa m...@franciscocosta.com wrote: that replaces the target contet with a string var x=$('#target'); x.html(x.html()+' what is wrong

[web2py] Re: TAG colon problem

2010-11-06 Thread Francisco Costa
On Nov 5, 1:15 am, DenesL denes1...@yahoo.ca wrote: sitemap=TAG.urlset(**{'_xmlns':'http://www.sitemaps.org/schemas/ sitemap/0.9', '_xmlns:xsi':http://www.w3.org/2001/XMLSchema- instance}) Tx!

[web2py] no-WWW in routes

2010-11-04 Thread Francisco Costa
Is there a way that we can route a website so that http://www.domain.com redirect to http://domain.com If you can't do this with routes how you can do it?

[web2py] Re: no-WWW in routes

2010-11-04 Thread Francisco Costa
ok I've added the following to my virtual-host RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] On 4 Nov, 16:22, mdipierro mdipie...@cs.depaul.edu wrote: Not with routes. Apache mod_rewrite On Nov 4, 10:49 am, Francisco Costa m

[web2py] TAG colon problem

2010-11-04 Thread Francisco Costa
I'm trying to do a sitemap for my site. The thing is that when I set sitemap=TAG.urlset(_xmlns='http://www.sitemaps.org/schemas/sitemap/ 0.9', _xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;) the xmlns:xsi gives error because of the colon (:) Is there any way that i can change this?

[web2py] Re: TAG colon problem

2010-11-04 Thread Francisco Costa
is this a bug or a python issue? On 4 Nov, 21:12, Francisco Costa m...@franciscocosta.com wrote: I'm trying to do a sitemap for my site. The thing is that when I set sitemap=TAG.urlset(_xmlns='http://www.sitemaps.org/schemas/sitemap/ 0.9', _xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

[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?

[web2py] Re: .htaccess in web2py

2010-10-30 Thread Francisco Costa
tried both.. none worked out :( On Oct 30, 4:09 pm, VP vtp2...@gmail.com wrote: I'd think either in web2py root or web2py/applications/yourapp. On Oct 30, 9:28 am, Francisco Costa m...@franciscocosta.com wrote: I really would like to protect a website content with a .htaccess password

[web2py] Re: .htaccess in web2py

2010-10-30 Thread Francisco Costa
How is your server configured? What are you using? Ubuntu 10.10 + Apache 2 and I'm serving the files at /var/www/web2py

[web2py] Re: .htaccess in web2py

2010-10-30 Thread Francisco Costa
You might consider configuring passwords in httpd.conf instead of .htaccess, if you have control over the whole server. Thank you for the suggestion.. I will look into it Are you doing this as an alternative to web2py auth? No, I've finished a project and I've put it online, but before it

[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
, Francisco Costa m...@franciscocosta.com wrote: I'm getting this: NameError: global name 'IS_NOT_EMPTY' is not defined What should i import?

[web2py] Re: Twitter registration/login

2010-10-11 Thread Francisco Costa
email unread ;-) 2010/10/8 Francisco Costa m...@franciscocosta.com: nevermind.. I've already got it. Thank you very much for your help Albert! On Oct 8, 5:30 pm, Albert Abril albert.ab...@gmail.com wrote: Yes, Michelle Commitini wrote the welcome app withtwitterauthetication with OAuth

[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 m...@franciscocosta.com 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.login_form you

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

2010-10-11 Thread Francisco Costa
anyone? On Oct 11, 5:18 pm, Francisco Costa m...@franciscocosta.com 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.login_form you

[web2py] Re: Twitter registration/login

2010-10-11 Thread Francisco Costa
any help on this one? On Oct 11, 4:53 pm, Francisco Costa m...@franciscocosta.com 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 michele.comit...@gmail.com wrote: Albert, Bruno, thank

[web2py] Re: Twitter registration/login

2010-10-08 Thread Francisco Costa
... On Fri, Oct 8, 2010 at 6:12 PM, Francisco Costa m...@franciscocosta.comwrote: Hello! Is there any available application with twitter register/login?

[web2py] Re: Twitter registration/login

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

[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 jlund...@pobox.com wrote: On Oct 1, 2010, at 9:48 AM, Francisco Costa wrote: I would like to improve my

[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

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
is it possible? On Oct 1, 10:55 am, Francisco Costa m...@franciscocosta.com 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

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
, Francisco Costa m...@franciscocosta.com wrote: is it possible? On Oct 1, 10:55 am, Francisco Costa m...@franciscocosta.com 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

[web2py] Re: shorting your URL with routes

2010-10-01 Thread Francisco Costa
/(.+), 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 jlund...@pobox.com wrote: On Oct 1, 2010, at 9:20 AM, Francisco Costa wrote: Has I said before, that way other

[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 = ( ('/(?Pany.*)', '/welcome/\gany'), ) routes_out = ( ('/welcome/(?Pany.*)', '/\gany'), ) so the

[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

[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 m...@franciscocosta.com 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 like to show the application

[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?

<    1   2   3   >