[web2py] Re: where is pydal doc ?

2017-11-10 Thread Lars
Thanks a lot for the thorough explanation, I will keep that in mind for my future investigations. > -- 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) ---

[web2py] Re: where is pydal doc ?

2017-11-09 Thread Lars
> As suggested, if you can't find documentation on something, first trying > searching this forum, as there are several posts explaining > decode_credentials (e.g., > https://groups.google.com/d/msg/web2py/xPREtSr3-PI/xx5EPVrU738J). It has > nothing to do with database encryption. Rather,

[web2py] Re: where is pydal doc ?

2017-11-09 Thread Lars
Thanks for the support, I already feel less less. :) On Wednesday, November 8, 2017 at 3:40:33 PM UTC+1, Leonel Câmara wrote: > > Lars I think everyone agrees the pyDAL codebase should be better > documented. I even opened up an issue about it > https://github.com/web2py/pydal/issu

[web2py] Re: where is pydal doc ?

2017-11-08 Thread Lars
ok a few months ago, all for realise when I was finished that it was already done. Thanks to all that are still awake. On Tuesday, November 7, 2017 at 9:24:04 PM UTC+1, Dave S wrote: > > > > On Tuesday, November 7, 2017 at 7:59:19 AM UTC-8, Lars wrote: >> >> I really d

[web2py] Re: where is pydal doc ?

2017-11-07 Thread Lars
I really didn't want to argue on this, I just said how I feel, that's all. Sorry if I offended anyone. On Tuesday, November 7, 2017 at 4:52:18 PM UTC+1, Anthony wrote: > > On Tuesday, November 7, 2017 at 4:22:44 AM UTC-5, Lars wrote: >> >> Hi Anthony, >> >&g

[web2py] Re: where is pydal doc ?

2017-11-07 Thread Lars
Hi Anthony, > I think that convers most of the arguments Actually 11 on 24... ;) -- 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

Re: [web2py] where is pydal doc ?

2017-11-06 Thread Lars
: > > This helps? > http://pydal.readthedocs.io/en/latest/_modules/pydal/base.html?highlight=DAL > > > Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ > > On 06-Nov-17 9:02 PM, Lars wrote: > > Hi, > > I would like t

[web2py] where is pydal doc ?

2017-11-06 Thread Lars
Hi, I would like to use pydal but I can't seem to find the documentation (except from this one : http://pydal.readthedocs.io/en/latest/). But I didn't find (sorry if I missed it) anywhere explained the DAL constructor parameters for example. Is there any ? And where please ? Thank you --

[web2py] checkbox don't appear

