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
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 this
On Friday, August 12, 2011 8:59:25 PM UTC-4, TheMexican wrote:
>
> {{extend 'layout.html'}}
> This is the default/first.html template
> {{=form}}
This displays the form once, and...
> {{=BEAUTIFY(response._vars)}}
this displays it a second time.
response._vars stores the dictionary r
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()),
INPUT(
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 othe
that fixed the bug I had in OS X. WoWoW!!!
Thanks!
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
i got this tip from the book *Master Mobile Web Apps with jQuery Mobile.*
the book is available here.
http://store.elated.com/
For dummies like me th
So... a plugin_shapes which contains a CSS file?
On 12 Ago, 15:18, Cliff wrote:
> #triangle-right {
> width: 0;
> height: 0;
> border-top: 50px solid transparent;
> border-left: 100px solid red;
> border-bottom: 50px solid transparent;
>
> }
>
>
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 wrote:
> @Massimo: I switched over pos
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
wrote:
> I see the problem. All your
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 the
@Massimo: I switched over postgres before today's tests, I was facing
too many Operational error with workers>4 and tasks queued>100
PS: nice italian translation of the online book!
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 task.assigned_work
web2py-celery is not completed. Periodic tasks can be submitted but do
not seem to run. :-(
On 12 Ago, 18:14, TheSweetlink 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
> only offered
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, chitram
This is strange. This must be a problem with transactions in sqlite.
Will run more tests tomorrow.
On 12 Ago, 15:11, Niphlod 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 submit_work()
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 use
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 "/ho
#triangle-right {
width: 0;
height: 0;
border-top: 50px solid transparent;
border-left: 100px solid red;
border-bottom: 50px solid transparent;
}
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.id>0).delete() #cleanup, we want "unique"
values in a
for a
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
ids = db(db.task_run.task_scheduled ==
db.task_scheduled.id)\
(db.task_scheduled.group_name == 'status')\
(db.task_run.start_time
+status_expiration
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 ID
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
+status_expiration
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 wrote:
> I did set it up for async insert into db to handle traffic spikes if
> for example a bunch
http://css-tricks.com/examples/ShapesOfCSS/?=derp
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
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:
db.define_table(do
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 we
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
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 w
+1
On Aug 11, 6:24 am, Massimo Di Pierro
wrote:
> What do people think?
>
> http://code.google.com/p/web2py/issues/detail?id=370
>
> I do not have a strong opinion.
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.versi
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 ide2p
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 fill
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
We
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
wrote:
> :-)
>
> On Aug 10, 6:28 am, Martín Mulone wrote:
>
>
>
>
>
>
>
> >http://ww
Controller: index
def index():
form=SQLFORM(db.product)
return dict(form=form)
view:
{{=form}}
On Aug 12, 10:57 pm, Anthony wrote:
> 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
2011/8/12 Mariano Reingart :
> 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 Mariano, you do
> 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 requi
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'))
> db.define_table('product',Field(
other traceback,
ovidio@ovidio-laptop:~/ide2py$ sudo python main.py
Traceback (most recent call last):
File "main.py", line 50, in
from web2py import Web2pyMixin
ImportError: cannot import name Web2pyMixin
ovidio@ovidio-laptop:~/ide2py$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:5
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 cate
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
8826908
On Fri, Aug 12, 2011 at 11:02 AM, Ovidio Marinho 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 conseguido o
> passo
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 curr
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
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 novam
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 lin
On Debian Linux I get:
% python main.py
Traceback (most recent call last):
File "main.py", line 777, in
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 "/usr/lib/python2.6/dist-packages/wx-2.8
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
> I need the markmin sources. I do not think I
looks awesome :)
2011/8/12 José Luis Redrejo Rodríguez
> This is my problem (just downloaded using mercurial):
>
> Traceback (most recent call last):
> File "main.py", line 790, in
>app = MainApp(redirect=False)
> File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
>
I followed your installation guide have a problem (on OS X):
$ python main.py
Traceback (most recent call last):
File "main.py", line 777, in
app = MainApp(redirect=False)
File
"/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core.py",
line 7981
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 wrote:
> Denesl point it:http://www.latinuxpress.com/books/drafts/web2py/
>
> 2011/8/12 Massimo Di Pierro
>
>
>
>
>
>
>
>
>
> > Do we have a translation in s
Denesl point it: http://www.latinuxpress.com/books/drafts/web2py/
2011/8/12 Massimo Di Pierro
> 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
> wrote:
> > 2011/8/11 qasimak...@gmail.com :
> >
> > > Or you can use googl
This is my problem (just downloaded using mercurial):
Traceback (most recent call last):
File "main.py", line 790, in
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 "/usr/lib/pyt
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 it
>
> gluon/scheduler.py once stable should be preferred to cron
I see
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
wrote:
> 2011/8/11 qasimak...@gmail.com :
>
> > Or you can use google translate some how :)
>
> Please, don't do that. It's harder to understand the spanish
> "automatic translat
Good catch. Please check trunk.
On Aug 12, 5:20 am, noelrv wrote:
> Entered using MarkItUp as:
>
> Use fdisk to create LVM partition
> ``
> + fdisk /dev/sda
> ``
> Html source in Firefox :
>
> Use fdisk to create LVM partition
>
>
>
> + fdisk /dev/sda
>
>
> The above adds an unwanted b
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 wrote:
> In a custom registration function I have the following form:
>
> form=SQLFORM.factory(db.aut
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 gluon/sc
It should use field labels if the argument field_lables={} or not
specified.
On Aug 8, 7:31 pm, niknok 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 be better if by def
2011/8/11 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
original english tex
Entered using MarkItUp as:
Use fdisk to create LVM partition
``
+ fdisk /dev/sda
``
Html source in Firefox :
Use fdisk to create LVM partition
+ fdisk /dev/sda
The above adds an unwanted blank space.
Thanks for your quick response Massimo it now works properly
Peter
On Aug 11, 8:43 pm, Massimo Di Pierro
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 and tell me if it is no
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, A
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
On Thu, 11 Aug 2011 14:01:12 -0700 (PDT)
pbreit 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.
I'm interested for
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 wrote:
> I have issues implementing a filtered list of tags in a crud form
> dropdown.
>
> In the models below, each book belongs to a
70 matches
Mail list logo