Is there timeline milestones? Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the
py4web is a great name.
Just on the first page of documentation, but I like what I am reading a
lot.
On Wednesday, July 24, 2019 at 12:40:27 AM UTC-5, Massimo Di Pierro wrote:
>
> OK. I know. I am not good with names.
> But there are lots of requirements to be fulfilled.
> py4web.com was
Hello Web2py users/developers,
I haven't used Web2py for a while, but I'm contemplating to use it for the
next project (with Python 3). What deployment setup would you recommend?
I'm looking for a simple Linux-based solution that is easy to set up,
reliable, hopefully maintenance-free.
Thanks Massimo for another great version of Web2py.
I wonder if much of this can be handled automatically by web2py, instead of
asking users to manually copy files. (It seems easy enough for web2py to
look at the application folder and copy files automatically).
The thing is web2py can be
not quite compatible with web2py yet. Navbar are all messed up. Possibly
other things as well.
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
I know there're some recipes in the book in deploying your applications as
windows binaries (how about Mac???)
But I think it'd be nice to have a feature in admin where one click can
deploy your application as a native app. I think this will make web2py
even more interesting.
--
---
You
optionally init as the appname and zip it all ?
On Wednesday, July 31, 2013 7:15:46 PM UTC+2, VP wrote:
I know there're some recipes in the book in deploying your applications
as windows binaries (how about Mac???)
But I think it'd be nice to have a feature in admin where one click can
deploy
Can I simply swap with web2py's bootstrap files , expecting no technical
glitches?
On Monday, July 29, 2013 9:01:47 AM UTC-5, Niphlod wrote:
just to inform everybody that 3.0 is coming out
http://twitter.github.io/bootstrap/
--
---
You received this message because you are subscribed to
Maybe this was obvious, but I never thought I could do this kind of queries
in DAL.
Okay, let's say I have 2 tables:
Tags = db.define_table('tag', Field('name'))
Post = db.define_table('post', Field('title'), Field('tag', 'reference
tag'))
Now, doing a join is easy using the query
The current calendar.js is fine for date picker, but for datetime picker it
is not so good; select a specific time is a headache.
It seems this one is superior:
http://tarruda.github.io/bootstrap-datetimepicker/
I wanted to swap out but that doesn't seem to be easy. Any idea?
Thanks,
VP
for jQuery) and CSS and supports both date and datetime.
Does the calendar you propose meet these specs?
On Thursday, 11 July 2013 11:51:34 UTC-5, VP wrote:
The current calendar.js is fine for date picker, but for datetime picker
it is not so good; select a specific time is a headache.
It seems
I have a field that is similar to this: Field('fav',
requires=IS_IN_SET(['red','green','blue')], multiple=True))
Let's say I have an entry with this field selected with multiple values.
On an update form, the existing values should have been selected. But
they are not selected. I think
After search I found the solution to this. The type of the field should
be list:string.
Thanks.
On Thursday, July 11, 2013 1:18:18 PM UTC-5, VP wrote:
I have a field that is similar to this: Field('fav',
requires=IS_IN_SET(['red','green','blue')], multiple=True))
Let's say I have
It's hard to keep up with web2py new features. What is exactly,
update=False?
Thanks.
On Saturday, June 22, 2013 3:33:28 PM UTC-5, Anthony wrote:
Does this work:
Field('report_motion', 'boolean', default=False, update=False),
Anthony
On Saturday, June 22, 2013 4:16:22 PM UTC-4,
I think the current web2py access control mechanism is unnecessarily
complicated. It is both role based and task based. But this difference
here is just semantics (i.e. you can define a group that can do a certain
task).
The only actually difference is in terms of implementation, not
Which OS runs on Raspberry Pi? Is there instructions to install Linux, for
example, somewhere?
Thanks.
--
My set up is nginx, uwsgi, web2py, and I am trying unsucessfully to
configure so that there are multiple uwsgi processes serving web2py.
I used the script to install nginx, uwsgi. I configured 8 processes.
$cat /etc/uwsgi/apps-enabled/web2py.xml
uwsgi
pluginpython/plugin
I also test uwsgi serving a Bottle app. I run from the command line,
uwsgi, the bottle app with 8 processes.
This works as I expect. Requests are served by unbusy processes while
long-running requests are still being run.
So something about the web2py configuration that doesn't tell uwsgi
UTC-3, VP escribió:
I also test uwsgi serving a Bottle app. I run from the command line,
uwsgi, the bottle app with 8 processes.
Is that the file created by the script?. uwsgi can take options in
different ways. Make sure it is actually reading the options from there.
For example
Those who are running nginx, uwsgi, web2py, can you do a quick check to see
if uwsgi reads your web2py config file properly?
The default config has 4 processes. If you do a top -u www-data, you
should see 5 uwsgi processes (4 + 1 master).
If you see a different number (may be 3?), then there
Thanks Bruno.
Okay, I figured it out. I'm not sure if I used an out-of-date
web2py/uwsgi/ngninx install script, but that script does not mention
another file /usr/share/uwsgi/conf/default.ini
This file sets the number of workers to 2 and it overwrites the web2py
configuration file
yeah. I commented off the worker=2 setting in that file. Consequently,
the number of workers was exactly what the web2py configure file says.
On Tuesday, January 8, 2013 7:36:01 PM UTC-6, rochacbruno wrote:
and youi delete or comment that file?
--
What is the level of dependency of this application? I bet you can factor
this project into dozens of different apps, which communicates with each
others through APIs if needed. It's hard to think of an app with 10,000
tables all interdependent.
--
? Is the flash in the page text?
On Thursday, 27 December 2012 17:55:46 UTC-6, VP wrote:
session.flash does not work properly for me either (latest web2py stable
version).
when i redirect to the same controller , it works for some controller and
doesn't work for other controllers.
Have
session.flash does not work properly for me either (latest web2py stable
version).
when i redirect to the same controller , it works for some controller and
doesn't work for other controllers.
Have no idea why.
--
In the a common mistake in migrations or simply moving things around is
moving the database but not the metadata itself.
I am wondering if it is better to keep the metadata (.tables files) IN the
database itself instead of on the filesystem?
On Wednesday, December 12, 2012 9:41:22 PM UTC-6,
Does auth_event keep track of auto-logout events? If so, you can find out
who have not been logged out for the past X minutes. If you relate X to
the logout time windows (I think default is 30 minutes), you should be able
to do it.
--
I don't quite understand how this works. That's why I am asking a question
if webp2y supports this so-called feature called Unit of Work, something
that SQLAlchemy supports. It is possible that this concept does not apply
to web2py DAL. I don't know. I have a feeling you are defensive
I am wondering if web2py DAL supports the notion of a unit of work so as to
optimize the number of queries done per transaction?
Thanks.
--
Of course if you do
product.update_record(description = 'product description')
product.update_record(stock = 11)
product.update_record(code = 'abcfed')
queries will be 3, but your code is the one to blame.
How do you imagine a unit of work pattern/algo in a DAL ?
It is conceivable that
Massimo said his proposed talk was rejected. I am curious as to what the
title of that talk is or what it is supposed to be about.
--
On Thursday, December 6, 2012 11:05:52 AM UTC-6, Massimo Di Pierro wrote:
Hello VP,
I proposed two talks. i do not remember the exact tiles:
- one was about new web2py features: wiki, scheduler, components
This sounds like an update on web2py. Playing the devil's advocate, one
can
I have already put in my few cents in that thread. The only thing I want
to say here is that I hope web3py will be out soon. I think web2py has
started to show its age a little bit.
:)
--
I inadvertently selected the mobile interface in the admin app. Now I
can't go back to the web interface. Can anyone help? Thanks.
--
Thanks guy.
--
?
Any help is appreciated.
Thanks,
VP
--
If I put the database on Rackspace's Cloud Database, for example, how do I
configure the web2py app to make the connection?
Thanks,
VP
--
to do with bootstrap css/js incompatibilities with Safari.
But since this is web2py's default behavior, does anyone have this
problem and fixes?
Thanks,
VP
--
I think cookie-based sessions is great for many cases. But in some cases,
it might not be desirable as clients can see what might be secret
information.
Why not both?Maybe, two types of sessions, client-side and server-side
sessions. Although both client and server side sessions are
this implementation is
like Flask. As such, they are cryptographically signed, but not encrypted.
If that is the case, they might be read but not modified.
On Tuesday, October 16, 2012 5:59:20 PM UTC+2, VP wrote:
I think cookie-based sessions is great for many cases. But in some
cases
advantage of moving session data to the client side is
scalability. There ought to be a noticeable difference between 100
processes writing to the same filesytem and these computations moved to the
client side.
On Tuesday, 16 October 2012 10:59:20 UTC-5, VP wrote:
I think cookie
, Niphlod wrote:
On Tuesday, October 16, 2012 7:46:16 PM UTC+2, VP wrote:
I think one advantage of moving session data to the client side is
scalability. There ought to be a noticeable difference between 100
processes writing to the same filesytem and these computations moved to the
client
Great.
I would really love to see list:double fields to be supported in the near
future.
Also, the current method of storing serialized objects in fields are kinda
funky (both with json and pickle). You put in integers, doubles, etc. and
you got back strings.
--
Let's say I have these 2 tables:
product = db.define_table('product', Field('name'))
order = db.define_table('order', Field('product', db.product))
Now, when you do something like this:
form = SQLFORM(db.order)
The product field will be a drop down list of products for you to choose.
This
the dropdown)
2) add autocomplete:
db.order.product.widget = SQLFORM.widgets.autocomplete(request,
db.field.name, db.product.id)
On Monday, 15 October 2012 12:28:22 UTC-5, VP wrote:
Let's say I have these 2 tables:
product = db.define_table('product', Field('name'))
order
I'm using form.custom.inpval to access database fields. A bug I have found
is that fields defaulted with 0 is empty. The correct value should be 0.
--
I'm not impressed with Rocket , even as a devel-mode server. It hangs on me
frequently. Run web2py with more than 1 processes seem to help.
--
I've always had this problem with web2py. Sometime, I got a weird name
violation. For example, you can't name a table order, or can't name a
field item. It doesn't seem to be documented anywhere.
--
SQLFORM represents a reference field as a multiply-selected drop-down
list, this presents two problems:
(1). If the referenced table has 10,000 entries, then they will be shown.
It's inefficient. But it's somewhat unavoidable, given what it is.
(2). The other problem is more serious. A
for it. It will still be stores as string so I am not sure
what you gain by it that cannot be achieved by a list:string and a
IS_LIST_OF(IS_FLOAT_IN_RANGE(...)) validator.
On Saturday, 29 September 2012 20:36:36 UTC-5, VP wrote:
I'm wondering why we can't have list:double as a field type? It seems
I'm wondering why we can't have list:double as a field type? It seems a
natural thing to have.
Thanks.
--
I'm very unimpressed with Rocket, even in development mode.
On Saturday, September 29, 2012 7:51:53 PM UTC-5, Massimo Di Pierro wrote:
We have patched Rocket and now the trunk version passes pathoc tests.
In the process we found that rocket was processing incorrectly multi-line
headers.
object at 0x1019bc290}
print db.product[1].total
30
On Saturday, 22 September 2012 20:36:44 UTC-5, VP wrote:
I figured out what I would call a bug.
I'll give an example:
Let's say we have this table:
product = db.define_table('product', Field('cost1'), Field('cost2'),
Field('total
The problem is still there with nightly build.
On Monday, September 24, 2012 10:18:38 AM UTC-5, Massimo Di Pierro wrote:
Please try the nightly build and let us know if the problem is still there.
Massimo
On Monday, 24 September 2012 07:49:26 UTC-5, VP wrote:
As indicated in the title
,
'cost1': 5, 'cost2': '20', 'total': '30', 'id': 1, 'delete_record':
gluon.dal.RecordDeleter object at 0x1019bc290}
print db.product[1].total
30
On Saturday, 22 September 2012 20:36:44 UTC-5, VP wrote:
I figured out what I would call a bug.
I'll give an example:
Let's say we have this table
- sqlite
- 2 compute fields do not seem to get call on update using both
update_record and db().update
- They do work on crud/form updates though.
--
September 2012 15:43:59 UTC-5, VP wrote:
- sqlite
- 2 compute fields do not seem to get call on update using both
update_record and db().update
- They do work on crud/form updates though.
--
Have you considered Codemirror? I think it is superior to the old editor
used by web2py. I haven't used the latest one so I can't tell.
On Monday, September 3, 2012 5:52:31 PM UTC-5, lucas wrote:
hello one and all,
just updated to 2.0.6 today. nice, awesome, it seems faster, is it or is
I think it'd be nice to have session created explicitly inside a WITH
statement block so that users create sessions only when they want. But I
don't know if it's feasible because I suspect sessions are created
automatically and passed into the exec environment, and it appears sessions
are
One problem I have during development with the default setup of rocket is
that it occasionally freezes when there is an error. These freezes appear
to vanish when I use anyserver.py with rockets and 2 or 4 workers.
On Saturday, September 1, 2012 8:17:10 PM UTC-5, rochacbruno wrote:
Yes!
Web2py can be used to build fairly effortlessly either complex applications
with *small* numbers of concurrent users (*small* here is relatively and
objective) or simple applications with *large* numbers of concurrent users.
But if you want to build complex applications with large numbers of
I don't think you can use session to do this. For one thing, sessions are
usually have an id saved in the browser's cookie. If you switch browser,
this id is lost.
I think you can have a database table (using DAL) whose rows are associated
with users and are expired after 24 hours.
On
Massimo: can you make this url shortening app available?
http://www.youtube.com/watch?v=M5IPlMe83yI
thanks.
documented.
Thanks.
On Mar 13, 6:41 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
https://github.com/mdipierro/web2py-appliances/tree/master/UrlShortening
On Tuesday, 13 March 2012 17:04:09 UTC-5, VP wrote:
Massimo: can you make this url shortening app available?
http
Also, I saw in the video the field tag of type list:string is
presented nicely in view in the following way: after a new tag is
entered, a new empty textbox is added so a new tag can be added. How
is this done? (I don't think this is the default behavior).
, 8:26 pm, Anthony abasta...@gmail.com wrote:
On Tuesday, March 13, 2012 9:17:06 PM UTC-4, VP wrote:
Also, I saw in the video the field tag of type list:string is
presented nicely in view in the following way: after a new tag is
entered, a new empty textbox is added so a new tag can
.
Anthony
On Tuesday, March 13, 2012 10:32:14 PM UTC-4, VP wrote:
Anthony, maybe I didn't ask clearly. Here's the model:
Bookmark = db.define_table(
'bookmark',
Field('link','reference link',writable=False),
Field('category',requires=IS_IN_SET(['work','personal
Is there a way to do multiple uploads in web2py?
For example, I have an upload field that would allows users to upload
one file, or two files, or three files, etc. Is there an easy way to
do this?
Thanks.
with this option: session.connect(request, response, separate=True)
session2trash script crashed (it couldn't unlink directories).
Can someone fix this? Thanks.
Did you remove the line in layout.html that links to an external
FaceBook service? Things like this take time.
On Feb 7, 1:24 am, LightOfMooN vladsale...@yandex.ru wrote:
Hi
Just download web2py, run it and go to edit welcome app.
in db.py:
logic. What causes this?
Thanks
VP
I have the following situation.
There is a field A of type upload (image).
There is another field B of type compute, which depends on A.
I want to be able to process the image uploaded in field A and save
it, but before the compute in field B is executed. In other words,
field B will be
Furthermore, on the server, this URL app/controller/function/13/1//5/
results in request.args to be ['13','1','5'], which is seriously
wrong. The right answer of course should be ['13','1','','5'].
Can someone help?
Thanks.
On Feb 3, 8:55 am, VP vtp2...@gmail.com wrote:
We have got
to the appropriate app.
Could this be the problem? If so, how to fix it?
Thanks,
VP
Thanks. I just emailed you my routes.py.
But routes.py might not be the cause, because I have just removed it
(without using routes.py), the problem still existed.
On Feb 3, 9:27 am, Jonathan Lundell jlund...@pobox.com wrote:
On Feb 3, 2012, at 7:20 AM, VP wrote:
Is it possible that you're
Yes, I did restart and incorporated your fix. It still doesn't work.
I don't think it has to do with routes.py
On Feb 3, 9:52 am, Jonathan Lundell jlund...@pobox.com wrote:
On Feb 3, 2012, at 7:46 AM, VP wrote:
Thanks. I just emailed you my routes.py.
But routes.py might not be the cause
My personal pc is Mac Leopard Python 2.7.2. The parsing works as
expected on this pc.
The server is Debian squeeze, ngnix, uwsgi, Python 2.6.6. The parsing
messed up as described above.
On Feb 3, 12:00 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Feb 3, 2012, at 9:46 AM, VP wrote
Another thing that might help is to put =BEAUTIFY(request) into a template
somewhere and compare the two when given URLs of the form you're having
trouble with.
This is interesting. On the server, path_info and web2py_original_uri
got it wrong.
If say, the url is
To clarify, given URL controller/function/a/b//c,
on the server, path info is:
controller/function/a/b/c
This is wrong. The correct is shown on my pc as
controller/function/a/b//c
For some reason my nginx does not keep log, but I think it's unlikely
that nginx will remove slashes in the middle of a URL (e.g. app/con/
func/a/b//c).
Im using nginx, but can someone with ngnix, apache, see if this is
indeed the case?
I am not sure which config files of nginx to look for these rewrite
rules. /opt/nginx/conf/nginx.conf has not rewrite rules.
On Feb 3, 1:46 pm, pbreit pbreitenb...@gmail.com wrote:
empty path segments are
they can decide to ignore empty path segments. Both IIS and Apache work
this
wayhttp://davescoolblog.blogspot.com/2011/11/uri-empty-path-segments-mat...
If this is true, it'll be a bummer for web2py, as its default behavior
differentiates empty and non-empty path segments.
Thanks Anthony.
Is Skeletion configured by default when a new application is created
or it's just in this welcome app?
Thanks,
VP
On Nov 26, 10:35 pm, Anthony abasta...@gmail.com wrote:
On the server side, request.user_agent() returns info about the user agent,
and request.user_agent
one can use Pyjamas' pyjs.js to translate the
Python code to javascript or to use something like Skulpt (which will
be slow) to interpret Python code directly on the browsers.
VP
do we do this efficiently in web2py?
Further, in addition to layouts, different controllers might be needed
for different platforms too. How do we do this efficiently?
Thanks.
VP
Just looking very briefly at spinejs, I think it's a bad idea to use
it with web2py. Spinejs is supposed to be a framework itself, with
its own models, views, etc. Where webp2y might fit in is providing
server side storage.
Hopefully, one day web2py's default option is to AJAX everything
On Sep 8, 5:10 pm, pbreit pbreitenb...@gmail.com wrote:
Looks nice. beunick is a bit of a strange name. The first thing I think of
is eunuch which is not the most pleasant thought.
Seriously, this is a huge problem. The owner(s) should change that
name.
for i in custdata:
mystr2 = ''.join([mystr2, 'trtd' , str(i[0]) , '/td'])
...
lst = [ jn(['trtd' , str(i[0]) , '/td',
'td' , str(i[1]) , '/td',
'td' , str(i[2]) , '/td',
.. more omitted..]) for i in res]
mystr=jn(lst)
I have always felt that ORM is OO goes nuts.
I have a question for Massimo. When we select a few columns, does the
Web2py DAL only get those columns from the database (with appropriate
queries), or does it retrieve all of them from the database and only
return those selected for?
Thanks.
Nginx+uwsgi *ought to be* the deployment of choice for web2py.
Materials need to be posted and updated on how to set up and tweak
this configuration. This will complete the whole webp2y experience.
Frankly, I have no idea why web2py should depend on Rocket, instead of
using Python wsgi server
.
On May 19, 10:25 am, VP vtp2...@gmail.com wrote:
Is there a guide for a clean and sweet way to implement these types of
polling? Like using jquery?
Thanks.
On May 19, 9:05 am, Anthony abasta...@gmail.com wrote:
The simplest approach would probably be ajax short polling (i.e
Is there a guide for a clean and sweet way to implement these types of
polling? Like using jquery?
Thanks.
On May 19, 9:05 am, Anthony abasta...@gmail.com wrote:
The simplest approach would probably be ajax short polling (i.e., an ajax
request every n seconds). If the orders page is just an
loading
the page?
Thanks.
On May 19, 9:25 am, VP vtp2...@gmail.com wrote:
Is there a guide for a clean and sweet way to implement these types of
polling? Like using jquery?
Thanks.
On May 19, 9:05 am, Anthony abasta...@gmail.com wrote:
The simplest approach would probably be ajax short
This message shows up in my error log too, but I haven't had time to
look into it. It might have something to do with the configuration of
auth in db.py in the scaffolding code created when you create a new
app (through admin panel).
On May 11, 8:23 am, Massimo Di Pierro
There have many many positive articles written about web2py. It's a
good idea to collect them and place on the web2py.org website.
On Apr 30, 11:18 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
http://hackerpublicradio.org/eps/hpr0711.mp3
On Apr 27, 9:40 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com
wrote:
I tried that soluttion but I think it didn t work as expected, it still
uppdated all records.
I m using the newest version web2py on linux.
Kenneth
Then, it is probably a bug. I don't think setting the rest of
Yes. But I think the book might not be the appropriate place for
this. I am not sure but I think it might be better to start a wiki.
On Apr 26, 7:39 am, Gilson Filho cont...@gilsondev.com wrote:
The web2py has been a tool that is improving and evolving over time, and who
uses itknows it.
On Apr 25, 5:09 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
this case you must run with
DAL(,migrate_enabled=True, fake_migrate_enabled=True)
Does DAL(,migrate_enabled=False, fake_migrate_enabled=True) work
exactly the same as DAL(,migrate_enabled=True,
I think the new router and MULTIUSER_MODE doesn't quite work together
nicely. Specifically, when a user creates a new app (through admin
interface). Sometimes, the new router does not route /app correctly.
It might have thought /app to be a controller of the main app.
On Apr 26, 10:18 am,
.
On Apr 26, 10:55 am, Anthony abasta...@gmail.com wrote:
On Tuesday, April 26, 2011 11:42:03 AM UTC-4, VP wrote:
On Apr 25, 5:09 pm, Massimo Di Pierro massimo@gmail.com
wrote:
this case you must run with
DAL(,migrate_enabled=True, fake_migrate_enabled=True)
Does DAL
1 - 100 of 329 matches
Mail list logo