[web2py] SQLFORM access

2012-11-02 Thread alazar baharu
hello every one i want to ask you a question? for example i have a model db.define_table('persons', Field('name'), Field('sex'), Field('age'), Field('address') and lets take this controller def create_

[web2py] Re: epub version of official book?

2012-11-02 Thread Massimo Di Pierro
Interesting did you try the epub version? On Friday, 2 November 2012 15:34:16 UTC-5, Pradeep Krishnan wrote: > > Just stumbled upon this one: > http://archive.org/details/Web2pyfullStackWebFramework4thEdByMassimoDiPierro > > On Sunday, July 25, 2010 4:43:03 PM UTC-5, Donald Hughes wrote: >> >

[web2py] Re: epub version of official book?

2012-11-02 Thread Pradeep Krishnan
Just stumbled upon this one: http://archive.org/details/Web2pyfullStackWebFramework4thEdByMassimoDiPierro On Sunday, July 25, 2010 4:43:03 PM UTC-5, Donald Hughes wrote: > > Any chance of getting an epub version of the official book in addition > to the pdf? I would gladly pay $12.50 for that.

[web2py] Re: ticket uncoverable while login on 2.2.1 ?

2012-11-02 Thread vince
it only occur on the login page, which i am using the web2py auth module. not much info from apache log, any suggestion on how can i trace out this problem? [Fri Nov 02 15:36:32 2012] [info] Seeding PRNG with 144 bytes of entropy [Fri Nov 02 15:36:32 2012] [info] Initial (No.1) HTTPS request rec

[web2py] Re: How to create long running tasks?

2012-11-02 Thread Tim Richardson
On Thursday, 1 November 2012 23:50:16 UTC+11, Richard Penman wrote: > > Would be great to use the new scheduler but doesn't seem applicable in > this case. I have no difficulty starting these processes. > > As described in OP, the problem is these are child processes which makes > them dependen

Re: [web2py] Re: Bootstrap.min.js

2012-11-02 Thread Richard Vézina
Thank you! Richard On Fri, Nov 2, 2012 at 5:32 PM, LightDot wrote: > Yes, bootstrap.min.js contains all Bootstrap js plugins in a single file. > > > On Friday, November 2, 2012 9:38:05 PM UTC+1, Richard wrote: > >> Do the web2py bootstrap.min.js actually include all the bootstrap-*.js? >> >> Ri

[web2py] Re: Probleme with 301 redirect when URL has hyphens!

2012-11-02 Thread howesc
i use the regex based routerso i'm not up on all the options for the parametric router. that said, 2 things come to mind: - invalid controller might return a 500? you could try that in your routes.on_error (try catching 500 errors i mean). - for web2py to be happy you'd need to rewrite th

[web2py] Re: session and/or auth-login problems

2012-11-02 Thread MichaelF
The problem turned out to be that I was trying to save the results of Mail.Attachment() in the session, and those results seem to be a dal (if I remember correctly) object w/ connection. On Monday, October 8, 2012 4:19:59 PM UTC-6, MichaelF wrote: > > I've seen this before but I cannot remember

Re: [web2py] Re: Bootstrap.min.js

2012-11-02 Thread LightDot
Yes, bootstrap.min.js contains all Bootstrap js plugins in a single file. On Friday, November 2, 2012 9:38:05 PM UTC+1, Richard wrote: > > Do the web2py bootstrap.min.js actually include all the bootstrap-*.js? > > Richard > > On Sun, May 6, 2012 at 2:03 PM, Massimo Di Pierro > > > wrote: > >> t

[web2py] starting web2py on a server with a cronjob

2012-11-02 Thread BlueShadow
Hi, I like to have a web2py running on my server even if it crashes for some reason or the server is rebooted. I found this web2py slice: http://www.web2pyslices.com/slice/show/1422/cron-script-for-checking-if-web2py-runs if ! ` netcat -z localhost 8000 ` then pgrep -flu myusernam

Re: [web2py] Re: Bootstrap.min.js

2012-11-02 Thread Richard Vézina
Do the web2py bootstrap.min.js actually include all the bootstrap-*.js? Richard On Sun, May 6, 2012 at 2:03 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > the web2py bootstrap.min.js should include of the other boostrap-*.js > > > On Sunday, 6 May 2012 12:56:50 UTC-5, pbreit wrote:

[web2py] Re: Fit the display of the uploaded form

2012-11-02 Thread villas
Maybe this? http://www.webdesignerwall.com/demo/word-wrap/ On Friday, November 2, 2012 5:26:07 PM UTC, praveen krishna wrote: > > Hi, > I have a form which will display the filename and the data in the > file.The data is a sequence of string without any gaps and it is expands > horizontally .

Re: [web2py] Re: Bootstrap Typeahead

2012-11-02 Thread Richard Vézina
I am curious if it is not a question of speed... With widget it work well though... But for some bootstrap style it get tricky when you have to add wrapper to avoid jquery... Richard On Wed, Oct 31, 2012 at 7:37 PM, villas wrote: > Hi Niphod. > I am now adding the attributes with jQuery, but

Re: [web2py] Re: CONTAINS() takes exactly 3 arguments (2 given)

2012-11-02 Thread apps in tables
Thank you Richard, I understand and value your approach very much. I would like to know from the designers of web2py, if what i am trying to do is doable or not ? (currently, I am not able to add feature to web2py by myself) After getting the answer,I will start attacking the problem using you

Re: [web2py] Re: CONTAINS() takes exactly 3 arguments (2 given)

2012-11-02 Thread Richard Vézina
Ashraf, Try split your problem into small pieces. First make sure your query is working, then try to use request, then think about ajax. Richard On Fri, Nov 2, 2012 at 12:36 PM, apps in tables wrote: > Hi, > > Let us start from the reference ( web2py book ajax search example) > > def search():

Re: [web2py] Re: CONTAINS() takes exactly 3 arguments (2 given)

2012-11-02 Thread apps in tables
Hi, Let us start from the reference ( web2py book ajax search example) def search(): "an ajax wiki search page" return dict(form=FORM(INPUT(_id='keyword',_name='keyword', _onkeyup="ajax('callback', ['keyword'], 'target');")), target_div=DIV(_id='target')) de

[web2py] Re: routing problem on www.bioinformatics.org

2012-11-02 Thread lyn2py
Hi Maurice, Based on http://www.bioinformatics.org/refgene Routes to http://www.bioinformatics.org/welcome/default/index Rather than http://www.bioinformatics.org/refgene/welcome/default/index It seems that the responsible one for this routing is your web server, rather than web2py. As w

[web2py] Re: Import error with 2.2.1

2012-11-02 Thread Massimo Di Pierro
I need your help. In gluon/custom_import.py can you replace except ImportError, e1: # line 84 import_tb = sys.exc_info()[2] try: return NATIVE_IMPORTER(name, globals, locals, fromlist, level) # line 87 except ImportError, e3:

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread Richard Vézina
Can't understand why this code from view is working properly (*I mean the LOAD form is complete form input and form tag*) : {{=DIV(DIV(XML('×'), XML(''+'TITRE MODAL TEST'+''), _class='modal-header'), DIV(LOAD(c='ref', f='add_eregistry', args='test_ph_eregistry_i

[web2py] routing problem on www.bioinformatics.org

2012-11-02 Thread Maurice Ling
Hi everyone I am trying to deploy web2py in www.bioinformatics.org. I had unzipped web2py into ~/public_html/refgene which is then suppose to be accessed as www.bioinformatics.org/refgene but I cannot seems to get it to work. http://www.bioinformatics.org/refgene Routes to http://www.bioinfo

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread Richard Vézina
I think I start to understand what going on... For a reason that I ignore the form tag of my embedded component form is not present when I use modal, but it is present if I use jQuery .dialog() Richard On Fri, Nov 2, 2012 at 9:34 AM, Richard Vézina wrote: > Hello, > > Thanks for you help... > >

[web2py] Re: Import error with 2.2.1

2012-11-02 Thread Neil
Can't see any potential conflicts. I have the problem for both track_changes(True) and track_changes(False). When I import from shell: [aicbt@web331 web2py2.2.1]$ python web2py.py -S init web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2012 Version 2.2.1 (2012-10-21 16:57:04) st

Re: [web2py] Re: CONTAINS() takes exactly 3 arguments (2 given)

2012-11-02 Thread Richard Vézina
Test you double table query with real value instead of using request.vars.keyword... Pass the keyword you know are good directly to make sure if your query is correct first and then you try to figure out why it not working with request. So instead of : query = ( ((db.talab.id == db.talab_comment.

[web2py] Re: CONTAINS() takes exactly 3 arguments (2 given)

2012-11-02 Thread apps in tables
Hi Massimo, I replaced *request.vars.keyword with **request.vars.keyword or ''* it did give me a blank page ( empty ) no error. you are getting closer. On Friday, November 2, 2012 4:32:43 PM UTC+3, Massimo Di Pierro wrote: > > Can you check the value of *request.vars.keyword* >

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread Richard Vézina
Hello, Thanks for you help... My code look pretty much like the one of LightDot. I will double check for the details. To your question LightDot, yes I mean the page that contain the load component reload when the form included in the component is submit, since the page that contain the component

[web2py] implementing mailing list

2012-11-02 Thread José Eloy
Hello! I'm migrating a PHP-Joomla 1.5 system to web2py. In Joomla I have a mailing system using a component called Acymailing, which is great. With this component I'm able to create a newsletter and send it to many contacts (aprox 1000). This component also notify to user which mail is being s

[web2py] Re: Are there known problems of SQL Server with the built in wiki

2012-11-02 Thread Patrick Büchler
Thanks Massimo! Unfortunately no time to dig deeper so I will use MySQL On Thursday, November 1, 2012 3:47:15 PM UTC+1, Massimo Di Pierro wrote: > > Not a solution but for reference: > http://stackoverflow.com/questions/851625/foreign-key-constraint-may-cause-cycles-or-multiple-cascade-paths > >

[web2py] Re: CONTAINS() takes exactly 3 arguments (2 given)

2012-11-02 Thread Massimo Di Pierro
Can you check the value of *request.vars.keyword* *You would get this error if request.vars.keyword is None. Perhaps you need to add* * * *request.vars.keyword = **request.vars.keyword or ''** * * * On Friday, 2 November 2012 04:16:29 UTC-5, apps in tables wrote: > > Hi, > > Let me rephrase the qu

[web2py] Re: Non existent record in sqlform.grid handled differently in view to edit mode

2012-11-02 Thread Massimo Di Pierro
Can you please open a ticket about this. We can fix it asap. On Friday, 2 November 2012 02:32:07 UTC-5, Mark Kirkwood wrote: > > Suppose I have a simple controller like: > > @auth.requires_login() > def dog(): > form=SQLFORM.grid(db.dog, csv=False, paginate=10) > #return dict(form=form) >

[web2py] Re: Import error with 2.2.1

2012-11-02 Thread Massimo Di Pierro
Do you have anything in your app/modules/* that may conflict? Did you set track_changes(True) or not? If you do web2py.py -S yourapp can you import form the web2py shell? On Friday, 2 November 2012 02:18:47 UTC-5, Neil wrote: > > A little more info: > > - On linux (works fine on Windows) > - ma

[web2py] Re: ticket uncoverable while login on 2.2.1 ?

2012-11-02 Thread Massimo Di Pierro
No but a ticket unrecoverable should generate a traceback in the apache log. On Friday, 2 November 2012 01:26:55 UTC-5, vince wrote: > > i am getting ticket unrecoverable error while using the auth login on > 2.2.1 once in a while. > > restarting apache will fix it. any idea what's the problem? h

Re: [web2py] How to implement multiple filter for grid?

2012-11-02 Thread Niphlod
Nope. in either case the "burden" is on the server, not the client accessing the page. The only way to move the burden to the client accessing the page would be retrieving coding in javascript something that is capable to get distinct values from a set, but you'd still be forced to transmit over

[web2py] Re: Problem in deploying ssl certificates to Rocket server.

2012-11-02 Thread Niphlod
certs are supposed to be generated without passwords. Even in apache, etc, if you protect them with a password it will be asked every time the process is started, and web2py (rocket) doesn't support that. On Friday, November 2, 2012 6:21:00 AM UTC+1, Amit wrote: > > Hi , > > I generated CA certi

[web2py] Probleme with 301 redirect when URL has hyphens!

2012-11-02 Thread Alex Benfica
Hi people! I'm creating a new website using Web2py [ Version 2.0.0 (2012-06-10 21:17:42) dev ] on GAE in a domain where previously I had a WordPress blog! This blog has some urls like these: http://domain.com/novo-modelo/hyundai-hb-20/ http://domain.com/carro-conceito/nanotata/testes/ In order

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread LightDot
I simply did (actual functions etc. are stripped out, so some minor detail about displaying the data after it has been processed might be missing): View: Open modal ×  {{=LOAD('controller','somepage.load', ajax=True, ajax_trap=True, user_signature=True)}}

[web2py] Re: CONTAINS() takes exactly 3 arguments (2 given)

2012-11-02 Thread apps in tables
Hi, Let me rephrase the question. This query query = db.talab.body.contains(request.vars.keyword) | db.talab.title.contains(request.vars.keyword) is working fine. But, this query query = ( ((db.talab.id == db.talab_comment.talab_id) & (db.talab.id == db.talab_document.id)) & (

[web2py] Re: BrowserID web2py authentication plugin done! Please test

2012-11-02 Thread Stefan Scholl
Seems like this plugin isn't supported/updated. It still connects to browserid.org (They changed the name from Browser ID to Persona.) (in contrib directory to web2py, and the google code project.) And is there a reason to redirect to http://google.com on failed logins? Nearly everything else is a

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread Annet
Hi Richard, Here's how I implemented Bootstrap Modal: Button in the view: {{=T("View details")}} » At the bottom of the same view: $("a[data-toggle=modal]").click(function (e) { target = $(this).attr('data-target') url = $(this).attr('href') $(target).load(url); }) Kind

[web2py] Non existent record in sqlform.grid handled differently in view to edit mode

2012-11-02 Thread Mark Kirkwood
Suppose I have a simple controller like: @auth.requires_login() def dog(): form=SQLFORM.grid(db.dog, csv=False, paginate=10) #return dict(form=form) return locals() >From the grid I choose a particular dog (say id == 1), click on 'view' and go to a page with the dog's details displa

[web2py] Re: Import error with 2.2.1

2012-11-02 Thread Neil
A little more info: - On linux (works fine on Windows) - matplotlib is an egg in the lib directory - "import matplotlib" works, but "import matplotlib.pylab" doesn't - Has worked fine in every version up to 2.1 Any ideas for a workaround or to debug further? On Thursday, November 1, 2012 9:52:57