I looked around once more
http://www.web2py.com/book/default/chapter/04
and found that I could "cache view"
* on rockets this seems to have some efect (but profiler won't show
them, as it counts just the time it is executed - am I rigth?).
* on dev_server this seems quite slower (probably becaus
GAE supports only python 2.5 you seem to be using 2.6. I am not sure
this is the only problem but this is for sure a problem
On Aug 30, 11:18 pm, hswolff wrote:
> Hello everyone-
>
> I've been working on my first web2py app for the past week and a half
> and finally came to an alpha version that
Yes indeed, I'm keen to make sure their needs (and yours) are met as
well as mine ;) I'm certainly not mandating that anyone follow any
particular preference.
On Aug 30, 6:14 pm, villas wrote:
> On Aug 30, 8:37 pm, Kevin wrote:
>
> > That last point of yours is why I feel the way I do: the slug
Hello everyone-
I've been working on my first web2py app for the past week and a half
and finally came to an alpha version that is ready to be pushed to
Google's App Engine to share.
However I'm not having any success getting my app to run locally on
the GAE SDK. Additionally the default scaffol
Something we can do in the views
What have changed in template system to raise this error?
I downloaded the updated version of CRM and works well.
Sent from my iPhone
On 30/08/2010, at 23:35, mdipierro wrote:
> oops. Will update it.
>
> On Aug 30, 6:30 pm, Bruno Rocha wrote:
>> Hi,
>>
>>
oops. Will update it.
On Aug 30, 6:30 pm, Bruno Rocha wrote:
> Hi,
>
> A friend in Brazil is using Massimo's CRM Appliance, He had 1.81
> Version(http://www.casacivil.pb.gov.br/w2p/Atos)
> but when updated to 1.83 got this error:
>
> error ticket for "Atos"
> Ticket 127.0.0.1.2010-08-30.20-21-11
when you use the shell to create tables or do anything else you have
to be db.commit()
the db.define_table() anyway has to be in the model. web2py
controllers only see tables defined in the models.
On Aug 30, 2:00 pm, Benjamin Goll wrote:
> Hello Massimo,
>
> I'm using web2py version 1.83.2.
>
>
you have to options:
1) check for the record and the create it (in model)
2) create a script in private and run it manually once.
On Aug 30, 6:47 pm, Manu wrote:
> Hi ,
> I would like to execute a statement only the first time the database
> is create by inserting a fake record and never anymo
It's been a few months since I attempted to cache as you're asking.
When I tried it did not work on GAE though I'm not clear if that was a
memcache+GAE bug or just my implementation. What I know you can do is
cache things like this.
def gaecache(table,row,criteria):
"""
S
Alight I'm going to try this one more time and hope it doesn't double
post.
What I've done that I know works for cache of selects on GAE is the
following:
-
def gaecache(table,row,criteria):
"""
Returns requested item from memcache or inserts it into memcache for
next call
"""
Um... of course that example should also end with "return data".
On Aug 30, 2:23 pm, Jurgis Pralgauskis
wrote:
> I quite use reference fields -- maybe thats the problem...
> can this be cached the way select is?
>
> sth like
> db.define_table("Topics",
> Field("parent_id","reference To
On Aug 30, 8:37 pm, Kevin wrote:
> That last point of yours is why I feel the way I do: the slug is
> redundant. Then again, I'm not the kind of programmer to put SEO
> ahead of cleanliness.
Hi Kevin
Hmm, many others would put SEO ahead of anything if it was paying
their wages :-) but I see you
Hi ,
I would like to execute a statement only the first time the database
is create by inserting a fake record and never anymore then . Where
should i put that code ?
Thx
E.
Hi,
A friend in Brazil is using Massimo's CRM Appliance, He had 1.81 Version(
http://www.casacivil.pb.gov.br/w2p/Atos)
but when updated to 1.83 got this error:
error ticket for "Atos"
Ticket 127.0.0.1.2010-08-30.20-21-11.ac099e4c-41e1-4a2d-be7e-0da5a59a397f
*missing "pass" in view*
Error traceb
On 08/30/2010 12:00 PM, Benjamin Goll wrote:
Hello Massimo,
I'm using web2py version 1.83.2.
When I define the tables in shell-mode, everything looks fine:
python web2py.py -S aubop -M
db = DAL('sqlite://aubop.db')
db.define_table('track', Field('title'), Field('artist'), Field('length'),
Fi
hi Mike,
thanks, for your reaction.
In the meanwhile I've tried,
pdp, could not get it to work with web2py (is it possible at all ??)
winpdb, as you describe works perfect with web2py.
Re-sync of changed source files seems essential to me,
but isn't that done by just restarting the debugger
(and
hi Massimo,
On 30-08-2010 00:54, mdipierro wrote:
> BTW I hope you'll forgive me for this:
>
>http://www.reddit.com/r/Python/comments/d6ks8/web2py_cc_console_ide/
great action, I didn't know about that sit, thanks !
> But you have been on the top of the python page for the entire day
>
>
On 29-08-2010 23:23, qqsaqq wrote:
> firstly, thank you very much for your work!
>
> I'm trying to get web2py_cc running (on Win7 64bit with Python 2.6.6
> 32bit), but I'm not quite there.
>
> Two short notes on the dependencies:
>
> - scince one dependency you mention on your site is psutil, you
On 30-08-2010 18:41, Pai wrote:
> Stef,
>
> did you get a chance to upload a new file? I tried again and same
> error.
probably I made another mistake,
I uploaded again,
and renamed the file (my Mozilla cached the download)
Notes:
http://mientki.ruhosting.nl/web2py/web2py_cc.html
This should be
You're 100% correct. However, since the functionality is lacking I
would use this as a workaround for SEO.
On Aug 30, 3:37 pm, Kevin wrote:
> That last point of yours is why I feel the way I do: the slug is
> redundant. Then again, I'm not the kind of programmer to put SEO
> ahead of cleanlines
I wrote a slice for my solution on this purpose.
http://web2pyslices.com/main/slices/take_slice/94
It uses jQuery for a better interaction altough it needs a bit of
styling.
On Aug 27, 2:06 pm, yamandu wrote:
> Massimo, that gave me a ticket with this:
> Traceback (most recent call last):
> Fi
That last point of yours is why I feel the way I do: the slug is
redundant. Then again, I'm not the kind of programmer to put SEO
ahead of cleanliness.
For example, if the original URL were:
http://myblog.com/articles/5/net-neutrality-and-you
Then I'd expect the following URL to fail:
http://m
I quite use reference fields -- maybe thats the problem...
can this be cached the way select is?
sth like
db.define_table("Topics",
Field("parent_id","reference Topics", label=T("Parent
Topic"), ),
Field("name", "string")
)
db.define_table("Examples",
Field("topic_id"
it seems quite slow on my eeepc as well
yes, dbio is probably the problem,
as generating those pages includes mostly getting values I'll try
http://web2py.com/book/default/chapter/06#Caching-Selects
by the way is there API to force select caching globally in all app,
or just per query?
On 30 R
Hello Massimo,
I'm using web2py version 1.83.2.
When I define the tables in shell-mode, everything looks fine:
python web2py.py -S aubop -M
>>> db = DAL('sqlite://aubop.db')
>>> db.define_table('track', Field('title'), Field('artist'), Field('length'),
>>> Field('filepath'))
, [...]
>>> db.defi
which web2py version are you using?
what you get if you print db.tables immediately after
db.define_table()
On Aug 30, 10:33 am, Benjamin Goll wrote:
> Hello Massimo,
>
> thank you for your fast reply!
>
> Honestly I don't think that this is related to my problem since I only
> tried to demonstr
> Hi Roberto,
>
> I can use this setting in version 0.9.5?
>
> José
>
Hi, yesterday the 0.9.6 version has been released
--
Roberto De Ioris
http://unbit.it
The version of web2py in trunk has already been patched to use app
stats.
http://googleappengine.blogspot.com/2010/03/easy-performance-profiling-with.html
It might help a little. Most likely on GAE it's DBIO that slows it
down.
On Aug 30, 10:01 am, mdipierro wrote:
> It is slow. does it contain
Stef,
did you get a chance to upload a new file? I tried again and same
error. sorry for being persistence. I'm actually really excited
about this. I having WingIDE but I'm actually a lot more excited
about using this!
Pai
On Aug 27, 5:15 pm, Stef Mientki wrote:
> On 27-08-2010 22:32, Pai
http://people.csail.mit.edu/pgbovine/python/
I've not done much heavy lifting with the taskqueue, but when i have
long running tasks i have broken them up into chunks that run in 30
seconds or less. i call the task with something like:
for user in db(db.auth_user.id>0).select():
for question in db(db.question.id>0).select():
I suppose I could pass in bogus arguments in the url with dashes that
never get used. Still would be nice if the controllers would support
dashes.
Hello Massimo,
thank you for your fast reply!
Honestly I don't think that this is related to my problem since I only
tried to demonstrate my problem with this example.
If I define a table in a model, I should be able to access this table
without any further configuration, right? So when I do the
It is slow. does it contain a lot of code or a lot of DB IO? I cannot
say without looking at the code.
On Aug 30, 9:09 am, Jurgis Pralgauskis
wrote:
> Hello,
>
> I have my beta apphttp://code.google.com/p/code-by-example/
> onhttp://web2py-gae-test.appspot.com/
>
> which seems to load quite slowl
> >>> db = DAL('sqlite://aubop.db')
> >>> db.tables
> []
> That's strange, isn't it?
this is fine. In fact even if the tables are in db, web2py does not
discover them. You still need db.define_table(...) to inform web2py
about them.
I cannot say about the problem with the app, but could it be rel
I haven't, but I am going to do it this year.
one moment, which I remember from learning myself (PHP in earlier
days),
is that with web2py templates there is very low (not steep) curve to
start simple webdev -- as you can intermix code and html easy.
one could not now anything about controllers a
Hello,
I have my beta app
http://code.google.com/p/code-by-example/
on
http://web2py-gae-test.appspot.com/
which seems to load quite slowly
http://ftp.akl.lt/incoming/jurgio/gae-logs.png
I also tried logs,
http://ftp.akl.lt/incoming/jurgio/cbe.profile.txt
but don't see big problems (though i use
Hi there,
first of all I would like to thank you for this great software! It's
just so much fun to create powerful applications with it!
Unfortunately I ran into a really strange problem which I'm not able
to solve.
In the file models/database.py I define the following:
db = DAL('sqlite://aubop
The other Chris S is right.
It does, but it is a recent addition to hg and would add another layer
of complication. Eventually it could be helpful as a potential way to
distribute development tasks. For example, I feel comfortable working
on the Welcome app but not on Web2py itself I could just cl
K,
I will just remove the nested repo.
Thanks
On 29 août, 18:52, mdipierro wrote:
> I think hg does not support nested repos.
>
> Massimo
>
> On Aug 29, 5:18 pm, Chris Steel wrote:
>
> > I created a clone of Web2py in order to make some contributions.
>
> > When I ran hg status after making so
Actually if you look on developer.twitter.com, you will find some
library that maps the twitter REST api to
python methods. But I did not relay on that as it would have added
more dependencies.
I think that is something that you can use depending the application
you are going to develop.
Things a
41 matches
Mail list logo