: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
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
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
...?
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
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
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?
MongoDB support by the DAL
it's the #1 requested feature at
http://web2py.uservoice.com/forums/42577-general
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')
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?
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
Is anyone working on the MongoDBAdapter?
On Aug 5, 11:25 am, David Marko dma...@tiscali.cz wrote:
Mongo over couch?
Why?
Adhoc Queries ...
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
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
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 =
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
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?
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
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
I will look at this again when I get a chance...
When will MongoDBAdapter finalize so we can use it with DAL?
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
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
When will MongoDBAdapter finalize so we can use it with DAL?
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
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
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
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
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
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
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?
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
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/)
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?
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?
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
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
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/
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?
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 =
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.
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
: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
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!
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
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
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
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 :
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 :
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
(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
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
? 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
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
Does anyone know any short url application made in web2py?
If not, how would you do it?
Hi!
What is the ideal pagination method in web2py?
Are there any plugins or examples?
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
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
didn't know about it..
when will you release it?
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
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
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
[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
:
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
=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
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
Hello,
I have this view that I call in other.
I don't want this view to have direct access..
thoughts?
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?
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
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
.
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
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
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?
(',\\')
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
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
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!
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?
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
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?
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
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?
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
How is your server configured? What are you using?
Ubuntu 10.10 + Apache 2
and I'm serving the files at /var/www/web2py
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
I'm getting this:
NameError: global name 'IS_NOT_EMPTY' is not defined
What should i import?
, Francisco Costa m...@franciscocosta.com wrote:
I'm getting this:
NameError: global name 'IS_NOT_EMPTY' is not defined
What should i import?
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
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?
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
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
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
...
On Fri, Oct 8, 2010 at 6:12 PM, Francisco Costa
m...@franciscocosta.comwrote:
Hello!
Is there any available application with twitter register/login?
/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?
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
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
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
, 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
/(.+), 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
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
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
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
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?
101 - 200 of 252 matches
Mail list logo