Re: [web2py] Re: Adding entry to the printed book index

2015-02-11 Thread Tom Campbell
Stuff like this: Between "Web Services" and "websockets" I'd put web2py_ajax_component Between "load" and "Lotus Notes" I'd put locals() Between "Expression" and "extent" I'd put extend (or insert {{extend}} at the beginning?) On Wed, Feb 11, 2015 at 11:30 PM, Niphlod wrote: > please give an

[web2py] Re: Adding entry to the printed book index

2015-02-11 Thread Niphlod
please give an example of what you're trying to add ^_^ On Wednesday, February 11, 2015 at 11:33:04 PM UTC+1, Tom Campbell wrote: > > I'd like to add terms to the book's index. Looked at the book source > on github > but couldn't fig

Re: [web2py] Re: Question about web2py roadmap.

2015-02-11 Thread Julio F. Schwarzbeck
I beg to disagree, or perhaps I did not clarify in my original posting. Down in this thread, I believe you mention that (re)used helpers (could) go in modules, which I agree by the way, what I meant to say is that in a potentially complex application, where many common components are usually re

Re: [web2py] Re: Question about web2py roadmap.

2015-02-11 Thread Julio F. Schwarzbeck
I beg to disagree, or perhaps I did not clarify in my original posting. Down in this thread, I believe someone mentions that (re)used helpers (could) go in modules, which I agree by the way, what I meant to say is that in a potentially complex application, where many common components are usual

[web2py] Re: Is SQLFORM hardcoded to use layout.html?

2015-02-11 Thread Tom Campbell
Um... I put the view in /views/new.html, not /views/default/new.html. TIME TO GET SOME SLEEP -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received

[web2py] Is SQLFORM hardcoded to use layout.html?

2015-02-11 Thread Tom Campbell
I'm sure it's not, that title was just click bait :-O I have created a file called ltelayout.html, based on layout.html. My new() method in default.py is: def new(): return dict(form=SQLFORM(db.todo, submit_button='Save')) My view new.html is: {{extend 'ltelayout.html'}} NEW!! {{=form}}

[web2py] Adding entry to the printed book index

2015-02-11 Thread Tom Campbell
I'd like to add terms to the book's index. Looked at the book source on github but couldn't figure out where that would happen so I could issue a pull request. Can someone give me a brief description of where I'd find it? Thanks! -

Re: [web2py] Redirect Error

2015-02-11 Thread Dave S
On Wednesday, February 11, 2015 at 8:48:17 AM UTC-8, Richard wrote: > > Seeing the whole controller and view may help... You can also try just > your redirection that fail in a new controller function to see if it works > or not... Just a simple redirect not the in your controller but if it cou

[web2py] Re: BLOB fields in MSSQL Server

2015-02-11 Thread Niphlod
> But it happens that when trying to upload a file upload the following > error occurs: > > *DataError: ('22018', '[22018] [FreeTDS][SQL Server]Operand type clash: > text is incompatible with image (206) (SQLExecDirectW)')* > This is perfectly fine. web2py adopts a convention that simplifies t

[web2py] Re: BLOB fields in MSSQL Server

2015-02-11 Thread Niphlod
this has nothing to do with the aforementioned error (operand type clash). In addition to that, TEXTSIZE just limits what a text, image, varbinary, varchar field is allowed to be fetched, not stored. Since web2py is using odbc, and odbc uses the max limit that you mention by default, if you're

Re: [web2py] Re: web2py and security

2015-02-11 Thread Dave S
On Wednesday, February 11, 2015 at 8:07:10 AM UTC-8, Rufus wrote: > > > I am not too active or up to date on security, I assume you already looked > at: > > http://www.web2py.com/book/default/chapter/01#Security > > and at the end of the section it referenced generic python security here: > >

[web2py] Re: Drill-down menu with PostgreSQL

2015-02-11 Thread Niphlod
did you actually timed the queries ? without knowing the cardinality of the sets, it's pretty impossible to say that a single big-query will be more efficient than 4 on small subsets. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] Re: Testing and web2py - especially appadmin

2015-02-11 Thread Dave S
On Wednesday, February 11, 2015 at 5:20:28 AM UTC-8, James O' Driscoll wrote: > > All. > > I have not been receiving any feedback with regards testing. > You might want to check over on web2py-developers, if the book isn't any help. http://web2py.com/books/default/chapter/29/15/helping-web2py

[web2py] Re: Stange behavior with SQLFORM 'fields' parameter

2015-02-11 Thread Spokes
Yep, my intention was to use field_list afterwards, and it's simple enough to get around the problem. The bigger issue may be that the side effect in question can cause bugs that are a bit trickier than usual to track down, since it's happening under the hood, so to speak, and is unexpected. I

[web2py] Re: Stange behavior with SQLFORM 'fields' parameter

2015-02-11 Thread Anthony
If you need to use field_list elsewhere and don't want it to be mutated by SQLFORM, then just pass a copy of it to SQLFORM instead. import copy form = SQLFORM(db.t_table_1, fields = copy.copy(field_list)) I suppose SQLFORM could be changed to do the copying itself. Anthony On Wednesday, Februa

[web2py] Stange behavior with SQLFORM 'fields' parameter

2015-02-11 Thread Spokes
After passing a list to SQLFORM's 'fields' parameter, it appears that 'id' is prepended to that list. For example: field_list = ['field_1', 'field_2', 'field_3', ...] form SQLFORM(db.t_table_1, fields = field_list) After the above statements are executed, 'field_list' is equal to ['id', 'field_

[web2py] Drill-down menu with PostgreSQL

2015-02-11 Thread Louis Amon
I am trying to build a geo-based drill-down sitemap for my website, pretty much like this https://www.airbnb.com/sitemaps/western-europe?locale=en What I have is a model with the following fields: administrative_area_level_1 administrative_area_level_2 locality sublocality_level_1 I could loop o

