Para maior segurança, a melhor prática é armazenar as senhas
criptografadas, nunca no formato original, então os frameworks utilizam
bibliotecas que são capazes e verificar se a senha que vc colocou bate com
a criptografia sem nunca revelar a senha criptografada. Se vc quer oferecer
a opção do usuá
# controller return javascript(Jquery) to eval
def echo:
import json
return "$('#target').html(%s)" %(json.dumps(DIV("Hello",
STRONG("world"), "Escape this?").xml()))
#view
get from echo
$("#your_button").on("click", function(){
url_ajax = "{{=URL("your_controler", "echo")}}"
aja
resultado + = {{=json.dumps(DIV().xml())}}
Em ter, 21 de mai de 2019 às 13:41, Vlad escreveu:
> ALMOST :)
>
> result += ASSIGNJS(cart=cart)
> result += "$('#Debug_Discount').append(''+cart+'');"
>
> this comes out as [object Object]
>
> But generated Javascript (as far as the object's c
you were encode a latin-1 string to latin-1
you have to decode latin-1 to unicode
json.dumps works as response.json
Em sáb, 22 de dez de 2018 às 10:16, António Ramos
escreveu:
> Im just trying all odds ;)
> Nome works so far
>
> Val K escreveu em sáb, 22/12/2018 às 11:02 :
>
>> Why do you use l
[image: image.png]
Em sex, 21 de dez de 2018 às 15:22, Junior Phanter
escreveu:
> #-*-coding:utf-8-*-
> def teste():
>x="Oito bits - informática"
>return response.json([x])
>
>
> [image: image.png]
> [image: image.png]
>
>
> Em
#-*-coding:utf-8-*-
def teste():
x="Oito bits - informática"
return response.json([x])
[image: image.png]
[image: image.png]
Em sex, 21 de dez de 2018 13:26, António Ramos Hello i have this var in my code after reading a webservice.
>
> x='OITO BITS - INFORM*\xc1*TICA, LDA. '
>
>
check the database permissions...
Em 12/08/2018 06:14, "BlueShadow" escreveu:
Do you guys have any tips what I can try next in order to fix it?
Do you need to see other files?
thanks for your help kind regards
BlueShadow
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation
your testing function dont have return.
Em dom, 24 de jun de 2018 6:09 PM, Maurice Waka
escreveu:
> I have bee using python Idle for some time and with the code below, though
> not perfected, am able to get an answer(return value as expected). If I
> import it to web2py, the return value becomes
The best solution using SQLITE that I found for my problem
https://stackoverflow.com/questions/5492508/ignore-accents-sqlite3
2018-06-01 13:53 GMT-03:00 Junior Phanter :
> Thank you Antony. I'm trying to use executesql.
>
> 2018-06-01 13:04 GMT-03:00 Anthony :
>
>> You ca
sis (or do you sometimes want different collation
> behavior for this particular column)?
>
> Anthony
>
>
> On Friday, June 1, 2018 at 11:43:45 AM UTC-4, Junior Phanter wrote:
>>
>> how set COLLATE UNICODE or COLLATE LOCALIZED in sqlite using DAL?
>>
>> When I
how set COLLATE UNICODE or COLLATE LOCALIZED in sqlite using DAL?
When I am ordering sharp words, I want him to ignore the accents. I was
saving using compute field, names without accent and uppercase to be able
to sort, but then db size increases, an alternative would be to sort ()
doing this cha
reset your server after update web2py in admin.
2018-05-02 13:14 GMT-03:00 'Matthew J Watts' via web2py-users <
web2py@googlegroups.com>:
> fixed it,
>
> For anyone else who gets this problem follow these steps
>
> 1. Reset the password following these instructions
> http://help.pythonanywhere.co
check your we2py_ajax.html in your view folder, try change the line "var
w2p_ajax_disable_with_message = "{{=T('Working...')}}";"
2018-04-17 23:12 GMT-03:00 Michael Cowen :
>
> I am not sure if this is related to web2py or something else so I thought
> I would ask ...
>
> I have three buttons tha
It is linux? Try change SELinux config.
--
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 to the Google
Sorry, the problem also occurs in the new appdmin.
[image: Imagem inline 1]
after submit:
[image: Imagem inline 2]
after refresh:
[image: Imagem inline 3]
2017-11-16 19:01 GMT-03:00 Junior Phanter :
> problem on *edit record* using *custom forms* and *compute field*.
>
> In old appad
problem on *edit record* using *custom forms* and *compute field*.
In old appadmin there is the same problem, however, just replace the old
appadmin with the new one and it works. In the old version of appadmin, in
one edition, the value of the compute field was not shown, and in the
current versi
aturday, 2 September 2017 01:03:20 UTC-5, Junior Phanter wrote:
>>
>> Hi guys...
>> I'm starting a project (web2py plugin) to help in the development of
>> mobile applications with web2py (backend server), Phonegap (Support Server
>> for development) and Cordova (sam
certainly get more user traction if you wrote the code in
> English.
>
> Best regard.
>
> On Sat, Sep 2, 2017 at 8:03 AM Junior Phanter
> wrote:
>
>> Hi guys...
>> I'm starting a project (web2py plugin) to help in the development of
>> mobile applications
Hi guys...
I'm starting a project (web2py plugin) to help in the development of mobile
applications with web2py (backend server), Phonegap (Support Server for
development) and Cordova (samples and build).
Here is the repository:
https://github.com/PhanterJR/PhanterMobileConstructor
Who can test a
I'm returning for feedback. I changed the controller, so I will not be
using generic pattern, correct? Another problem solved was that the pillow,
strangely, was not processing the sent image. I uninstalled and reinstalled
again so far everything is fine.
Here's the change (red):
Thanks Leonel Câm
Sorry my bad english. I'm doing some kind of image server. Running on
localhost with the rocket works without problems, but when I pass the same
code to the production gives the AJAX returns me "NOT FOUND", in production
is used nginx as server, does the problem is in it? Here's my code:
*in model
;))
>
> If you do that, you also don't have to bother with all of those URL
> settings, as they will automatically be constructed properly based on the
> new controller. Note, you can also specify a custom function via the
> "function" argument.
>
> Anthony
>
Sorry my bad english.
Guys, I need to change the login functions ("default/user") to another
controller "phanterimages". I did:
on model:
import os
myconf_phanterimages = AppConfig(reload=True)
db_phanterimages = DAL(myconf_phanterimages.get('db_phanterimages.uri'),
pool_size=myc
var list_sunda = "";
ajax("your_echo_url", [], ':eval');
def echo_url():
list_sunda=[1,2,3,4,5]
return "list_sunda=%s;" %list_sunda
2017-06-01 3:49 GMT-03:00 :
> Hey paco,
>
> the problem is that i am using script, so the the action in the controller
> is a callback, it means that it d
ajax('{{=URL('dta')}}','[ ]','target')
Em 16/04/2016 14:03, "Steve Joe" escreveu:
> I am trying to show the user the recent 6 db entries at every 5 secs. But
> it doesn't seem to work!
> What am I doin wrong here?
>
> view:
>
>
Try clean cache browser.
Em 14/04/2016 11:03, "Franz Pietz" escreveu:
> I've reported another CAS issue in this topic:
> https://groups.google.com/d/topic/web2py/mnVTJ31KlA4/discussion
> Anyone has a clue?
>
>
> Em quinta-feira, 14 de abril de 2016 10:52:03 UTC-3, Franz Pietz escreveu:
>>
>> Yes,
borderWidth: 0
}
},
credits:{enabled:false},
series: [{
name: 'Produto: Batata',
data: %(dados)s
}]
});
""" %dados_map
return dict(chart=XML(chart))
ON VIEW
{{extend 'layout.html
you.
>
> On Thursday, February 18, 2016 at 10:22:57 PM UTC-5, Junior Phanter wrote:
>>
>> Download the developer's site the highcharts.js and exporting.js file and
>> place the js folder of the your application. (I put in Attached w2p example)
>>
>> repl
you Inserts jquery in your view?
It works for me...
2016-02-16 15:40 GMT-03:00 :
> I got a blank screen. lol
>
>
> On Tuesday, February 16, 2016 at 12:54:53 PM UTC-5, Junior Phanter wrote:
>
>> Use highcharts
>> http://www.highcharts.com
>>
>> Example
in loading on the browser and I believe it may be due to
> loading the js file from the remote site. Does anyone have the same
> experience? If so, how did they resolve it. I tried to load the js file
> locally but was unable to make that to work.
>
>
>
> On Monday, January 25, 201
Example using just google chart api, without google-charts-plug-in
on controller
def chart():
title="My Chart"
data=XML('[ ["item", "value"], ["apple", 1], ["potato", 1.5],
["watermelon", 0.5]]') #convert list in string and string in XML
return dict(title=title, data=data)
on view (c
Online - google chats
http://google-developers.appspot.com/chart
Offline - highcharts
http://www.highcharts.com
Em 21/01/2016 09:34, "Michele Comitini"
escreveu:
> If doing SVG client side covers your need then use raphael it is
> really simple, you need only to manage some json:
> http://raphae
I use Bootstrap v2.3.2 on Web2py.
It's ok.
2013/10/21 Gael Princivalle
> Hi.
>
> Is it possible to use Bootstrap 2.3.2 on web2py ? I would like to do it
> just to have an easiest css Bootstrap file to read/modify. With web2py
> there's just the min 2.2.2 version that's not so easy to modify.
>
Sorry to ask, but you went through a recent update of web2py, more
precisely the
version 2.6.x to version 2.7.x?
If you recently updated, you must copy the file web2py.js the admin folder
and appadmin.html from welcome application to your application.
2013/10/12 LightOfMooN
> Thanks, but it
27;',
dest='hmac_key',
help='hmac_key')
parser.add_option('-t',
'--tokens',
action='store_true',
default=False,
I'll try to help. It will be an honor for me.
2013/10/7 Massimo Di Pierro
> Can you help us find out why Tornado 31. does not work?
>
>
> On Sunday, 6 October 2013 21:24:29 UTC-5, Junior Phanter wrote:
>
>> Sorry my bad english,
>>
>> Analyzing the web2py
')});
});
worked perfectly!
I changed it to Tornado 3.0 (Tornado 3.1.1 not work) and web2py 2.7.1.
2013/10/4 Junior Phanter
> greetings ,
> sorry my bad english , I 'm trying to implement a chat using the tornado
> and websocket_messaging.py , but I'm hav
greetings ,
sorry my bad english , I 'm trying to implement a chat using the tornado
and websocket_messaging.py , but I'm having trouble hearing the tornado
server . the server receives the tornado MESSAGES using :
websocket_send ( ' http://127.0.0.1: ', ' Hello World ', ' mykey ', '
mygrou
38 matches
Mail list logo