Yes, it's work fine manually, if I call it in a browser.
And yes, I'v restarted web2py many times ;)
On 18 фев, 04:46, pbreit pbreitenb...@gmail.com wrote:
Ah, ok. Looks like it is probably following a route. Sorry about that.
So if you just call the function in a browser it works fine? But
Yes, it's work fine manually. And yes, I restarted web2py many
times ;)
On 18 фев, 04:46, pbreit pbreitenb...@gmail.com wrote:
Ah, ok. Looks like it is probably following a route. Sorry about that.
So if you just call the function in a browser it works fine? But the cron
doesn't seem to
Thanks.
http://code.google.com/p/web2py/issues/detail?id=196
On Feb 18, 12:32 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
This is a bug, please open an issue on google code and I will try fix
it during the week-end.
On Feb 17, 5:10 pm, firedragon852 firedragon...@gmail.com wrote:
opened, issue 197
Thanks Richard.
I had another look, and the database is in fact changing when I do a
password reset. The password after reset is sha512 + hmac using the
salt specified in the db.py. I checked it in code manually. I tried
to find a combination of algorithm that gave me the old hash, before
the
Ovidio, in Brazil the best paid service with an excelent JSON API for
sending SMS is http://www.fastsms.com.br/
http://www.fastsms.com.br/
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
2011/2/17 Ovidio Marinho ovidio...@gmail.com
what makes your application, it sends sms:? you can
so, only number and provider information needed!
Seems easy.
Thanks all.
On 18 feb, 05:37, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
mail.send(to=sms_email(number,provider),subject='...',message='...')
where number is the phone number and provide is the company the number
With some delay, I've just opened an issue. Please see:
http://code.google.com/p/web2py/issues/detail?id=198
On Feb 7, 6:31 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
We do not have a simple mechanism yet to do it. I can add it, please
open an issue on google code.
On Feb 7, 9:28
I have many images that are already uploaded. I would like to have a
way to resize these images proportionately in the view. The original
images may or may not be modified. Any ideas how this can be achieved?
Lets say you create a application using the application wizard and
setup the default user login database. How would you modify the code
so that it will connect to a mysql database with the same user login
tables.
What you describe is pretty strange I dump postgresql db and reload it many
time and i didn't have this problem...
Try to look if there is not something wrong with your new installation...
May be you belive that you point to the right db, but you don't... It
possible that you point to SQLite...
How would i go about creating a simple login form when a user logs in
and using jquery it will check a ajax post process. The password will
be stored as md5. The database will be mysql
asynchronous http and synchronous http
What the difference ?
On 18 фев, 10:37, Dane dane.schnei...@gmail.com wrote:
Hi,
I need to make an asynchronous http request to one of my controller
functions in order to some lightweight background processing
(refreshing some cached objects). I came
Hi Martín,
Yes, that works well for trapping links inside the component, but what
about using forms? Have you ever used multiple forms instead of links
from one page to another like you are doing below?
Thanks,
Marc
On Fri, Feb 18, 2011 at 5:51 AM, Martín Mulone mulone.mar...@gmail.com wrote:
onaccept you can call Python PIL or ImageMagik convert
On Feb 18, 6:56 am, Luther Goh Lu Feng elf...@yahoo.com wrote:
I have many images that are already uploaded. I would like to have a
way to resize these images proportionately in the view. The original
images may or may not be modified. Any
If you change the DAL(uri) string, it should connect to MySQL and
create the missing tables.
On Feb 18, 7:40 am, stargate kyoukh...@gmail.com wrote:
Lets say you create a application using the application wizard and
setup the default user login database. How would you modify the code
so that
Hi.
I need to send a lot of messages.
On GAE default framework it could be done by using cursosrs and
taskqueue(to overcome 15s limit):
if cursor != '':
Q = db.Query(models.Partner).with_cursor(cursor)
else:
Q = db.Query(models.Partner)
for partner in Q.fetch(10):
Hello,
I would know if multiple tables form works with auth.signature?
Thanks.
Richard
Do we know this works on windows? I do not have windows to try it.
On Feb 17, 6:42 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Feb 17, 2011, at 4:30 PM, Marin Pranjic wrote:
Restarting web server does not restart web2py, i think.
Not sure if it should restart it or not, but... same
Note, PostgreSQL also supports full text search:
http://www.postgresql.org/docs/9.0/interactive/textsearch.html
On Thursday, February 17, 2011 11:33:47 PM UTC-5, Massimo Di Pierro wrote:
Please open an issue in google code and add the link below. If sqlite
supports it web2py needs an API
On Feb 18, 2011, at 6:49 AM, Massimo Di Pierro wrote:
Do we know this works on windows? I do not have windows to try it.
I do not.
My guess is that it's related to the Rocket stop method. The first stop isn't
effective, and something about the second start, or its associated stop, or its
I ran a test on my system (unfortunately I'm in a Windows world...) and it
seems to be doing something similar, albeit without any error messages.
When I start web2py, then start the web server, all is fine. Stopping the
web serverfrom Tcl doesn't result in any error (or any message for that
On Fri, Feb 18, 2011 at 9:46 AM, Martín Mulone mulone.mar...@gmail.com wrote:
Ok, I think now I understood. Is a good question.
Try something like this, never do a redirect() after accepts because web2py
do full redirect. I don't know is something like this work:
The redirect inside of the
Hi,
Is it possible to disable tooltips in powerTable? It would be even
better if powerTable would show only tooptips that are explicitly
defined but not default tooltips. I think that the default tooltips
(e.g. Record 1, Record 2 etc.) are useless. It would be nice if
there were some
Oh wow that is so easy. I wish there was a web2py user-group in my
area so people can meet and learn new things
On Feb 18, 9:10 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
If you change the DAL(uri) string, it should connect to MySQL and
create the missing tables.
On Feb 18, 7:40
On Feb 17, 2011, at 10:37 AM, Johann Spies wrote:
src=/kb/static/DSC_1403.png (I moved the image from /kb/static/images to
/kb/static - now it works.
I would still like to know how to get imgages in static/images to work with
this routing system.
I tested this with one of my apps that
Hi,
I just upgraded to the latest web2py version (1.92.1 source) in my
development local win7 environment with postgresql and migrate=True, and my
original problem occurred once again.
Traceback (most recent call last):
File C:\web2py\gluon\restricted.py, line 188, in restricted
exec
2011/2/18 teemu teemu.kuulas...@gmail.com
Hi,
Is it possible to disable tooltips in powerTable? It would be even
better if powerTable would show only tooptips that are explicitly
defined but not default tooltips. I think that the default tooltips
(e.g. Record 1, Record 2 etc.) are useless.
Yes, the script is buggy, alright.
To begin with, the field ID was supposed to be skipped altogether according
to the code. The line
if field[0] == 'id':
should have been
if field[0].lower() == 'id':
for the ID field to be skipped successfully.
Anyway, its a relief that the my app does not
Thanks for your hint. Upon Janrain I already stumbled because of their
python-openid lib. For my current project I only need Google, and so I would
really like to not enroll with another 3rd party. Besides, Janrain wants to
have the domain registered with them. Wouldn't that mean to register
Well I only used it once, but from memory registering was a piece of
cake and I thought you could enter several domains in the same
account, so I don't think that would be an issue. You get free usage
for up to 2500 users and then you have to pay. But it's not really so
expensive. Maybe worth a
are you copying the content of databases/ folder?
On Feb 18, 10:33 am, Carlos carlosgali...@gmail.com wrote:
Hi,
I just upgraded to the latest web2py version (1.92.1 source) in my
development local win7 environment with postgresql and migrate=True, and my
original problem occurred once
On Feb 17, 8:02 am, Jonathan Lundell jlund...@pobox.com wrote:
Please do. Take a look at router.example.py as well; there's at least one new
feature there (path_prefix). I can review the material any time you're ready.
Ok, here is a first draft.
Hi guys,
is there any way to drop into a Python shell on the command line with all
relevant models loaded for a specific app? I'm searching for something similar
like the admin interface shell or django's db shell.
--
Mit freundlichen Grüßen,
Sascha Peilicke
http://saschpe.wordpress.com
On Feb 18, 8:16 pm, cjrh caleb.hatti...@gmail.com wrote:
Ok, here is a first draft.
http://web2py.com/book/default/chapter/11#Modify-the-URL-with-the-Router
http://web2py.com/book/default/chapter/11#Modifying-the-URL
(refactored the section heading)
Massimo,
No, I did not copy the files from 'databases' folder ... should I have done
so?.
Carlos
See the command line options:
http://web2py.com/book/default/chapter/04#Command-Line-Options
In particular, -S to run a web2py app in an interactive shell, and -M to
load the models of the app.
Anthony
On Friday, February 18, 2011 1:24:09 PM UTC-5, saschpe wrote:
Hi guys,
is there any
I am trying to make an 'admin' controller that will allow
administrators of the app to administer different parts of the app.
One of the things to administer will be listing, adding, and removing
of users. So, ideally, I would like my URL structure to be like this:
/[app]/admin/users/index. I have
On Friday 18 February 2011 19:43:16 Anthony wrote:
See the command line options:
http://web2py.com/book/default/chapter/04#Command-Line-Options
In particular, -S to run a web2py app in an interactive shell, and -M to
load the models of the app.
Wow, awesome!
On Friday, February 18, 2011
Wow! I just found this post:
http://groups.google.com/group/web2py/browse_thread/thread/27bf920f49fc8504/510cd7d66f9a4ccb
I tried this and it fixes my problem!
Carlos: Is this fine to keep the response stuff in there? And to keep
the web2py_ajax.html modifications? It won't affect other forms or
Doing what Carlos describes above also fixes my LOAD + component +
form issue described here:
http://groups.google.com/group/web2py/browse_thread/thread/378d78ab4a47ed6d/41de5a2254a07508
--Marc
On Feb 15, 2:22 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Feb 15, 2011, at 9:57 AM, Carlos
Hi Marc,
I believe my fix does not break anything, but much more testing is
certainly required to be sure.
If you find problems, please let me know.
If there are no problems after testing, I believe this fix should be
included in web2py ... Massimo?.
Hello all,
Have just joined this group, and this is my first post. I have
actually been following web2py since year 2009. At that time, I was
deciding which language and which webapp framework to use. Web2py is
the one I have chosen and I have been spending a lot of time on it.
This is my first
On Feb 18, 2:56 pm, Luther Goh Lu Feng elf...@yahoo.com wrote:
I have many images that are already uploaded. I would like to have a
way to resize these images proportionately in the view. The original
images may or may not be modified. Any ideas how this can be achieved?
def THUMB(image,
That is pretty much what Crud does, except in a class.
Have a look in gluon/tools.py
On Feb 18, 1:47 pm, Ross Peoples ross.peop...@gmail.com wrote:
I am trying to make an 'admin' controller that will allow
administrators of the app to administer different parts of the app.
One of the things
This is great. To avoid confusion, though, would it make more sense to move
this material into the URL Rewrite section of Chapter 4:
http://web2py.com/book/default/chapter/04#URL-Rewrite
Maybe keep the first paragraph of that section and then mention that there
are now two distinct URL
You need to put the pygments module in web2py/site-package or (if you
use the web2py source distribution) install it normally under python
with
easy_install pygments
Some modules can be installed under applications/yourapp/modules/ but
not all. The reason for this special folder is to allow apps
cool. I never thought about this. You can make it much simpler:
def users():
def index():
return dict(message=List users)
def new():
return dict(message=Add new user)
def edit():
return dict(message=Edit an existing user)
return
Bumping
Massimo, I really need your help on this topic, specially on the part of the
unlicensed files.
I've started a blog about my web2py learning.
I'm new to Python and web2py, so please go gently on my coding horrors!
Constructive criticism on more elegant ways to do things will be very much
appreciated.
http://knitatoms.net
The site is built with web2py and there's an RSS feed to subscribe
Nice stuff. :)
On Friday, February 18, 2011 3:17:54 PM UTC-5, Tom A wrote:
I've started a blog about my web2py learning.
I'm new to Python and web2py, so please go gently on my coding horrors!
Constructive criticism on more elegant ways to do things will be very much
appreciated.
Thanks for this. I'm new so I'm glad that I am on the right track.
On Feb 18, 3:03 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
cool. I never thought about this. You can make it much simpler:
def users():
def index():
return dict(message=List users)
def new():
This is really cool!
I think it deserves a decorator.
@action_wrapper()
def my_action_wrapper():
def one_action():
return dict()
def another_action():
return dict()
So the decorator adds the return locals().get... part
2011/2/18 Massimo Di Pierro
How do I hide /myapp/default ?
Hi,
I am developing a new project on blouweb.com, and this client wanted
multiple file uploads for the photo gallery, so I started to integrate
web2py SQLFORM with uploadify jQuery lib.
It is now working and the website will be online this week, so I decided to
start a new plugin powerUpload
On Feb 18, 2011, at 12:57 PM, pbreit wrote:
How do I hide /myapp/default ?
Just set default_application (in BASE) to myapp. default_controller is set to
default by default, and the rest happens automatically.
I made a change just before the 1.92.1 release. By default, static URLs are not
Bruno,
The pluging look nice (muito legal, chevere). :-)
Ricardo
2011/2/18 Bruno Rocha rochacbr...@gmail.com
Hi,
I am developing a new project on blouweb.com, and this client wanted
multiple file uploads for the photo gallery, so I started to integrate
web2py SQLFORM with uploadify jQuery
I am still trying to solve my issue. The date picker shows up and when
I pick a date, it puts it in the text box. However, it does not saves
it (either thru the application or thru database administration tool).
But if I do Field('DesdeFecha', 'date',default=request.now), it saves
the date/time
Ah, ok. Yeah it's working correctly.
gluon/contrib/login_methods/*
web2py license
gluon/contrib/gae_memcache.py
web2py license
gluon/contrib/memcache/*
Python license
gluon/contrib/populate.py
web2py license
gluon/contrib/taskbar_widget.py Author: Mark Larsen, mostly stolen
from Mark
Hammond's
Clarification: except for the memcache folder (which has its own
license in PKG-INFO) all the others were actually written specifically
by web2py users for web2py and are prt of web2py. they are under
contrib simply because they are add-on modules not on the same foot as
the core.
On Feb 18, 3:37
Please post a complete example so I can reproduce the problem. Also
give us more details about OS, web2py version and OS.
On Feb 18, 3:30 pm, greenpoise danel.sega...@gmail.com wrote:
I am still trying to solve my issue. The date picker shows up and when
I pick a date, it puts it in the text
Massimo,
I deleted my whole environment (folder), downloaded web2py, created a
new application, wrote this as my simplest test. This is the model I
used:
db.define_table('timesheet',
Field('employee',db.auth_user),
Field('DesdeFecha','date'),
Field('HastaFecha','datetime'))
This is an interesting idea. I am wondering if by doing this, we
can:
+ treat controllers as regular Python functions, which have
parameters.
+ implement some type of automatic type checking on request.args (e.g.
for int or string)
+ simplify redirect. For example, instead of
I am not sure if this is an appropriate thing for web2py to do, but I
think built-in support for images, mp3, videos, will be very good for
web2py.
On Feb 18, 8:09 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
onaccept you can call Python PIL or ImageMagik convert
On Feb 18, 6:56
This is great stuff! It is very similar to what I have been doing (fabric,
hg, ubuntu). We could definitely use more practical information about real
world deployments.
Hello list,
I am trying to wrap my mind around AJAX, and I would like to solicit
your advice. I have made something that can do real time (well... almost
:) ) log file monitoring, but I don't see how to implement it in the
most web2pythonic way possible.
In the controller I have a function
Did you write your own blogging app?
Hi everybody!! I have a new doubt, this time I'm trying to customize a
table generated by a search, this is what I have:
(Model)
db.define_table('category',
Field('name','string'),format='%(name)s')
db.define_table('book',
Field('name','string),
On 18 February 2011 22:11, pbreit pbreitenb...@gmail.com wrote:
Did you write your own blogging app?
Yes - when the code is a bit less embarrassing I'll put it up on
bitbucket...
On Feb 18, 10:17 pm, Tom Atkins minkto...@gmail.com wrote:
The site is built with web2py and there's an RSS feed to subscribe to.
I would subscribe to the feed but I can't seem to find it.
i have not used cursors directly. instead i use the DAL and sort on
timestamp usually. when i complete the task, i post a new task the the
queue with the last processed timestamp as an argument. Note that you will
still have to deal with items that have a duplicate timestamp, but i have
On 18 February 2011 22:52, cjrh caleb.hatti...@gmail.com wrote:
I would subscribe to the feed but I can't seem to find it.
I've added a link 'RSS Feed' to the menu.
There's also an auto discovery link in the head which is what I was relying
on:
link rel=alternate type=application/rss+xml
On Feb 18, 2011, at 2:52 PM, cjrh wrote:
On Feb 18, 10:17 pm, Tom Atkins minkto...@gmail.com wrote:
The site is built with web2py and there's an RSS feed to subscribe to.
I would subscribe to the feed but I can't seem to find it.
feed://knitatoms.net/feed.rss
I use this for helper functions.
On Fri, Feb 18, 2011 at 11:03 PM, VP vtp2...@gmail.com wrote:
This is an interesting idea. I am wondering if by doing this, we
can:
+ treat controllers as regular Python functions, which have
parameters.
+ implement some type of automatic type checking on
So odd...the capital letters did the trick...I changed my fields to
small caps and it worked.. AGH haaa..I am laughing now but I wasnt
before.. I did not know i couldnt write small caps, like i said, it
worked two days ago
Thanks
dan
On Feb 18, 1:59 pm, greenpoise danel.sega...@gmail.com
I mean, I did not know I couldnt name the fields using uppercase.
On Feb 18, 3:19 pm, greenpoise danel.sega...@gmail.com wrote:
So odd...the capital letters did the trick...I changed my fields to
small caps and it worked.. AGH haaa..I am laughing now but I wasnt
before.. I did not know
Hi,
I just upgraded to the latest stable version (1.92.1).
I believe the following is a bug (which did not occur in my previous
version):
If I have a SQLFORM.factory with a couple of tables that contain fields with
the same name but with writable=False, I now get the following error:
Hi,
I just upgraded to the latest stable version (1.92.1).
I believe the following is a bug (which did not occur in my previous
version):
If I have a SQLFORM.factory with a couple of tables that contain fields with
the same name but with readable=False, I now get the following error:
Hi,
Is it correct that the new routes automatically replaces underscores with
hyphens for URLs?.
print URL('a_b')/default/a-b
Thanks,
Carlos
On Feb 18, 2011, at 4:14 PM, Carlos wrote:
Is it correct that the new routes automatically replaces underscores with
hyphens for URLs?.
print URL('a_b')/default/a-b
Yes. However, if you set map_hyphen=False, this feature will be turned off.
Hyphen mapping is applicable only to the
Hi Jonathan,
Thanks for the clarification.
Carlos
Thanks both for the feedback. I think I'll just have to stay on top of
my DAL calls :O)
Paul.
On Feb 17, 7:15 pm, Marin Pranjic marin.pran...@gmail.com wrote:
It's because of pythons limitations in overloading operators.
You can change behavior of , |, ~ in python, but cannot change and, or,
Synchronous http makes the call and stops further execution until the
result is returned.
Async makes the call and optionally provides a callback so that
further code can be executed while waiting for the response. The way
ajax calls with in javascript, for example.
Seems like basic
Some modules can be installed under applications/yourapp/modules/ but
not all. ... This works only if the module being imported itself
does not rely on sys.path. Pygments does. It assumes there is only one
instance of pygments in a location listed in sys.path.
Anyway. web2py has syntax
Bruno,
Wow, it looks really good!
UBill
On Feb 18, 4:03 pm, VP vtp2...@gmail.com wrote:
This is an interesting idea. I am wondering if by doing this, we
can:
+ treat controllers as regular Python functions, which have
parameters.
+ implement some type of automatic type checking on request.args (e.g.
for int or string)
these
Can you post an example of code? I am not sure this is a bug, just
something that was never supported.
On Feb 18, 5:57 pm, Carlos carlosgali...@gmail.com wrote:
Hi,
I just upgraded to the latest stable version (1.92.1).
I believe the following is a bug (which did not occur in my previous
It is more complex than this. It is about two different models to
handle concurrency.
In one model you have one thread per request. Each request does IO
with the client within one thread. The web server creates and manages
the threads connects the thread to the web app (for example web2py)
via
Massimo,
Example:
(model)
f_active = Field('active', 'boolean', readable=False, writable=False)
db.define_table('table1', Field('text'), f_active)
db.define_table('table2', f_active)
(controller)
def test_controller(): return dict(form=SQLFORM.factory(db.table1,
db.table2))
(error)
I just had a site outage after deploying some code changes. Somehow, some of
my directories and files had become owned by root instead of www-data which
apparently denied some sort of access. I'm not exactly sure how it happens
and what the deal is with www-data.
I'm running Cherokee on
Thanks for the explanation Massimo. I figured it must be an issue with
python's architecture or something would have been added to the std
lib by now.
It's easy enough to simulate this behavior with ajax calls to
controllers from the client. Unfortunately since you can't rely on
javascript being
This is great. Is it possible to configure it so the user can select
multiple files at once instead of having to select one at a time?
On Friday, February 18, 2011 3:59:08 PM UTC-5, rochacbruno wrote:
Hi,
I am developing a new project on blouweb.com, and this client wanted
multiple file
Sort of
peculiar how a browser on the client's computer is more capable in
this area than a powerful web server.
If you need async calls you can take a look at gevent, eventlet or twisted
But put in your mind the main difference:
the browser is running continuously (until you close it),
94 matches
Mail list logo