[web2py] Re: db value display

2015-02-11 Thread Alex Glaros
This is the way you control the data. readable=False/True controls what user sees fields = [] control what your code and query can manipulate behind the scenes -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://c

Re: [web2py] Redirect Error

2015-02-11 Thread Richard Vézina
Seeing the whole controller and view may help... You can also try just your redirection that fail in a new controller function to see if it works or not... Just a simple redirect not the in your controller but if it could be using the same url parameter... For instance pass the id instead of gettin

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

2015-02-11 Thread Massimo Di Pierro
I have used both and I think handsontable is much superior and customizable. On Monday, 9 February 2015 20:50:00 UTC-6, Michael Beller wrote: > > I've started using http://www.datatables.net/ primarily for the great > search and responsive behavior. I've read about the inline support but > have

[web2py] Re: New Application Wizard - Layout Themes and Plugins

2015-02-11 Thread Massimo Di Pierro
oops. On Monday, 9 February 2015 19:17:07 UTC-6, chris_g wrote: > > I have noticed that the "New Application Wizard" ( /admin/wizard/step1 ) > does not contain any Layout Themes or Plugins. See attachment. > > According to this post ( > https://groups.google.com/d/msg/web2py/frUArP3gp6w/PCx2Z-3g

Re: [web2py] Re: web2py and security

2015-02-11 Thread Rufus Smith
I am not too active or up to date on security, I assume you already looked at: http://www.web2py.com/book/default/chapter/01#Security and at the end of the section it referenced generic python security here: http://www.pythonsecurity.org/ Rufus On 2/11/2015 8:23 AM, James O' Driscoll wrot

[web2py] Re: Testing and web2py - especially appadmin

2015-02-11 Thread James O' Driscoll
All. I have not been receiving any feedback with regards testing. So are no tests available for key functions supplied with web2py, i.e. appadmin. If this is the case, it is a definite downside to the framework. Regards, James On Thursday, February 5, 2015 at 1:10:31 PM UTC+10, James O' Drisc

[web2py] Re: db value display

2015-02-11 Thread 'Laer Cius' via web2py-users
Thanks for your anwer. It actually works.. I don't really get why. But anyway, I think the right way to achieve this is the showid=False sqlform option. I read the whole db doc but forget to check exhaustively the form docs. Thanks again. ;) -- Resources: - http://web2py.com - http://web2py.com

[web2py] can we have web2py groups with AD authentication ?

2015-02-11 Thread Gary Cowell
I would like my app to authenticate with AD (ldap) for users and passwords. But, I'm not in control of the LDAP, and I can't get them to add new groups etc. and the app requires users to be in a web2py admin group to do certain admin functions within the app. So at the moment, I'm using standar

[web2py] Re: Showing menu only after successful login

2015-02-11 Thread Simon Marshall
thank you to you both, i tried each solution and the second one works best for me! Simon -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received th

[web2py] Re: submenus in layout

2015-02-11 Thread Gary Cowell
oh and the reason mine didn't work is, the layout plugins on web2py don't use bootstrap it seems. I changed to using a bootstrap3 scaffold, and a themed bootstrap.min.css, and it worked fine. On Tuesday, 10 February 2015 08:33:01 UTC, Yebach wrote: > > > I would like to create a drop down menu i

[web2py] Re: web2py and security

2015-02-11 Thread James O' Driscoll
Rufus, I am asking how to configure web2py for maximum security. I am not an expert either but you cannot be too careful. I am just looking for general good sources of info. Regards, James On Sunday, November 23, 2014 at 6:55:52 AM UTC+10, Rufus wrote: > > What aspect of security are you conc

Re: [web2py] import gluon.tools under private modules

2015-02-11 Thread Vinicius Assef
See http://web2py.com/books/default/chapter/29/04/the-core#API On Tue, 10 Feb 2015 18:54:33 -0300 lucas wrote >hey everyone, > >i am writing a private module, like dude.py under applications/app/private. >how do i access the web2py library like > > >from gluon.tools import Mail > >

[web2py] Conditional https but none or all

2015-02-11 Thread cem
Hi, I would like to force https before login and after authentication for all the site. I would like also to force http (if there is any direct https request) for the fact that the visitor is not authenticated and is not requesting to do so. By definition, auth's secure=True parameter seems to

[web2py] Re: import gluon.tools under private modules

2015-02-11 Thread Leonel Câmara
That's not the right folder to put your module files. You should put it in: /opt/web-apps/web2py/applications/afs/modules -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

[web2py] Re: import gluon.tools under private modules

2015-02-11 Thread lucas
yes it is under the /opt/web-apps/web2py/applications/afs/private folder. what i really want to do is run this private module as a python script under bash console. because if i try to run it under the controller, it will consume all of the CPU and leave the main website locked until the proce

Re: [web2py] How to run web2py on Linux Shared Hosting With No Shell, or SSH access

2015-02-11 Thread Carlos Cesar Caballero Díaz
Hi, sometimes clients have a shared hosting, and they don't want to change... The most recommended way is wcgi or mod python, but if the shared hosting not support it, and you have no option, you can run it with the cgi support (almost all support it), really not recomended because of perform

[web2py] Re: import gluon.tools under private modules

2015-02-11 Thread Leonel Câmara
Is your module in the application's modules folder? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed t

[web2py] Re: import gluon.tools under private modules

2015-02-11 Thread lucas
well when i try to import a file.py from the private folder in a controller file, web2py throws back that it can't import the file. how come? On Tuesday, February 10, 2015 at 9:55:58 PM UTC-5, Leonel Câmara wrote: > > You can do exactly that. > -- Resources: - http://web2py.com - http://web2py