hi,
I use a few project stored on github, and I find it easier to navigate
source code or to get a trunk version.
What about moving web2py on github?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@go
Good to hear that is on your todo list, Massimo. When you do that,
please also figure out a way to chain multi onvalidate functions,
because I expect the crud.unmodified() would be used quite popular, if
not everytime.
Iceberg
On Apr5, 1:42pm, mdipierro wrote:
> This is a good point. I do not t
thanks for your help!. it worked !
On Apr 4, 6:11 pm, Vasile Ermicioi wrote:
> I use python 2.6 too,
> use source distribution instead of windows
> onehttp://www.web2py.com/examples/static/web2py_src.zip
> it runs without problems on my pc (windows xp)
--
You received this message because you
Since you have the problem with both cherrypy and rocket I suspect
that this may be a database locking issues caused by cron. Even it you
only have @reboot, still cron runs and every minute it check what
needs to be done. I suggest try disable it completely and see what
happens. In web2py.py replac
This is a good point. I do not think this should be dealt with at the
DB level because, if I understand it is an app workflow problem.
If I understand
For every user there are two HTTP requests (one to generate the update
form, one to submit the form) and each is executed in its own
transactio
Yarko, you suggest using a full-featured db instead of sqlite. But
sqlite's internal reader/writer lock is one thing, the "overwrite"
problem is another. No matter what kind of db we are using, we still
need to deal with the "overwrite" problem.
Scenario:
9:00am clerk Adam read the balance of a cl
I started using apache with mod_wsgi, and now it's fast! So this
indicates it's a problem that only occurs when using rocket or
cherrypy, but again I'm only measuring it with firebug in my browser.
I have 768MB of ram, ~500MB free. I use cron for @reboot only.
I only run it on a remote machine
I just did this as a test and it worked:
>>> db=DAL('sqlite:memory:')
>>> db.define_table('test',Field('quantity','integer'))
>>> class VirtualFields():
... def profit(self): return self.test.quantity*100
>>> db.test.virtualfields.append(VirtualFields())
>>> db.test.insert(quantity=5)
1
>>> ro
Actually I did notice that typo, I tried the append() already, my code
is:
class VirtualFields:
def profit(self): return self.Orders.income - self.Orders.cost
db.Orders.virtualfields.append(VirtualFields())
this line runs fine, but later when I need to access a virtual field,
an exception
Some more questions:
how much ram?
can you check memory usage? A memory leak may cause slowness.
are you using cron? when cron starts it may spike memory usage.
are you experience the slowness from localhost or from remote
machines?
On Apr 4, 6:46 pm, Michael Toomim wrote:
> You are both right
I think its
db.table.virtualfields.append()
-Thadeus
On Sun, Apr 4, 2010 at 10:51 PM, Iceberg wrote:
> Hi there,
>
> I search virtualfields in http://www.web2py.com/book but found
> nothing.
>
> So I read this post instead:
> https://groups.google.com/group/web2py/browse_frm/thread/d59ee
Hi there,
I search virtualfields in http://www.web2py.com/book but found
nothing.
So I read this post instead:
https://groups.google.com/group/web2py/browse_frm/thread/d59ee3d6c2e6d836?tvc=1
But I found that
db.table.virtualfields.add(ComputedFields())
doesn't work.
Only this work:
rows.
Thank you Gabriele,
is should definitively be threaded=False and not True since web2py
does not share connection between threads. Yet, this is already the
default. You must be running an older version of web2py.You should
upgrade.
Massimo
On Apr 4, 11:33 am, Gabriele Alberti
wrote:
> Hello,
>
this is a very strange error, as if one of the system files were
corrupted.
I would remover everything web2py re-unzip it and copy your
applications back in applications.
Massimo
On Apr 4, 7:28 pm, Alexei Vinidiktov
wrote:
> I got it from web2py.com. I'm sure that I've now installed web2py 1.76.
I got it from web2py.com. I'm sure that I've now installed web2py 1.76.5.
The strange thing is an older version that used to work fine before I
installed 1.76.5 is now giving me the same error message as the 1.76.5
one.
The oldest of all three though seems to work but not entirely (see my
second
Let us know if you discover anything or if we can help with tests.
Can anybody else reproduce this problem?
On Apr 4, 6:46 pm, Michael Toomim wrote:
> You are both right that I do not know where the slowness is coming
> from. My goal is to measure it so that I can narrow in on the
> problem. So
On Apr 4, 2010, at 4:37 PM, DenesL wrote:
> It should be noted that there was some work done towards enabling an
> alternate setting that would allow the developer access to the
> unchanged (raw) args but it has not been finished yet.
>
> This would allow any character set in args which I believe
You are both right that I do not know where the slowness is coming
from. My goal is to measure it so that I can narrow in on the
problem. So far I know that it is external to web2py because it does
not show up in httpserver.log, so my reasoning is to look at rocket
which wraps the web2py part.
O
I see, thank you. I want to measure the web server's response time
when I deploy this on turk... Unfortunately the rocket log does not
report time to serve a request. Do you think it is easy to get that
information from rocket? Do you store the start and stop times for
each request? I see start
It should be noted that there was some work done towards enabling an
alternate setting that would allow the developer access to the
unchanged (raw) args but it has not been finished yet.
This would allow any character set in args which I believe mainly
concerns non-English speaking developers/user
Thank you very much for the examples.
I will take a look at the source code.
On Apr 4, 6:09 pm, Thadeus Burgess wrote:
> Francisco,
>
> Take a look at some other existing blog examples.
>
> mengu's blog ->http://github.com/mengu/blog
> currently running on mengu.net
>
> thadeus blogitizor ->http:
Hello Massimo,
last night I sent you a mail about my problem with the new version,
did you get it? Just wanted to check if you got it.
Kenneth
On Apr 4, 7:37 pm, mdipierro wrote:
> Can you please email me a patch or the updated tools.py? Thanks
>
> Massimo
>
> On Apr 4, 5:07 am, "hamdy.a.fara
Francisco,
Take a look at some other existing blog examples.
mengu's blog -> http://github.com/mengu/blog
currently running on mengu.net
thadeus blogitizor -> http://code.google.com/p/blogitizor/
currently running on thadeusb.com
-Thadeus
On Sun, Apr 4, 2010 at 12:03 PM, mdipierro wrote:
that is a very old app. I needs some work.
On Apr 4, 10:16 am, Francisco Costa wrote:
> Hello!
> I've installed WordpressClonehttp://web2py.com/appliances/default/show/36
> and i would like to have each post with a friendly url
> instead ofhttp://domain/blog/default/post/7have something
> likeht
where d you get it. I do not think this is a new version.
On Apr 4, 10:02 am, Alexei Vinidiktov
wrote:
> I seem to have used the wrong old version of web2py, but even now that
> I've installed the new version, I'm getting a different error:
>
> Traceback (most recent call last):
> File "/home/a
The problem is that web2py does not like spaces '%20' in url and
replaces them with underscore.
On Apr 4, 7:20 am, annet wrote:
> After upgrading to web2py version 1.76.5 one of the functions I
> defined no longer works.
>
> I defined a table newsmonth:
>
> db.define_table('newsmonth',
>
> db.Fie
Can you please email me a patch or the updated tools.py? Thanks
Massimo
On Apr 4, 5:07 am, "hamdy.a.farag" wrote:
> There's also another suggestion
>
> The crud.update() forms doesn't display the 'record deleted message'
> flash message in case of deleting records
> instead it displays 'record u
Hello,
I have been using web2py with oracle since few months now. With small
loads everything works fine, but when the load grows, often the python
process gets killed with a segfault; after few headaches to understand
what was going on, I think I spotted the problem and tried a solution
that works
Hello!
I've installed WordpressClone http://web2py.com/appliances/default/show/36
and i would like to have each post with a friendly url
instead of http://domain/blog/default/post/7 have something like
http://domain/welcome-to-pypress/
Thank you
--
You received this message because you are subsc
I seem to have used the wrong old version of web2py, but even now that
I've installed the new version, I'm getting a different error:
Traceback (most recent call last):
File "/home/alvinru/phonetizer.com/gluon/restricted.py", line 62, in
restricted
File "/home/alvinru/phonetizer.com/applicatio
I don't know what I have done, but my test apps have stopped working
at all on Dreamhost.
The default apps still work fine.
Here's the ticket I'm getting when trying to load any app in the browser:
Error traceback Traceback (most recent call last):
File "/home/alvinru/phonetizer.com/gluon/rest
I use python 2.6 too,
use source distribution instead of windows one
http://www.web2py.com/examples/static/web2py_src.zip
it runs without problems on my pc (windows xp)
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send
Hi
Web2py-binary-runs-it's-own-python.-you-have-to-use-source-version.
On 4 Apr 2010 15:08, "Sky" wrote:
Hi,
I've installed Python 2.6 and web2py in my windows.
but web2py runs under python 2.5 ( i didn't installed 2.5 ), so my
installed site-packages are not available for web2py.
any one can h
Hi,
I've installed Python 2.6 and web2py in my windows.
but web2py runs under python 2.5 ( i didn't installed 2.5 ), so my
installed site-packages are not available for web2py.
any one can help me ?
Regards
--
You received this message because you are subscribed to the Google Groups
"web2py-use
In the view, when I replace:
{{=A(month.month,_href=URL(r=request,args=[month.number,month.month]))}}
with:
{{=A(month.month,_href=URL(r=request,args=[3,'maart_2010']))}}
The function works.
When I replace the underscore with a space:
{{=A(month.month,_href=URL(r=request,args=[3,'maa
In the view, when I replace:
{{=A(month.month,_href=URL(r=request,args=[month.number,month.month]))}}
with:
{{=A(month.maand,_href=URL(r=request,args=[3,'maart_2010']))}}
The function works.
When I replace the underscore with a space:
{{=A(month.maand,_href=URL(r=request,args=[
After upgrading to web2py version 1.76.5 one of the functions I
defined no longer works.
I defined a table newsmonth:
db.define_table('newsmonth',
db.Field('number',type='integer',length=2,default='',notnull=True),
db.Field('month',length=14,default='',notnull=True,unique=True),
db.Field
After upgrading to web2py version 1.76.5 one of the functions I
defined no longer works.
I defined a table newsmonth:
db.define_table('newsmonth',
db.Field('number',type='integer',length=2,default='',notnull=True),
db.Field('month',length=14,default='',notnull=True,unique=True),
db.Fiel
On Apr 4, 5:04 am, Sven wrote:
> Thanks for your thoughts.
>
> @Yarko the locking code snippet seems useful. In this case, however,
> my users never updated the same record. The problem was the locking of
> the complete database each time two users updated or created 'their
> own' records.
>
> @Be
Hello,
I've deployed the latest version of web2py on Dreamhost using wsgi.
I'm using a custom installation of Python 2.5.
The web2py installation seems to work fine, but there's one problem.
I've created a test program using the qooxdoo web application
framework for the GUI part which mimics the
There's also another suggestion
The crud.update() forms doesn't display the 'record deleted message'
flash message in case of deleting records
instead it displays 'record updated'
in function update of the Crud class I suggest adding :
if form.accepts(request.post_vars, _session, formname=_formn
Thanks for your thoughts.
@Yarko the locking code snippet seems useful. In this case, however,
my users never updated the same record. The problem was the locking of
the complete database each time two users updated or created 'their
own' records.
@Beerc PostgreSQL did the trick, thanks :)
The s
I also have some comments on the latest version in repo
in auth.login()
captcha = self.settings.login_captcha or self.settings.captcha
this's had a bad effect for web applications having the login form in
the index page
This made the captcha appear in that form , the thing that had a bad
effect
Hi Mark,
I'm on holiday now until the 13th of April. When I get back I'll continue
working on the gluon package. There is not much to document there, it's
quite straightforward. If you want to help you could start with developing
the setup.py file for the gluon module. You can find the setuptools
44 matches
Mail list logo