[web2py] web2py vs flask

2013-09-28 Thread Gour
Hello, today when I asked on IRC about whether to use Jinja2 or Mako templates for some static site generator explaining that if we choose Django, than Jinja2 is more similar and same with Mako & choosing web2py, I'm asked 'why web2py?' and was recommended to use Flask. The reply why not web2py w

[web2py] status of web3py

2013-09-28 Thread Gour
Today I watched presentation from EuroPython 2013 conference where Massimo is answering that web3py is 'scheduled' for March. Is it still valid and what is happening with web3py in general? Sincerely, Gour -- The embodied soul may be restricted from sense enjoyment, though the taste for sense

Re: [web2py] status of web3py

2013-09-28 Thread Marin Pranjić
Web3py is still far away from being ready to use. There are even typos in import statements :) Repo is untouched for the last 9-10 months. But I'm sure Massimo will continue to work on it. There are many of us who would like to help. Personally I find it hard to contribute while web3py is in curren

[web2py] Re: web2py vs flask

2013-09-28 Thread LightDot
Heh, everybody is registering hyped .io domains these days. Why do you think this one is relevant? >From Github..: Crate.io the website currently only mirrors PyPI. > All packages and their associated data come from PyPI. Crate.io provides a > reliable place for th

[web2py] Re: web2py vs flask

2013-09-28 Thread LightDot
BTW, did you notice that Flask can only be downloaded from PyPI? If a visitor goes to http://flask.pocoo.org/ and clicks "Download", the package comes from PyPI. Web2py is downloaded primarily from it's web site, not PyPI. That explains the PyPI download statistics. Regrads On Saturday, Septem

[web2py] Re: web2py vs flask

