[web2py] Re: Problem installing in Macbook

2016-08-28 Thread pbreit
Are you running these commands from the command line: http://web2py.com/books/default/chapter/29/04/the-core#Command-line-options -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/

[web2py] Re: closing modal after redirect from load

2016-08-28 Thread Alex Glaros
I found code to force modal to close on stackOverflow. Placed in .load view. Doesn't seem like the most elegant solution. but it works except that session.flash doesn't display. $(modal).on("click", 'input[type="submit"]', (e) -> modal.modal('hide') -- Resources: - http://web2py.

[web2py] Re: Reddit clone source code?

2016-08-28 Thread Ron Chatterjee
https://www.packtpub.com/web-development/web2py-application-development-cookbook Page 61 On Sunday, August 28, 2016 at 8:42:52 PM UTC-4, Massimo Di Pierro wrote: > > Do not know where it is. It is possible I did not save it. > > On Monday, 22 August 2016 16:29:17 UTC-5, pbreit wrote: >> >> Is the

[web2py] closing modal after redirect from load

2016-08-28 Thread Alex Glaros
darken modal mode doesn't go away after redirect from child .load document. Data is correctly written that was entered Perhaps the .load document needs some jquery or other js to work? Tool tip needed this in the .load doc to work: $(function () { $('[data-toggle="tooltip"]').tool

[web2py] Re: new to python web2py

2016-08-28 Thread Anthony
> > def f1(field,value): > SQLFORM.widgets.string.widget(field,value,_placeholder='descripción'), > > Works. > Field("Description", "text", label='alguna > cosa',requires=IS_NOT_EMPTY(),default=None, lambda f,v: > SQLFORM.widgets.string.widget(f, v, _placeholder='descripción')), > > > But n

[web2py] Re: Is 'Container' a Reserved Word?

2016-08-28 Thread Anthony
That's not the error you would get if you were using a reserved word. The problem is that at that point in the code execution, the db object has not been defined. Note, when you click the database admin button, the appadmin.py controller is executed. Is your db object defined in another control

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread Anthony
> > {{=A(site.website, _title = T("Web site"), _target = "_blank", _href = > "%s" % site.website) }} > Note, _href="%s" % site.website is simply equivalent to _href=site.website (no reason for the string formatting). The problem here is with the actual value of site.website, not how it is spec

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread Anthony
In HTML, if you want to specify an absolute URL, the "href" attribute must start with "http(s)://". Otherwise, the "href" attribute is considered to be relative to the URL of the current page (i.e., the browser simply appends it to the current URL). The URL you see when hovering over the link i

Re: [web2py] Re: I am trying to login from Phonegap app into my web2py app, what's wrong here?

2016-08-28 Thread Massimo Di Pierro
This cannot be done. It is a feature not a bug. The purpose of the salt in the hashed password is to prevent brute force attacks to the database. What you are doing is the brute force attack. The only way to do it is to select all records. Loop one by one and compare them with encpwd = CRYPT

[web2py] Re: Recaptcha2 in custom form

2016-08-28 Thread Massimo Di Pierro
break form = SQLFORM.factory(db.auth_user, db.auth_dummy, extra_fields=extra_fields) form.append(Recaptcha2(public_key = '...', private_key = '')) into recaptcha = Recaptcha2(public_key = '...', private_key = '') form = SQLFORM.factory(db.auth_user, db.auth_dummy, extra_fields=extra_fields

[web2py] Re: uploadfs vs uploadfolder

2016-08-28 Thread Massimo Di Pierro
It is telling you that Field('image','upload',uploadfs = myfs, uploadfolder='...')) requires the uplaodfolder else does not know where to put it in S3. On Friday, 26 August 2016 16:07:51 UTC-5, ad...@swcacloud.com wrote: > > This works great when using SQLFORM: > > import fs.s3fs > myfs = fs.s3f

[web2py] Re: web2py behind socks proxy

2016-08-28 Thread Massimo Di Pierro
Not sure I understand what you mean. Do you want emails to go out using a different network interface than the incoming http connections? On Friday, 26 August 2016 08:19:36 UTC-5, Saifuddin Rangwala wrote: > > I meant to say: I tried searching and found a few threads where people > tried attem

[web2py] Re: Can gluon.contrib.populate work with self reference?

2016-08-28 Thread Massimo Di Pierro
It cannot handle self references. On Monday, 22 August 2016 22:47:48 UTC-5, pbreit wrote: > > Trying to populate: > > db.define_table('comment', > Field('post_id', 'reference post'), > Field('parent_comment', 'reference comment'), > Field('body', 'text', requires=IS_NOT_EMPTY()), >

[web2py] Re: Reddit clone source code?

2016-08-28 Thread Massimo Di Pierro
Do not know where it is. It is possible I did not save it. On Monday, 22 August 2016 16:29:17 UTC-5, pbreit wrote: > > Is the Reddit Clone source code from the Vimeo videos ( > https://vimeo.com/104823162) available anywhere? I saw the Reddit app in > the "appliances" source: https://github.com/m

[web2py] Re: How can I install a CMS such as Instant-Press via the command line interface?

2016-08-28 Thread Massimo Di Pierro
if you have a .w2p file you can do: cd web2py/applications mkdir myapp cd myapp tar zxvf /path/to/the/web2py.app..w2p On Monday, 22 August 2016 13:17:08 UTC-5, Varad Karmarkar wrote: > > I'm not using the web interface. Any assistance would be appreciated. > -- Resources: - http://web2py.com -

[web2py] SQL10007N Message "0" could not be retrieved. Reason code: "3"

2016-08-28 Thread elvis_x
Hi All. I have a big problem to connect to my DB2 with nginx+uwsgi+web2py. everything works fine via "python web2py.py -p 8080" If start my Webpage,i get this error: Error ticket for "init" Ticket ID 127.0.0.1.2016-08-26.04-58-56.762c9daf-b362-412c-a0e5-8597f467f3a0 Failure to connect, tried 5

[web2py] Is 'Container' a Reserved Word?

2016-08-28 Thread Brian Boatright
I've tried adding a model for "Containers" and "ContainerTypes" each time I get an error when it tries to create the tables when I click the Database Admin button. The other tables I'm defining are working fine. I have a few other tables that have "Type" in their mode/table name so when I could

Re: [web2py] Re: Best and simpler approach to Inline editing / deleting / appending (jqGrid, Jeditable,etc)

2016-08-28 Thread WeiI Wang
Hi Tim, I tried the inline edit for sqlform grid. The problem I have is there is only one submit button and whenever I edit something and submit, all the records' update time becomes the same. Is it possible to have one submit button for each row? On Friday, February 13, 2015 at 11:36:32 AM UTC-

[web2py] new to python web2py

2016-08-28 Thread munalberdo
ola, def not lambda? def f1(field,value): SQLFORM.widgets.string.widget(field,value,_placeholder='descripción'), Works. Field("Description", "text", label='alguna cosa',requires=IS_NOT_EMPTY(),default=None, lambda f,v: SQLFORM.widgets.string.widget(f, v, _placeholder='descripción')), Bu

[web2py] Problem installing in Macbook

2016-08-28 Thread Rommel Sotto
Hi Need help new installation error: unable to create welcome.w2p file I have this error on first run of web2py. Then is i run it again it works but does not load the welcome page. I installed web2py using git clone. and trying to run Eden on my macbook but web2py does not seem to run. anyth

[web2py] ERROR:root:New installation error: unable to create welcome.w2p file

2016-08-28 Thread Rommel Sotto
I have this error running it on macbook pro I installed it thru git clone. It does not also show the welcome page when i do 127.0.0.1:8000 any thing I can do to fix it? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Preceding backslash when using URL in ubuntu 16.04

2016-08-28 Thread Ryan Herbert
Hi, I'm having an issue with generating url with the URL helper. URL('default', 'home', scheme=True, host=True) will generate "\https://127.0.0.1/myapp/default/home"; I am using web2py from the python-web2py package from the ubuntu (or debian?) repos. Now I also have my app installed on a serve

[web2py] Help with Patterns

2016-08-28 Thread Diego Marinho
I have this pattern: "/jobs/year-start/{jobs.year_start.year}/amount-range-id/{jobs.amount_range_id}/neighbourhood-id/{jobs.neighbourhood_id}" I have tree fields that im using to filter the 'jobs' table. How can i make those filters optional? Let's say i want to use only two of the tree possib

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread Steven Vannoy
Hi, See below (or above) where I provide the entire traceback. Your code does the same thing as Luise's in that when I hover over the link, it shows it will try to resolve to: 127.0.0.1:8000/welcome/view_a_site/www.huffingtonpost.com My app is 'welcome' and 'view_a_site' is the current view whi

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread Steven Vannoy
I was trying not to clutter things up. I can tell you though, when I hover over the link with my mouse, the URL that shows up is 127.0.0.1:8000/www.huffington.post.com This is the same thing when I use the code offered below from the japanese (or chinese) person below, sorry I can't read your n

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread 黄祥
pls try: {{if site.website:}} {{=A(site.website, _title = T("Web site"), _target = "_blank", _href = "%s" % site.website) }} {{pass}} best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.go

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread luis . valladares
Can you post the full traceback? it seems like youre trying to convert the url to some numeric class. So with the full trace back we can get a clear look of that El domingo, 28 de agosto de 2016, 19:25:10 (UTC-4), Steven Vannoy escribió: > > That seemed promising but gave me an exception with to

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread Steven Vannoy
That seemed promising but gave me an exception with top-most error as: * invalid literal for long() with base 10: 'www.huffingtonpost.com'* You can see that I'm using 'www.huffingtonpost.com' as my test case, which does resolve correctly if pasted strait into the browser. On Sunday, August

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread luis . valladares
Hello! Try this: {{=site.website}} El domingo, 28 de agosto de 2016, 17:29:40 (UTC-4), Steven Vannoy escribió: > > I have a view that displays a database form. One of the fields in that > form is my user's own website. I'd like to display that as an active link > in the browser. I've tried tw

[web2py] how to redirect to an 'external' url in a view?

2016-08-28 Thread Steven Vannoy
I have a view that displays a database form. One of the fields in that form is my user's own website. I'd like to display that as an active link in the browser. I've tried two different forms, the first produces an error because it is trying to resolve to a view within my application, and the o

[web2py] one to many joins repeated parent

2016-08-28 Thread luis . valladares
Hello! I've this data structure in my database: i've two tables events and modificators, one event can have many modificators so i've a one to many relation. Im trying to build an HTTP endpoint that returns a json with multiple events and all the asociated modificators, i order to do this i do

Re: [web2py] Re: I am trying to login from Phonegap app into my web2py app, what's wrong here?

2016-08-28 Thread Steve Joe
db((db.auth_user.username == request.vars.username) & (db.auth_user.password == CRYPT(digest_alg='pbkdf2(1000,20,sha512)')(request.vars.password)[0])).select() this doesn't work at all too. On Saturday, August 27, 2016 at 5:44:53 PM UTC+5:30, Kiran Subbaraman wrote: > > The book can help you: >

[web2py] sidebar content overlaps to next column

2016-08-28 Thread Alex Glaros
my content (buttons, text, tables) from one sidebar crosses over columns a bit am I doing anything wrong? View: {{left_sidebar_enabled = globals().get('left_sidebar_enabled', True)}} {{right_sidebar_enabled = globals().get('right_sidebar_enabled', True)}} {{block left_sidebar}} content goes

[web2py] Recaptcha2 in custom form

2016-08-28 Thread 'Annet' via web2py-users
In my controller I have the following code: form = SQLFORM.factory(db.auth_user, db.auth_dummy, extra_fields=extra_fields) form.append(Recaptcha2(public_key = '...', private_key = '')) When I have a view with {{=form}} the recaptcha displays correctly, I changed the view to display a custom