Re: [web2py] Re: Heroku supports Python

2011-09-29 Thread Vasile Ermicioi
quite expensive, my bit

[web2py] smartgrid, linked tables and columns

2011-09-29 Thread andrej burja
hi i have def person_manage(): columns = ['t_person.id','t_person.f_name','t_oseba.f_surname','t_oseba.f_email'] linked_tables = ['t_message'] form = SQLFORM.smartgrid(db.t_oseba,linked_tables=linked_tables,columns=columns,onupdate=auth.archive) return locals() without

Re: [web2py] Re: TinyMCE

2011-09-29 Thread Philip Kilner
Hi Juan, On 28/09/2011 18:51, juanduke wrote: Are you importing the required files? Load your view in firefox, and check if firebug show some error loading the required files or maybe is coding typo. I /think/ so! The JS is all there in Firebug, and I don't see any errors on page load -

Re: [web2py] date field without year

2011-09-29 Thread Manuele
On 28/09/2011 11:31, andrej burja wrote: hi i want to insert a date, bust just a day and a mont, without a year is that possible? andrej have you tried a validator like that associated to your field? requires = IS_DATE(format=T('%m-%d'), error_message='must be MM-DD!') M.

[web2py] Re: MongoDB supported by DAL

2011-09-29 Thread Francisco Costa
Are you planning to resume development? I'd need the MongoDBAdapter for a project, and I am willingly to cooperate. I'm quite new both to MongoDB and web2py but I'm learning fast; the only problem I see is the apparent lack of documentation on which methods an adapter should implement and

[web2py] GAE SDK: Getting ImportError for gluon.contrib.populate import populate

2011-09-29 Thread glomde
Hi, I am trying to use GAE but I get import error on populate in db_wizard_populate.py. It seems to do with the restricted environment. Do anybody know how to fix this? The traceback is: Traceback (most recent call last): File /home/g/web2py/gluon/restricted.py, line 192, in restricted

Re: [web2py] Re: TinyMCE

2011-09-29 Thread juanduke
Hi all: I really like tinyMCE, because is very powerful. I'd like to see some plugin for that. On the otherside, if what you need is to install an editor very quickly, I think, you can use this plugin for w2p: http://dev.s-cubism.com/plugin_elrte_widget It use elRTE (http://elrte.org/) editor.

[web2py] Re: Modal form window

2011-09-29 Thread Vineet
P.S. Currently I am redirecting to a different VIEW file, and then after save, returning to the original location. I read about the ajax function in web2py. But I am looking for an 'overlay' effect. Any hint on this? ---Vineet On Sep 28, 9:44 pm, Vineet vineet.deod...@gmail.com wrote: My

[web2py] DAL - Selects

2011-09-29 Thread Chris Rowson
I'm trying to learn to use the DAL. I've been reading through chapted 6 of the web2py book and I'm sorry if I missed the answer there, but here I go! A user enters his/her postcode and this is checked against an API which issues us back the 10 closest postcodes. We store the 10 closest postcodes

Re: [web2py] Re: Adding hidden field to a form

2011-09-29 Thread Roberto Perdomo
Do the form normally and try this with jquery: $('#totalitems').hide(); 2011/9/28 Anthony abasta...@gmail.com I think the 'hidden' argument goes inside FORM() -- looks like you've got it inside DIV(). Anthony On Wednesday, September 28, 2011 10:14:40 PM UTC-4, Joseph Jude wrote:

[web2py] request.args[1] formats white spaces

