Long time lurker here. First, thank you all for this incredible
product and community. I have learned a great deal in a very short
order of time thanks to web2py and this mailing list.
I may have the opportunity to finally contribute back meaningfully.
Regarding background message/task queuing
Hello Massimo,
I do not have any code I can share at the moment for this solution as
I am using it in my current project but I will be very happy to make a
detailed example tomorrow to share with the community. Do you have
any particular focus in mind? Async insert into db? What level of
Something I've been waiting for a long time. I liked SPE but needed
something more to support modern wxpython and more stuff. Your project
looks superb. Waiting for first final release. Thanks
Rahul D.
On Aug 12, 6:22 am, Nicolas Palumbo napalu...@gmail.com wrote:
Mariano, how can I code if
Maybe sending an email instead of DB insert? Is async DB insert common?
Are you referring to Web2py's new scheduler?
Since many of us are already set up to use SQLite or MySQL/Postgres, could
those be used in place of Redis?
Looks great!
On Aug 12, 12:16 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
I would me more interested in a DAL adapter can pass queries to
another DAL instance.
mmm... Massimo, What is on your mind?
Can you expose a simple example?
Maybe I have something to say to this respect...
This summer
I found that the way to make this work is to set the filtering
(requires directive) in the controller instead of in the model.
:)
On Aug 12, 2:40 pm, noelrv noe...@gmail.com wrote:
I have issues implementing a filtered list of tags in a crud form
dropdown.
In the models below, each book
On Thu, 11 Aug 2011 14:01:12 -0700 (PDT)
pbreit pbreitenb...@gmail.com wrote:
I'm hoping to work on ecommerce/cart/storefront, probably starting
from scratch and not using estore. But this should not discourage
anyone from also pursuing this app as I am not sure how far I will
get and when.
In a custom registration function I have the following form:
form=SQLFORM.factory(db.auth_user,ignore_rw=True)
for administrative reasons I want to extend the form with the
following fields:
Field('comment',type='text')
Field('mail',type='boolean',default=False)
The fields aren't stored in the
def my_download():
import os
import contenttype as c
response.headers['Content-Type'] = c.contenttype(example.mp3)
path=os.getcwd()+/+'albums'+/+request.vars.album
+/+request.vars.filename
return response.stream(open(path,'rb'),chunk_size=4096)
On Aug 11, 8:19 pm, Anthony
Thanks for your quick response Massimo it now works properly
Peter
On Aug 11, 8:43 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Strange but last time I used this was probably 2yrs ago.
I looked at the code and found the possible source of the problem.
Could you please download trunk
Entered using MarkItUp as:
Use fdisk to create LVM partition
``
+ fdisk /dev/sda
``
Html source in Firefox :
h4Use fdisk to create LVM partition/h4
p/p
pre
code class=
+ fdisk /dev/sda
/code
The p/p above adds an unwanted blank space.
2011/8/11 qasimak...@gmail.com qasimak...@gmail.com:
Or you can use google translate some how :)
Please, don't do that. It's harder to understand the spanish
automatic translation than the original text in english. If you
don't have a human translator, I prefer to automatically access to the
It should use field labels if the argument field_lables={} or not
specified.
On Aug 8, 7:31 pm, niknok nikolai...@gmail.com wrote:
I noticed while using crud search results that web2py doesn't use labels
defined in tables as headers. Of course, headers can be defined in crud
but wouldn't it
web2py-celery is a plugin. It is already posted on google code. Has
some bugs and recurrent tasks for not work.
It depends on celery, elrang, rabitmq, sqlalchemy. If you want to use
it like django-celery (i.e. have web2py access the db) then celery
must log everything in the database.
The
Why not do
auth.settings.extra_field['auth_user']=[
Field('comment',type='text'),
Field('mail',type='boolean',default=False)
]
and just use
SQLFORM(db.auth_user)
On Aug 12, 2:42 am, annet annet.verm...@gmail.com wrote:
In a custom registration function I have the following form:
Good catch. Please check trunk.
On Aug 12, 5:20 am, noelrv noe...@gmail.com wrote:
Entered using MarkItUp as:
Use fdisk to create LVM partition
``
+ fdisk /dev/sda
``
Html source in Firefox :
h4Use fdisk to create LVM partition/h4
p/p
pre
code class=
+ fdisk /dev/sda
/code
Do we have a translation in spanish. I remember so but cannot find it.
On Aug 12, 5:29 am, José Luis Redrejo Rodríguez jredr...@debian.org
wrote:
2011/8/11 qasimak...@gmail.com qasimak...@gmail.com:
Or you can use google translate some how :)
Please, don't do that. It's harder to understand
gluon/scheduler.py once stable should be preferred to cron
I see
There is a difference...
Say you gave a task A that should run every minute but takes 4
minutes.
cron will correctly start one process every minute and you will always
have about 4 processes running in average.
scheduler will schedule the tasks but will skip if already in
execution, therefore
This is my problem (just downloaded using mercurial):
Traceback (most recent call last):
File main.py, line 790, in module
app = MainApp(redirect=False)
File /usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py,
line 7978, in __init__
self._BootstrapApp()
File
Denesl point it: http://www.latinuxpress.com/books/drafts/web2py/
2011/8/12 Massimo Di Pierro massimo.dipie...@gmail.com
Do we have a translation in spanish. I remember so but cannot find it.
On Aug 12, 5:29 am, José Luis Redrejo Rodríguez jredr...@debian.org
wrote:
2011/8/11
I need the markmin sources. I do not think I have ever received them,
else I would have generated a PDF.
On Aug 12, 7:29 am, Martín Mulone mulone.mar...@gmail.com wrote:
Denesl point it:http://www.latinuxpress.com/books/drafts/web2py/
2011/8/12 Massimo Di Pierro massimo.dipie...@gmail.com
looks awesome :)
2011/8/12 José Luis Redrejo Rodríguez jredr...@debian.org
This is my problem (just downloaded using mercurial):
Traceback (most recent call last):
File main.py, line 790, in module
app = MainApp(redirect=False)
File
Hi Massimo,
No problem. We can send you the source for the spanish version to post on
the web2py website. I will coordinate it with LatinuxPress.
Ricardo
*Ricardo Strusberg V
@strusberg - www.latinux.org
Latinux Inc
*
2011/8/12 Massimo Di Pierro massimo.dipie...@gmail.com
I need the markmin
On Debian Linux I get:
% python main.py
Traceback (most recent call last):
File main.py, line 777, in module
app = MainApp(redirect=False)
File /usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py,
line 7978, in __init__
self._BootstrapApp()
File
As with normal agreement we will have shared copyright. I can do what
I want with it and so can you too. That means you can print it and
sell it as long as both names are on it. You keep the revenues.
In the version you send me feel free to add a line in chapter 00
saying translated by and a link
Mariano, ja que somos latinos , melhor tratar em portunhol ok. Amigo fiz de
tudo mas nao consigo atualizar o repositorio do ubuntu 10.04, a mensagem eh
que a versao wxpython instalada eh a mais recente. E nao estou conseguido o
passo a passo para instalar. acho que vou remover tudo e instalar
Yeah! Sorry my memory failed :
Here the post I was remembering...
http://groups.google.com/group/web2py/browse_thread/thread/fb4cbfb21c07e1b6?pli=1
So the name I should remember was Mariano ;-)
Come on Mariano sound like Martin, NO? haha.
Richard
On Thu, Aug 11, 2011 at 6:26 PM, Martín Mulone
Thanks to all who are testing this project!
Sorry for the inconveniences with wxPython, it seem that 2.8.10 is too
old to run the Advanced User Interface (AUI), I'll look forward this
in the wx mailing list to see if there is a workaround.
I'm testing this with wxPython 2.8.11 and 2.8.12 (the
On Fri, Aug 12, 2011 at 11:02 AM, Ovidio Marinho ovidio...@gmail.com wrote:
Mariano, ja que somos latinos , melhor tratar em portunhol ok. Amigo fiz de
tudo mas nao consigo atualizar o repositorio do ubuntu 10.04, a mensagem eh
que a versao wxpython instalada eh a mais recente. E nao estou
the program is fantastic, it was a long time to happen where we can develop
ago with more simplicity in development, as an environment for reports is
needed too. I'll try Yes, it is important to web2py.
Ovidio Marinho Falcao Neto
ovidio...@gmail.com
I am fresh man, I copy the code from chaper 7 ,
db.define_table('category',Field('name'))
db.define_table('product',Field('name'),Field('category'))
db.product.category.widget = SQLFORM.widgets.autocomplete(
request, db.category.name, limitby=(0,10), min_length=2)
I have fill the table
Can you provide more detail? What does your controller/view code look like?
What exactly is happening?
On Friday, August 12, 2011 10:49:00 AM UTC-4, uooyou wrote:
I am fresh man, I copy the code from chaper 7 ,
db.define_table('category',Field('name'))
Why not do
auth.settings.extra_field['auth_user']=[
Field('comment',type='text'),
Field('mail',type='boolean',default=False)
]
Because I have a registration form which users can use to register for
a service and to up- or downgrade their account. If they enter a
comment which requires a
2011/8/12 Mariano Reingart reing...@gmail.com:
Thanks to all who are testing this project!
Sorry for the inconveniences with wxPython, it seem that 2.8.10 is too
old to run the Advanced User Interface (AUI), I'll look forward this
in the wx mailing list to see if there is a workaround.
Hi
Controller: index
def index():
form=SQLFORM(db.product)
return dict(form=form)
view:
{{=form}}
On Aug 12, 10:57 pm, Anthony abasta...@gmail.com wrote:
Can you provide more detail? What does your controller/view code look like?
What exactly is happening?
On Friday, August 12, 2011
InfoWorld 2011: Web2py is among the best of the Python Web
frameworks, thanks largely to its creator's careful up-front design
and ongoing improvements.
hat tip Massimo!
On Aug 10, 12:56 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
:-)
On Aug 10, 6:28 am, Martín Mulone
I recommend registering to see the full article.
InfoWorld's summary table (out of 10)
http://www.infoworld.com/d/application-development/pillars-python-six-python-web-frameworks-compared-169442
CubicWeb 3.12.5 score: 7.7 GOOD
Django score: 8.3 VERY GOOD
Pyramid 1.0 score: 7.8 GOOD
Please, exec the following command an tell me the ouput:
cd rad2py/ide2py
python web2py.py
It is very strange, as it file doesn't have any external dependency
(just python stdlib)
it doesn't even import gluon at first.
Are you trying the latest version 0.06b?
If the problem persist, please
Thanks Jose, I've create an issue as this is important to get it
working on most platform and versions.
http://code.google.com/p/rad2py/issues/detail?id=3
I've sent a mail to the wx-users mailing list, if the error persists,
I'll change to standard toolbars.
Regarding the paths, there is a
I updated the version of wx python, and removed the psp.py continues with
this error:
ovidio@ovidio-laptop:~/ide2py$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
import wx
wx.version()
+1
On Aug 11, 6:24 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
What do people think?
http://code.google.com/p/web2py/issues/detail?id=370
I do not have a strong opinion.
Your code works fine for me. Can you be more specific? What exactly does not
work? Can you check in your browser to see if the Ajax call is getting made?
Note, for the autocomplete widget to work, you need to include jQuery in
your page (if you have web2py_ajax.html included in your layout, it
Hello,
I'm using a simple loop in my db_custom.py define some some tables
that contain a combination of fields from other, similarly named
tables and managed to get it to work.
My question is, is there a way to modify any lambda functions like the
following two in the example, in order to assign
I did set it up for async insert into db to handle traffic spikes if
for example a bunch of people show up and start messaging.
I haven't used it for an e-mail queue yet but that is on my list of
things to do.
Once complete I will post a working e-mail queue solution.
It sounds like Massimo's
Sometimes in a many-to-many relationship, an attribute will belong to
the relationship rather than to the either of the objects.
Let's say in the dog's-owners example you wanted to include the dog's
license tag number. Using normalized tables it would work something
like this:
On Friday, August 12, 2011 5:24:24 AM UTC-4, peter wrote:
path=os.getcwd()+/+'albums'+/+request.vars.album
+/+request.vars.filename
os.getcwd() refers to the web2py folder, not your application folder.
Assuming the 'albums' folder is in your application folder, you can instead
use
http://css-tricks.com/examples/ShapesOfCSS/?=derp
I am a bit confused.
Are you talking about plugin_celery (http://code.google.com/p/web2py-
celery/) or about gluon/scheduler.py They are not the same thing.
Massimo
On 12 Ago, 12:49, TheSweetlink yanosh...@gmail.com wrote:
I did set it up for async insert into db to handle traffic spikes if
Hi,
What is the right way to do the following type of query with DAL,
avoiding the for loop?
ids = db(db.task_run.task_scheduled ==
db.task_scheduled.id)\
(db.task_scheduled.group_name == 'status')\
(db.task_run.start_time
Ovidio:
The ImportError maybe because you have a problem with the web2py
instance, you must decompress the web2py folder in the rad2py
directory, no inside the ide2py.
Also, look at the Python Path, maybe there is a web2py.py file around
that is preventing you to import the correct one from the
ids = db(db.task_run.task_scheduled ==
db.task_scheduled.id)\
(db.task_scheduled.group_name == 'status')\
(db.task_run.start_time
+status_expirationnow)._select(db.task_run.id)
db(db.task_run.id.belongs(ids)).delete()
notice *_select *instead of *select*
I'm continuing here if ok to report bugs tell me if I have to stop
or go somewhere else...
if one starts different processes , say,
python web2py.py -K a0
python web2py.py -K a0
python web2py.py -K a0
python web2py.py -K a0
python web2py.py -K a0
the guess_worker_method actually returns the
Actually 2 workers end up with fetching the same task_scheduled also
with the new logic.
Reproducing is as simple as, in a controller :
def submit_work():
from gluon.contrib.simplejson import loads,dumps
db(db.task_scheduled.id0).delete() #cleanup, we want unique
values in a
for a in
#triangle-right {
width: 0;
height: 0;
border-top: 50px solid transparent;
border-left: 100px solid red;
border-bottom: 50px solid transparent;
}
script
$('#triangle-right').click(function(){
do_stuff();
})
On Aug 12, 3:17 pm, Massimo Di Pierro
I am getting this error in this version too while trying to deploy it
on a GAE development environment
I am running the latest web2py version 1.98.2
*
web2py™ Version 1.98.2 (2011-08-04 00:47:09)
Python Python 2.5.6: /usr/local/bin/python
**
Traceback (most recent call last):
File
Massimo,
I didn't realize that there were other efforts to integrate celery
with web2py aside from yours or that yours was completed already. I
only offered mine up as a possible easy alternative for those who want
queuing or async insert into db to smooth out traffic spikes. If it
can be of
This is strange. This must be a problem with transactions in sqlite.
Will run more tests tomorrow.
On 12 Ago, 15:11, Niphlod niph...@gmail.com wrote:
Actually 2 workers end up with fetching the same task_scheduled also
with the new logic.
Reproducing is as simple as, in a controller :
def
You deploying an app that you have not run locally. Some folders have
missing and have not been created so GAE tries to create them for you
and fails (no write access). You must create all folders it needs
before using GAE. This is done automatically when you run the app.
On 12 Ago, 14:58,
web2py-celery is not completed. Periodic tasks can be submitted but do
not seem to run. :-(
On 12 Ago, 18:14, TheSweetlink yanosh...@gmail.com wrote:
Massimo,
I didn't realize that there were other efforts to integrate celery
with web2py aside from yours or that yours was completed already.
I'm trying some variations but it seems that the culprit is assigning
and retrieving task_scheduled in the same process.
I don't know dal internals with transactions, locking and commits... a
hint though (my 2 cents): I added, just to check, a line after 245
...
if task:
if
@Massimo: I switched over postgres before today's tests, I was facing
too many Operational error with workers4 and tasks queued100
PS: nice italian translation of the online book!
I see the problem. All your workers have the same name because the
worker_name defaults to hostanme:port of the web2py instance,
The API have a way to specify a hostname but the command line function
does not.
There are two simple solutions:
- specify a worker_name using shell arguments
- have
P.S. I always assumed people would run different nodes on different
machines and therefore different hostnames, but even in this case they
may get hostname equal to 127.0.0.1 so there must be a way to specify
a worker_name.
On 12 Ago, 18:35, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
I
Please check if the current trunk solves some of the problems.
The operational error are probably dues to failures to commit.
If you could reprot some traceback I can add some
try:
...
except: db.rollback()
in the right places.
On 12 Ago, 18:32, Niphlod niph...@gmail.com wrote:
@Massimo: I
So... a plugin_shapes which contains a CSS file?
On 12 Ago, 15:18, Cliff cjk...@gmail.com wrote:
#triangle-right {
width: 0;
height: 0;
border-top: 50px solid transparent;
border-left: 100px solid red;
border-bottom: 50px solid transparent;
}
hello i just found that in the layout of the plugin i need to include this
line otherwise the content will not fit properly in the mobile phone
meta name=viewport content=width=device-width,
initial-scale=1,maximum-scale=1
i got this tip from the book *Master Mobile Web Apps with jQuery
that fixed the bug I had in OS X. WoWoW!!!
Thanks!
Fascinating! I never thought CSS could do that. However, I wouldn't be
so quick to jump on the bandwagon. In practice, they don't seem work
so well, although it's possible I'm not using it as intended. For
instance, DIV shapes that are inlined will not display properly. I'm
sure there are many
I am a new user and so far I love web2py. I am going through the
tutorial and I encounter my first issue.
I have an application called tutorial and a method in the default
controller 'default.py':
def first():
form = FORM(INPUT(_name=thename, requires=IS_NOT_EMPTY()),
On Friday, August 12, 2011 8:59:25 PM UTC-4, TheMexican wrote:
{{extend 'layout.html'}}
h1This is the default/first.html template/h1
{{=form}}
This displays the form once, and...
{{=BEAUTIFY(response._vars)}}
this displays it a second time.
response._vars stores the dictionary
Thanks for the quick reply.
Earlier, I tested my application locally by running ./web2py and it
works fine. All the folders as mentioned in the gluon/admin.py are
available under ~/web2py.. When I tried to run the application in the
GAE development environment (dev_appserver.py web2py), I get
Sorry, my mistake. I resolved it
Earlier, I was not sure about the tables in my applications
From the welcome home page-This Page-Database, I got the URL for the
database and replaced the string 'welcome' with my application name.
This displayed all tables in my database in GAE.
This works both in
75 matches
Mail list logo