No clue...
On Fri, Aug 19, 2016 at 9:49 AM, António Ramos wrote:
> Its a Post request to my controller. they are not in the url ( I think...)
>
> 2016-08-19 14:34 GMT+01:00 Richard Vézina :
>
>> if you pass json through url to have to parse the
I decided to "stick" without the json field... too much code/decode
envolved and the json will grow very big. In the admin will be a mess...
Thank you all and forget it! :P
2016-08-19 16:36 GMT+01:00 António Ramos :
>
> [image: Imagem inline 1]
>
> 2016-08-19 16:26
[image: Imagem inline 1]
2016-08-19 16:26 GMT+01:00 Marlysson Silva :
> In a view.json? weired..
>
> Em sexta-feira, 19 de agosto de 2016 12:24:23 UTC-3, Ramos escreveu:
>>
>> Instead of "Gestão" i get this when rendering with BEAUTIFY(row) being
>> row=db.responses[my_ID]
In a view.json? weired..
Em sexta-feira, 19 de agosto de 2016 12:24:23 UTC-3, Ramos escreveu:
>
> Instead of "Gestão" i get this when rendering with BEAUTIFY(row) being
> row=db.responses[my_ID]
> allresponses :
> Gsãcn : 1
> delete_record :
> f1 :
> id : 99L
> update_record :
>
> 2016-08-19
Instead of "Gestão" i get this when rendering with BEAUTIFY(row) being
row=db.responses[my_ID]
allresponses :
Gsãcn : 1
delete_record :
f1 :
id : 99L
update_record :
2016-08-19 16:18 GMT+01:00 Marlysson Silva :
> For test, try render the controller data in a
Massimo I saw within template.py and he have a import to a external file (
_compat.py ) it's get just template.py, really?
Em quinta-feira, 18 de agosto de 2016 16:37:47 UTC-3, Massimo Di Pierro
escreveu:
>
> Or simply copy the gluon/template.py where you want it, import it, than
> from
Massimo I saw within template.py and he have a import to a external file (
_compac.py ) it's get just template.py, really?
Em sexta-feira, 19 de agosto de 2016 12:18:02 UTC-3, billy...@gmail.com
escreveu:
>
> I get warning: root: unable to import plural rules: no module named
> plural_rules
For test, try render the controller data in a generic_view.json .. to test
whether the encode the page which it's wrong..
Em sexta-feira, 19 de agosto de 2016 12:07:27 UTC-3, Ramos escreveu:
>
> yes i remove the unquote and saved request.vars directly.
>
> Also went to admin and by hand created
I get warning: root: unable to import plural rules: no module named
plural_rules and it breaks.
On Thursday, August 18, 2016 at 3:37:47 PM UTC-4, Massimo Di Pierro wrote:
>
> Or simply copy the gluon/template.py where you want it, import it, than
> from template import render, etc.
>
> On
yes i remove the unquote and saved request.vars directly.
Also went to admin and by hand created a new record with
{"Gestão":1} on the json field and it was saved as {u'Gs\xe3\x00cn': 1}
so far so good , i understand now that saving in json fields encodes the
data.
Now i need to read that data
You removed the urllib.uquote() ? And after just receiving the request
directly..
Em sexta-feira, 19 de agosto de 2016 11:51:54 UTC-3, Ramos escreveu:
>
> Ok got it.
> If i create a new record via admin with
>
> {"Gestão":1} in the json Field, after saving the new record i get it as
>
>
Ok got it.
If i create a new record via admin with
{"Gestão":1} in the json Field, after saving the new record i get it as
{u'Gs\xe3\x00cn': 1}
You said its utf-8 encoded
How do i decode it again to "Gestão" ?
u'Gs\xe3\x00cn'.decode('utf-8') does not work..
sorry and thank you for your time.
Hello to all.
I tried LDAP authentication and all work flawless.
As an user logs in, the relative user entry is created in the web2py user
table. That's great.
But sometimes it would be usefull to have the user in the table before his
first login.
So, would be great for some user, says an
why don't you just pass request.vars without quoting and unquoting
anyway, json is always utf-8 encoded. that's the difference you're seeing.
On Friday, August 19, 2016 at 11:43:55 AM UTC+2, Ramos wrote:
>
> Hi,im starting a new post because i found that JSON fields change data as
> they
Its a Post request to my controller. they are not in the url ( I think...)
2016-08-19 14:34 GMT+01:00 Richard Vézina :
> if you pass json through url to have to parse the string json dump...
>
> Richard
>
> On Fri, Aug 19, 2016 at 9:27 AM, António Ramos
if you pass json through url to have to parse the string json dump...
Richard
On Fri, Aug 19, 2016 at 9:27 AM, António Ramos wrote:
> I have started another thread called
> How does web2py save JSON fields?
>
> because i think its the json field that is messing my data on
I have started another thread called
How does web2py save JSON fields?
because i think its the json field that is messing my data on save
thank you
2016-08-19 14:03 GMT+01:00 Richard Vézina :
> You have to URL unquote not request.vars http://
>
You have to URL unquote not request.vars
http://stackoverflow.com/questions/16566069/url-decode-utf-8-in-python
If you do request.vars.yourvarname what do you have?
You can try request.vars.yourvarname.decode('utf-8')
Richard
On Thu, Aug 18, 2016 at 7:24 PM, António Ramos
пятница, 19 августа 2016 г., 3:48:12 UTC+4 пользователь 黄祥 написал:
>
> pls try :
> requires = IS_EMPTY_OR([IS_LENGTH(16384), IS_IMAGE() ] )
>
> best regards,
> stifan
>
Man, thanks!!! I completely forgot about this validator. Need to sleep
more...
--
Resources:
- http://web2py.com
-
Hi,im starting a new post because i found that JSON fields change data as
they are saved.
So repeating again the problem posted before
My model
db.define_table('responses',
Field('f1'),
Field('allresponses','json'))
My controller
def getit():
ret={}
for x
yep. your worker setup clearly can't stably be connected to your backend.
On Thursday, August 18, 2016 at 7:41:38 PM UTC+2, Jason Solack wrote:
>
> so after some digging what i'm seeing is the sw.insert(...) is not
> committing and the mybackedstatus is None, this happens 5 times and then
> the
21 matches
Mail list logo