2011-09-29 Thread Vineet
I am using request.args[1] in a custom built form (not FORM helper). [CODE] form id=frmDeptEdt name=frmDeptEdt method=post action= Department input type='text' id='deptnm' name='deptnm' value='{{=request.args[1]}}' / input type='submit' value='save' onclick=ajax({{=URL('mast','dept_save')}},

[web2py] Re: SQLFORM.grid: Search only startswith

2011-09-29 Thread Omi Chiba
Does anybody know where is the code so I can try customize it ? On Sep 27, 6:20 pm, Omi Chiba ochib...@gmail.com wrote: For example, I have a field which has 'abcab' and 'bcabc' data. If I provide 'ab' in the search box, I want to just pull the first one ('abcab') and exclude second one

[web2py] Re: Modal form window

2011-09-29 Thread juanduke
Hi Vineet: First, visit this link: http://labs.blouweb.com/PowerGrid/ and click in -Docs Icons Is that the effect what you are lookin for? So, you can try doing this: on the view write an anchor A(...) with href=# the with jQuery, select this anchor, and override the click event, something

[web2py] uwsgi question

2011-09-29 Thread elffikk
hi, sqlite 3.7+ supports better concurrency (see http://www.sqlite.org/draft/wal.html), on webfaction, there are multiple python versions installed, but python2.7 is built against 3.3.6 so I built from sources sqlite, python 2.7 and now on /home/my_user/ bin/python2.7 I can use latest sqlite

Re: [web2py] uwsgi question

2011-09-29 Thread Roberto De Ioris
Il giorno 29/set/2011, alle ore 15:50, elffikk ha scritto: hi, sqlite 3.7+ supports better concurrency (see http://www.sqlite.org/draft/wal.html), on webfaction, there are multiple python versions installed, but python2.7 is built against 3.3.6 so I built from sources sqlite, python

[web2py] Browser unable to connect over secure SSH tunnel

2011-09-29 Thread Cliff
I have started a second instance of Web2py on my test server, running on port 8002. I used the syntax in the book, except that I provided the password at startup. I can create an ssh tunnel to the server using the syntax in the book. However, when I point the browser to localhost:8002, nothing

Re: [web2py] smartgrid, linked tables and columns

2011-09-29 Thread Jim Steil
In you columns list you need to include the columns from the t_message table that you would like displayed in the list. -Jim On 9/29/2011 1:27 AM, andrej burja wrote: hi i have def person_manage(): columns = ['t_person.id','t_person.f_name','t_oseba.f_surname','t_oseba.f_email']

Re: [web2py] uwsgi question

2011-09-29 Thread Vasile Ermicioi
/home/my_user/bin/python2.7 uwsgiconfig.py --build but I did so will that work export LD_LIBRARY_PATH=/home/my_user/lib/python2.7 then running the uwsgi command?

Re: [web2py] uwsgi question

2011-09-29 Thread Roberto De Ioris
Il giorno 29/set/2011, alle ore 16:36, Vasile Ermicioi ha scritto: /home/my_user/bin/python2.7 uwsgiconfig.py --build but I did so will that work export LD_LIBRARY_PATH=/home/my_user/lib/python2.7 then running the uwsgi command? This is the directory where python core modules

Re: [web2py] uwsgi question

2011-09-29 Thread Vasile Ermicioi
Are you sure you have added --enable-shared in your ./configure script ? to me, this seems to be the cause, I will give it a try later today thank you very much for quick responses

[web2py] Deploying single web2py applications in Debian

2011-09-29 Thread Jani-Matti Hätinen
Hi all, I was wondering what would be the preferred method for deploying single web2py applications in Debian? What I basically want to do is to deploy a single web2py application in the root of each domain with all applications/domains using the single web2py/gluon installation

Re: [web2py] uwsgi question

2011-09-29 Thread Jonathan Lundell
On Sep 29, 2011, at 7:36 AM, Vasile Ermicioi wrote: /home/my_user/bin/python2.7 uwsgiconfig.py --build but I did so will that work export LD_LIBRARY_PATH=/home/my_user/lib/python2.7 then running the uwsgi command? A note of caution when modifying LD_LIBRARY_PATH: like PATH, it may

Re: [web2py] Deploying single web2py applications in Debian

2011-09-29 Thread Kenneth Lundström
Every application is in it´s own folder already. With routes.py you can specify which domain(subdomain) belongs to which application. Admin is not separate, so you have one admin for all applications. Kenneth Hi all, I was wondering what would be the preferred method for

[web2py] Fwd: PyCon 2012 Proposals Due October 12

2011-09-29 Thread Massimo Di Pierro
This is important. If you have built something with web2py submit a talk proposal. If you need apply for financial aid. The more web2py talk proposals the highest the chance there will be a web2py talk in 2012. Massimo Begin forwarded message: From: Brian Curtin brian.cur...@gmail.com

[web2py] spinejs with Web2py

2011-09-29 Thread Carl
Is anyone using spinejs with web2py and has ajax calls working?

[web2py] Handling errors in dynamic forms

2011-09-29 Thread Joseph Jude
Hi all, With help of members of this group, I was able to produce a dynamic form where text fields can be added / removed at the client side. However, I got one (hopefully the last) problem. This form contains two sets of fields - in the first set, there is only name which is mandatory; in the

[web2py] Re: password storage with per-user salt

2011-09-29 Thread Dave
Hm. yeah, good point. Let me do some cleaning up on what I have... and make sure it will be backward compatible with people doing requires=CRYPT on the password field. Then I'll send you a diff and see what you think. On Sep 29, 1:38 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote:

[web2py] Re: authentication question

2011-09-29 Thread Alex
thanks, I know about this option. I use it when I just test for a role, I guess requires_login can be omitted in this case. I've seen that I can use routes_onerror in routes.py to define custom error pages for http errors and all other errors. I tested it successfully, works great!

[web2py] Help: multiple=True with requires = IS_IN_SET()

2011-09-29 Thread jkral
I am having some troubles getting my form to error when no items are selected in the environment field. Could someone please shed some insight? and I apologize in advance if this request is redundant. from specific module import ENVIRONMENTS ##ENVIRONMENTS is a tuple db.define_table('info',

[web2py] Re: Adding hidden field to a form

2011-09-29 Thread Cliff
Why not use the session to carry that value forward? If you put it into the browser you really need to validate it, under the general security rule of not trusting anything that comes from the browser. Also I believe LABEL helper should be used differently. It renders an html label tag. Here's

[web2py] can i import db into module?

2011-09-29 Thread howesc
Hi all, pardon the potential duplication here, but i swear i saw something in the last month or so that indicated that i can import the db object into my module so that i did not have to pass it in with each function call. is this true? can someone help me with the syntax? thanks,

[web2py] SQLFORM.__init__ buttons parameter

2011-09-29 Thread Mathew Grabau
Just wondering if anyone knows what this parameter is for? It doesn't seem to be used at all, but could be very useful (ie. to adding more submit buttons to the form). Was it functionality that is going to be implemented but didn't happen? Thanks, Mathew

[web2py] Re: can i import db into module?

2011-09-29 Thread apple
I also want to know the answer to this. I have followed an example but could not get it to work. In model I have: from globals import current from gluon.storage import * current.app=Storage() current.app.db=db If I put in my module X: from globals import current then it says no module named

[web2py] wrapping long text lengths in grid/smartgrid

2011-09-29 Thread stefaan
I was wondering about grid/smartgrid: currently we can use maxtextlength=XXX to indicate the max length of a column. If the real length is longer than XXX, the text is chopped at a suitable length and ... is added to it. If you configure a long maxtextlength, at least with the default template the

[web2py] Re: Deploying single web2py applications in Debian

2011-09-29 Thread Jani-Matti Hätinen
The thing is, I would like to have a separate admin application as well as routes.py for each domain for better access control. On 29 syys, 17:21, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Every application is in it s own folder already. With routes.py you can specify which

Re: [web2py] Re: Deploying single web2py applications in Debian

2011-09-29 Thread Jani-Matti Hätinen
I should probably elaborate a bit. Basically the thing is that I want to host several web2py applications in a single server in different domains. Each domain would usually have just one default application, although it is possible that several applications per domain might be needed at some

[web2py] Re: Admin without HTTPS?

2011-09-29 Thread Aaron
Thanks, that did it. I suppose I should have searched the mailing list first, but thanks for the concise answer. On Sep 27, 12:43 pm, Anthony abasta...@gmail.com wrote: You can edit /applications/admin/models/access.py --http://code.google.com/p/web2py/source/browse/applications/admin/mode

Re: [web2py] Dynamic Model

2011-09-29 Thread TheSweetlink
I have recently found OrientDB http://orientechnologies.com It is a document-graph db that will allow you to evolve your schema over time. In fact you can have no schema, mixed-schema, or full schema. There is SQL syntax that is both familiar and powerful, especially when combined with Gremlin

Re: [web2py] Help: multiple=True with requires = IS_IN_SET()

2011-09-29 Thread Bruno Rocha
How are you creating the form? Crud, form, sqlform, custom or html? http://zerp.ly/rochacbruno Em 29/09/2011 15:23, jkral jk...@gogoair.com escreveu: I am having some troubles getting my form to error when no items are selected in the environment field. Could someone please shed some insight?

[web2py] Re: password storage with per-user salt

2011-09-29 Thread Dave
I have the patch. I wasn't sure where to put the file, so I emailed it directly to you Massimo. The only thing that seems to be missing is updating the login_bare method to use the new hashing. The code is backward compatible with pre-exiting non-salted passwords. On Sep 29, 1:38 pm, Dave

[web2py] really nice credit card processing service

2011-09-29 Thread Massimo Di Pierro
https://stripe.com/

Re: [web2py] really nice credit card processing service

2011-09-29 Thread Ovidio Marinho
powered web2py , massimo? Ovidio Marinho Falcao Neto ovidio...@gmail.com 83 8826 9088 - Oi 83 9334 0266 - Claro Paraiba-Brasil 2011/9/29 Massimo Di Pierro massimo.dipie...@gmail.com https://stripe.com/