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 Google
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 ava
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. Years
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 upgr
> copy your app using 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???)
>>
>> B
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 re
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 web2py+un
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
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 *(db.post
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&
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 thi
gt; (apart 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 g
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
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 U
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 conceptu
Which OS runs on Raspberry Pi? Is there instructions to install Linux, for
example, somewhere?
Thanks.
--
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?
>
--
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 /etc/uwsgi
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
2013 20:58:10 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 actual
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
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
python
/run/uwsgi/app/web2py/web2py.soc
it be a js issue?
> Do you get chrome errors? 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
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.
--
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, M
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 abo
>
>
> 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 conc
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.
--
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
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.
--
I inadvertently selected the "mobile interface" in the admin app. Now I
can't go back to the web interface. Can anyone help? Thanks.
--
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.
:)
--
Thanks guy.
--
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
--
?
Any help is appreciated.
Thanks,
VP
--
as 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
--
1 PM UTC-5, 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 t
>
>
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 side.
> On Tuesday, 16 October 2012 10:59:20 UTC-5, VP
to be bashing web2py. Massimo said 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 cook
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 mean
having the validator in a list, it will not create 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&
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 is
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.
--
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'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'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 mult
; Nobody asked 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 wonde
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
> header
I'm wondering why we can't have list:double as a field type? It seems a
natural thing to have.
Thanks.
--
>> >>> product.insert(cost1=10, cost2=20)
>> 1
>> >>> p = db.product(1)
>> >>> p.update_record(cost1=5)
>> ,
>> 'cost1': 5, 'cost2': '20', 'total': '30', 'id': 1,
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:
>
cost1=5)
> ,
> 'cost1': 5, 'cost2': '20', 'total': '30', 'id': 1, 'delete_record':
> }>
> >>> print db.product[1].total
> 30
>
> On Saturday, 22 September 2012 20:36:44 UTC-5, VP wrote
e in the arguments of update_record or
> update. It will not retrive the info from the database.
>
>
>
>
> On Saturday, 22 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.
>>
>
--
- 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
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 us
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 Satu
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
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!
ht after the UL.
>
> 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',
> >
)}}
Reliability: {{show(rating,'2')}}
Privacy: {{show(rating,'3')}}
Child safety: {{show(rating,'4')}}
{{=form}}
I don't see anything special in view, but the field "tags"
automatically adds a new text box for a new tag, after you enter a
tag.
Ho
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).
uth.signature)
Can you explain what auth.signature? This feature doesn't seem
documented.
Thanks.
On Mar 13, 6:41 pm, Massimo Di Pierro
wrote:
> https://github.com/mdipierro/web2py-appliances/tree/master/UrlShortening
>
>
>
>
>
>
>
> On Tuesday, 13 March 2012 17:04:09 U
Massimo: can you make this url shortening app available?
http://www.youtube.com/watch?v=M5IPlMe83yI
thanks.
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.
does this go in model?
On Feb 13, 12:20 am, Michael Toomim wrote:
> Here's an improved way to create indices in the DAL. Works only with
> postgresql and sqlite.
>
> def create_indices(*fields):
> '''
> Creates a set of indices if they do not exist
> Use like:
> create_indices(
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 wrote:
> Hi
> Just download web2py, run it and go to edit welcome app.
>
> in db.py:
> db.define_table('mytable',Field('myfield','string'))
>
> in cont
> "they can decide to ignore empty path segments. Both IIS and Apache work
> this
> way"http://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.
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 wrote:
> "empty path segments are normally
> ignored"http://
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).
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
> 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 app/controller/functio
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 wrote:
> On Feb 3, 2012, at 9:46 AM, VP wrote:
>
> >
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 wrote:
> On Feb 3, 2012, at 7:46 AM, VP wrote:
>
> > Thanks. I just emailed you my routes.py.
>
> > But routes.py mi
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 wrote:
> On Feb 3, 2012, at 7:20 AM, VP wrote:
>
> >> Is it possible that
site.com to the appropriate app.
Could this be the problem? If so, how to fix it?
Thanks,
VP
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.
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 compute
ses up my controller logic. What causes this?
Thanks
VP
ld imagine 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
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 wrote:
> On the server side, request.user_agent() returns info about the user agent,
> and request.user_agent().is_mobil
How 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
related
On Sep 8, 5:10 pm, pbreit 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.
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.
> for i in custdata:
> mystr2 = ''.join([mystr2, '' , str(i[0]) , ''])
...
> lst = [ jn(['' , str(i[0]) , '',
> '' , str(i[1]) , '',
> '' , str(i[2]) , '',
> .. more omitted..]) for i in res]
>
> mystr=jn(lst)
> --
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 for
s.
>
> On May 19, 10:25 am, VP 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 wrote:
>
> > > The si
loading
the page?
Thanks.
On May 19, 9:25 am, VP 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 wrote:
>
>
>
>
>
>
>
> > The simplest approach w
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 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 administrative pag
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
wrote:
> gluon/tools.py
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
wrote:
> http://hackerpublicradio.org/eps/hpr0711.mp3
On Apr 27, 9:40 pm, Kenneth Lundström
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 fields
to non-writable is
Will reloading apache have the same effect?
On Apr 26, 10:57 am, Jonathan Lundell wrote:
> On Apr 26, 2011, at 8:47 AM, VP wrote:
>
>
>
> > I think the new router and MULTIUSER_MODE doesn't quite work together
> > nicely. Specifically, when a user creates a new app
iate.
On Apr 26, 10:55 am, Anthony wrote:
> On Tuesday, April 26, 2011 11:42:03 AM UTC-4, VP wrote:
>
> > On Apr 25, 5:09 pm, Massimo Di Pierro
> > wrote:
> > > this case you must run with
>
> > > DAL(,migrate_enabled=True, fake_migrate_enable
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, Jona
1 - 100 of 334 matches
Mail list logo