[web2py] Removal of 'columns' in grid/smartgrid creates problems for search function

2011-11-13 Thread Johann Spies
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'

Re: [web2py] Re: ImportError with AppEngine SDK v1.6.0

2011-11-13 Thread Jonathan Lundell
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

[web2py] Re: application installation problem

2011-11-13 Thread Christopher Steel
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.

[web2py] stripe.com support

2011-11-13 Thread Massimo Di Pierro
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

[web2py] Re: ImportError with AppEngine SDK v1.6.0

2011-11-13 Thread howesc
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

[web2py] Re: help please on adding jquery-ui theme to SQLFORM.grid

2011-11-13 Thread Anthony
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

Re: [web2py] help please on adding jquery-ui theme to SQLFORM.grid

2011-11-13 Thread Bruno Rocha
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

[web2py] Re: ImportError with AppEngine SDK v1.6.0

2011-11-13 Thread howesc
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

Re: [web2py] Re: Random Selection Issue

2011-11-13 Thread Andrew Evans
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

[web2py] help please on adding jquery-ui theme to SQLFORM.grid

2011-11-13 Thread tomt
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

Re: [web2py] Re: need help for rewrite on routes.py

2011-11-13 Thread Bruno Rocha
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

[web2py] Re: Numbers Format

2011-11-13 Thread Franklin Freitas
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

[web2py] Re: dropbox python api

2011-11-13 Thread Massimo Di Pierro
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

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-13 Thread kenji4569
> 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

[web2py] Re: Passing the newly created record's id to another function in the controller

2011-11-13 Thread Anthony
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

[web2py] Re: Using web2py with a non-managed Oracle database

2011-11-13 Thread DenesL
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

Re: [web2py] web2py store config/properties best practice

2011-11-13 Thread Bruno Rocha
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

Re: [web2py] Re: Random Selection Issue

2011-11-13 Thread Andrew Evans
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 >

[web2py] web2py store config/properties best practice

2011-11-13 Thread Bryan M. Barnard
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

Re: [web2py] Resetting the database

2011-11-13 Thread Bruno Rocha
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

Re: [web2py] ImportError with AppEngine SDK v1.6.0

2011-11-13 Thread Bruno Rocha
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

[web2py] Resetting the database

2011-11-13 Thread Archibald Linx
Dear Web2py users, How can I reset the database of my Web2py project ? Thanks, Archibald

Re: [web2py] Re: web2py dal not creating database

2011-11-13 Thread Bruno Rocha
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

Re: [web2py] Re: need help for rewrite on routes.py

2011-11-13 Thread Jonathan Lundell
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

Re: [web2py] web2py dal not creating database

2011-11-13 Thread Bruno Rocha
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

Re: [web2py] Fluxflex + Oauth facebook

2011-11-13 Thread Tito Garrido
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

[web2py] dropbox python api

2011-11-13 Thread Massimo Di Pierro
Has anybody integrated dropbox login with web2py? If so, would you share the code? It could go in the book v4.

Re: [web2py] Re: need help for rewrite on routes.py

2011-11-13 Thread Bruno Rocha
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

Re: [web2py] Fluxflex + Oauth facebook

2011-11-13 Thread Tito Garrido
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

Re: [web2py] Re: web2py dal not creating database

2011-11-13 Thread Jimmy Stewpot
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

[web2py] Re: Rss

2011-11-13 Thread Massimo Di Pierro
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 ??

[web2py] Re: application installation problem

2011-11-13 Thread Massimo Di Pierro
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

Re: [web2py] Re: ajax upload of files

2011-11-13 Thread Michele Comitini
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

Re: [web2py] Fluxflex + Oauth facebook

2011-11-13 Thread Michele Comitini
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

[web2py] Re: Issue Tracker and web interface for Mercurial

2011-11-13 Thread Christopher Steel
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.

[web2py] Re: ajax upload of files

2011-11-13 Thread Massimo Di Pierro
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

[web2py] Re: Passing the newly created record's id to another function in the controller

2011-11-13 Thread tsvim
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

[web2py] Rss

2011-11-13 Thread Web2Py Freak
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 ??

Re: [web2py] Re: need help for rewrite on routes.py

2011-11-13 Thread Jonathan Lundell
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

Re: [web2py] Re: need help for rewrite on routes.py

2011-11-13 Thread Bruno Rocha
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

[web2py] ajax upload of files

2011-11-13 Thread apple
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

[web2py] Oreilly python-Certification

2011-11-13 Thread António Ramos
http://www.oreillyschool.com/certificates/python-programming.php

Re: [web2py] application installation problem

2011-11-13 Thread petrasadi
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

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-13 Thread Gour
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

[web2py] Re: Passing the newly created record's id to another function in the controller

2011-11-13 Thread Anthony
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

[web2py] Re: Mixing/supporting CMS with Web2py

2011-11-13 Thread Massimo Di Pierro
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.

[web2py] Re: "ERROR:Rocket.Errors.Port8000:SSL Error: [Errno 8] _ssl.c:499: EOF occurred in violation of protocol" on Upgraded v1.99.1

2011-11-13 Thread Massimo Di Pierro
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

[web2py] Re: Adding a column to the SQLFORM.grid table - one way to do it

2011-11-13 Thread Massimo Di Pierro
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', >  

[web2py] Re: Issue Tracker and web interface for Mercurial

2011-11-13 Thread Massimo Di Pierro
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

Re: [web2py] Re: need help for rewrite on routes.py

2011-11-13 Thread Jonathan Lundell
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

[web2py] Re: Id been Shown Instead of Name in dropdown list

2011-11-13 Thread Massimo Di Pierro
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

[web2py] Re: ImportError with AppEngine SDK v1.6.0

2011-11-13 Thread Massimo Di Pierro
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

[web2py] Re: Webfaction: Memory usage way over your limit ; again.

2011-11-13 Thread Web2Py Freak
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

[web2py] Multiple upload

2011-11-13 Thread Web2Py Freak
Dear All, Is it possible to have multiple uploads for on Field ?? Best Regards, Hassan Alnatour

[web2py] Improvement for Crud.update()

2011-11-13 Thread Ray (a.k.a. Iceberg)
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()))

Re: [web2py] Setting the default value for the first item in a list

2011-11-13 Thread Bruno Rocha
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]

[web2py] Setting the default value for the first item in a list

2011-11-13 Thread tsvim
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

[web2py] Re: Passing the newly created record's id to another function in the controller

2011-11-13 Thread tsvim
Thanks. That did the trick. I'd like to understand though what special characters? Isn't the id just a number?

[web2py] Re: need help for rewrite on routes.py

2011-11-13 Thread Bruno Rocha
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/

[web2py] need help for rewrite on routes.py

2011-11-13 Thread Bruno Rocha
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*

[web2py] Webfaction: Memory usage way over your limit ; again.

2011-11-13 Thread annet
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: