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 'parent_organisation'
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.dmg&can=1&q=python+os+x)
> has
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.
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 Str
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.dmg&can=1&q=python+os+x)
has custom_import re-run on each request, but the new vers
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 that
On views/layout.html you have to include/ or replace the code that loads
jquery-ui theme
Change it for your downloaded
theme
This *{{=URL('static', 'css', 'jquery-ui.custom.css')}} is your jquery ui
theme under /static/css/*
On Mon, Nov 14, 2011 at 12:45 AM, tomt wrote:
> Hi,
>
> I'm lo
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
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 dict(redirect(URL('error','in
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 i
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.contr
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 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 dependancy.
>
> I live in
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
auth.setti
> 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
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
Hi Tim,
it depends on your level of expertise in both Oracle and Python.
On Nov 12, 9:55 am, Tim Korb 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 need to turn of
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 CONSTA
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 wrote:
> Still trying to solve this any ideas are welcome *cheers
>
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 options
which database engine?
http://zerp.ly/rochacbruno
Em 13/11/2011 22:38, "Archibald Linx" escreveu:
> 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" escreveu:
> Hi!
> I've recently updated my GAE SDK to
Dear Web2py users,
How can I reset the database of my Web2py project ?
Thanks,
Archibald
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" escreveu:
> Hi,
>
> I have nothing set in my model at all for migra
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
can you show your complete model¿ where are you creating Auth instance?
http://zerp.ly/rochacbruno
Em 13/11/2011 02:52, "Jimmy Stewpot" 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 packing of my app
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 wrote:
> Hi Michele!
>
> Thanks for your answer! How can I override OAuthAccount subclass putting
> http_host as a fixed?
>
> I'm doing:
> class FaceBook
Has anybody integrated dropbox login with web2py?
If so, would you share the code? It could go in the book v4.
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" escreveu:
> 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
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";
TOKEN_URL="https://graph.facebook.com/oauth/a
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"
To: web2py@googlegroups.com
Sent: Sunday, 13 Nov
It in chapter 3 of the book.
On Nov 13, 1:48 pm, Web2Py Freak 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 ??
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 wrote:
> None of the above work guys.
>
> If I tar the folder and go through the install on the admi
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 :
> bare ajax does not work with multipa
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 serve
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.
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 w
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 a
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 ??
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
http://zerp.ly/rochacbruno
Em 13/11/2011 13:49, "Jonathan Lundell" escreveu:
>
> On Nov 13, 2011, at 2:16 AM, Bruno Rocha wrote:
>
> > I just tested this:
> >
> > routes_in = (
> > ('/(?Partigos|articulos|artiklid)', '/myapp/default/articles'),
> > )
> > routes_out = (
> > ('/myapp/default/art
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 co
http://www.oreillyschool.com/certificates/python-programming.php
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 contro
On Sun, 13 Nov 2011 07:55:44 -0800 (PST)
Massimo Di Pierro
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 tinker with Django and he
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 tha
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 wrote:
> On Sat, 12 Nov 2011 06:46:18 -0800 (PST)
> Michael Ellis
> wrote:
>
> > Thanks, Gour. It's a nice looking framework and seems to be well-
> > designed.
I think this should be be fixed in both stable and trunk.
On Nov 12, 10:38 am, Tito Garrido 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 SSL. Do
The "columns" argument will not be in web2py stable. Use fields
instead.
On Nov 12, 9:11 am, Cliff wrote:
> Here is a better way to do it, though:
>
> links = [ lambda row:
> A(
> SPAN(_class='icon plus'),
> SPAN(_class='buttontext button',
>
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 wrote:
> if apis are so broken shouldn't we just use hg commands directly (like
> hgeclipse did?)
>
>
>
>
>
>
>
> On Fr
On Nov 13, 2011, at 2:16 AM, Bruno Rocha wrote:
> I just tested this:
>
> routes_in = (
> ('/(?Partigos|articulos|artiklid)', '/myapp/default/articles'),
> )
> routes_out = (
> ('/myapp/default/articles', '/(?Partigos|articulos|artiklid)'),
> )
>
>
> it works, but I can't receive args and v
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 wrote:
> This is the final model after following given suggesstion by
Are you using trunk or stable? Can you try trunk?
On Nov 11, 10:48 pm, Sathvik Ponangi 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 last):
>
> > File
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 request.env.http
Dear All,
Is it possible to have multiple uploads for on Field ??
Best Regards,
Hassan Alnatour
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()))
Try
db.table_settings.members.default = [auth.user.email]
if the field is a list: it expects a Python list as value
--
Bruno Rocha
[http://rochacbruno.com.br]
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
Thanks. That did the trick.
I'd like to understand though what special characters? Isn't the id just a
number?
I just tested this:
*routes_in = (
> ** ('/(?Partigos|articulos|artiklid)', '/myapp/default/articles'),
> **)**
> **routes_out = (
> ** ('/myapp/default/articles', '/(?Partigos|articulos|artiklid)'),
> **)*
it works, but I can't receive args and vars, I am missing some wildcard to
match args/
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*
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:
61 matches
Mail list logo