[web2py] Bug with Blocks

2015-06-09 Thread Jason (spot) Brower
I think I found a bug with blocks. In my base_layout.html {{block page_title}}{{end}} And this in my view file... {{block page_title}} Dashboard {{end}} This will print the replacement block in the correct location. BUT it will also print it where ever I put it in the html. Am I understanding the

Re: [web2py] password zip

2015-06-09 Thread Jason (spot) Brower
There is no password for this zip file. Either: You have a malware trying to probe for your passwords. You have an extracting program that isn't behaving properly. You downloaded the wrong file. What tool are you using to extract the file? On Mon, Jun 8, 2015 at 3:46 AM milad ranaei siadat wrote

Re: [web2py] All messed up

2015-06-09 Thread weheh
Alright, a little further now. I figured I needed to reinstall/upgrade psycopg2, which I did. Now I'm getting the ticket: Traceback (most recent call last): File "G:\web2py\gluon\restricted.py", line 227, in restricted exec ccode in environment File "G:/web2py/applications/myapp/models/0_

Re: [web2py] All messed up

2015-06-09 Thread Massimiliano
Is your pg_hba.conf allowing your connections? On Tue, Jun 9, 2015 at 9:47 AM, weheh wrote: > Alright, a little further now. I figured I needed to reinstall/upgrade > psycopg2, which I did. Now I'm getting the ticket: > > Traceback (most recent call last): > File "G:\web2py\gluon\restricted.py

Re: [web2py] All messed up

2015-06-09 Thread Niphlod
"actively refused it" means that the socket you're pointing to is not open(able) . Review the listening ports and/or the firewall. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/

Re: [web2py] Re: Virtual fields disapeared from select() results (v2.11.2)

2015-06-09 Thread tim . nyborg
Lovely! I was just about to post this problem. On Tuesday, 9 June 2015 07:56:35 UTC+1, Paolo Valleri wrote: > > I see the problem now, thanks for pointing it out. > I'll post a fix later today. > > Paolo > > 2015-06-08 22:11 GMT+02:00 Donatas Burba >: > >> This is failing example: >> >> db=DAL('

[web2py] object 'DAL' has no attribute 'Field' - After update 2.11.2