2013-09-28 Thread Niphlod
That being said, we should nonetheless hire some packaging expert and upload packages to pypi so one can install web2py with pip. I fully acknowledge that web2py is really packaged well all in a single and understandable folder (and if all python packages were like web2py we wouldn't have to use

Re: [web2py] Multiple buttons in links of smartgrid

2013-09-28 Thread Niphlod
start small, then extend (and don't forget to use indentation to see where your errors are): it's not the first time you incur in errors not passing the expected data type for an argument. links is a list of dicts. any dict should contain a header that is what the column should be called and a

[web2py] Re: web2py vs flask

2013-09-28 Thread Michele Comitini
pip! pip install --user https://github.com/web2py/web2py/archive/master.zip pip install --user https://github.com/web2py/web2py/archive/R-2.6.4.zip too bad it only installs gluon! mic Il giorno sabato 28 settembre 2013 13:37:08 UTC+2, Niphlod ha scritto: > > That being said, we should nonet

[web2py] Re: web2py vs flask

2013-09-28 Thread Gour
On Sat, 28 Sep 2013 04:12:31 -0700 (PDT) LightDot wrote: > Heh, everybody is registering hyped .io domains these days. Why do > you think this one is relevant? Well, I can't say how much it is relevant, but Github page says: "Next Generation Python Packaging Index...Crate is a PyPI Mirror/Python

[web2py] Re: status of web3py

2013-09-28 Thread Gour
On Sat, 28 Sep 2013 12:51:12 +0200 Marin Pranjić wrote: > Web3py is still far away from being ready to use. There are even > typos in import statements :) Is there any (semi)official roadmap and/or feature list planned for it? Sincerely, Gour -- As the ignorant perform their duties with atta

[web2py] Re: web2py vs flask

2013-09-28 Thread Gour
On Sat, 28 Sep 2013 04:26:40 -0700 (PDT) LightDot wrote: > Web2py is downloaded primarily from it's web site, not PyPI. That > explains the PyPI download statistics. I see...still, it might be worthy to make web2py available via PyPy in order to prevent such skewed statistics? Sincerely, Gour

Re: [web2py] Multiple buttons in links of smartgrid

2013-09-28 Thread 黄祥
thank you so much for your detail explaination. i'm sorry, my fault for indentation, because to make it simple and straight to the point, i take the code from the conditional, then remove the indentation (tab). it works well now. e.g. if request.args(-3) == 'invoice_header' and request.args(-2

[web2py] Re: web2py vs flask

2013-09-28 Thread Anthony
For a long time, web2py was not on PyPI at all. At some point, someone finally packaged it for PyPI, but the packaging hasn't been maintained, so only an old version resides there. The idea of keeping it up-to-date has been brought up a number of times, but nothing has happened yet. Note, even

[web2py] Re: web2py vs flask

2013-09-28 Thread Gour
On Sat, 28 Sep 2013 07:09:51 -0700 (PDT) Anthony wrote: > Note, even if we update PyPI, download comparisons with web2py will > likely still not be valid, unless we stop offering the easy zip > download/install from web2py.com, as many people will still take that > route. Also, many people upgrad

[web2py] Re: web2py vs flask

2013-09-28 Thread Anthony
> > > Note, even if we update PyPI, download comparisons with web2py will > > likely still not be valid, unless we stop offering the easy zip > > download/install from web2py.com, as many people will still take that > > route. Also, many people upgrade web2py via the "admin" app once it > > is

[web2py] Re: web2py vs flask

2013-09-28 Thread Anthony
Note, Flask is a very popular framework, and may even be more prevalent than web2py, but certainly not by a factor of 200. Perhaps Massimo has some data on downloads from web2py.com. Anthony On Saturday, September 28, 2013 10:58:55 AM UTC-4, Anthony wrote: > > > Note, even if we update PyPI, do

[web2py] Re: Custom form with jquery acts weird

2013-09-28 Thread Jordan Ladora
Hi Anthony, Thanks for your note. Like I said, I understand the helpful comments on fixing the issue. However, what is unclear to me still is Massimo's (and yours here - https://groups.google.com/forum/?fromgroups#!searchin/web2py/custom$20form$20jquery/web2py/7Meea7Ul0o8/4ZdrD9hP5MEJ ) com

[web2py] Re: Custom form with jquery acts weird

2013-09-28 Thread Anthony
> form=crud.create(db.comments) > if form.process().accepted > Right, you cannot do that. > form = SQLFORM.factory(*fields) > if form.accepts(request, session): > The above is perfectly fine (though form.process().accepted is now preferred to form.accepts(request, session)). My ques

[web2py] Parsing only first items with Python's feedparser

2013-09-28 Thread lesssugar
In the RSS aggregator section, the web2py's book shows an example taht uses Python's feedparser (http://pythonhosted.org/feedparser/): d = feedparser.parse("url") - this way all the items in the feed get parsed. However, some of external RSS feeds may take lots of time to parse. Does anyone kn

Re: [web2py] Multiple buttons in links of smartgrid

2013-09-28 Thread Niphlod
On Saturday, September 28, 2013 3:59:34 PM UTC+2, 黄祥 wrote: > > thank you so much for your detail explaination. i'm sorry, my fault for > indentation, because to make it simple and straight to the point, i take > the code from the conditional, then remove the indentation (tab). > it works well

[web2py] Re: Custom form with jquery acts weird

2013-09-28 Thread Jordan Ladora
Thanks for that - I'd assumed the button in the form was related, but let me try and isolate the other problem and make another app that reproduces it. On Saturday, September 28, 2013 10:09:58 AM UTC-7, Anthony wrote: > > > form=crud.create(db.comments) >> if form.process().accepted >> > > Rig

[web2py] IE8 error in web2py.js line 43, Object doesn't support....

2013-09-28 Thread davedigerati
Way too deep into js and the guts of web2py for me to make sense of this, but IE8 is tripping up in web2py.js, line 43: doc.on('click', '.flash', function(e){var t=jQuery(this); if(t.css('top')=='0px') t.slideUp('slow'); else t.fadeOut(); e.preventDefault();}); And in Chrome I can see an

[web2py] Re: IE8 error in web2py.js line 43, Object doesn't support....

2013-09-28 Thread LightDot
The jQuery map file is optionally used by the browser when debugging jQuery, but shouldn't be requested by web2py code or needed otherwise. Are you seeing this in IE8 too? On Sunday, September 29, 2013 5:48:17 AM UTC+2, davedigerati wrote: > > FWIW- I tested a clean copy of the executable and it

[web2py] Re: web2py vs flask

2013-09-28 Thread Massimo Di Pierro
This was not on the web2py IRC channel, was it? On Saturday, 28 September 2013 04:38:37 UTC-5, Gour wrote: > > Hello, > > today when I asked on IRC about whether to use Jinja2 or Mako templates > for > some static site generator explaining that if we choose Django, than > Jinja2 is more simila

[web2py] Re: IE8 error in web2py.js line 43, Object doesn't support....

2013-09-28 Thread davedigerati
not sure, when I run the debug in IE8 it trips up on line 43 and so no, I am not seeing the 404, but I don't know the IE8 dev tools well enough to be positive. So the fact that I am getting this GET request indicates the browser is seeing a problem in jQuery? Maybe that line 43? On Sunday, S

[web2py] Microsoft SQL Server Migrate Trying to Create New Table instead of Editing Old One

2013-09-28 Thread PN
Version: Using web2py 2.6.4 Steps: 1. I used web2py DAL to create a table in ms sql. This ran in production for a while. 2. I downloaded the web2py app to my development machine, and added a column to the table in DAL. 3. When I try to go to the table in web2py admin (database administrat

[web2py] Re: web2py vs flask

2013-09-28 Thread Gour
On Sat, 28 Sep 2013 21:28:13 -0700 (PDT) Massimo Di Pierro wrote: > This was not on the web2py IRC channel, was it? No, it was on the channel unrelated to either web2py or flask. Sincerely, Gour -- Thus the wise living entity's pure consciousness becomes covered by his eternal enemy in the

[web2py] Re: from devel list

2013-09-28 Thread Gour
On Fri, 27 Sep 2013 17:06:02 +0200 Loïc ESPERN wrote: > Depends on what you (or your customers) need... Exactly. > I developped my little CMS to build a presentation website for a local > organization of firefighters in my city. They hadn't a lot of money to > expend, and they needed something

Re: [web2py] Multiple buttons in links of smartgrid

2013-09-28 Thread 黄祥
> it's not a matter on "you must do it" but a matter of "you should do it": > indentation keeps the code more readable and it will be easier for you to > spot bugs. Once the code works you can either decide to squash everything > in the minimum number of lines possible or to keep it fully inde

[web2py] web2py website down

2013-09-28 Thread 黄祥
hi, i can't accessed web2py website, is it down right now? it return : 502 Bad Gateway -- nginx/1.4.1 after several times, i refresh it return : Unhandled Exception best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -