This is the best answer I've seen:
http://stackoverflow.com/questions/117514/how-do-i-use-timezones-with-a-datetime-object-in-python
It can get complicated so make sure you need it.
that makes a lot of sense! removes confusion and leaves little room
for doubt.
Mart :)
On May 20, 9:23 pm, Pierre Thibault
wrote:
> You made good points. I think that it is important to have a process that
> can support the community we are.
>
> Here is my last idea on the subject:
>
> We can
I have it in a model so it's available everywhere.
I couldn't figure out how to see it. Any suggestions?
On Friday, May 20, 2011 7:00:08 PM UTC-4, haggis wrote:
>
> Hi,
> since I doesn't need any email adresses associated with my users, I
> changed the schema of the auth_user table like this:
>
> file: db.py
>
>
> db.define_table(
> auth.settings.table_user_name,
> Field('name', lengt
Auth requires the email field. without it there is no way to reset
password.
Anyway you can do
db.auth_user.email.readable=False
db.auth_user.email.writable=False
and disable the reset password actions.
On May 20, 6:00 pm, haggis wrote:
> Hi,
> since I doesn't need any email adresses associate
Hi,
since I doesn't need any email adresses associated with my users, I
changed the schema of the auth_user table like this:
file: db.py
db.define_table(
auth.settings.table_user_name,
Field('name', length=32, default='', label='Name'),
Field('password', 'password', length=512, reada
Anyone using web2py as the web service and then consuming the service
via json-rpc in C#? I imagine this is possible, but seem to have quite
some time trying to get this to work.
I'm using jayrock as my json-rpc C# parser and setting the url to the
service to be my exposed web2py service but can't
2011/5/20 Ialejandro
> Well, in fact Resolver One is made with IronPython (asp.net). I read
> it in the book "IronPython in action" which is written by one of the
> developers of Resolverone.
Too bad. It is Windows only. :-(
--
A+
-
Pierre
My blog and profile
(http://pierrethib
You made good points. I think that it is important to have a process that
can support the community we are.
Here is my last idea on the subject:
We can support a global translation repository just like Jonathan was
proposing. But if an application has not for example a custom dictionary for
Germa
saludos!
quiero tener semi sincrinizada varias app instaladas en varios sitios
diferentes (geograficamente)
quiero poder distribuir la app bajo la licencia MIT y que cualquier la
instale en local, para ser usada cómodamente entre los
usuarios de su intranet.
pero también me interesa que esa app
Ah nice trick also, didn't think about the cache, but where do you put
the code to defie the _init_log ?
On May 19, 11:23 pm, pbreit wrote:
> I got this from here awhile back:
>
> def _init_log():
> import os,logging,logging.handlers,time
> logger = logging.getLogger(request.application)
The important issue being, making it easier for people to contribute
additional translations...
On May 19, 6:52 pm, Pierre Thibault
wrote:
> 2011/5/19 Christopher Steel
>
> > Hi Pierre,
>
> > I think you have touched on an important issues and although I am also
> > wondering if Jonathan proposa
in that case i would put it right in the DB, using CRUD's archive tools.
then you know who made what changes to what rows and when, and you can go
back an restore previous versions.
http://web2py.com/book/default/chapter/07?search=archive
much easier to parse than text logs (in my opinion)
c
Niklas,
you will have to run the code locally and upload plugins and then deploy to
GAE. you cannot upload files to a deployed GAE instance (without using the
blobstore). so you must have a complete code set that you can upload.
cfh
Well, in fact Resolver One is made with IronPython (asp.net). I read
it in the book "IronPython in action" which is written by one of the
developers of Resolverone.
With some css + jqgrid
(http://www.trirand.com/blog/jqgrid/jqgrid.html) you can reach similar
results
2011/5/20 Ross Peoples :
> Now if we could just get a built-in web2py version that does the exact same
> thing. Massimo should be able to knock that out in a couple hours :)
> Just kidding, of cou
Now if we could just get a built-in web2py version that does the exact same
thing. Massimo should be able to knock that out in a couple hours :)
Just kidding, of course. Although it would be sweet.
Seems that
"reponse.js" is never called.
I see in firebug
post to http://localhost:8000/ajax/default/post_message.load
X-Powered-By|web2py
|web2py-component-flash|"Form You"
|Set-Cookie|session_id_ajax=127.0.0.1-7a4406f9-01c9-46ab-ad14-4d83978d4d69;
Path=/
|Expires|Fri, 20 May 2011 18:50:53
chopapp will get python, can become cool
Hi Nico,
Adding syntax highlighting for additional languages is the most common
request we've gotten so far; a good problem to have. :) Yes, we're going to
figure out a way to add support for additional languages soon. Stay tuned.
Louis Corso
supp...@ch
I recommend you to set your own names for migration files, it will turn it
easy to migrate.
db_define_table('tablename',Field('...'), migrate='mycustomname.table')
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Fri, May 20, 2011 at 2:01 AM, james c. wrote:
> thanks Anthony for the
Actually it isn't that obvious. In Python the datetime class by default is
not time zone aware. If you have users coming from multiple time zones the
best universal way to handle this is store the time in UTC which the
datetime class has a method for datetime.utcnow(). This is how UNIX does it
That worked! Thanks Massimo.
I downloaded the latest and that got rid of the error. Also I restored
the try-catch block.
Thanks,
Arbie
On May 20, 11:40 pm, Massimo Di Pierro
wrote:
> I think you have an old GAE SDK.
>
> Massimo
>
> On May 20, 10:05 am, Arbie Samong wrote:
>
> > Hi Massimo,
>
>
Thank you. I will look into this.
On May 19, 9:54 am, Chris May wrote:
> I thought I read of a way of using jQuery for something like this
> using its deferred object. (http://api.jquery.com/category/deferred-
> object/)
>
> Sorry I can't be more specific, but I hope it helps.
>
> On May 19, 10:
check this screencast
http://www.resolversystems.com/screencasts/console/
Em 20 de maio de 2011 18:04, António Ramos escreveu:
> Sorry maximo but resolversystems product is much more than your
> spreadsheet.
>
> You looked but you did not see
> (where did y heard this before.?!?!?!)
>
>
Sorry maximo but resolversystems product is much more than your spreadsheet.
You looked but you did not see
(where did y heard this before.?!?!?!)
:)
2011/5/20 Massimo Di Pierro
> Do you know you can can do it with web2py, right?
>
> http://web2py.com/examples/spreadsheet
>
> On May 20
I started from scratch here is all the code running latest from trunk.
Seems I am still missing something.
(By the way I added an alert('running') to web2py_component() to see
when it executes. Seems like after submitting the form it is never called.)
so I think response.js is not being calle
just found this resource
http://www.slideshare.net/kwatch/how-to-create-a-highspeed-template-engine-in-python
Does SQLFORM have an "onaccept" handler?
I just tried doing this
def post():
if form.accepts(request):
response.js = reload('list')
in my view I have
{{= LOAD('list_posts',target='list',ajax=True) }}
But this does not seem to work either.
I suppose I am missing one step in th
2011/5/19 danto :
> I'm setting the created_on field in a database table with request.now
> but i need to adjust the result to my timezone with the application
> (it's a shared server). Can you tell me how can I achieve this?
>
> thank you in advance
>
> kind regards
>
sorry, it's the answer so ob
I think you have an old GAE SDK.
Massimo
On May 20, 10:05 am, Arbie Samong wrote:
> Hi Massimo,
>
> I removed the try and except leaving the block. It says "ImportError:
> cannot import name rdbms"
>
> Traceback (most recent call last):
> File ".../myproject/google/appengine/tools/dev_appserve
Hi Massimo,
I removed the try and except leaving the block. It says "ImportError:
cannot import name rdbms"
Traceback (most recent call last):
File ".../myproject/google/appengine/tools/dev_appserver.py", line
3245, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
I see it was in the "VERSION" File; I deleted the content and updated to
1.96
Never Mind this
<<< local <<< local <<< local <<< local Version
1.94.5 (2011-03-18 20:24:56) === Version 1.94.5 (2011-03-20
15:21:40) >>> other === Version 1.95.1 (
The strange thing is that repsonse.flash is not executing either;
I have the web2py_ajax included
The components say "loading" when the page is loaded; so javascript
is working.
I am using the trunk version of web2py; I see some strange stuff so I am
going to try to download again.
I s
The view is index.html
{{= LOAD('default','list_post.load',ajax=True,target='list_post') }}
{{= LOAD('default','post.load',ajax=True) }}
On 5/20/11 10:45 AM, Massimo Di Pierro wrote:
what's the view?
On May 20, 9:26 am, "David J." wrote:
I saw the video on creating components;
I tried
what's the view?
On May 20, 9:26 am, "David J." wrote:
> I saw the video on creating components;
>
> I tried following the steps outline there;
>
> For some reasons I must have missed a step because the message post
> table is not uploading;
>
> Here is the code I think is not working correctly.
That did the trick! I had my ssl_certificate line commented out. I
also noticed that the online web2py manual has a typo. There should
be double quotes at the end of the ssl_certificate and ssl_private_key
so the look like this:
ssl_certificate = ""
ssl_private_key = ""
Thanks for your help!
I saw the video on creating components;
I tried following the steps outline there;
For some reasons I must have missed a step because the message post
table is not uploading;
Here is the code I think is not working correctly.
def reload(target):
def js(form):
response.js = 'web2p
wow, that is pretty cool!!! also the web2py spreadsheet widget (this
is the first time I see it in action) would be nice if the fields grew
to accommodate size of content :)
but regardless, its amazing!
Mart :)
On May 20, 9:09 am, Michele Comitini
wrote:
> To run python in the browser for real
Hi Pierre,
Agreed, and yes the money was there for the resources, but doesn't
mean we were smart about it (I.e. of couple of local Japanese
restaurant employees had much to do with a couple of of product
releasees;) - true story)
I think the issue here is not lack of knowledge on how-best-to-go-
If I am reading this properly, you want to create a new instance if db for
each thread? I have never tried this before, but could you do something like
this for each thread?
db_thread = DAL(db._uri)
for k, v in db.items():
db_thread[k] = v
The idea being to using the existing db's URI strin
To run python in the browser for real, not just a console:
https://bitbucket.org/pypy/lang-js/
Or maybe this (unbelievable!):
http://bellard.org/jslinux/
http://bellard.org/jslinux/tech.html
Of course stability and speed can be an issue! ;-)
mic
2011/5/20 Massimo Di Pierro :
> Do you know you
Do you know you can can do it with web2py, right?
http://web2py.com/examples/spreadsheet
On May 20, 6:55 am, António Ramos wrote:
> hello guys
>
> do you know
>
> http://www.resolversystems.com/
>
> they have a spreadsheet with python as a scripting language.
> Its awsome.
> Please check it
>
>
On May 20, 3:48 am, CUBRID RDBMS wrote:
> Hi Massimo,
>
> Our Python API developers have taken over testing web2py. However, they are
> taking a vacation from today until the end of this month. So they will not
> be available. Upon their arrival to work, they will provide their test
> results. Is
Those I made should be but not tested on GAE. plugin_wiki was tested.
On May 20, 4:58 am, Niklas Rosencrantz wrote:
> Hi my web2py deployment is on app engine. I'm trying to add
> plug-ins/appliances using the admin area but all I get is an error message:
> "unable to install application "
> when
Please help m debug this. In gluon/dal.py there is this code:
try:
from new import classobj
from google.appengine.ext import db as gae
from google.appengine.api import namespace_manager, rdbms
from google.appengine.api.datastore_types import Key ### needed
for belongs \
on
ID
Hi,
I am using web2py as a frontend and i have a single script
("myscript.py") doing all the extra calculation based on the uploaded
files (unzipping zip file contents to tables, deleting other info
etc.) This script contains four threads and now the problem is that
these threads are accessing the
Hi all,
The meta tag viewport inside the template layout.html currently (and in
trunk) uses semicolons to separate and trail the arguments in the
content-attribute. Throws errors in Chrome (when inspecting). Easy fixed by
using comma *and* by removing trailing separator. See
http://stackoverfl
Hi my web2py deployment is on app engine. I'm trying to add
plug-ins/appliances using the admin area but all I get is an error message:
"unable to install application "
when trying to upload the package at
https://my-app-deployment.appspot.com/admin/default/site
Am I uploading in the wrong place?
how can I get the session id of a web2py app on Google App Engine?
to make of this?
or have to do differently?
hello guys
do you know
http://www.resolversystems.com/
they have a spreadsheet with python as a scripting language.
Its awsome.
Please check it
also they have in beta test
http://www.pythonanywhere.com/
its python in the browser!
Great to hear. Can you create a windows binary for python 2.7. web2py is not
python 3.1 ready
Thanks ...
David
Hi Massimo,
Our Python API developers have taken over testing web2py. However, they are
taking a vacation from today until the end of this month. So they will not
be available. Upon their arrival to work, they will provide their test
results. Is that all right?
Moreover, I have just uploaded t
53 matches
Mail list logo