I'm trying to create a threaded comments system for part of a work log. I
would like it to have dynamically generated forms, which, once posted,
update the contents of the containing DIV() with the comment and removes
the form. This way I don't have 100's of form objects cluttering up a
system,
ignore this post. My letc/localtime was corrupted. Just deleted and
resymbolinked it.
On Friday, April 13, 2012 9:39:02 PM UTC-7, Kenny wrote:
>
> I am trying to change the time on Ubuntu. It kept showing me UTC time. I
> tried all the method.
> ln -sf /usr/share/zoneinfo/UTC /etc/localtime
>
>
Rackspace is full root access, they give you phone support, and it is
listed on the front page of python.org. In general, the support people at
many hosting services have little knowledge of Python. The least expensive
"cloud server" is $11-12. I had Linode and they would not provide phone
sup
I'm have been trying to test this new audit function in trunk, but so far
the mything_archive table has never been created in any of my tests.
Is this the current state of the implementation, or am I missing something?
I downloaded the latest trunk and used it web2py admin to create a new app.
I am trying to change the time on Ubuntu. It kept showing me UTC time. I
tried all the method.
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
and
dpkg-reconfigure tzdata
but no luck
I even changed rcS to UTC=no but no goal
Any Idea? I am using linode.
I am sorry for unrelated topic. but afte
How do you view web2py tickets that are generated while running on Google's
devserver? When I look at a ticket using the SDK console, it is encoded in
a way that I don't recognize. Like this:
(dp0
> S'output'
> p1
> S" 'NoneType' object is not callable"
> p2
> sS'layer'
> p3
> S'/Users/davidp/de
I am stumped by a problem I am having with memcache on App Engine. It
mostly looks like a memcache issue but I am seeing something funny when I
step through the code.
I am getting an excpetion (TypeError: 'NoneType' object is not callable)
when writing an instance to memcache. The instance com
Thanks Johann,
Sorry for the delay.
Have just had a chance to have another play.
and you're right, it does need to be defined first in the models
(would have thought that it defeats some of the benefits of the adhoc
nature of the plugin, but no matter)
On Thursday, 12 April 2012 17:03:14 UTC+1
Hi,
Having a strange problem. When using admin database administration and
trying to update my password when I click save it refreshes the page
without any errors but also doesn't save the password.
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http
Thanks Bruno. It works perfect
The problem is the Python Version, to pass arguments after one list
unpacking *works you need to run Python 2.7+
to solve your ptoblem an run it on webfaction Python you need to replace
retorno = DIV(*works, _id='submenu2')
with this:
retorno = DIV(*works, **{"_id":'submenu2'})
On Fri, Apr 1
Hi all
I have an application that works fine on my development machine (tested with
versions 1.99.4, 1.99.7, trunk and another version (I forget) in alwaysdata)
In WebFaction I have version 1.99.7 and the application throws a syntax
error:
Traceback (most recent call last):
File "/home/user/
Ok I fixed the Major slow problem. It was a coding bug, where a
session variable was checked and if it was not set the database would be
queried to count all adviews currently over 12 million. however the session
variable was never updated so this query was always called on every link
click :(
Tha
Richard,
you know what? maybe it does what you want actually because what I get is a
bunch of records with a txt and one submit button at the end. So, basically
a grid within a form. I will write it and run it again and send you a
screenshot.
D
On Friday, 13 April 2012 12:36:29 UTC-7, Rich
Ok I want to add when I go to admin/app/database administration it is also
slow
On Fri, Apr 13, 2012 at 4:17 PM, Bruce Wade wrote:
> psql -h connection was instant
> psql query was very fast no delay
>
> python web2py.py -S yaw -M connected without any problems and was fast.
>
> Think it maybe r
psql -h connection was instant
psql query was very fast no delay
python web2py.py -S yaw -M connected without any problems and was fast.
Think it maybe related to rotating banners, new feature.
On Fri, Apr 13, 2012 at 12:30 PM, Michele Comitini <
michele.comit...@gmail.com> wrote:
> To debug do
Simple example with comet + tornado http://vimeo.com/38972256 (in
Portuguese, but you can follow the code)
On Fri, Apr 13, 2012 at 7:30 PM, cyan wrote:
>
> Hi group,
>
> I am trying to make a minimal multiuser chat-like app using Web2py.
> Nothing too fancy here, I just need the app to be able
A good Stack Overflow:
http://stackoverflow.com/questions/333664/simple-long-polling-example-code
and article:
http://techoctave.com/c7/posts/60-simple-long-polling-example-with-javascript-and-jquery
Hi group,
I am trying to make a minimal multiuser chat-like app using Web2py. Nothing
too fancy here, I just need the app to be able to do the following:
1. client browsers can send the receive text msgs from a server
2. server may manipulate the msgs received and selectively routes those
msgs
I think I will just make those fields invisible for now. Defining custom
auth tables seem also a little risky, as it is unclear that which fields
must be kept (except for auth_user, which is used as an example in the
manual) for both current and future releases.
Thanks all!
On Friday, April
Yeah I posted it in here hoping someone would have added it "hint hint".
Glad it worked for you.
--
Regards,
Bruce
On Fri, Apr 13, 2012 at 2:12 PM, Marco Tulio Cicero de M. Porto <
mtcpo...@gmail.com> wrote:
> Dude, worked like a charm, I own you. :)
>
> But it would be nice if this kind of cha
Dude, worked like a charm, I own you. :)
But it would be nice if this kind of change was also available at web2py
scripts... since the other does not work to all versions of ubuntu for ex.
Thanks!
Marco Tulio
2012/4/13 Bruce Wade
> You will have to search through the mail list on google.
>
> h
The generic.json view expects a dictionary. You can do
def test():
from gluon.serializers import json
return json([1,2,3,4])
On Friday, 13 April 2012 10:15:46 UTC-5, selecta wrote:
>
> is it possible to do something similar to
> def test():
> response.generic_patterns = ['json']
> ret
This solution look great, because until now web2py was triggering a error
if postgres return not unique and won't insert the data...
So, maybe as you suggest Johann this is not the case anymore with recent
web2py update, I don't know.
But I think we would need a confirmation about Massimo or othe
Based on this:
links = [lambda row: INPUT(_name='qty', _value='1'), lambda row: A('+',
callback=URL('cart_callback',vars=dict(id=row.id,action='add',qt=request.
vars.qty)))]
Is there a way to grab the value of the INPUT to pass them to another
function???
qt=request.vars.qty does not cut it.
Yes I think I miss understood... What I would have is the capability to
insert many records in one operation (one form submission). I thought that
what Massimo suggest turn the SQLFORM.grid in a kind of multiples rows form
or something like that. It was not actually clear what Massimo was doing
wha
To debug do some tests on the web2py machine using psql with -h
check for the time it takes to connect to the remote postgresql server
and the time to process a query.
If the connection takes a long time to setup, it is most likely some
dns related problem.
If the queries are slow to complete, the
Richard,
I tried Massimos approach but it created one form button rather than one
for each row. For my uses, it wont cut it. I need one text field plus a
button on each row. I was able to accomplish this like this
links = [lambda row: INPUT(_name='qty', _value='1'), lambda row: A('+',
callback=
Linode same datacenter different nodes
On Apr 13, 2012 11:53 AM, "Bruno Rocha" wrote:
> are you connecting by internal private network or over the internet? there
> are firewall filtering the packages?
>
> On Fri, Apr 13, 2012 at 2:33 PM, Bruce Wade wrote:
>
>> Hi,
>>
>> When I was running the s
are you connecting by internal private network or over the internet? there
are firewall filtering the packages?
On Fri, Apr 13, 2012 at 2:33 PM, Bruce Wade wrote:
> Hi,
>
> When I was running the site and database on the same server there were not
> speed problems. However as soon as I switched
Hi,
I try to make a function that puts periods of time into a database. The
function should only add periods that doesn't overlap any of the already
registered ones.
But the function does not work, and I can't see what's wrong. Any idea?
Thanks in advance for help!
code from the controller
On 13 April 2012 19:26, Michele Comitini wrote:
> Johan,
>
> To do what you want to achieve you could look into SAVEPOINTs.
> PostgreSQL supports them. They allow to recover the current
> transaction to a predefined savepoint in case of error. The DAL does
> not support SAVEPOINT support, yet,
Hi,
When I was running the site and database on the same server there were not
speed problems. However as soon as I switched to have a dedicated database
server page loading becomes very very slow.
Any suggestions?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadec
Johan,
To do what you want to achieve you could look into SAVEPOINTs.
PostgreSQL supports them. They allow to recover the current
transaction to a predefined savepoint in case of error. The DAL does
not support SAVEPOINT support, yet, but you can use them through
executesql().
mic
Il 13 april
On 13 April 2012 16:52, Richard Vézina wrote:
> In your model definition if you use :
>
> unique=True
>
> For each field, It should build your db correctly... But maybe you want
> both field together to be unique...
>
I know about 'unique'. The constraint I used in the example makes the
combina
Hi
I'm doing some tests with apache+mod_wsgi. The idea is to share sessions
between two web servers.
I've stored sessions in an external server (using DB and memcache), both of
them wotk fine but I find that sessions stored in memcached are deleted in
five minutes. Capturing web2py-memcache tcp
is it possible to do something similar to
def test():
response.generic_patterns = ['json']
return [1,2,3,4]
uwsgi package changed.
On Fri, Apr 13, 2012 at 5:35 AM, Marco Tulio Cicero de M. Porto <
mtcpo...@gmail.com> wrote:
> 2012/4/6 Bruce Wade
>
>> That script doesnt work on newer ubuntu versions uwsgi-python should just
>> be uwsgi. Tried on 11.10 and 12.04 both failed.
>>
> I was using 10.04, then
You will have to search through the mail list on google.
https://groups.google.com/forum/#!searchin/web2py/nginx$20update/web2py/ysmeR0mZVZo/nOBTKhPOgi8J
If that doesn't work search for:
Updated: uwsgi + nginx script for Ubuntu 11.10
On Fri, Apr 13, 2012 at 5:48 AM, Marco Tulio Cicero de M. Porto
In your model definition if you use :
unique=True
For each field, It should build your db correctly... But maybe you want
both field together to be unique...
I don't remember how, but I think there is a way to tell web2py about
multiple column constraint. I customize validator for doing this...
On Friday, 13 April 2012 15:26:48 UTC+2, Massimo Di Pierro wrote:
>
> This has nothing to do with it.
>
> Anyway, recent version of web2py have automatic reconnect, if that is what
> you are asking.
>
>
Here is an example of what I wanted to do and which did not work in the
past but I see it is
Hi,
I wanted this to be done in a single step (web request), due to the nature
of my app (dynamic db), but I see it can't.
Thank you all for your replies.
Carlos
On Friday, April 13, 2012 8:24:29 AM UTC-5, Massimo Di Pierro wrote:
>
> Since there are no record you do not need conversion of
wot service cannot rate 127.0.0.1:8000 therefore it returns a json error. Not
what the application expect. try to url shorten an actual live web site.
*
*
On Friday, 13 April 2012 06:35:32 UTC-5, minhcd wrote:
>
> I download newest version web2py and download this appliance from
> https://git
This is either a bug in cgi.FieldStorage or in the web server. Can you send
me one such file so I can look into it?
On Friday, 13 April 2012 06:34:57 UTC-5, Sundar wrote:
>
> When I am trying to upload an MHT file (single file holding all browser
> components: html, image etc.), I get an error.
No. If you want to use gunicorn you must start web2py with
anyserver -s gunicorn
anyserver comes with web2py.
On Friday, 13 April 2012 04:27:14 UTC-5, Rahul wrote:
>
> Hi Massimo,
> I am trying to explore gunicorn. Below is the command I use to
> activate my site. I am not sure if the
> web2py's auth is take it or leave it.
I disagree. You can find the definition as Anthony suggests in the source
of gluon/tools.py.
You can add fields with
auth.settings.extra_fields['auth_user']=[Field('address')]
You should not remove fields. because they are the minimum necessary to
make
This has nothing to do with it.
Anyway, recent version of web2py have automatic reconnect, if that is what
you are asking.
On Friday, 13 April 2012 02:20:53 UTC-5, Johann Spies wrote:
>
> In the past, the database adapter disconnected when a constraint on the
> database side prohibited a transa
We do not have sybase support but if you can help testing, should be easy
to add.
On Friday, 13 April 2012 01:45:28 UTC-5, mohamed elsebaey wrote:
>
>
> Hi,
>
> Is wep2py support connection to Sybase SQLAnywhere 12 database.
>
> Thanks
>
Since there are no record you do not need conversion of string to decimals.
You can do it in two steps:
1) comment the line that defines the field and run appadmin
2) uncomment the line, change the type and run appadmin
done
On Thursday, 12 April 2012 15:37:26 UTC-5, Carlos wrote:
>
> Hi,
>
> Is
I have not tried it but you can do
class EncryptedField(Field):
def __init__(self,*a,**b):
self.password = b['password']
del b['password']
Field.__init__(self,*a,**b)
def store(self,file, filename=None, path=None):
newfile = encrypt(file,self.p
>
> This:
>
(T('Whatever'), False, URL(...wherever...), [empty]),
should be
(T('Whatever'), False, URL(...wherever...), empty or []),
I enable basic auth with
auth.settings.allow_basic_login = True
I tried
wget --user=u...@bla.de --password=xxx http:
//127.0.0.1:8000/pyMantis/tlc/records.json/Strain
curl --head -u u...@bla.de:xxx http:
//127.0.0.1:8000/pyMantis/tlc/records.json/Strain
and the python code
import urllib2
import
where ?
2012/2/8 Bruce Wade
> Also if you want to use uwsgi + nginx I supplied an updated script in a
> past post that works with Ubuntu 11.10 the default one that came with my
> version of web2py didn't work with Ubuntu 11.10
>
2012/4/6 Bruce Wade
> That script doesnt work on newer ubuntu versions uwsgi-python should just
> be uwsgi. Tried on 11.10 and 12.04 both failed.
>
I was using 10.04, then I upgraded it to 11.10 and now it doesn't works
anymore...
why? :P
I download newest version web2py and download this appliance from
https://github.com/mdipierro/web2py-appliances/tree/master/UrlShortening
But when i run, i can't shorten URL. (No input form?)
And when I click Bookmark button:
'127.0.0.1:8000'
Traceback (most recent call last):
File "/home/min
When I am trying to upload an MHT file (single file holding all browser
components: html, image etc.), I get an error. I observed it in old as well
as new versions of web2py.
Are there prohibited extensions of files which cannot be uploaded?
Trace:
Traceback (most recent call last):
File "E:
Hi,
Is wep2py support connection to Sybase SQLAnywhere 12 database.
Thanks
Here is a function which may be of interest. I have included some test
input data.
The data is not really nested-list because it doesn't have 'lft' and 'rgt'
fields.
Rather this assumes that you are using a simple parent_id field to build a
list suitable for superfish.
If you come up with an
Hi Massimo,
I am trying to explore gunicorn. Below is the command I use to
activate my site. I am not sure if the parameter -s gunicorn does anything.
How do I confirm this? I have gunicorn, eventlet and greenlet installed via
virtualenv. I am trying to streamline my deployment and eve
On Thu, Apr 12, 2012 at 11:39 PM, Massimo Di Pierro
wrote:
> You have to use something like in CSS
>
> .rlt
> {
> direction:rtl;
> }
> .ltr
> {
> direction:ltr;
> }
>
> and use something like
>
> {{=T('text')}}
>
> and translate the direction as you translate the text.
>
I didn't clearly get you,
cyan wrote:
> definitions for each of them, if possible. In addition, can we remove
> fields from these tables? I know we can add extra fields or re-define the
I removed the name fields from auth_user and then some navbar
function wrote "Hello None,". OK, some minor problem. But you
can't know
In the past, the database adapter disconnected when a constraint on the
database side prohibited a transaction to complete. Will these changes
make it possible to handle such a situation as an exception?
I am working with Postresql.
Regards
Johann
62 matches
Mail list logo