2017-09-21 Thread Lars
Hi, I want to display a form with the following code : def display_line(): T = current.T try: return TR( TD(id), TD(file_name), TD(file_size), TD(file_type), TD(INPUT(_type='submit', _name=T('Rename'), _value=T('Rename'

[web2py] Re: logging

2017-08-31 Thread Lars
The code needs to be in model not in modules. Could anyone explain why ? On Thursday, August 31, 2017 at 12:38:32 PM UTC+2, Lars wrote: > > Hi, > > I have this code in dlogging.py in the modules folder of my app : > > import logging > import logging.handlers > >

[web2py] logging

2017-08-31 Thread Lars
Hi, I have this code in dlogging.py in the modules folder of my app : import logging import logging.handlers def get_configured_logger(name): global logger logger = logging.getLogger(name) if len(logger.handlers) == 0: fh =

[web2py] Re: how to use a specific driver for the database

2017-08-30 Thread Lars
In any case, you can be explicit via the connection string: > > 'postgres:psycopg2://...' > > Anthony > > On Wednesday, August 30, 2017 at 11:16:32 AM UTC-4, Lars wrote: >> >> Hi, >> How can we use for example : psycopg2 instead of pg8000 which is default ? &g

[web2py] Re: Modules do not reflected changes.

2017-08-30 Thread Lars
Hi, You need to write at the beginning of the app models : from gluon.custom_import import track_changes track_changes(track=True) Regards On Wednesday, August 30, 2017 at 4:56:54 PM UTC+2, Claudio Andre wrote: > > Hello, > > I'm using web2py 2.15.3-stable on Kali (debian) and having a strange >

[web2py] how to use a specific driver for the database

2017-08-30 Thread Lars
Hi, How can we use for example : psycopg2 instead of pg8000 which is default ? Thanks -- 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

[web2py] Re: rendering multiple components in ajax call

2017-05-10 Thread Lars
The solution is to put the table and the form in a div not in a dict. Simple enough.. ^^ On Wednesday, May 10, 2017 at 10:35:42 PM UTC+2, Lars wrote: > > Hi, > > Those are my first steps with ajax, so please indulge me.. :) > > I have a list of divs describing objects. Id li

[web2py] Re: How do I change the sqlform button location

2017-05-10 Thread Lars
Hi, For custom styles, you should use the web tools addons in firefox to get the chain of formattings : you click on the button you want to customize and you have all css styles matching it. To change the disposition of the widgets (input, button, etc..), for a complete customization you

[web2py] rendering multiple components in ajax call

2017-05-10 Thread Lars
Hi, Those are my first steps with ajax, so please indulge me.. :) I have a list of divs describing objects. Id like to click on one div so that it sends the object id in an ajax call which would open a div at the top with the object description and a form to bid on it. I don't know how to

[web2py] Re: xml() error when BEAUTIFY globals()

2017-03-24 Thread Lars
I went for something even simpler : I bypass BEAUTIFUL.. I just wanted a view with everything named : def my_beautify(component): t = TABLE() if isinstance(component, dict): for k, v in component.iteritems(): if v is None or isinstance(v, (bool, str)):

[web2py] xml() error when BEAUTIFY globals()

2017-03-23 Thread Lars
Hi, Everything is in the title : I try to have a BEAUTIFY look at copy.copy(globals()) and I get an xml error line 131 in html.py : data is empty for : return data.xml() Why can't we beautify globals() ? Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] global name DIV not defined

2017-03-15 Thread Lars
; automatically imported since they are not used as often. >> >> The core API entities in the web2py execution environment are request, >> response, session, cache, URL, HTTP, redirect and Tand are discussed >> below." >> >> >> Then a little further : &

Re: [web2py] global name DIV not defined

2017-03-14 Thread Lars
Actually it comes from T, the issue remains even with no xml() or XML involved. Sorry but I reduced the function to the wrong line : I had a T = current.T at the beginning of get_dashboard() which deletion didn't suppress the issue. It seems that an involuntary (my bad) spelling of the

[web2py] global name DIV not defined

2017-03-13 Thread Lars
Hi, I have this small code in the dashboard module: from gluon.html import DIV def get_dashboard(): return DIV( DIV('Lorat ipsum etc', _class='dashboard alert'), _class='center-box').xml() and this one in default.py : def index(): from modelling.dashboard import

[web2py] Re: what are hooks - modelless ?

2017-03-02 Thread Lars
standard web2py db.define_table calls inside a > function rather than using the complex class-inheritance-based approach > shown in this slice. > > Anthony > > On Thursday, March 2, 2017 at 10:01:09 AM UTC-5, Lars wrote: >> >> Hi, >> >> Could someone please

[web2py] what are hooks - modelless ?

2017-03-02 Thread Lars
Hi, Could someone please explain to me how to use hooks in that code ? http://www.web2pyslices.com/slice/show/1479/model-less-apps-using-data-models-and-modules-in-web2py Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: Oh, Reddit :(

2011-02-07 Thread Lars Hansson
But what exactly is his complaint? Would it have hurt for him to actually, you know, explain? --- Lars

Re: [web2py] Why web2py? and not django?

2011-01-26 Thread Lars Hansson
Yeah, but if everyone sits around waiting for the champion to appear there won't be one. Someone has to take the plunge. Cheers, Lars Hansson