Seems very interesting, I would like to use it!
Regards, Martin
2011/5/13 Bruno Rocha rochacbr...@gmail.com
HI,
I am not very satisfied with Janrain, so I started a search for a different
solution, I already tried SimpleAuth but it is not finished yet.
I guess I found a better solution
I wonder if we'd be better off with direct twitter and Facebook integrations.
Do we really need all those other ones?
Good to hear. I currently think ubuntu + nginx + uWSGI is the best setup but
Cherokee is good too.
The better things are the widgets, i.e: 'invite your friends, chat etc..
take a look; http://developers.gigya.com/040_Demos
On Fri, May 13, 2011 at 3:46 AM, pbreit pbreitenb...@gmail.com wrote:
I wonder if we'd be better off with direct twitter and Facebook
integrations. Do we really need all
https://github.com/kennethreitz/tablib
Tablib: format-agnostic tabular dataset library
headers = ('first_name', 'last_name')
data = [
('John', 'Adams'),
('George', 'Washington')
]
data = tablib.Dataset(*data, headers=headers)
Exports
Drumroll please...
JSON!
print
docs
http://docs.tablib.org/en/latest/index.html
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Fri, May 13, 2011 at 4:13 AM, Bruno Rocha rochacbr...@gmail.com wrote:
https://github.com/kennethreitz/tablib
Tablib: format-agnostic tabular dataset library
headers =
I didn't find their prices?
2011/5/13 Bruno Rocha rochacbr...@gmail.com
The better things are the widgets, i.e: 'invite your friends, chat etc..
take a look; http://developers.gigya.com/040_Demos
On Fri, May 13, 2011 at 3:46 AM, pbreit pbreitenb...@gmail.com wrote:
I wonder if we'd be
so what about fixing this issue?
should i create a issue on gcode?
This came to my attention when one of my users complained about an entry
form using the autocomplete widget frustrates her. When i checked I saw the
following when using Internet Eplorer:
As soon as the autocomplete widget shows up on the screen you cannot type
any longer in the field and when
Good day!
Is there a way to select rows from db if I have a list of id?
For example, there is a list [50, 45, 32, 11] and I want to make
selection by this list and save the result in one object.
How can I do that?
I tried:
id_list = [50, 45, 32, 11]
id_list = [50, 45, 32, 11]
rows=db(dv.autos.id.belongs(id_list)).select()
pbreit,
As you say, wherever possible or required, I have already denormalized
the table-structures.
Apart from normalization / denormalization issue, in many other forms,
I need to insert/update/delete records in multiple tables from one
form.
(as I mentioned earlier, there will be a mix of
very nice, just what i need, does it import xls too? xlsx even?
On May 13, 9:24 am, Bruno Rocha rochacbr...@gmail.com wrote:
docshttp://docs.tablib.org/en/latest/index.html
--
Bruno Rocha
[ About me:http://zerp.ly/rochacbruno]
On Fri, May 13, 2011 at 4:13 AM, Bruno Rocha
Hmm...
Very nice! It works perfectly. As a matter of fact it was very easy.
Thank you Vasile.
**
On 13 май, 13:41, Vasile Ermicioi elff...@gmail.com wrote:
id_list = [50, 45, 32, 11]
https://py3ksupport.appspot.com/metrics/poll_count
Is this a particular IE version? Do you know if it works with 7 and 8?
I have no easy way of testing it.
have you upgraded the jquery version?
On May 13, 3:29 am, Johann Spies johann.sp...@gmail.com wrote:
This came to my attention when one of my users complained about an entry
form using the
On 13 May 2011 15:19, Massimo Di Pierro massimo.dipie...@gmail.com wrote:
Is this a particular IE version? Do you know if it works with 7 and 8?
I have no easy way of testing it.
have you upgraded the jquery version?
I don't know which version the user was using but I have tested it on IE8
The poll itself is in the top of the right sidebar on http://www.python.org--
you have to enter the name of the Python package (e.g., web2py) and
click Vote.
On Friday, May 13, 2011 9:16:54 AM UTC-4, Massimo Di Pierro wrote:
https://py3ksupport.appspot.com/metrics/poll_count
On Friday, May 13, 2011 4:24:24 AM UTC-4, mweissen wrote:
I didn't find their prices?
It just says Contact Sales -- that makes me think it's expensive.
Hi,
I use a lot of ajax requests to get data asynchronously but each
requests are heavy to handle on server side.
Indeed, when web2py receive an ajax request, it process :
- web2py python core files
- ...
- db.py
- controller.py
The result is that for each ajax requests one CPU is taken at
I had problems with AutoComplete when we changed the layout and I
opened an issue on google code (issue 193 -- still open).
I didn't try it again since, but at that time, this was definitely
CSS related and this could be proven simply by switching the old and
new layout files. I made some
Tornado is Python and very lightweight.
On May 13, 9:59 am, Alexandre Strzelewicz
strzelewicz.alexan...@gmail.com wrote:
Hi,
I use a lot of ajax requests to get data asynchronously but each
requests are heavy to handle on server side.
Indeed, when web2py receive an ajax request, it process
What is the most elegant solution to this problem:
I have a form for address information in an ecommerce application.
The user can optionally input a different delivery address - this is done
via radio button.
In this case the requirement for the delivery address fields change -
nothing special
Why tie yourself to a third party provider? Maybe direct integration
with sites like Facebook and Twitter is the best direction.
On May 13, 1:08 am, Bruno Rocha rochacbr...@gmail.com wrote:
HI,
I am not very satisfied with Janrain, so I started a search for a different
solution, I already
I tried the following with the test server and it works
In crontab:
55 07 * * * root * default / limpiar_eventos
In the default controller
def limpiar_eventos ():
totalFilas = db (db.auth_event.id 0). count ()
totalFilas if 30:
for row in db (db.auth_event.id 0). select (limitby
On Fri, May 13, 2011 at 1:11 PM, Stodge sto...@gmail.com wrote:
Why tie yourself to a third party provider? Maybe direct integration
with sites like Facebook and Twitter is the best direction.
I am not talking about only Auth, this provides some widgets
http://developers.gigya.com/040_Demos
Do you have those spaces in there? The cron line should be:
55 07 * * * root *default/limpiar_eventos
Are you able to run the function in your browser?
http://127.0.0.1:8000/myapp/default/limpiar_eventos
On Fri, May 13, 2011 at 10:59 AM, Alexandre Strzelewicz
strzelewicz.alexan...@gmail.com wrote:
Hi,
I use a lot of ajax requests to get data asynchronously but each
requests are heavy to handle on server side.
Indeed, when web2py receive an ajax request, it process :
- web2py python core
It's possible that onvalidation needs go in crud.create?
response.flash = 'form accepted' should be indented but I don't think that's
the problem.
web2py http://pypi.python.org/pypi/web2py
This project *might or might not* support Python 3 .
The latest release is 1.95.6 with 0 downloads, at a rate of 0.0/day. The
largest release is 1.94.6 with 217 downloads.
On Fri, May 13, 2011 at 10:39 AM, Anthony abasta...@gmail.com wrote:
The poll
Does web2py support Python 3?
That doesn't sound right. It's just an extra page view so should be
relatively easy to handle. But I can see if you have several LOAD()s on most
pages, that could triple or qudruple the load for the same number of
visitors. But my old Mac barely breaks a sweat with several loads on a page.
That could be cool I guess. But you still have to program to an API so might
as well be to the source.
Forget about it! This is really cool, I love the widgets but they are crazy!
Gigya service cost for more than 1000 unique visitors/authentications per
month is $15,000 per year
$15,000?!?!? They are freaking insane. Most web sites prolly don't even pull
that in profit a yearall just to login to a site with a Facebook/Twitter
account? Web2py should prolly have its own auth method in that case.
On Friday, May 13, 2011 12:10:58 PM UTC-4, ma...@rockiger.com wrote:
def address():
crud.messages.submit_button = 'Weiter zur Bestätigungsseite'
crud.settings.formstyle='table2cols'
form = crud.create(db.customer)
if form.accepts(request.vars, session,
http://127.0.0.1:8000/myapp/default/limpiar_eventos work fine in
cherokee web server,
and crontab work fine in web2py´s server but not in cherokee web
server.
On 13 mayo, 10:08, pbreit pbreitenb...@gmail.com wrote:
Do you have those spaces in there? The cron line should be:
55 07 * * * root
If you want to do anything fancy with the form, you may be better to
use SQLFORM. It is also convenient to use and gives more flexibility.
If you want to do any helpful processing on the client-side, you
should try javascript, see Ajax Recipes in the book.
On May 13, 5:10 pm,
gevent and uwsgi beats tornado, gevent even beats node.js :)
proof of what I said
http://nichol.as/benchmark-of-python-web-servers
and read comments of this article
http://entitycrisis.blogspot.com/2011/04/pyramid-vs-nodejs_08.html
Thank, I will try this tomorow morning.
Yeah, but server side is needed too :)
If you are interested in the new import-optimizitation-app
check the new entry of my blog:
http://martin.tecnodoc.com.ar/default/post/2011/05/13/20_optimize-your-web2py-app-using-the-new-import-method
2011/5/13 Alexandre Strzelewicz strzelewicz.alexan...@gmail.com
Hi,
I use a lot of ajax
What is illegal?
If you havve to come to Germany use:
http://www.mitfahrgelegenheit.de/
Not illegal and widely used.
Safe trips to anyone!
I doubt it's a Cherokee problem. Do you have a crontab set up on your
server?
For example, this is what I have in my unix crontab (not web2py crontab).
Cron is still a little confusing to me.
MAILTO=c...@myserver.com
0-59/1 * * * * cd /var/web2py python web2py.py -C -D 1 /dev/null 21
Pricing by an accountant, no offence to accountants - hmm 1000 people that's
only $15/year per person I am sure is someone's way of thinking. I might see
a mid size company going for it if they wanted to outsource authentication.
Too much for my pockets. :-)
Good writeup, thanks, Martin.
The things that still confuse me are:
1) when and why to user current
2) where to put imports. since in Python we've always been told to put
them at top of file. But it looks like they need to go in the def function()
in order to not be loaded when other functions
No , only in web2py, not in cherokee.
Where I write this code?
0-59/1 * * * * cd /var/web2py python web2py.py -C -D 1 /dev/null
21
On 13 mayo, 15:02, pbreit pbreitenb...@gmail.com wrote:
I doubt it's a Cherokee problem. Do you have a crontab set up on your
server?
For example, this is what
I don't really understand how the web2py cron an external cron work
together. I have a crontab in my application cron folder that appears to run
when I'm running web2py on my Mac.
But on my server, I have a regular crontab file (set up with sudo -u
www-data crontab -e) that executes web2py to
Actually I'm looking at my cron right now and am pretty confused. Does
anyone know how external cron works exactly?
In my /etc/crontab, I have:
0-59/1 * * * * cd /var/web2py python web2py.py -C -D 1 /dev/null 21
In /var/web2py/applications/init/cron/crontab, I have:
*/6 * * * * root
This isn't fool-proof, though, right? Since anyone could add a cid arg to
the URL?
I just ran into a security problem where a component is revealing a whole
auth_user record!
See: http://pricetack.com/components/order_summary/1
How do I close up this problem? Do I need to specify the only
I just ran into a security problem where a component is revealing a whole
auth_user record!
See: http://pricetack.com/components/order_summary/1
What is the preferred way to avoid this? I could specify individual fields
in my select(). There was a recommendation to decorate the component with
I am trying to use the web2py profiler (which I haven't used before).
I tried starting web2py with the -F option and a filename, and I get
the following error:
ImportError: No module named pstats
Any ideas on why it isn't working? I couldn't find any documentation
for the profiler feature other
It looks like one solution is to get rid of the generic.load file. And I'm
thinking that I don't want any of the generic.* files in production.
Now I am wondering if I should just have crontab wget my cron functions into
dev/null?
0-59/1 * * * * wget http://localhost/myapp/cron/cronjob /dev/null 21
Seems kinda lo-tech. Will this cause any problems?
I closed up the hole so you won't see the problem anymore. But I feel like a
need to rigorously review further potential problems.
On Friday, May 13, 2011 7:37:29 PM UTC-4, pbreit wrote:
This isn't fool-proof, though, right? Since anyone could add a cid arg to
the URL?
You're right, I don't think checking for request.cid is fool-proof, but it's
not as easy as adding a cid argument to the URL (it checks for the
Since we can no longer see the problem, can you explain it in more detail?
On Friday, May 13, 2011 8:47:40 PM UTC-4, pbreit wrote:
I closed up the hole so you won't see the problem anymore. But I feel like
a need to rigorously review further potential problems.
Hello all,
I'm absolutely new to web2py and I'm trying to build an app to let web
users explore data views (ordering columns, search for content,
paginating rows) and have crud operations on specific tables (one or
more at the same time). I've checked out WebGrid for web2py or jqgrid,
but every
Hello:
I am using plugin_mmodal to show a html form. This html form shows a
database table which has two datatime fields.
When plugin_mmodal loads this html form and you clicks in a datetime field,
calendar widget is not showed.
This bug is caused by an inconsitence css parameter: z-index.
I am trying to pass request.args(0) to sqlform so it adds an entry when
submitted based on the project_id value any ideas?
my database code
db.define_table('tasks',
Field('userinfo', db.auth_user, default=auth.user_id, readable=False,
writable=False),
Field('project_id', db.project,
I think I figured out how to make it work, but I don't know if it breaks
anything. In conjunction with the change above, I also did this:
Changed custom_import.py line 49 from:
return self.std_python_importer(name, globals, locals, fromlist, level)
To this:
if sys.version_info[:2] == (2, 4):
If you access a component without the .load extension, it automatically
uses the generic.load view which is a BEAUTIFY of all the returned data.
So since my data included an auth_user record, all the auth_user fields were
displayed in the browser window, including the password (encrypted, but
hi,
i've just followed Post preview like you have in blogs. on
http://www.web2pyslices.com/main/slices/take_slice/90
model:
db.define_table('post',
Field('body',
'text'
)
)
controller:
def index():
posts =
I think this will do it:
def add_task():
form = SQLFORM(db.tasks)
form.vars.project_id = request.args(0)
if form.accepts(request.vars, session):
...
If you're going to do it in the view, you need some {{pass}} statements to
close up the for and the if blocks.
Should passwords be salted? I get nervous when I look at my data and the
same password encrypts to the same hash. How would I do that with CRYPT()?
On Friday, May 13, 2011 9:47:41 PM UTC-4, pbreit wrote:
If you access a component without the .load extension, it automatically
uses the generic.load view which is a BEAUTIFY of all the returned data.
So since my data included an auth_user record, all the auth_user fields were
displayed
it's my fault, thank you so much for corrected me pbreit.
On Sat, May 14, 2011 at 10:16 AM, pbreit pbreitenb...@gmail.com wrote:
If you're going to do it in the view, you need some {{pass}} statements to
close up the for and the if blocks.
Hello!
Recently a customer bought a hosting plan (business) with hostgator.
I'm developing for him a web2py application, I have doubts of how to
deploy it. Somebody can help me? The application runs well in
localhost (ubuntu).
Thanks in advance
in the user registration process
the system take the following email as a user
different
use...@hotx.com
use...@hotx.com
this sharing is not to my liking.
I think it would be appropriate to add the email Requires
IS_LOWER the option ()
I would agree that email addresses should be handled as case-insensitive by
default. The IS_LOWER() validator works when registering but I'm not sure
what to do when logging in.
Maybe have a look here:
https://groups.google.com/d/topic/web2py/h8uLiDCerx0/discussion
But I would definitely recommend Webfaction or Ubuntu in the cloud. Zero
reason to mess around with lousy hosting providers.
Yeah, it looks like it is the generic.html file. Probably this loophole
should be closed by default. Perhaps it could check if it's on localhost or
something.
I was just returning someone's first name but the record included all
auth_user fields.
I am developing a web2py app that uses a third party python module that only
works on Python 2.4.4. Basically, we are using we2py as a front end for an API.
Since recently updating to trunk, I noticed that several things didn't seem to
work anymore. I submitted patches to Massimo and he told me
I'm curious why you are not able to move to a new version. I'm also curious
why obfuscating the code is a requirement.
Both of these requirements are exceedingly rare so I think we need to
understand what the situation is that leads to these requirements so that we
can evaluate reasonably.
Hi,
I just created a new web2py group on facebook here:
http://www.facebook.com/home.php?sk=group_107564079311060
http://www.facebook.com/home.php?sk=group_107564079311060you can also
publish there bys ending a mail to web...@groups.facebook.com
web...@groups.facebook.comweb2pyslices 2.0 is
76 matches
Mail list logo