If this is interesting for somebody
I just play with timezones problem, with python pytz library and with
javascript Date.prototype.getTimezoneOffset().
From pytz I know that there aren't 24 timezones (as was my first idea), but
73 (at first look there are 61 zones based on offset in summer
good. you're doing exactly this
https://github.com/niphlod/w2p_timezone_plugin/blob/master/README.md
On Friday, February 20, 2015 at 11:03:39 AM UTC+1, Mirek Zvolský wrote:
If this is interesting for somebody
I just play with timezones problem, with python pytz library and with
hi,
I have an app that allows people to login in using their Facebook
credentials.
However i want them to be able to choose if they want to use their real
Facebook names or just alias names.
can somebody break it down for me how i would go about achieving this.
Thanks
--
Resources:
-
Hi,
I try to use DAL as standalone but I got this message back :
TypeError: __init__() got an unexpected keyword argument 'lazy_tables'
Here's the code placed in test.py which is in applications/myap/modules :
___
from
Clara I'd suggest to use the full json service support of web2py, makes
everything easier
do the following:
make sure you have the call() method you can find in default.py controller
of welcome application
then write a method like this in default.py:
def dothetest():
return dict()
Tnanks! Good to know.
On Friday, February 20, 2015 at 2:20:53 PM UTC-6, Niphlod wrote:
there's sessions2trash.py for that
http://web2py.com/books/default/chapter/29/13/deployment-recipes#Cleaning-up-sessions
On Friday, February 20, 2015 at 8:47:46 PM UTC+1, Omi Chiba wrote:
I'm running
I tried this
data = '{input:[{the_owner:1,category:1,name:La marcha del
oro,price:44.45,id:1,quantity:100},{the_owner:3,category:3,name:Toy
Story,price:34.56,id:2,quantity:23},{the_owner:2,category:2,name:La
Hello all,
Thanks all for the responses and sorry for the delay in my response. I was
struggling with this and I don't get to solve it yet. The data (string)
passed to the controller as *request.vars.input *looks good but it fails
when I try to load it with json.loads.
This is what I have at
Hello,
Please add us:
Corporate name: Leonardo Pires Felix - ME
Trade name: LPFX
website: http://lpfx.com.br
Web2py about in http://lpfx.com.br/software, where we tell about the
software that we use.
Em domingo, 15 de fevereiro de 2015 20:21:36 UTC-2, Massimo Di Pierro
escreveu:
We need to
Do you clone the repository or use stable version?
I dont have problems here running Version
2.9.12-stable+timestamp.2015.02.13.23.31.09 in linux ubuntu 14.04
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Clara,
May it be possible that specifying datatype in your ajax call be the
poblem? You stringify if then you say that it is an json type to ajax...
I would try by removing the datatyep: 'json' line completly in the above
and see if request.vars.input is now a plain string of the json you
I want to run web2py hostinger
I shall not speak English nor knowledge of relevant technology, so I need
help
Please tell me if you are willing to help you need to modify the file and
give me an example of a revised text, thank you!
--
Resources:
- http://web2py.com
- http://web2py.com/book
Massimo seems to had ported much of web2py components to other frameworks:
https://github.com/mdipierro/gluino
It hadn't seen updates since 2 years ago but it might serve as a starting
point?
On Friday, 20 February 2015 09:35:25 UTC-5, Laer Cius wrote:
Hi,
I try to use DAL as standalone
maybe to explain better.
I have created a filed username that shows the preference of the user be it
an alias name or the actual Facebook name.
However when i want to display it as:
def author(id):
if id is None:
return Unknown
else:
user = db.auth_user(id)
return
On Friday, February 20, 2015 at 7:10:28 AM UTC-8, hello wrote:
I want to run web2py hostinger
I shall not speak English nor knowledge of relevant technology, so I need
help
Please tell me if you are willing to help you need to modify the file and
give me an example of a revised text,
another correction (this time final). recfile generates at most 512 folders
each containing at most 512 folders. cleanup of all of them lasts 20
seconds in a modest hardware.
On Thursday, February 19, 2015 at 10:30:10 PM UTC+1, Niphlod wrote:
correction, too humble. My analysis degree never
Use the pydal, it's there to be used anywhere:
https://github.com/web2py/pydal
And it's well maintained
2015-02-20 22:05 GMT+01:00 Michael Lam wy2...@gmail.com:
Massimo seems to had ported much of web2py components to other frameworks:
https://github.com/mdipierro/gluino
It hadn't seen
Hello,
I am making an Ajax call and calling a controller with the json data I need
to process in the controller.
The problem I am having (and I am sure the answer will be simple and I will
hate myself for the silly question ) is that if I select
request.vars.input, its value is not a json
It doesn't appear to be a string object anymore, you have a python
dictionary object.
Try this..
print type(request.vars.input)
On Friday, February 20, 2015 at 11:19:55 AM UTC-7, clara wrote:
Hello,
I am making an Ajax call and calling a controller with the json data I
need to process in
request.vars value are plain string. If you pass a json as a var for
instance ?input=JSON_CONSTRUCT
You will have to use simplejson.load(request.vars.input)
To restore the plain text JSON_CONSTRUCT from the ajax call into a JSON
object.
Here doc for python lib json :
but what is :
print 'request.vars.input'??
To me it should print : request.vars.input
hein!!
Clara would you copy/paste your exact code here?
Richard
On Fri, Feb 20, 2015 at 2:00 PM, Richard Vézina ml.richard.vez...@gmail.com
wrote:
No a list of python dict
:)
Richard
On Fri, Feb
No a list of python dict
:)
Richard
On Fri, Feb 20, 2015 at 1:27 PM, Derek sp1d...@gmail.com wrote:
It doesn't appear to be a string object anymore, you have a python
dictionary object.
Try this..
print type(request.vars.input)
On Friday, February 20, 2015 at 11:19:55 AM UTC-7, clara
I'm running web2py website about 2 years. Not much transactions maybe 10
per day but # of files under sessions are enormous and total size for the
folder is around 100MB but the Size on disk shows about 10GB. I found it
because it takes too long time to copy the folder... I run the clean up. It
there's sessions2trash.py for that
http://web2py.com/books/default/chapter/29/13/deployment-recipes#Cleaning-up-sessions
On Friday, February 20, 2015 at 8:47:46 PM UTC+1, Omi Chiba wrote:
I'm running web2py website about 2 years. Not much transactions maybe 10
per day but # of files under
24 matches
Mail list logo