[web2py] Re: markmin and newline

2015-04-19 Thread Martin Weissenboeck
Solved. I need 2 or more blank lines. :-) 2015-04-19 22:54 GMT+02:00 Martin Weissenboeck : > What I want to do: > I have a table with a textfield and I want to store some markmin-coded > text in this field. But markmin needs an end of line after each paragraph. > How can I add a newline using th

[web2py] Re: question about components

2015-04-19 Thread Ramkrishan Bhatt
I am agree with Massimo you must try angular or reactive to make SPA. It will surly solve your problem. -- 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) --- Y

[web2py] Re: Need support for web2py application with over 1 million users.

2015-04-19 Thread Ramkrishan Bhatt
GAE is better for scale application but developer should know indexing and optimized DAL Table. I guess you may facing problem while playing DAL objects in function. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - htt

[web2py] instagram login

2015-04-19 Thread www.diazluis.com
greetings, one could publish the adapted code to login on instagram? try to, but I overcame :( I do not have the ability to adapt oauth20_account.py to work with it: from instagram.client import InstagramAPI instagram_api = InstagramAPI(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, redirec

[web2py] creating DAL from SQL file

2015-04-19 Thread Ron Chatterjee
I have the following SQL file: BEGIN TRANSACTION; CREATE TABLE topic( id INTEGER PRIMARY KEY AUTOINCREMENT, title CHAR(512) NOT NULL, is_active CHAR(1), created_on TIMESTAMP, created_by INTEGER REFERENCES auth_user (id) ON DELETE CASCADE, modified_on TIMESTAMP, modified

[web2py] markmin and newline

2015-04-19 Thread Martin Weissenboeck
What I want to do: I have a table with a textfield and I want to store some markmin-coded text in this field. But markmin needs an end of line after each paragraph. How can I add a newline using the admin app? I have tried \n and \r without success. Any hints? Regards, Martin - -- Resources: -

[web2py] Re: question about components

2015-04-19 Thread Dmitry Ermolaev
aj = "ajax('%s',[],'main')" response.menu = [ (T('Home'), URL('default', 'index')==URL(), URL('default', 'index'), []), (T('Menu1'), URL('default', 'menu1')==URL(), dict(_onclick=aj % URL('default', 'menu1')), []), (T('Menu2'), URL('default', 'menu2')==URL(), dict(_onclick=aj % URL('

Re: [web2py] LOAD component inside component

2015-04-19 Thread Dmitry Ermolaev
# -*- coding: utf-8 -*- AJ_FROM_SERVER = True UPD_TIMEOUT = 6000 def reload_btn(s): return DIV(T('RELOAD'), _onclick = 'ajax("%s", [], "reload_tag")' % URL('aj_load2','reload'), _class='btn btn-info') def reload(): session.counter = (int(session.counter or 0)) + 1

Re: [web2py] Re: Querying in appadmin

2015-04-19 Thread António Ramos
The appadmin seems stuck in time. It needs some improvements and having available DAL queries would be great. Regards António 2015-04-16 15:44 GMT+01:00 Anthony : > In appadmin, you can specify a query to define which records to select, > but you cannot specify columns or expressions to calcula

Re: [web2py] LOAD component inside component

2015-04-19 Thread Dmitry Ermolaev
simple use *.html view - not *.load and use URL for set controller/function in LOAD() I not use same views - onlu generic.html by: def load_func_2(): h = CAT() h += ... ... return h def load_func(): ... h = CAT() h += LOAD(URL('contloller','load_func_2', args=[], vars={}), ) retu