I have tried the examples found in the book and the scheduler works very
fine as expected. But how to use it in real life?
My questions:
- I have written an application with contains only the scheduler. It
woks, but does the scheduler need it's own application? What is the best
way to
Hi,
I have html file with one text field with submit button inside form.I added
javascript code to validate the textfield but its not working at all, why
is it so? does web2py not support javascript function?
please check below the code :
SCRIPT LANGUAGE=”javascript”
function
Thanks Massimo, Anthony. I am using my own registration process, so
login_bare is the way to go. I have tested this and works fine!
On Thursday, August 23, 2012 3:40:31 PM UTC+2, Anthony wrote:
If account creation is not going through the usual registration process
(i.e., calling
Hi all,
I'm interested on implementing a many-to-many relation for kind of graph
structure, i.e., there are a set of nodes, with some on-way connections
between them. Part of my model is:
db.define_table('bookpage',\
Field('content', 'text'),\
Field('image', 'upload'),\
There are some (scripts/setup-web2py-nginx-uwsgi-ubuntu.sh and
scripts/setup-web2py-nginx-uwsgi-on-centos.sh) that automate the processes
of setting up web2py with nginx+uwsgi.
You can start by analyzing these scripts and then consult the upstream
documentation.
-rif
vineri, 24 august 2012,
Hi dear list,
I am using web2py mainly as a JSON-RPC server and gateway to the database.
As a client I use qooxdoo with asynchronous json-rpc calls to communicate
between
the two.
I currently have in my database 74 tables, and expect the number to grow a
bit in the future.
I mainly use two
Hello
So I am really struggling with web2py user registration
I have a database that contains come required tables for webapp to work.
Now I want to create a user register form etc.
In db.py I added a create table
#This is used to connect also to all other tables, SHOULD I CREATE A
NEW
Hi All,
I am facing similar problem when uploading an packed appliation on to a
remote server, the application size is 224 kb.
internet speed is good, i am able to work on Putty session without any
issues.
Below patch link does not see to work. I am using stable release 1.99.7
Traceback
OK, got it to work:)
On Thursday, August 23, 2012 1:22:27 PM UTC-7, pitonb wrote:
Sorry to revive this thing a year later. I have taken a stab at this
yesterday and at 5 in the morning I was still nowhere trying to install w2p
under a shared hosting account. Has anyone gotten this to work
Can you show the traceback(). Also, maybe pack and attach a minimal app
that reproduces the problem.
On Friday, August 24, 2012 5:14:20 AM UTC-4, Yebach wrote:
Hello
So I am really struggling with web2py user registration
I have a database that contains come required tables for webapp to
Also, what version of web2py are you using?
On Friday, August 24, 2012 7:07:49 AM UTC-4, Anthony wrote:
Can you show the traceback(). Also, maybe pack and attach a minimal app
that reproduces the problem.
On Friday, August 24, 2012 5:14:20 AM UTC-4, Yebach wrote:
Hello
So I am really
Hi,
We are considering implementing a part of our web application using
emberjs. The application is web2py based, and we are thinking about the
possible implications. These are some of the issues that we would like to
clarify:
1. Can the emberjs javascript be served by web2py? I guess this
Interesting -- for me there is no Members button, though I can see the
number of topics.
Anthony
On Friday, August 24, 2012 12:05:49 AM UTC-4, apps in tables wrote:
the upper right corner has the number of topics, above it the members
button , clicking it will show the members.
On Friday,
I had the same problem with another js framework with a lot of small files.
I solved it like this:
a) created a new application called 'shared' - this app is just to contain
static resources
b) copied all static resources from the primary app into this 'shared' app
c) in your views, create URL
Yes, web2py supports Javascript functions (you can do whatever you want on
the client side). In a couple places, your code has the wrong kind of
quotes -- instead of you have ”. In particular:
onSubmit=”return textFieldValidation();”
should be:
onSubmit=return textFieldValidation();
and
Also, a tip -- if you think web2py is causing a problem with your code, try
the code in a page not served by web2py (e.g., just a static HTML page),
and see if it works.
Anthony
On Friday, August 24, 2012 7:29:16 AM UTC-4, Anthony wrote:
Yes, web2py supports Javascript functions (you can do
It's just an application, it's just my way of doing thing what I'm sharing,
I'm not proposing like a replacement to welcome. Perhaps I have to warn to
not use it, because is different and I think most of people working on
web2py have to have your owns scatfolding app or already have it. Today is
You can only search those fields in regular columns. Not those in the
pickle. You have to decide what you put where.
On Thursday, 23 August 2012 23:02:52 UTC-5, apps in tables wrote:
what about the search?
On Friday, August 24, 2012 7:00:27 AM UTC+3, Massimo Di Pierro wrote:
You can always
Who are you? You can see things that only managers of the group should be
able see. And Anthony is a member.
On Thursday, 23 August 2012 23:09:02 UTC-5, apps in tables wrote:
in this page:
https://groups.google.com/forum/?fromgroups=#!forum/web2py
On Friday, August 24, 2012 7:05:49 AM
I can see it too (web2py-users and web2py-developers).
Marin
On Fri, Aug 24, 2012 at 2:40 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Who are you? You can see things that only managers of the group should be
able see. And Anthony is a member.
On Thursday, 23 August 2012
I can also see it.
# of members: https://groups.google.com/forum/#!members/web2py
# of topics: https://groups.google.com/forum/#!forum/web2py
On Fri, Aug 24, 2012 at 10:51 PM, Marin Pranjić marin.pran...@gmail.com wrote:
I can see it too (web2py-users and web2py-developers).
Marin
On Fri,
The book says use code like this:
if request.vars.image!=None:
form.vars.image_filename = request.vars.image.filename
The code uses SQLFORM without defining download. When editing the record,
if the upload field has nothing in it, it is empty, not None. So this
exception gets raised:
On 24 Aug 2012, at 5:40 AM, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Who are you? You can see things that only managers of the group should be
able see. And Anthony is a member.
Some people must be seeing the old Groups interface, which had that
information. It used to be that you
I can see it too. Only appears on the page with list of topics though; not
when you are reading the content.
On Friday, 24 August 2012 14:24:08 UTC+1, Jonathan Lundell wrote:
On 24 Aug 2012, at 5:40 AM, Massimo Di Pierro
massimo@gmail.comjavascript:
wrote:
Who are you? You can see
2012/8/24 Sergi Pons Freixes sachiel2...@gmail.com
Hi all,
I'm interested on implementing a many-to-many relation for kind of graph
structure, i.e., there are a set of nodes, with some on-way connections
between them. Part of my model is:
db.define_table('bookpage',\
Field('content',
2012/8/24 Manuele Pesenti manu...@inventati.org
2012/8/24 Sergi Pons Freixes sachiel2...@gmail.com
db.define_table('page_link',\
Field('in_page', db.bookpage),\
Field('out_page', db.bookpage),\
Field('text'))
Are you sure you can call a field text? Or is it a reserved
I add the revelants parts of sql.log:
CREATE TABLE bookpage(
id INT AUTO_INCREMENT NOT NULL,
content LONGTEXT,
image VARCHAR(255),
from_book INT, INDEX from_book__idx (from_book), FOREIGN KEY
(from_book) REFERENCES book(id) ON DELETE CASCADE,
modified_on DATETIME,
PRIMARY
- I have written an application with contains only the scheduler. It
woks, but does the scheduler need it's own application? What is the best
way to communicate between the Scheduler and the Main application
Scheduler is intended to be embedded into an application. An
I have upgraded to Bootstrap 2.1.0 thanks to a patch by Alec Taylor.
I have renamed css/bootswatch*.css as css/web2py_bootstrap*.css to avoid
confusion.
In the process I have discovered layout.html refereces a bootswatch_ie.css
(now web2py_bootstrap_ie.css) and I do not have it.
It is required
This is a mistake in the book. Thanks for reporting it.
On Friday, 24 August 2012 08:00:21 UTC-5, Cliff Kachinske wrote:
The book says use code like this:
if request.vars.image!=None:
form.vars.image_filename = request.vars.image.filename
The code uses SQLFORM without defining
Field('text')
is the problem. A field cannot be called 'text' because it is a reserved
keyword. The database complains.
On Friday, 24 August 2012 09:20:38 UTC-5, Manuele Pesenti wrote:
2012/8/24 Sergi Pons Freixes sachi...@gmail.com javascript:
Hi all,
I'm interested on implementing a
Hi Massimo,
I think I removed the file from the patches I sent you, but probably I
missed something. That file is absolutely useless right now and all it's
reference could be removed.
Angelo
2012/8/24 Massimo Di Pierro massimo.dipie...@gmail.com
I have upgraded to Bootstrap 2.1.0 thanks to a
Very happy to hear this =)
FYI: I presented a talk at a Django usergroup meetup a few nights ago,
subject was What Django can learn from web2py. After my talk there
were a bunch of hardcore+professional Django programmers who are now
considering moving to web2py—albeit for smaller
Just a small thing: Is it possible to have the -g option (the groups to be
picked by the worker) when calling the worker with the -K arg from the main
web2py.py?
maybe somthing like
python web2py.py -K appname(group1,group2,...)
Am Donnerstag, 12. Juli 2012 20:36:38 UTC schrieb Niphlod:
The statistics on the web2py-users group page says, showing
33 0f 18259 topics,
showing 25 of 4143 members
so there may be 4143 members with 18259 topics since the group was started?
On Thursday, August 23, 2012 9:11:36 PM UTC-5, Massimo Di Pierro wrote:
Does anybody know how to check how
2012/8/24 Massimo Di Pierro massimo.dipie...@gmail.com
Field('text')
is the problem. A field cannot be called 'text' because it is a reserved
keyword. The database complains.
But... changing it to 'link_text' or something else doesn't solve the
problem. BTW, it's on MySQL.
--
Are you avoiding my idea of letting the web2py application having both DAL
and pymongo datasets at the same time, because
It is not possible in web2py ,?
it is not practical ?
or you are not interested ( or not having time ) ?
--
Martin,
what about a twitter bootstrap plugin?
we can create a plugin to inject bootstrap specific helpers.
THUMBNAILS(), POPOVER(), MODAL(), PILLS() also a bootstrap manager.
{{=bootstrapmanager(v=2.1, js=True)}}
So it will be app agnostic.
what do you think about?
Em 24/08/2012 08:37,
There is something else going on. This is the log (no errors creating
tables) of the following model on mysql 5.5. web2py trunk (but at least on
table creation nothing should have changed since 1.99.7)
db.define_table('book',
Field('bookname')
)
db.define_table('bookpage',
Hi Niphlod, what drawing tool did you use for your diagrams in the instructions?
Still think your explanations and doco are great.
--
it's yuml.me, a webapp.
On Friday, August 24, 2012 6:07:10 PM UTC+2, Andrew wrote:
Hi Niphlod, what drawing tool did you use for your diagrams in the
instructions?
Still think your explanations and doco are great.
--
Hi, what use should it have if you have the possibility in your app to do
declare Scheduler(db, group_names=['group1']) ?
On Friday, August 24, 2012 5:08:23 PM UTC+2, Daniel Haag wrote:
Just a small thing: Is it possible to have the -g option (the groups to be
picked by the worker) when
For the record... this is in trunk. Does not mean it will be in web2py 2.0.
There are still some problems.
On Friday, 24 August 2012 09:57:07 UTC-5, Massimo Di Pierro wrote:
I have upgraded to Bootstrap 2.1.0 thanks to a patch by Alec Taylor.
I have renamed css/bootswatch*.css as
Because I do not understand what it means. What functionality would you
like to see that is not already available vie pymongo or via DAL? can you
make a concrete example?
On Friday, 24 August 2012 10:27:30 UTC-5, apps in tables wrote:
Are you avoiding my idea of letting the web2py application
+1
On Friday, 24 August 2012 10:53:56 UTC-5, rochacbruno wrote:
Martin,
what about a twitter bootstrap plugin?
we can create a plugin to inject bootstrap specific helpers.
THUMBNAILS(), POPOVER(), MODAL(), PILLS() also a bootstrap manager.
{{=bootstrapmanager(v=2.1, js=True)}}
So
Running 1.99.2 on localhost.
When sending email, it prints the message to the console.
All else works fine.
Can anyone suggest why this might be going on?
The production system is Ubuntu 10.4 running Apache. Will this behavior
cause a problem there?
Or should I just upgrade to 99.7?
--
can you try changing db.bookpage to reference bookpage
Em 24/08/2012 13:01, Niphlod niph...@gmail.com escreveu:
There is something else going on. This is the log (no errors creating
tables) of the following model on mysql 5.5. web2py trunk (but at least on
table creation nothing should have
Hi
I want to use maximum screen size for my web2py app. How can I use the full
screen width for the body like the menu bar and the footer.
Also the width of the main and the sidebars must be changed to 40, 20, 40.
Which css objects needs to be changed for this?
Thanks in advance.
Regards,
I like this clean layout.html
It would be nice to be able to use auth.wiki() though; I suppose the menu
is incompatible.
On Friday, August 24, 2012 12:37:21 PM UTC+1, Martin.Mulone wrote:
It's just an application, it's just my way of doing thing what I'm
sharing, I'm not proposing like a
Does anyone look at Bootstrap Ajax?
https://github.com/eldarion/bootstrap-ajax
Dne pátek, 24. srpna 2012 17:53:56 UTC+2 rochacbruno napsal(a):
Martin,
what about a twitter bootstrap plugin?
we can create a plugin to inject bootstrap specific helpers.
THUMBNAILS(), POPOVER(), MODAL(),
You could run different task groups with different privileges/priority
Am Freitag, 24. August 2012 18:13:02 UTC+2 schrieb Niphlod:
Hi, what use should it have if you have the possibility in your app to do
declare Scheduler(db, group_names=['group1']) ?
On Friday, August 24, 2012 5:08:23 PM
Yessir! No errors found.
timestamp: 2012-08-24T19:34:52.501000
CREATE TABLE book(
id INT AUTO_INCREMENT NOT NULL,
bookname VARCHAR(255),
PRIMARY KEY(id)
) ENGINE=InnoDB CHARACTER SET utf8;
success!
timestamp: 2012-08-24T19:34:52.605000
CREATE TABLE bookpage(
id INT AUTO_INCREMENT NOT NULL,
by any chance you have mail.settings.server = 'logging' in your model (just
to check)?
BTW: upgrading is always fine.
On Friday, August 24, 2012 6:55:44 PM UTC+2, Cliff Kachinske wrote:
Running 1.99.2 on localhost.
When sending email, it prints the message to the console.
All else works
uhm. You can already change dinamically those just altering the group_names
into the scheduler_worker table. But I'll work something out.
On Friday, August 24, 2012 8:35:23 PM UTC+2, Daniel Haag wrote:
You could run different task groups with different privileges/priority
Am Freitag, 24.
On Friday, August 24, 2012 2:30:53 PM UTC-4, David Marko wrote:
Does anyone look at Bootstrap Ajax?
https://github.com/eldarion/bootstrap-ajax
Interesting. I think we can already do most of that with the A() helper and
with Ajax components.
Anthony
--
I have a bunch of fields that are part of a user's account which would be
ridiculous to ask for on signup.
However they are definitely decoupled parts of the user's data, so need to
be extra fields to the auth_user table.
How do I hide certain fields from the register form, and remove all col3
I created a custom widget including an *INPUT* with a
*hideerror=True*parameter. It did not hide error messages.
To simulate:
in model:
class
SimpleWidget(FormWidget):
_class =
'string'
You can set the readable and writable attributes of the fields to False to
prevent them from displaying. Regarding the comments, if you don't want
them to display, why do you have them? In any case, you should be able to
set the comment attribute of each field to None (SQLFORM itself takes a
@Daniel: Ok, I worked out a patch to allows -K
app1:group1,app2:group1:group2 (old syntax still works ok). Sent to you
privately, can you check it ?
On Friday, August 24, 2012 8:51:58 PM UTC+2, Niphlod wrote:
uhm. You can already change dinamically those just altering the
group_names into
For now, a workaround might be to subclass INPUT and replace the xml()
method (http://code.google.com/p/web2py/source/browse/gluon/html.py#1692)
so it doesn't check for hideerror and simply displays the widget without
any error.
Anthony
On Friday, August 24, 2012 3:30:02 PM UTC-4, Jim Karsten
I agree. A(...) + web2py.js are superior.
Moreover they are using the name bootstrap but this is not from Twitter.
Massimo
On Friday, 24 August 2012 14:11:08 UTC-5, Anthony wrote:
On Friday, August 24, 2012 2:30:53 PM UTC-4, David Marko wrote:
Does anyone look at Bootstrap Ajax?
Hello guys,
There are somebody with some experience using wx instead of a web view
layer??
I have some questions about it, and I want to know if exist some
example over there...
Thanks in advance.
Christian.
--
You should see Rad2py, created by Mariano Reingart
http://code.google.com/p/rad2py/
On Fri, Aug 24, 2012 at 6:14 PM, Christian Espinoza chespin...@gmail.comwrote:
Hello guys,
There are somebody with some experience using wx instead of a web view
layer??
I have some questions about
this: http://code.google.com/p/gui2py/
--
This is in my controller:
registrationForm = auth.register()
UN = registrationForm.element(#user_username)
UN[_placeholder] = Username
UN[_name] = regForm_username # This is what causes the error.
and this is in my view:
{{=registrationForm}}
The
On Friday, August 24, 2012 6:12:08 PM UTC+1, rochacbruno wrote:
can you try changing db.bookpage to reference bookpage
On my case, it keeps crashing with that.
Something weird: once it crash and raises the ticket, I can not load
the page again... it timeouts. I have to restart apache to be
The problem is, you're changing the name of the field in the HTML, but the
server-side data model is still expecting a variable named username
(which is the name of the field in the database table). I suppose a
workaround might be something like this in the controller (before:
if
Yes, there is really something else messing up somewhere I just
created a new app with only this part, and it works perfect.
I will start from scratch trying to find what is interfering with this
part. I'll keep you posted.
--
I'm overriding it in the controller, but I'll check anyway.
I commented it out in the model, but it still does it.
Oddly it's just doing the message, none of the other fields.
On Friday, August 24, 2012 2:41:49 PM UTC-4, Niphlod wrote:
by any chance you have mail.settings.server = 'logging'
This is fixed in trunk and the timeout has been increased.
On Friday, 24 August 2012 01:11:27 UTC-5, pradeep cs wrote:
Hi All,
I am facing similar problem when uploading an packed appliation on to a
remote server, the application size is 224 kb.
internet speed is good, i am able to
How do I pass page number to SQLFORM.grid?
--
The example that i can think of is the workflow of documents.
list of users, list of documents and list of document types,
each user can
send a document to one or more users
receive a document
reply to a document (sent doc is linked to the received one)
forward the document
comment on a
What you mentioned re: putting forms in separate DIV's should work with
jQuery functions. But I suppose if you have two forms with fields that have
the same name, if you use the web2py's Ajax function, for the second
parameter of the ajax function, the value of both fields will be posted. Is
There are two parts on this problem. One is the workflow of the document
(which document, who sent it, whom what it send to) and another is the
content of the document which may or may not need to be schema free.
1) The document itself if it needs to be schema free can go in a mongodb
and
I believe the second argument of ajax() can also be a string jQuery
selector, which can be a selector for an entire form, whose inputs will
then be serialized and posted. Good point, though -- when the second
argument is a list of field names, maybe we should allow an additional
parameter to
I remember Massimo saying a little while ago that someone had suggest
modifying the alert flash (response.flash) display a while back—before
bootstrap was used in web2py—and that it wasn't well received by the
community.
Now with bootstrap I recommend we add in stackoverflow style alerts.
Thanks, option 1 will be my long term fix. I am doing reads only from the
pure gae pages so as a quick fix i'll try option 3 and see where that gets
me.
On Wednesday, August 22, 2012 1:12:47 AM UTC-4, howesc wrote:
you have 3 options as i see it:
- port the pages to be part of web2py
Was this feature taken out?
I'd really like to use it :)
On Tuesday, August 23, 2011 10:14:36 PM UTC+10, Massimo Di Pierro wrote:
oops. my mistake.
On Aug 22, 11:04 pm, Anthony abasta...@gmail.com wrote:
Well, you had to wait a whole 20 minutes, but Massimo is on the case:
Oh right, I had to actually edit the gluon\tools.py file. Thought it was a
variable I could modify from db.py.
On Saturday, August 25, 2012 1:58:56 PM UTC+10, Alec Taylor wrote:
Was this feature taken out?
I'd really like to use it :)
On Tuesday, August 23, 2011 10:14:36 PM UTC+10, Massimo
As I said. I always liked this but some users did not and complained about
it. Yet times have changed.
For web2py 2.0 we have to freeze all layout changes because they take too
long to be tested.
For example I had to revert your patch using bootstrap 2.0 because some
users have reported
80 matches
Mail list logo