Again at Webfaction my memory usage is way over my limit:
Below is the list of processes that you're running with the memory
that they use (the command used to list these processes is ps -u
fitwise -o rss,etime,pid,command):
User - Memory - Elapsed Time - Pid - Command:
Hi,
I was playing a lot with routes, router and rewrite.py to reach url
rewriting for translation but I am missing something.
I have a controller:
# *default*.py
*def articles():
from handlers import articles*
* response.view = articles.views['list']*
* return articles.list*
I just tested this:
*routes_in = (
** ('/(?Pappartigos|articulos|artiklid)', '/myapp/default/articles'),
**)**
**routes_out = (
** ('/myapp/default/articles', '/(?Pappartigos|articulos|artiklid)'),
**)*
it works, but I can't receive args and vars, I am missing some wildcard to
match
Thanks. That did the trick.
I'd like to understand though what special characters? Isn't the id just a
number?
Hi all,
Another quick question:
I want to add a user's email by default to a list:string in my db.
So I did the following:
db.table_settings.members.default = auth.user.email
Obviously that didn't work. Sending table_settings to Crud generated a list
with each of the elements being 1 character
Try
db.table_settings.members.default = [auth.user.email]
if the field is a list:something it expects a Python list as value
--
Bruno Rocha
[http://rochacbruno.com.br]
Hi Massimo,
Following code snippet comes from gluon/tools.py 's line 3029~3030.
elif not request.extension in ('html','load'):
raise HTTP(401)
I suggest to change it into:
elif not request.extension in ('html','load'):
raise HTTP(401, str(form.errors()))
Dear All,
Is it possible to have multiple uploads for on Field ??
Best Regards,
Hassan Alnatour
Dear Annet,
I had the same problem as you Remember but there is one thing that was
helpful to me ,
First : i am using now one application for all my websites .
second : i prepared the welcome app to be like a router and its
working fine
in welcome/default.py:
def index():
if
Are you using trunk or stable? Can you try trunk?
On Nov 11, 10:48 pm, Sathvik Ponangi psath...@gmail.com wrote:
Hi!
I've recently updated my GAE SDK to v1.6.0 and I'm getting this error on
every subsequent call to the server (It works the first time though):
Traceback (most recent call
You have this
db.tblDriver.id_tblVehicle.requires=IS_IN_DB(db,'tblVehicle.id'),
This statement is optional. Its presence overrides the default
formatting.remove this line its is not needed.
On Nov 12, 12:09 am, Naleen Yadav naleenya...@gmail.com wrote:
This is the final model after following
On Nov 13, 2011, at 2:16 AM, Bruno Rocha wrote:
I just tested this:
routes_in = (
('/(?Pappartigos|articulos|artiklid)', '/myapp/default/articles'),
)
routes_out = (
('/myapp/default/articles', '/(?Pappartigos|articulos|artiklid)'),
)
it works, but I can't receive args and vars,
That's an option but hard to make portable. Anyway, it works now and I
am about to use it for a project so likely I will work into this some
more.
On Nov 12, 5:05 am, Phyo Arkar phyo.arkarl...@gmail.com wrote:
if apis are so broken shouldn't we just use hg commands directly (like
hgeclipse
The columns argument will not be in web2py stable. Use fields
instead.
On Nov 12, 9:11 am, Cliff cjk...@gmail.com wrote:
Here is a better way to do it, though:
links = [ lambda row:
A(
SPAN(_class='icon plus'),
SPAN(_class='buttontext
I think this should be be fixed in both stable and trunk.
On Nov 12, 10:38 am, Tito Garrido titogarr...@gmail.com wrote:
Is it already fixed?
On Thu, Sep 22, 2011 at 9:04 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Dirk and I ran some tests. 1.99.1 broke rocket with
this will be the top priority after web2py 2.0 is released and the
book 4th edition. By the end of November.
On Nov 12, 11:22 am, Gour g...@atmarama.net wrote:
On Sat, 12 Nov 2011 06:46:18 -0800 (PST)
Michael Ellis michael.f.el...@gmail.com
wrote:
Thanks, Gour. It's a nice looking
On Sunday, November 13, 2011 6:54:10 AM UTC-5, tsvim wrote:
Thanks. That did the trick.
I'd like to understand though what special characters? Isn't the id just a
number?
The final URL won't have any special characters, but the URL you pass as
the 'next' argument has placeholders that
On Sun, 13 Nov 2011 07:55:44 -0800 (PST)
Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
this will be the top priority after web2py 2.0 is released and the
book 4th edition. By the end of November.
you've made my day, Massimo!!
That's great to hear.
I must confess that when I started to
None of the above work guys.
If I tar the folder and go through the install on the admin interface, it
works with no problem.
But if I drop the folder in, web2py will not see it. I've tried restarting.
I have chown-ed it and chmod-it.
Nothing seems to work.
The application is under source
http://www.oreillyschool.com/certificates/python-programming.php
The book says:
*Please note:* Because Ajax post does not support multipart forms, i.e. file
uploads, upload fields will not work with the LOAD component. You could be
fooled into thinking it would work because upload fields will function
normally if POST is done from the individual
http://zerp.ly/rochacbruno
Em 13/11/2011 13:49, Jonathan Lundell jlund...@pobox.com escreveu:
On Nov 13, 2011, at 2:16 AM, Bruno Rocha wrote:
I just tested this:
routes_in = (
('/(?Pappartigos|articulos|artiklid)', '/myapp/default/articles'),
)
routes_out = (
On Nov 13, 2011, at 11:07 AM, Bruno Rocha wrote:
Here's an alternative, though. I think it might work. In your controller,
do something like this:
def articles():
whatever
artigos = articles
articulos = articles
artiklid = articles
it does not works. to work need to be
Dear All,
can anyone give me an example of using Rss in web2py ? and how can i
control things in it ? what dose it return ??
Thanks for the explanation.
Taking this explanation I tried forwarding the id of the record to a
onaccept action using the same logic you applied using %(id)s as an
argument to the function. Again I seem to be missing something.
How can I pass the record's id to the onaccept action?
Thanks
bare ajax does not work with multipart forms. there are ways around
this and libraries to work around the problems. An example if
jquery.forms.js. There is a web2pyslice on how to do do it. I have
opposed to include it in web2py because I do not tink it belongs
there.
On Nov 13, 12:33 pm, apple
I have the rough beginnings of one based on a mercurial python script
someone did. Needs a lot of love but if you are interested I will find it.
I think is uses an MIT standalone script.
Hi Tito,
When you call the server from browser do you put the hostname?
I guess there is a problem with wsgi implementation on fluxflex.
The oauth20_account.py module contains the following method:
def __redirect_uri(self, next=None):
Build the uri used by the authenticating server
Gmail does it or used to do it with some flash trick also... bad thing.
jquery.forms.js happens to give problems when loading other js modules
depending on the order of loading, so it is correct not to include it
in web2py.
mic
2011/11/13 Massimo Di Pierro massimo.dipie...@gmail.com:
bare ajax
There are only two possibilities:
- the folder contains invalid chars in the name, for example a space
- you are putting in the wrong place, goes under applications/
On Nov 13, 11:17 am, petrasadi petras...@gmail.com wrote:
None of the above work guys.
If I tar the folder and go through the
It in chapter 3 of the book.
On Nov 13, 1:48 pm, Web2Py Freak halna...@gardeniatelco.com wrote:
Dear All,
can anyone give me an example of using Rss in web2py ? and how can i
control things in it ? what dose it return ??
Hi,
I have nothing set in my model at all for migrate so I assume that it's True by
being ommited.
It has got me stumped.. I have not had problems like this in the past with my
previous testing.
- Original Message -
From: Bruno Rocha rochacbr...@gmail.com
To: web2py@googlegroups.com
Hi Michele!
Thanks for your answer! How can I override OAuthAccount subclass putting
http_host as a fixed?
I'm doing:
class FaceBookAccount(OAuthAccount):
OAuth impl for FaceBook
AUTH_URL=https://graph.facebook.com/oauth/authorize;
I am going to test the trick in models. it is useful to create /username
services.
http://zerp.ly/rochacbruno
Em 13/11/2011 17:21, Jonathan Lundell jlund...@pobox.com escreveu:
On Nov 13, 2011, at 11:07 AM, Bruno Rocha wrote:
Here's an alternative, though. I think it might work. In your
Has anybody integrated dropbox login with web2py?
If so, would you share the code? It could go in the book v4.
I've been reading a little bit and seems that I won't be able to override a
private function :-/
On Sun, Nov 13, 2011 at 9:33 PM, Tito Garrido titogarr...@gmail.com wrote:
Hi Michele!
Thanks for your answer! How can I override OAuthAccount subclass putting
http_host as a fixed?
I'm doing:
can you show your complete model¿ where are you creating Auth instance?
http://zerp.ly/rochacbruno
Em 13/11/2011 02:52, Jimmy Stewpot mail...@oranged.to escreveu:
Hello,
I have been playing around with web2py for about a month.. I have
finally got to the point where I wanted to test the
On Nov 13, 2011, at 3:38 PM, Bruno Rocha wrote:
I am going to test the trick in models. it is useful to create /username
services.
The reason this works (if it works) is that the existing dispatch code runs the
models before it looks at request.controller to choose the controller. So
as you are using mysql. try to delete everything you has in /databases
folder (the .table files) backup it.
then try again with table definitions and migrate=True
http://zerp.ly/rochacbruno
Em 13/11/2011 21:33, Jimmy Stewpot mail...@oranged.to escreveu:
Hi,
I have nothing set in my model at
Dear Web2py users,
How can I reset the database of my Web2py project ?
Thanks,
Archibald
note that if have syntax error in your module. the custom importer will
raise the ImportError
are you sure your module has only code compatible with py2.5 ?
it works locally?
http://zerp.ly/rochacbruno
Em 12/11/2011 02:49, Sathvik Ponangi psath...@gmail.com escreveu:
Hi!
I've recently
which database engine?
http://zerp.ly/rochacbruno
Em 13/11/2011 22:38, Archibald Linx archibaldl...@gmail.com escreveu:
Dear Web2py users,
How can I reset the database of my Web2py project ?
Thanks,
Archibald
Is there a recommended or best practice in the community for storing
settings/configs for a web2py app? For example the location of a web service
the app is dependent and authentication details that would no be specific to
the end user? Database, pickled object seem like they may be good
Hello just wondering if some one can help with this, still having no luck.
Would appreciate any help *cheers
On Fri, Nov 11, 2011 at 7:02 PM, Andrew Evans andrew.rusty...@gmail.comwrote:
Still trying to solve this any ideas are welcome *cheers
I was thinking a lot about this, I ended keeping my configurations in a
separate SQLITE database (because I will also run on GAE and it is easy to
change to datastore namespace)
Also I tested other options.
The better is a plan Python *.py file *located in /modules or /models you
can store
Hi Tim,
it depends on your level of expertise in both Oracle and Python.
On Nov 12, 9:55 am, Tim Korb jtk...@gmail.com wrote:
We are considering using Web2Py as one of the front ends for a departmental
database project based on Oracle. Since the Oracle database is
independently managed, we
onaccept is supposed to be a function that takes a form object. I suppose
you can also pass a URL to it. Show some code -- what are you trying to do?
On Sunday, November 13, 2011 2:52:34 PM UTC-5, tsvim wrote:
Thanks for the explanation.
Taking this explanation I tried forwarding the id of
I think you should host the plugins at your site and if you can provide a
.json for accessing the plugins information it will be included from your
index to web2pyslices in future.
Thanks for the information. I'm looking forward to the new site:)
Kenji
On 11月12日, 午後12:51, Bruno Rocha
I added some dropbox support (needs improvement)
in your model
from gluon.contrib.login_methods.dropbox_account import use_dropbox
use_dropbox(auth,filename='private/dropbox.key')
and private/dropbox.key shoud contain: key:secret:access_type
After connection the client object is in
Thanks a lot I live in Venezuela and that's the format I need
Thanks for your help
On Nov 8, 10:12 am, Vinicius Assef vinicius...@gmail.com wrote:
No. I said probably you're using format() in a version it is not
supported yet. But I'm not sure about it.
I never lay on server locale
That worked very very well!
I created a file in /models (rewrite.py)
*routes = {
**default: default,
**articles: articles,
**inicio: default,
**artigos: articles,
**principal: default,
**articulos: articles,
**}**
**
**request.controller =
Hi,
I'm looking for an example of how to install and use a jquery theme
for SQLFORM.grid
I see that I can implement jquery-ui by defining:
form = SQLFORM.grid(query=db.table.field=='3',ui='jquery-ui')
I see that I can download a theme from http://jqueryui.com/download
but I don't know where to
Just to note my code looks like this:
@auth.requires_login()
def xreflection():
game_id = request.args(0)
reflection_id = request.args(1)
if reflection_id == None:
return dict(redirect(URL('error','invalid')))
if game_id == None:
return
trunk appears to be just as broken. if i go back to the old way of
importing modules:
from applications.myapp.modules.mymodule
it appears to work.
i'm going to see if i can make sense of what is going on
christian
On views/layout.html you have to include/ or replace the code that loads
jquery-ui theme
!-- uncomment here to load jquery-ui
link rel=stylesheet href=
http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css;
type=text/css media=all /
script src=
CSS files typically go in your app's /static/css folder, and you then have
to make sure the CSS file gets linked in the page head (like any other CSS
file). An easy way to include the CSS file is to do:
response.files.append(URL('static', 'cs/your_theme_file.css'))
in the controller action
ok, i did a little digging and this is quickly out of my current realm of
understanding.
it seems that the older SDK
(http://code.google.com/p/googleappengine/downloads/detail?name=GoogleAppEngineLauncher-1.5.5.dmgcan=1q=python+os+x)
has custom_import re-run on each request, but the new
I added
gluon/contrib/stripe.py
it provide a minimalist support for stripe.com payment processing
1) get an account with stripe.com
2) activate by giving them your bank account info
3) get a key (looks like a t9uy97gg787yuUYuyf878fljhfuy67)
4) in web2py:
from gluon.contrib.stripe import
google code allows '-' but web2py will not see an application with '-' in
it:
So
my-app will not show up in Web2py but my_app will.
On Nov 13, 2011, at 7:45 PM, howesc wrote:
ok, i did a little digging and this is quickly out of my current realm of
understanding.
it seems that the older SDK
(http://code.google.com/p/googleappengine/downloads/detail?name=GoogleAppEngineLauncher-1.5.5.dmgcan=1q=python+os+x)
has
I have used the columns-argument to set the display columns and the
'fields' argument to define the search fields for the search function.
I only wanted to display 2 columns of a table but about 15 fields to be
searchable eg. '* parent_organisation contains america'.*
Now if
61 matches
Mail list logo