[web2py] simple seo plugin

2015-08-27 Thread Carlos Cesar Caballero Díaz
Hello everyone!! There (https://github.com/daxslab/web2py-simple-seo) is a plugin for adding easily some SEO meta tags including Open Graph and Twitter Card. Any critique, suggestion, recommendation etc... would be appreciated. -- Este mensaje le ha llegado mediante el servicio de correo

[web2py] Re: Unable to install HandsOnTable plugin

2015-08-27 Thread Martti Lamberg
Okay, I can't get it to work. I did like in this tutorial: http://docs.handsontable.com/0.17.0/tutorial-quick-start.html I embed the library directly from their server. It seems like it crashes at the var hot expression var hot statement Here's my html file: {{extend 'layout.html'}} div

[web2py] JQuery Mobile Plugin

2015-08-27 Thread Cypher
Can someone out there please assist me here, i want my website to appear right on mobile devices, cellphones and tablets but i am having a pretty hard time using the jquery mobile plug in, how does it work??? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: IronPython support

2015-08-27 Thread Richard Vézina
I could be interresting in IronPython from a compliance stand point, even if it doesn't change anything, manager may be less anxious with ms crap... :) Richard On Mon, Apr 6, 2015 at 11:58 AM, Derek sp1d...@gmail.com wrote: It doesn't have a GIL, plus it has a good JIT and I know Web2Py works

Re: [web2py] Re: IronPython support

2015-08-27 Thread Richard Vézina
Derek, where is the gain come with PyPy? Just loading the welcome index, CPython I get a steady 20 ms and PyPy 50-75 ms with a simple page load and relaod test with chrome dev tool... Richard On Thu, Aug 27, 2015 at 3:45 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: I could be

[web2py] Re: Web2py Restfull API Token authentication

2015-08-27 Thread Matheus Cardoso
Actually with this declaration, you can do update, delete, get, query et cetera, because Angular knows what to do in each case. However, you r right about not stripping /id, hence it would not works with web2py API. But I'll make a long shot guess: considering that you can override controllers

Re: [web2py] Re: IronPython support

2015-08-27 Thread Derek
It gains on complex templated pages, mainly. If you are just accessing databases, you won't get speed increases. If your server is CPU overloaded, switching to PyPy will benefit. On Thursday, August 27, 2015 at 1:05:45 PM UTC-7, Richard wrote: Derek, where is the gain come with PyPy? Just

[web2py] Using form.element to show hide form element

2015-08-27 Thread José Eloy
Hi! Is it possible to use form.element to show/hide form elements? I'd like to use: form.element(#id_element)['_show'] = True to show an element or form.element(#id_element)['_show'] = False to hide an element Thanks. -- Resources: - http://web2py.com -

[web2py] error with CONTS in models

2015-08-27 Thread Dmitri Ermolaev
in models - 0.py or menu.py I declare: CONST1 = 1 conts2 = 2 in controller I use this constatns - all work, BUT if I call an ajax function: onclick=''' //$(this).css('z-index','0'); $('#tag%s').hide('fast');

[web2py] Re: error with CONTS in models

2015-08-27 Thread Dmitri Ermolaev
in models/0.py that code work: if request.cookies.has_key('gift_code'): ## если онн уже дежжит в кукиях то берем его а не новый из запроса MY_GIFT_CODE = request.cookies['gift_code'].value #print 'in cookies gift_code:', MY_GIFT_CODE else: # если в кукиях нет кода то возможно он

[web2py] How to define id for a form created with SQLFORM.factory ?

2015-08-27 Thread at
Hi, A quick and silly question: *How to define id for a form created with SQLFORM.factory?* 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

[web2py] Re: Using form.element to show hide form element

2015-08-27 Thread Anthony
What are you trying to achieve? Do you want fields to be shown/hidden dynamically in the browser based on the values of other fields? If so, see http://web2py.com/books/default/chapter/29/07/forms-and-validators#Conditional-fields or use custom Javascript. If you want to hide a given field

[web2py] Re: error with CONTS in models

2015-08-27 Thread Dmitri Ermolaev
solved: I declare consts in IF block but need in main list exanlpe1: if condition1: CONST1=a else: CONST1=b --- will raise error right: CONST1 = None if condition1: CONST1=a else: CONST1=b пятница, 28 августа 2015 г., 7:38:56 UTC+3 пользователь Dmitri Ermolaev написал: in

[web2py] Re: error with CONTS in models

2015-08-27 Thread Dmitri Ermolaev
nor worked again (( I declare const GIFT_CODE: GIFT_CODE = None if ...: GIFT_CODE=1 else: GIFT_CODE=0 then in any ajax call print GIFT_CODE - raise error (( пятница, 28 августа 2015 г., 7:38:56 UTC+3 пользователь Dmitri Ermolaev написал: in models - 0.py or menu.py I declare: CONST1

Re: [web2py] Re: ldap import problem

2015-08-27 Thread Johann Spies
Thanks Massimo. After installing python-ldap the problem was solved. I did not realise that the package in gluon/contrib was dependent on external stuff. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- Resources: -

[web2py] Grid query

2015-08-27 Thread Johann Spies
In SQL I can do select doctype, sum(count) number from wos.za_publications where pubyear 1979 group by doctype; In the web2py shell I can do: db.define_table('wos_papers_by_dt', Field('pubyear', 'integer'), Field('doctype'),

[web2py] Re: Web2py Restfull API Token authentication

2015-08-27 Thread Stefan van den Eertwegh
If i am correct, that is for a single call. I want to use the $resource call for several calls like update, delete, get, query et cetera. And if you do not use :id it strips :id but not /id/.. Op woensdag 26 augustus 2015 23:16:59 UTC+2 schreef Matheus Cardoso: Stefan, If I'm not wrong you

[web2py] manually enter input in form

2015-08-27 Thread Iancic Bogdan
The user enters input to fill the form, but I want to manually complete one field. I've tried using document.getElementById(certificate_request_commonname__row).createAttribute(value,abc); but it doesn't work. In the form i'm adding data to a table. certificate_request is the name of the table