2015-06-09 Thread Tomeu Roig
I update web2py to last version from: (wget http://www.web2py.com/examples/static/nightly/web2py_src.zip) After start all apps included admin give errors. I make a cat in console, and get this info in error. type object 'DAL' has no attribute 'Field' VERSION: Version 2.11.2-stable+timestamp.2

[web2py] Absolute URLs

2015-06-09 Thread Francisco Costa
How to force web2py to make all URL's absolute instead of having to write URL(..., scheme=True, host=True) in every link? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (

Re: [web2py] Re: OFF Topic -RiotJS

2015-06-09 Thread António Ramos
another one bites the dust. http://vuejs.org/guide/index.html the docs are very extensive 2015-06-08 17:38 GMT+01:00 Derek : > I just hate non-compliant html. I've always been drawn to html compliant > templates, like TAL (Template Attribute Language). > > In any case, I see that it generates h

Re: [web2py] Re: OFF Topic -RiotJS

2015-06-09 Thread António Ramos
Videos... https://laracasts.com/series/learning-vuejs/episodes/1 2015-06-09 11:21 GMT+01:00 António Ramos : > another one bites the dust. > > http://vuejs.org/guide/index.html > > the docs are very extensive > > 2015-06-08 17:38 GMT+01:00 Derek : > >> I just hate non-compliant html. I've always

Re: [web2py] Absolute URLs

2015-06-09 Thread Marin Pranjić
You don't need to force it. Use functools.partial to make your own URL helper instead. Marin On Tue, Jun 9, 2015 at 12:21 PM, Francisco Costa wrote: > How to force web2py to make all URL's absolute instead of having to write > > URL(..., scheme=True, host=True) > > in every link? > > > -- > Re

Re: [web2py] Absolute URLs

2015-06-09 Thread Francisco Tomé Costa
but that way I would have to rewrite all my apps code, can't I change the default variables in models? I would like to have host=True by default Francisco Tomé Costa +351 918412636 <+351918412636> https://www.linkedin.com/in/franciscocosta​ On Tue, Jun 9, 2015 at 12:26 PM, Marin Pranjić wrote:

Re: [web2py] Absolute URLs

2015-06-09 Thread Marin Pranjić
Ok, as you wish... Put this in model file: default_URL = URL URL = < new code here > Marin On Tue, Jun 9, 2015 at 1:30 PM, Francisco Tomé Costa < m...@franciscocosta.com> wrote: > but that way I would have to rewrite all my apps code, can't I change the > default variables in models? > I woul

Re: [web2py] Absolute URLs

2015-06-09 Thread Francisco Tomé Costa
I was looking for a classy way to change the default, didn't want to rewrite the URL() function Francisco Tomé Costa +351 918412636 <+351918412636> https://www.linkedin.com/in/franciscocosta​ On Tue, Jun 9, 2015 at 1:14 PM, Marin Pranjić wrote: > Ok, as you wish... > > Put this in model file: >

Re: [web2py] using PyCharm

2015-06-09 Thread Richard Vézina
Since they support web2py, they didn't progress much... I mean they release at least 2 PyCharm version where the focus were clearly over improving support for Django project support. But but no improve over web2py support. My guess is that their users base are Django users so they prioritize those

[web2py] Re: soap client with windows NTLM authorization

2015-06-09 Thread Pengfei Yu
Thanks for your reply! I used the proxy because I checked from the source code that proxy is the only place I can pass my username and password to pycurl from SoapClient class. I can connect to this SOAP service directly with pycurl using the code you provided. But I want to create a SoapClient

Re: [web2py] Absolute URLs

2015-06-09 Thread Marin Pranjić
Ok, sorry. I don't think there is a way to do it like that. Looking for something similar to auth.settings, right? Marin On Tue, Jun 9, 2015 at 3:32 PM, Francisco Tomé Costa < m...@franciscocosta.com> wrote: > I was looking for a classy way to change the default, didn't want to > rewrite the URL

Re: [web2py] Absolute URLs

2015-06-09 Thread Anthony
On Tuesday, June 9, 2015 at 9:32:48 AM UTC-4, Francisco Costa wrote: > > I was looking for a classy way to change the default, didn't want to > rewrite the URL() function > Note, the suggested solution is not re-writing the URL() function -- it is re-defining the URL variable in the global envir

Re: [web2py] Absolute URLs

2015-06-09 Thread Francisco Tomé Costa
Marin: Yes! Anthony: Well I was wondering if there was a simple solution. Never used functools before Francisco Tomé Costa +351 918412636 <+351918412636> https://www.linkedin.com/in/franciscocosta​ On Tue, Jun 9, 2015 at 3:33 PM, Anthony wrote: > On Tuesday, June 9, 2015 at 9:32:48 AM UTC-4, F

Re: [web2py] Absolute URLs

2015-06-09 Thread Anthony
On Tuesday, June 9, 2015 at 10:48:25 AM UTC-4, Francisco Costa wrote: > > Marin: Yes! > > Anthony: Well I was wondering if there was a simple solution. Never used > functools before > In a model file: import functools URL = functools.partial(URL, scheme=True, host=True) Anthony -- Resources:

Re: [web2py] Absolute URLs

2015-06-09 Thread Francisco Tomé Costa
thanks for the solution Anthony, it works pretty well Francisco Tomé Costa +351 918412636 <+351918412636> https://www.linkedin.com/in/franciscocosta​ On Tue, Jun 9, 2015 at 4:19 PM, Anthony wrote: > On Tuesday, June 9, 2015 at 10:48:25 AM UTC-4, Francisco Costa wrote: >> >> Marin: Yes! >> >> An

Re: [web2py] Re: Sublime Text web2py plugin

2015-06-09 Thread António Ramos
I cant install web2py sublimeRepl via W2p:Add sublimeREPL support Just see on status bar "Loading Repositories " and nothing more then i search for it and i get this only [image: Imagem inline 1] Any help ? i´m on windows 7 2015-05-21 17:21 GMT+01:00 António Ramos : > XDebug looks nice but is

Re: [web2py] Re: Virtual fields disapeared from select() results (v2.11.2)

2015-06-09 Thread Paolo Valleri
ok, the fix is here https://github.com/web2py/pydal/pull/211 Paolo On Tuesday, June 9, 2015 at 10:44:59 AM UTC+2, tim.n...@conted.ox.ac.uk wrote: > > Lovely! I was just about to post this problem. > > On Tuesday, 9 June 2015 07:56:35 UTC+1, Paolo Valleri wrote: >> >> I see the problem now, than

[web2py] Re: object 'DAL' has no attribute 'Field' - After update 2.11.2

2015-06-09 Thread Niphlod
if you'r ecoming from an older version, the structure of packages changed a bit and so the usual "unzip over it" doesn't work . Try to start with a "unzip" in a fresh folder and then copy over your applications only. it should work fine. On Tuesday, June 9, 2015 at 10:47:54 AM UTC+2, Tomeu Roig

[web2py] Re: using anyserver.py in production

2015-06-09 Thread Lewis
Someday, I'll try ansible. Spelling correction to the rescue. On Sunday, June 7, 2015 at 7:51:06 PM UTC-7, Lewis wrote: > > Thanks for all this. > > So, the world seems to back UWSGI as the preferrred solution. I'll get > over it. I see that you are saying that once when one does need > perfo

[web2py] web2py menu dies?

2015-06-09 Thread LoveWeb2py
Sometimes my menu just stops working and users can't click the links. It's specific to one page that uses a modal and bootstrap. Is there any known reasons of why this might be happening and what could I check to troubleshoot? -- Resources: - http://web2py.com - http://web2py.com/book (Documen

Re: [web2py] web2py menu dies?

2015-06-09 Thread Richard Vézina
Did you check for js error in chrome dev tool? You must have an error somewhere, a missing lib or something... On Tue, Jun 9, 2015 at 1:02 PM, LoveWeb2py wrote: > Sometimes my menu just stops working and users can't click the links. > > It's specific to one page that uses a modal and bootstrap.

Re: [web2py] Bug with Blocks

2015-06-09 Thread Richard Vézina
Hello Jason, There is this issue open : https://github.com/web2py/web2py/issues/772 Though, I am not sure I understand you issue... Richard On Tue, Jun 9, 2015 at 3:07 AM, Jason (spot) Brower wrote: > I think I found a bug with blocks. > In my base_layout.html > {{block page_title}}{{end}}

Re: [web2py] Re: OFF Topic -RiotJS

2015-06-09 Thread Dave S
On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote: > > another one bites the dust. > > "bites the dust" is used for something that (or someone who) has been shot down; a final face-plant. Are you saying the link below is a dead tool? > http://vuejs.org/guide/index.html > > the docs

Re: [web2py] web2py menu dies?

2015-06-09 Thread LoveWeb2py
No errors, Richard. I checked in Chrome. It looks like the div's are all okay too. Wasn't sure if anyone else had this problem. A little more insight: I select a record by doing {{myrecords = db(db.table.field==db.anothertable.anotherfield).select(db.table.field.ALL)}} then i check to see {

Re: [web2py] web2py menu dies?

2015-06-09 Thread Richard Vézina
Paste the whole code here if you can, because it is really hard to see the relation between your issue with menu and the "psedo" code you show above... On Tue, Jun 9, 2015 at 3:07 PM, LoveWeb2py wrote: > No errors, Richard. I checked in Chrome. It looks like the div's are all > okay too. Wasn't

[web2py] Re: soap client with windows NTLM authorization

2015-06-09 Thread Derek
alright, well you are going to have to modify the client.py for pysimplesoap then in order to achieve this. I'd suggest you add a variable to the class like 'USERPWD' and populate it. Take a look at lines 75+. See all those 'setopt' calls? Add in your own for HTTPAUTH and USERPWD ... On Tuesda

Re: [web2py] All messed up

2015-06-09 Thread weheh
Thanks for the pointers. @Massimiliano, the suggestion is a good one but I found my pg_hba.conf file was OK. I finally got this working by rebooting the machine, so I'm closing the issue. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2p

Re: [web2py] Re: How to pass arguments with a form

2015-06-09 Thread Chaitu P
Where should I write this. Is it in controller or view On Mon, Jun 8, 2015 at 4:53 AM, Anthony wrote: > If you really need the id's in the URL to which the form is submitted, you > can specify the form's "action" attribute: > > form = FORM(..., _action=URL(..., vars=dict(question_id=question_id,

[web2py] represent for SQLFORM.grid

2015-06-09 Thread info
Hello, The represent works fine for grid view but I need to apply represent function for the add, edit forms. db.product.price.represent = lambda x, row: current.currency.format_price(x) Inside html template I use {{=form}} as well as {{=form.custom.widget.price}} Thank you for the help. --

[web2py] Re: Connecting to postgresql - where do I put schema name in the connection?

2015-06-09 Thread WebAppDev_PS
I am running postgresql 9.2 Yep you were right I had not set default schema correctly. (face palm) I also discovered the command: db.executesql("set search_path to public;") Thanks for reply On Monday, June 8, 2015 at 8:32:30 PM UTC+10, Niphlod wrote: > > except from the obvious "seems that th

[web2py] Consume web2py rest api from native Android App

2015-06-09 Thread Josh Dobbs
I have written a rest api with web2py and am trying to consume the api using Volley in my my Android app. I consistently get an error response of "Unexpected response code 401". This appears to be an auth issue but I'm not sure exactly what I have to do. Is there a specific auth library to use?

[web2py] wish to display a leftsidebar menu

2015-06-09 Thread jackson . read
I am a newbie. I am trying to build a web interface w/web2py that will have a leftsidebar menu as part of the layout for all views. I know that you can set a global via the controllers return dict. like:return dict(form=grid, left_sidebar_enabled = True)But how do I get the menu there, that

Re: [web2py] Re: OFF Topic -RiotJS

2015-06-09 Thread António Ramos
No, of course not. On the contrary, i know hate angularjs after reading about vuejs. I wish i knew it before 2015-06-09 19:58 GMT+01:00 Dave S : > > > On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote: >> >> another one bites the dust. >> >> > "bites the dust" is used for something

Re: [web2py] Re: How to pass arguments with a form

2015-06-09 Thread 黄祥
according to anthony code, it seems to write in controller and then in view just write {{=form}} best regards, stifan > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (

Re: [web2py] Re: How to pass arguments with a form

2015-06-09 Thread Anthony
On Tuesday, June 9, 2015 at 4:51:59 PM UTC-4, Chaitu P wrote: > > Where should I write this. Is it in controller or view > It depends on where you define the form. If you create the form using the FORM or SQLFORM helpers in the controller, then that's where you do it. If you create the form usi

[web2py] Re: represent for SQLFORM.grid

2015-06-09 Thread Anthony
The "represent" attribute doesn't apply to form widgets. For that, you will need to create a custom widget and specify the "widget" attribute of the Field. Anthony On Tuesday, June 9, 2015 at 4:51:59 PM UTC-4, i...@softmanufacture.com wrote: > > Hello, > > The represent works fine for grid vie

[web2py] Re: Importing a csv I get (name 'step' is not defined)?

2015-06-09 Thread Evan Caldwell
I'm getting this same error and cannot figure it out. Any help would be much appreciated. On Wednesday, July 16, 2014 at 4:12:28 PM UTC-6, Jakob Hartman wrote: > > name 'step' is not definedVersionweb2py™Version > 2.9.5-stable+timestamp.2014.03.16.02.35.39PythonPython 2.7.8: > /Library/Frame

[web2py][OT] time for kickstarter

2015-06-09 Thread Richard
Have you seen this : https://www.kickstarter.com/projects/nickjj/build-a-saas-app-with-flask-and-deploy-it-with-doc?ref=category web2py has almost everything out of the box... :) Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2

Re: [web2py] Re: OFF Topic -RiotJS

2015-06-09 Thread Massimo Di Pierro
vue.js look like a stripped version of ractive.js. The syntax is identical for what it provides. On Tuesday, 9 June 2015 16:36:49 UTC-5, Ramos wrote: > > No, of course not. > > On the contrary, i know hate angularjs after reading about vuejs. > > I wish i knew it before > > 2015-06-09 19:58 G

Re: [web2py] Re: Importing a csv I get (name 'step' is not defined)?

2015-06-09 Thread Gmail
Trying to go back to that point in time I think it has to do with something in the database that does not agree with how things are that is all that I can recall o wonder if you can go back to previous conversations had Sent from my iPhone > On Jun 9, 2015, at 5:46 PM, Evan Caldwell wrote: >

[web2py] Re: example of model w/ model graph, multi-tenancy, record versioning (incl auth tables), and record uid

2015-06-09 Thread Gene
Regarding the appending of common fields, seems to work for me when its declared at the beginning of the model file, not end. Does the placement matter, can anyone confirm/deny? On Sunday, March 24, 2013 at 5:18:39 AM UTC+8, Peter Etchells wrote: > > > #this at end of model > > #example of extr

Re: [web2py] Re: Sublime Text web2py plugin

2015-06-09 Thread Gergely Orosz
Hi Ramos, I fixed an issue in the Add REPL support command I pushed the changes so w2p plugin should be updated automagicly via PackageControl. If you still have issues please let me know Regards Greg 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta: > > I cant install we

Re: [web2py] Bug with Blocks

2015-06-09 Thread Jason (spot) Brower
I solved my issue by putting the block with the new content before the extend on the page. Weird as it is, when you do that it won't print the content in the place it was but only in the block locations defined. I suppose that was the intended result, am I right? BR, Jason Brower On Tue, Jun 9,