[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-19 Thread Anthony
On Wednesday, October 19, 2016 at 7:56:55 PM UTC-4, Anthony wrote:
>
> On Wednesday, October 19, 2016 at 5:04:24 PM UTC-4, PRACHI VAKHARIA wrote:
>>
>>
>> The goals is learning – to see and understand the process and working 
>> happening in the background to make everything work – to see the web2py in 
>> action from inside.
>>
>> Currently, web2py works so well that one does not need to worry about 
>> things like that, which is great, but it also hides the workings which 
>> limits the learning using w2p of itself!
>>
>> So, a little compromise on speed to see the workings would be akin to 
>> seeing a car's engine and transmission in action on a stationary car.
>>
>
> You might start by simply studying the source code. When an HTTP request 
> comes in, the starting point is a call to gluon.main.wsgibase. Start there, 
> and you can follow all the logic that executes in response to a request.
>

You might also find it helpful to watch this video 
, 
starting at about 58:20 (a walk through the framework code showing how an 
HTTP request is handled).

Anthony

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-19 Thread Anthony
On Wednesday, October 19, 2016 at 5:04:24 PM UTC-4, PRACHI VAKHARIA wrote:
>
>
> The goals is learning – to see and understand the process and working 
> happening in the background to make everything work – to see the web2py in 
> action from inside.
>
> Currently, web2py works so well that one does not need to worry about 
> things like that, which is great, but it also hides the workings which 
> limits the learning using w2p of itself!
>
> So, a little compromise on speed to see the workings would be akin to 
> seeing a car's engine and transmission in action on a stationary car.
>

You might start by simply studying the source code. When an HTTP request 
comes in, the starting point is a call to gluon.main.wsgibase. Start there, 
and you can follow all the logic that executes in response to a request.

Anthony

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-19 Thread PRACHI VAKHARIA


> See http://web2py.com/books/default/chapter/29/04/the-core#Logging. Note, 
> the framework itself will only issue a limited number of INFO logs, so you 
> won't have much visibility into the framework.
>
> You can also set up profiling and logging of the HTTP requests (i.e., a 
> list of each handled HTTP request) via gluon.main.appfactory 
> 
> .
>
> Anthony
>


Thank you, Anthony. I shall look into that and learn as much as possible 
from that. 

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-19 Thread PRACHI VAKHARIA

The goals is learning – to see and understand the process and working 
happening in the background to make everything work – to see the web2py in 
action from inside.

Currently, web2py works so well that one does not need to worry about 
things like that, which is great, but it also hides the workings which 
limits the learning using w2p of itself!

So, a little compromise on speed to see the workings would be akin to 
seeing a car's engine and transmission in action on a stationary car.

Thank you.


On Tuesday, 18 October 2016 18:08:08 UTC-4, Leonel Câmara wrote:
>
> What exactly do you mean? It is possible to see the complete workflow of 
> what web2py is doing, for instance, using a python profiler, but this would 
> be madness on an active server as it would make it extremely slow.
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-18 Thread Leonel Câmara
What exactly do you mean? It is possible to see the complete workflow of 
what web2py is doing, for instance, using a python profiler, but this would 
be madness on an active server as it would make it extremely slow.

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-18 Thread Anthony
On Tuesday, October 18, 2016 at 3:49:06 AM UTC-4, PRACHI VAKHARIA wrote:
>
>
>
> *What is Web2Py Doing in Background? —or— How To See Web2py WorkFlow When 
> The Server is Active?*
>
>- *How can a developer see what the Web2Py application and server are 
>doing when it is doing something?*
>- *How to get a Verbose listing of what the w2p/server is doing in 
>realtime?*
>
> See http://web2py.com/books/default/chapter/29/04/the-core#Logging. Note, 
the framework itself will only issue a limited number of INFO logs, so you 
won't have much visibility into the framework.

You can also set up profiling and logging of the HTTP requests (i.e., a 
list of each handled HTTP request) via gluon.main.appfactory 

.

Anthony

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: what is web2py ??

2013-10-07 Thread Dave S


On Sunday, October 6, 2013 5:41:37 AM UTC-7, Tim Richardson wrote:



 On Sunday, 6 October 2013 15:35:33 UTC+11, Massimo Di Pierro wrote:

 Saying you want to use cgi with Python is a little like saying you want 
 to use a bicycle with a jet engine. 


 Actually, that sounds like fun. http://www.youtube.com/watch?v=ByemtRt_CP0

 Perhaps like using a car powered by a horse. 

 (passing that link on ...)


http://www.horsenation.com/wp-content/uploads/2013/04/one-horse-power-car.jpg

/dps

-- 
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 Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: what is web2py ??

2013-10-06 Thread Tim Richardson


On Sunday, 6 October 2013 15:35:33 UTC+11, Massimo Di Pierro wrote:

 Saying you want to use cgi with Python is a little like saying you want to 
 use a bicycle with a jet engine. 


Actually, that sounds like fun. http://www.youtube.com/watch?v=ByemtRt_CP0

Perhaps like using a car powered by a horse. 






 

 I do not think anybody uses CGI any more (
 http://stackoverflow.com/questions/1162029/what-are-cgi-scripts-used-for-these-days
 )

 I assume you are interested in building web applications using Python. 
 Than you have come in the right place.  :-)
 web2py is a tool to do exactly that. 

 web2py packages:
 - a web server (but can work with any other web server: Apache, Nginx, 
 Cherokee, Lightpd, Gunicorn, Tornado, etc.)
 - a SQL database (but can work with many other databases: Oracle, MSSQL, 
 MySQL, PostgreSQL, etc.)
 - a web based IDE (but can work with other IDEs: Wingware, Eclipse, 
 PyCharm, Emacs)
 - the Python interpreter (but you can use your own Python interpreter: 
 CPython, PyPy, 2.5,2.6,2.7)
 - a lots of modules and utilities to build web applications, expose the 
 database on the web, create forms, login/logout/registration, manage users' 
 access, accept credit card payments, send emails, generate PDF documents, 
 etc.

 web2py is designed to make web development secure and simple. If you use 
 web2py you do not need anything else.
 web2py can interface with old legacy web servers using CGI but nobody uses 
 this any more. web2py can interface with modern web servers using SCGI, 
 fastCGI and WSGI. Yet if you use the provided web server, you do not need 
 to know these protocols.


 Massimo
  





 On Saturday, 5 October 2013 06:24:34 UTC-5, Subhash kumar wrote:

 please someone tell me what is web2py ..??
 is it a web server ??
 I want to use cgi with python .. 
 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 Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: what is web2py ??

2013-10-05 Thread Willoughby
http://web2py.com/books/default/chapter/29/01/introduction#Introduction 

-- 
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 Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: what is web2py ??

2013-10-05 Thread 黄祥

http://en.wikipedia.org/wiki/Web2py

best regards,
stifan

-- 
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 Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: what is web2py ??

2013-10-05 Thread Massimo Di Pierro
Saying you want to use cgi with Python is a little like saying you want to 
use a bicycle with a jet engine. 
I do not think anybody uses CGI any more 
(http://stackoverflow.com/questions/1162029/what-are-cgi-scripts-used-for-these-days)

I assume you are interested in building web applications using Python. Than 
you have come in the right place.  :-)
web2py is a tool to do exactly that. 

web2py packages:
- a web server (but can work with any other web server: Apache, Nginx, 
Cherokee, Lightpd, Gunicorn, Tornado, etc.)
- a SQL database (but can work with many other databases: Oracle, MSSQL, 
MySQL, PostgreSQL, etc.)
- a web based IDE (but can work with other IDEs: Wingware, Eclipse, 
PyCharm, Emacs)
- the Python interpreter (but you can use your own Python interpreter: 
CPython, PyPy, 2.5,2.6,2.7)
- a lots of modules and utilities to build web applications, expose the 
database on the web, create forms, login/logout/registration, manage users' 
access, accept credit card payments, send emails, generate PDF documents, 
etc.

web2py is designed to make web development secure and simple. If you use 
web2py you do not need anything else.
web2py can interface with old legacy web servers using CGI but nobody uses 
this any more. web2py can interface with modern web servers using SCGI, 
fastCGI and WSGI. Yet if you use the provided web server, you do not need 
to know these protocols.


Massimo
 





On Saturday, 5 October 2013 06:24:34 UTC-5, Subhash kumar wrote:

 please someone tell me what is web2py ..??
 is it a web server ??
 I want to use cgi with python .. 
 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 Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: what about web2py 2.0?

2011-09-22 Thread puercoespin
I'm interesting in it!



On 21 sep, 11:46, Manuele manuele.pese...@gmail.com wrote:
 +1 for geospatial features.

 at the moment I'm working on a plugin_openlayers and I'll be glad to
 share my work ASAP :)

      Manuele

 On 21/09/2011 11:29, puercoespin wrote:







  +1 for geospatial features.

  Some ideas from three books:

  Map Scripting 101, in
 http://www.amazon.com/gp/product/1593272715/ref=s9_simh_gw_p14_d5_g14...

  It's about mapstraction (http://mapstraction.com/), the OpenSource
  javascript front end for using google, yahoo, and other map providers.

  Python Geospatial Development, in  (http://www.amazon.com/Python-
  Geospatial-Development-Erik-Westra/dp/1849511543/ref=pd_sim_b5)

  and html5 geolocation features, as describe for example, in HTML5
  Geolocation (http://www.amazon.com/HTML5-Geolocation-Anthony-Holdener-
  III/dp/1449304729/ref=sr_1_1?ie=UTF8qid=1316597049sr=8-1)

  On 20 sep, 18:27, Massimo Di Pierromassimo.dipie...@gmail.com
  wrote:
  I promised somebody geospatial features. That will probably come
  before full text search but this is a good time to look into it.
  Should we take an approach sqlite/mysql/postgresql only or outsource
  it to Sphinx?

  On Sep 20, 9:00 am, Michele Comitinimichele.comit...@gmail.com
  wrote:

  +1 fulltext search
  *Some* graph databases have already some good pythonic API.
  Do you think that DAL can be adapted to graphs also?  Isn't the DAL
  too relational oriented?
  mic
  2011/9/20 Vasile Ermicioielff...@gmail.com:
  dal supporting graph databases and fulltext search


[web2py] Re: what about web2py 2.0?

2011-09-22 Thread Francisco Costa
MongoDB support by the DAL
it's the #1 requested feature at 
http://web2py.uservoice.com/forums/42577-general


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Robert Kooij
2.0 should be a mark of maturity in my opinion. I fear change in software.

I strongly recommend you all to read the following article, because this is 
not where we want to be in a few years:

http://www.unleashedmind.com/en/blog/sun/the-drupal-crisis

It's about the current state of the well marketed PHP framework/CMS Drupal. 
Imo these are the kind of users we want to attract, people coming from PHP 
showing them web development can be great. :)


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread pbreit
I think what's going to happen is that 2.0.0 actually will be a normal 
update (in fact Massimo said it will be a smaller update than 1.98 to 1.99). 
Which maybe is just as well. I can't really think of any major improvements 
that are really needed.

Re: [web2py] Re: what about web2py 2.0?

2011-09-21 Thread Vasile Ermicioi
 I think what's going to happen is that 2.0.0 actually will be a normal
 update (in fact Massimo said it will be a smaller update than 1.98 to 1.99).
 Which maybe is just as well. I can't really think of any major improvements
 that are really needed.


perhaps you may be right, but at least people are contributing more actively
to wish list than for other versions :)


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Zphen
What's wrong with v 1.100, 1.101 etc?


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Andrew
Another +1 for the doco - keep it up to date !

The quality of the Book was what initially caught my eye with web2py.
I thought %^*%, I've never seen app doco done so well.  It's a big
drawcard.  Well done to whoever put it together.

Andrew

On Sep 21, 5:28 pm, Rahul rahul.dhak...@gmail.com wrote:
 I like the idea that we are not breaking backward compatibility here .
 Backward Compatibility not supported with web3py will be fine.
 Rahul

 On Sep 21, 10:19 am, Massimo Di Pierro massimo.dipie...@gmail.com
 wrote:



  WE WILL NOT BREAK BACKWARD COMPATiBILITY.

  In fact there will be less changes between 1.99 and 2.0 then between
  1.98 and 1.99.

  Massimo

  On Sep 20, 11:23 pm, guruyaya guruy...@gmail.com wrote:

   -1 for breaking compatibility. I can see the need here and there, but
   I have some apps running on web2py, and thinking that I'll have to
   make sure they work aain, just because we got to a rounded number - is
   unthinkable. When web2py moves to python 3 - it'll make sense to
   reexamine all features. But for now - leave it backword compatible.
   OH, and +1 for the docs. But that has nothing to do with the version,
   but has more with creating a policy about new features (like, no
   commit without a document of a feature, including example). Some
   policy should be applied to doctests too.

   On Sep 21, 6:16 am, Massimo Di Pierro massimo.dipie...@gmail.com
   wrote:

we'll work on it.

On Sep 20, 6:49 pm, niknok nikolai...@gmail.com wrote:

 Web2Py 2.0 must be *fully* documented in online book.

 On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote:

  anything special coming up?

  will it broke backward compatibility? nobody needs backward
  compatibility in a major version.

  are there any plans for a clean up?


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread puercoespin
+1 for geospatial features.

Some ideas from three books:

Map Scripting 101, in
http://www.amazon.com/gp/product/1593272715/ref=s9_simh_gw_p14_d5_g14_i6?pf_rd_m=ATVPDKIKX0DERpf_rd_s=center-7pf_rd_r=023SASW38231TN3CV802pf_rd_t=101pf_rd_p=470938451pf_rd_i=507846

It's about mapstraction (http://mapstraction.com/), the OpenSource
javascript front end for using google, yahoo, and other map providers.

Python Geospatial Development, in  (http://www.amazon.com/Python-
Geospatial-Development-Erik-Westra/dp/1849511543/ref=pd_sim_b5)

and html5 geolocation features, as describe for example, in HTML5
Geolocation (http://www.amazon.com/HTML5-Geolocation-Anthony-Holdener-
III/dp/1449304729/ref=sr_1_1?ie=UTF8qid=1316597049sr=8-1)

On 20 sep, 18:27, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
 I promised somebody geospatial features. That will probably come
 before full text search but this is a good time to look into it.
 Should we take an approach sqlite/mysql/postgresql only or outsource
 it to Sphinx?

 On Sep 20, 9:00 am, Michele Comitini michele.comit...@gmail.com
 wrote:







  +1 fulltext search

  *Some* graph databases have already some good pythonic API.
  Do you think that DAL can be adapted to graphs also?  Isn't the DAL
  too relational oriented?

  mic

  2011/9/20 Vasile Ermicioi elff...@gmail.com:

   dal supporting graph databases and fulltext search


Re: [web2py] Re: what about web2py 2.0?

2011-09-21 Thread Manuele

+1 for geospatial features.

at the moment I'm working on a plugin_openlayers and I'll be glad to 
share my work ASAP :)


Manuele

On 21/09/2011 11:29, puercoespin wrote:

+1 for geospatial features.

Some ideas from three books:

Map Scripting 101, in
http://www.amazon.com/gp/product/1593272715/ref=s9_simh_gw_p14_d5_g14_i6?pf_rd_m=ATVPDKIKX0DERpf_rd_s=center-7pf_rd_r=023SASW38231TN3CV802pf_rd_t=101pf_rd_p=470938451pf_rd_i=507846

It's about mapstraction (http://mapstraction.com/), the OpenSource
javascript front end for using google, yahoo, and other map providers.

Python Geospatial Development, in  (http://www.amazon.com/Python-
Geospatial-Development-Erik-Westra/dp/1849511543/ref=pd_sim_b5)

and html5 geolocation features, as describe for example, in HTML5
Geolocation (http://www.amazon.com/HTML5-Geolocation-Anthony-Holdener-
III/dp/1449304729/ref=sr_1_1?ie=UTF8qid=1316597049sr=8-1)

On 20 sep, 18:27, Massimo Di Pierromassimo.dipie...@gmail.com
wrote:

I promised somebody geospatial features. That will probably come
before full text search but this is a good time to look into it.
Should we take an approach sqlite/mysql/postgresql only or outsource
it to Sphinx?

On Sep 20, 9:00 am, Michele Comitinimichele.comit...@gmail.com
wrote:








+1 fulltext search
*Some* graph databases have already some good pythonic API.
Do you think that DAL can be adapted to graphs also?  Isn't the DAL
too relational oriented?
mic
2011/9/20 Vasile Ermicioielff...@gmail.com:

dal supporting graph databases and fulltext search




Re: [web2py] Re: what about web2py 2.0?

2011-09-21 Thread Bruno Rocha
On Wed, Sep 21, 2011 at 6:00 AM, Zphen sluk...@gmail.com wrote:

 What's wrong with v 1.100, 1.101 etc?


Look here: http://semver.org/


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Ross Peoples
About the documentation. We add features all the time and it will take a 
long time to document those in the book. Maybe we should be using something 
like epydoc or sphinx to generate documentation from the code. Then we just 
have to make sure we document the code properly (which we should all be 
doing anyways). Sphinx takes a little more work, but produces awesome 
documentation. Just look at Django. They always have updated docs and even 
docs for the different versions of code.

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Anthony
On Wednesday, September 21, 2011 5:00:07 AM UTC-4, Zphen wrote:

 What's wrong with v 1.100, 1.101 etc? 


According to Massimo, going to a 3 digit minor version number will break the 
version comparison 
in older versions as well as web based upgrades.


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Anthony
On Wednesday, September 21, 2011 8:21:05 AM UTC-4, Ross Peoples wrote:

 About the documentation. We add features all the time and it will take a 
 long time to document those in the book. Maybe we should be using something 
 like epydoc or sphinx to generate documentation from the code.


http://www.web2py.com/examples/static/epydoc/

It's not only available online, but also included in the web2py distribution 
in the 'examples' app.

Anthony


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Ross Peoples
True, but it's not updated. That's why I was leaning more towards Sphinx. 
You could document the API and the web2py book at the same time. Again, 
Django's documentation is always updated when they add new features because 
they add the documentation to the code and rerun Sphinx. So there's no need 
to remember to update the book as long as the code is documented.

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Zphen
Thanks, I read the text about semantic versioning but it does not
mention anything about using three digits in the minor version being a
violation.  In fact, I understood that the meaning of incrementing the
major version indicates breaking backward compatibility, which would
be misleading in the case of web2py.  Or have I missed something?

  What's wrong with v 1.100, 1.101 etc?

 Look here:http://semver.org/


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Anthony
On Wednesday, September 21, 2011 8:49:40 AM UTC-4, Ross Peoples wrote:

 True, but it's not updated.


It appears to be updated -- it says the date it was generated is the same 
date as the last release. Or do you mean that the docstrings are not always 
updated? That's probably true. Anyway, in general, I agree that we should 
update documentation along with all releases so we don't accumulate a year's 
worth of undocumented changes.

Anthony


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread pbreit
Yeah, I suspect it's doing an alphabetic comparison in which case 100 is 
less than 99.

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread pbreit
There's a precedent. Linux just went to 3.0 on a minor update.

https://lkml.org/lkml/2011/7/21/455


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Massimo Di Pierro
True. In fact 1.99 will resolve this problem but some people may jump
from 1.98 to 1.100 (pardon, 2.00) without passing through 1.99.

On Sep 21, 11:20 am, pbreit pbreitenb...@gmail.com wrote:
 Yeah, I suspect it's doing an alphabetic comparison in which case 100 is
 less than 99.


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread TheSweetlink
+1 DAL support for Document-Graph database OrientDB and thank you very
much for your work Massimo + contributors.


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Massimo Di Pierro
There is still lots of place where having the an integer primary key
is critical.

On Sep 21, 6:12 pm, Mariano Reingart reing...@gmail.com wrote:
 Could we merge normal and keyed tables?
 Fix definitively the table definition order issue?

 Regards

 Mariano Reingarthttp://www.sistemasagiles.com.arhttp://reingart.blogspot.com







 On Wed, Sep 21, 2011 at 3:36 PM, TheSweetlink yanosh...@gmail.com wrote:
  +1 DAL support for Document-Graph database OrientDB and thank you very
  much for your work Massimo + contributors.


Re: [web2py] Re: what about web2py 2.0?

2011-09-21 Thread Mariano Reingart
That's way It may be a good idea for a 2.0 release.
If there will be cleanups, that is one of the most critical issues
that makes large models and apps unfeasible and prevents the migration
of many legacy apps, I think it would have a bigger user base than
gis, fts or custom databases.

IMHO

Best regards,

Mariano Reingart
http://www.sistemasagiles.com.ar
http://reingart.blogspot.com



On Wed, Sep 21, 2011 at 10:09 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
 There is still lots of place where having the an integer primary key
 is critical.

 On Sep 21, 6:12 pm, Mariano Reingart reing...@gmail.com wrote:
 Could we merge normal and keyed tables?
 Fix definitively the table definition order issue?

 Regards

 Mariano Reingarthttp://www.sistemasagiles.com.arhttp://reingart.blogspot.com







 On Wed, Sep 21, 2011 at 3:36 PM, TheSweetlink yanosh...@gmail.com wrote:
  +1 DAL support for Document-Graph database OrientDB and thank you very
  much for your work Massimo + contributors.


[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Ray (a.k.a. Iceberg)
Hi there,

My 3 cents.

1. Ignore those people advocating a backward-incompatible web2py
2.0. They did not even provide a reasonable must-have backward-
incompatible feature wishlist. Shall we release a backward-
incompatible version of web2py just for, being backward-incompatible?
Nonsense.

2. According to Bruno Rocha's recommendation of Semantic Versioning
[1] (and thank you Bruno), I really like the idea and will vote for a
1.100 instead of 2.0. Under our always-backward-compatible
philosophy, there should never be a web2py 2.0, but we will have a
web3py 1.0 in future. (Perhaps web4py 1.0 in even longer future.)

3. The alphabetic comparison in which case 100 is less than 99 is
considered a bug which will be fixed by web2py 1.99 according to
Massimo. That is already good enough. For those people who would skip
web2py 1.99, it is not a big disaster anyway. They can have a manual
upgrade later, which is a very little acceptable cost.

Regards,
Ray (a.k.a. Iceberg)

[1] http://semver.org/

On Sep 22, 1:25 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
 True. In fact 1.99 will resolve this problem but some people may jump
 from 1.98 to 1.100 (pardon, 2.00) without passing through 1.99.

 On Sep 21, 11:20 am, pbreit pbreitenb...@gmail.com wrote:
  Yeah, I suspect it's doing an alphabetic comparison in which case 100 is
  less than 99.


[web2py] Re: what about web2py 2.0?

2011-09-20 Thread Massimo Di Pierro
This is not an option.

web3py (TM) will break backward compatibility. Not web2py 2.0

On Sep 20, 5:17 am, Sebastian E. Ovide sebastian.ov...@gmail.com
wrote:
 +1 for breaking compatibility (in a major version) a remove obsolete
 features,,,

 On Tue, Sep 20, 2011 at 9:26 AM, Mengu whalb...@gmail.com wrote:
  anything special coming up?

  will it broke backward compatibility? nobody needs backward
  compatibility in a major version.

  are there any plans for a clean up?

 --
 Sebastian E. Ovide


[web2py] Re: what about web2py 2.0?

2011-09-20 Thread Massimo Di Pierro
I promised somebody geospatial features. That will probably come
before full text search but this is a good time to look into it.
Should we take an approach sqlite/mysql/postgresql only or outsource
it to Sphinx?

On Sep 20, 9:00 am, Michele Comitini michele.comit...@gmail.com
wrote:
 +1 fulltext search

 *Some* graph databases have already some good pythonic API.
 Do you think that DAL can be adapted to graphs also?  Isn't the DAL
 too relational oriented?

 mic

 2011/9/20 Vasile Ermicioi elff...@gmail.com:







  dal supporting graph databases and fulltext search


Re: [web2py] Re: what about web2py 2.0?

2011-09-20 Thread Richard Vézina
About Sphinx I would propose to introduce fulltext search the way it's
faster if it's with Sphinx go head and then use the DB oriented approach
after just to offer a simpler fulltext search option maybe...

My point is just use first the faster approach.

;-)

Richard

On Tue, Sep 20, 2011 at 12:27 PM, Massimo Di Pierro 
massimo.dipie...@gmail.com wrote:

 I promised somebody geospatial features. That will probably come
 before full text search but this is a good time to look into it.
 Should we take an approach sqlite/mysql/postgresql only or outsource
 it to Sphinx?

 On Sep 20, 9:00 am, Michele Comitini michele.comit...@gmail.com
 wrote:
  +1 fulltext search
 
  *Some* graph databases have already some good pythonic API.
  Do you think that DAL can be adapted to graphs also?  Isn't the DAL
  too relational oriented?
 
  mic
 
  2011/9/20 Vasile Ermicioi elff...@gmail.com:
 
 
 
 
 
 
 
   dal supporting graph databases and fulltext search



[web2py] Re: what about web2py 2.0?

2011-09-20 Thread Anthony
On Tuesday, September 20, 2011 12:27:20 PM UTC-4, Massimo Di Pierro wrote:

 I promised somebody geospatial features. That will probably come 
 before full text search but this is a good time to look into it. 
 Should we take an approach sqlite/mysql/postgresql only or outsource 
 it to Sphinx?


Maybe a search abstraction layer that could plug in adapters for various 
backends, such as SQLite, Postgres, Whoosh, Xapian, Sphinx, etc. Something 
like http://haystacksearch.org or http://code.google.com/p/django-fts.

Anthony


[web2py] Re: what about web2py 2.0?

2011-09-20 Thread pbreit
Something like that does sound interesting although I suspect easier said 
than done. I inquired about something similar when I was looking at Postgres 
text search. It sounds like it is currently not that easy for an end user to 
extend DAL to create a new type of query. That would be cool.

And I wonder what's going to be the best way to support all these new NoSQL 
DBs. DAL's query syntax should be able to support a lot of the core queries 
but it seems that to really take advantage, some new approaches might be 
necessary.

Fun times!


[web2py] Re: what about web2py 2.0?

2011-09-20 Thread niknok
Web2Py 2.0 must be *fully* documented in online book.

On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote:
 anything special coming up?

 will it broke backward compatibility? nobody needs backward
 compatibility in a major version.

 are there any plans for a clean up?


[web2py] Re: what about web2py 2.0?

2011-09-20 Thread Massimo Di Pierro
we'll work on it.

On Sep 20, 6:49 pm, niknok nikolai...@gmail.com wrote:
 Web2Py 2.0 must be *fully* documented in online book.

 On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote:







  anything special coming up?

  will it broke backward compatibility? nobody needs backward
  compatibility in a major version.

  are there any plans for a clean up?


[web2py] Re: what about web2py 2.0?

2011-09-20 Thread encompass
Yeah, we use haystack in Django here at my work for our search tool of
choice.

On Sep 20, 1:58 pm, Anthony abasta...@gmail.com wrote:
 On Tuesday, September 20, 2011 12:27:20 PM UTC-4, Massimo Di Pierro wrote:

  I promised somebody geospatial features. That will probably come
  before full text search but this is a good time to look into it.
  Should we take an approach sqlite/mysql/postgresql only or outsource
  it to Sphinx?

 Maybe a search abstraction layer that could plug in adapters for various
 backends, such as SQLite, Postgres, Whoosh, Xapian, Sphinx, etc. Something
 likehttp://haystacksearch.orgorhttp://code.google.com/p/django-fts.

 Anthony


[web2py] Re: what about web2py 2.0?

2011-09-20 Thread guruyaya
-1 for breaking compatibility. I can see the need here and there, but
I have some apps running on web2py, and thinking that I'll have to
make sure they work aain, just because we got to a rounded number - is
unthinkable. When web2py moves to python 3 - it'll make sense to
reexamine all features. But for now - leave it backword compatible.
OH, and +1 for the docs. But that has nothing to do with the version,
but has more with creating a policy about new features (like, no
commit without a document of a feature, including example). Some
policy should be applied to doctests too.

On Sep 21, 6:16 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
 we'll work on it.

 On Sep 20, 6:49 pm, niknok nikolai...@gmail.com wrote:







  Web2Py 2.0 must be *fully* documented in online book.

  On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote:

   anything special coming up?

   will it broke backward compatibility? nobody needs backward
   compatibility in a major version.

   are there any plans for a clean up?


[web2py] Re: what about web2py 2.0?

2011-09-20 Thread Massimo Di Pierro
WE WILL NOT BREAK BACKWARD COMPATiBILITY.

In fact there will be less changes between 1.99 and 2.0 then between
1.98 and 1.99.

Massimo

On Sep 20, 11:23 pm, guruyaya guruy...@gmail.com wrote:
 -1 for breaking compatibility. I can see the need here and there, but
 I have some apps running on web2py, and thinking that I'll have to
 make sure they work aain, just because we got to a rounded number - is
 unthinkable. When web2py moves to python 3 - it'll make sense to
 reexamine all features. But for now - leave it backword compatible.
 OH, and +1 for the docs. But that has nothing to do with the version,
 but has more with creating a policy about new features (like, no
 commit without a document of a feature, including example). Some
 policy should be applied to doctests too.

 On Sep 21, 6:16 am, Massimo Di Pierro massimo.dipie...@gmail.com
 wrote:







  we'll work on it.

  On Sep 20, 6:49 pm, niknok nikolai...@gmail.com wrote:

   Web2Py 2.0 must be *fully* documented in online book.

   On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote:

anything special coming up?

will it broke backward compatibility? nobody needs backward
compatibility in a major version.

are there any plans for a clean up?


[web2py] Re: what about web2py 2.0?

2011-09-20 Thread Rahul
I like the idea that we are not breaking backward compatibility here .
Backward Compatibility not supported with web3py will be fine.
Rahul

On Sep 21, 10:19 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
 WE WILL NOT BREAK BACKWARD COMPATiBILITY.

 In fact there will be less changes between 1.99 and 2.0 then between
 1.98 and 1.99.

 Massimo

 On Sep 20, 11:23 pm, guruyaya guruy...@gmail.com wrote:







  -1 for breaking compatibility. I can see the need here and there, but
  I have some apps running on web2py, and thinking that I'll have to
  make sure they work aain, just because we got to a rounded number - is
  unthinkable. When web2py moves to python 3 - it'll make sense to
  reexamine all features. But for now - leave it backword compatible.
  OH, and +1 for the docs. But that has nothing to do with the version,
  but has more with creating a policy about new features (like, no
  commit without a document of a feature, including example). Some
  policy should be applied to doctests too.

  On Sep 21, 6:16 am, Massimo Di Pierro massimo.dipie...@gmail.com
  wrote:

   we'll work on it.

   On Sep 20, 6:49 pm, niknok nikolai...@gmail.com wrote:

Web2Py 2.0 must be *fully* documented in online book.

On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote:

 anything special coming up?

 will it broke backward compatibility? nobody needs backward
 compatibility in a major version.

 are there any plans for a clean up?


[web2py] Re: what is web2py doing internally with unicode?

2011-09-04 Thread Massimo Di Pierro
web2py internally expects everything to be bytes representing utf8-
encoded strings.

On Sep 4, 1:02 pm, weheh richard_gor...@verizon.net wrote:
 When I create a form with form=SQLFORM(...), if I have a myfield of
 type textis the form.vars.myfield value of type unicode? If I then
 save the field in a file by doing a db.mytable.myfield.store(...) does
 it automatically get encoded to utf-8?


[web2py] Re: what is web2py doing internally with unicode?

2011-09-04 Thread weheh
I have a text string which is read from a file. The file was created
by the db...store mechanism. The original data came from either an
uploaded file or a text field. I have neither decoded nor encoded
anything. Shouldn't I assume the text in the file is utf8? (Please oh
please say yes.)

On Sep 4, 7:30 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
 web2py internally expects everything to be bytes representing utf8-
 encoded strings.

 On Sep 4, 1:02 pm, weheh richard_gor...@verizon.net wrote:







  When I create a form with form=SQLFORM(...), if I have a myfield of
  type textis the form.vars.myfield value of type unicode? If I then
  save the field in a file by doing a db.mytable.myfield.store(...) does
  it automatically get encoded to utf-8?


[web2py] Re: what is web2py doing internally with unicode?

2011-09-04 Thread Ray (a.k.a. Iceberg)
Generally speaking, you can't assume a file's encoding, unless you are
the creator of that file therefore knows its encoding.

Regards,
Ray

On Sep 5, 7:52 am, weheh richard_gor...@verizon.net wrote:
 I have a text string which is read from a file. The file was created
 by the db...store mechanism. The original data came from either an
 uploaded file or a text field. I have neither decoded nor encoded
 anything. Shouldn't I assume the text in the file is utf8? (Please oh
 please say yes.)

 On Sep 4, 7:30 pm, Massimo Di Pierro massimo.dipie...@gmail.com
 wrote:







  web2py internally expects everything to be bytes representing utf8-
  encoded strings.

  On Sep 4, 1:02 pm, weheh richard_gor...@verizon.net wrote:

   When I create a form with form=SQLFORM(...), if I have a myfield of
   type textis the form.vars.myfield value of type unicode? If I then
   save the field in a file by doing a db.mytable.myfield.store(...) does
   it automatically get encoded to utf-8?


[web2py] Re: what is web2py doing internally with unicode?

2011-09-04 Thread weheh
Yes, agreed. However, my question is more about what web2py is doing
under the hood. If I do a file upload, is web2py doing any kind of
encoding detection on the file contents and then converting to utf8?
How about text upload? Furthermore, when I write a file using
dbstore, does web2py do a utf8 encoding?

On Sep 4, 11:06 pm, Ray (a.k.a. Iceberg) iceb...@21cn.com wrote:
 Generally speaking, you can't assume a file's encoding, unless you are
 the creator of that file therefore knows its encoding.

 Regards,
 Ray

 On Sep 5, 7:52 am, weheh richard_gor...@verizon.net wrote:







  I have a text string which is read from a file. The file was created
  by the db...store mechanism. The original data came from either an
  uploaded file or a text field. I have neither decoded nor encoded
  anything. Shouldn't I assume the text in the file is utf8? (Please oh
  please say yes.)

  On Sep 4, 7:30 pm, Massimo Di Pierro massimo.dipie...@gmail.com
  wrote:

   web2py internally expects everything to be bytes representing utf8-
   encoded strings.

   On Sep 4, 1:02 pm, weheh richard_gor...@verizon.net wrote:

When I create a form with form=SQLFORM(...), if I have a myfield of
type textis the form.vars.myfield value of type unicode? If I then
save the field in a file by doing a db.mytable.myfield.store(...) does
it automatically get encoded to utf-8?


[web2py] Re: what is web2py doing internally with unicode?

2011-09-04 Thread Massimo Di Pierro
No. that is why web2py assumes strings of bytes only. If you read a
file and store it in a text or blob field you are fine.

If you read text from a form then it depends on the html encoding.
Also database searches are affected by encoding. For consistency I
advice that your bytes are utf8 encoded strings but web2py should not
break if they are not, you may result in inconsistencies if your html
declares something different than your http, etc.

On Sep 4, 10:38 pm, weheh richard_gor...@verizon.net wrote:
 Yes, agreed. However, my question is more about what web2py is doing
 under the hood. If I do a file upload, is web2py doing any kind of
 encoding detection on the file contents and then converting to utf8?
 How about text upload? Furthermore, when I write a file using
 dbstore, does web2py do a utf8 encoding?

 On Sep 4, 11:06 pm, Ray (a.k.a. Iceberg) iceb...@21cn.com wrote:







  Generally speaking, you can't assume a file's encoding, unless you are
  the creator of that file therefore knows its encoding.

  Regards,
  Ray

  On Sep 5, 7:52 am, weheh richard_gor...@verizon.net wrote:

   I have a text string which is read from a file. The file was created
   by the db...store mechanism. The original data came from either an
   uploaded file or a text field. I have neither decoded nor encoded
   anything. Shouldn't I assume the text in the file is utf8? (Please oh
   please say yes.)

   On Sep 4, 7:30 pm, Massimo Di Pierro massimo.dipie...@gmail.com
   wrote:

web2py internally expects everything to be bytes representing utf8-
encoded strings.

On Sep 4, 1:02 pm, weheh richard_gor...@verizon.net wrote:

 When I create a form with form=SQLFORM(...), if I have a myfield of
 type textis the form.vars.myfield value of type unicode? If I then
 save the field in a file by doing a db.mytable.myfield.store(...) does
 it automatically get encoded to utf-8?


[web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Ross Peoples
I don't know anything about Django's reusable apps. I assume it means that 
you can package an application up and give it to someone as a plugin or 
appliance or something similar. If that's the case, then web2py already 
provides this. You can package apps and plugins into w2p files for 
distribution from the admin interface.

[web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Gour-Gadadhara Dasa
On Tue, 9 Aug 2011 05:55:45 -0700 (PDT)
Ross Peoples ross.peop...@gmail.com
wrote:

 I don't know anything about Django's reusable apps. I assume it means
 that you can package an application up and give it to someone as a
 plugin or appliance or something similar. 

A reusable Django app, is an app that is easily plugged into a project,
providing a very specific piece of functionality. They should be focused and
follow the Unix philosophy of Do one thing and do it well. (from
http://ericholscher.com/projects/django-conventions/app/)

 If that's the case, then web2py already provides this. You can package apps
 and plugins into w2p files for distribution from the admin interface.

I know about that, but wonder whether reusable app in web2py dictionary means
app, plugin component or something in between?


Sincerely,
Gour

-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810




signature.asc
Description: PGP signature


[web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Massimo Di Pierro
One Django installation maps 1-1 into a project. A project can contain
many reusable apps. All the apps in the project share one config file
and the database connections defined there.

One web2py installation can contain many apps (what web2py calls an
app is what django calls a project) and different apps share nothing
by default. A reusable subset of a web2py app is what we call a web2py
plugin. (loosely speaking a web2py plugin is a Django reusable app).

The difference is not just in the terminology. In one web2py instance
you can run as many apps as you like even if they contain different
conflicting version of the same modules. In Django you need distinct
projects, i.e.distinct instances. Web2py plugins are less structured
than Django reusable apps. It is a relatively new concept and there is
not many of them. For example Django+Pinax is loosely equivalent to
web2py+plugin_wiki.

Massimo

On Aug 9, 9:06 am, Gour-Gadadhara Dasa g...@atmarama.net wrote:
 On Tue, 9 Aug 2011 05:55:45 -0700 (PDT)
 Ross Peoples ross.peop...@gmail.com
 wrote:

  I don't know anything about Django's reusable apps. I assume it means
  that you can package an application up and give it to someone as a
  plugin or appliance or something similar.

 A reusable Django app, is an app that is easily plugged into a project,
 providing a very specific piece of functionality. They should be focused and
 follow the Unix philosophy of Do one thing and do it well. 
 (fromhttp://ericholscher.com/projects/django-conventions/app/)

  If that's the case, then web2py already provides this. You can package apps
  and plugins into w2p files for distribution from the admin interface.

 I know about that, but wonder whether reusable app in web2py dictionary means
 app, plugin component or something in between?

 Sincerely,
 Gour

 --
 “In the material world, conceptions of good and bad are
 all mental speculations…” (Sri Caitanya Mahaprabhu)

 http://atmarama.net| Hlapicina (Croatia) | GPG: 52B5C810

  signature.asc
  1KViewDownload


[web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Gour-Gadadhara Dasa
On Tue, 9 Aug 2011 07:13:33 -0700 (PDT)
Massimo Di Pierro
massimo.dipie...@gmail.com wrote:

 One web2py installation can contain many apps (what web2py calls an
 app is what django calls a project) and different apps share nothing
 by default. A reusable subset of a web2py app is what we call a web2py
 plugin. (loosely speaking a web2py plugin is a Django reusable app).

That's helpful. Thank you.

 The difference is not just in the terminology. In one web2py instance
 you can run as many apps as you like even if they contain different
 conflicting version of the same modules. In Django you need distinct
 projects, i.e.distinct instances. 

Heh, it seems that I've had good smell to choose one over another. :-)

 Web2py plugins are less structured than Django reusable apps. It is a
 relatively new concept and there is not many of them. i

When we're on this topic...can we say that component is something like (custom)
content-type which can be put on the page and one can use several of such
(content-type) blocks on one page?

Some CMS-es are fond of inline-editing feature where one can move those blocks
around, edit them etc. Personally, I do not find it is required to have it 


Sincerely,
Gour

 For example Django+Pinax is loosely equivalent to
 web2py+plugin_wiki.

I had expected lot from that project, but it looks it is not advancing very
rapidly as it was planned. Pinax talk was long ago...


Sincerely,
Gour


-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810




signature.asc
Description: PGP signature


[web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Massimo Di Pierro
Some plugins define components (plugin_wiki does) and some do not.

A component is a set of models/views/controller designed to work
together.
For example consider a web2py file controllers/plugin_calculator.py
which contains

def adder():
 form = SQLFORM.factory(Field('a','integer'),Field('b','integer'))
 c = (form.vars.a+form.vars.b) if form.accepts(request) else '...'
 return DIV(form,'result=',c)

The file is the plugin. The function is the component. It is a
component because anywhere in your app you can do:

{{=LOAD('plugin_calculator','adder',ajax=True)}}

and embed the component into any page. Typically components are more
complex but are used and packaged in the same way.


On Aug 9, 9:31 am, Gour-Gadadhara Dasa g...@atmarama.net wrote:
 On Tue, 9 Aug 2011 07:13:33 -0700 (PDT)
 Massimo Di Pierro

 massimo.dipie...@gmail.com wrote:
  One web2py installation can contain many apps (what web2py calls an
  app is what django calls a project) and different apps share nothing
  by default. A reusable subset of a web2py app is what we call a web2py
  plugin. (loosely speaking a web2py plugin is a Django reusable app).

 That's helpful. Thank you.

  The difference is not just in the terminology. In one web2py instance
  you can run as many apps as you like even if they contain different
  conflicting version of the same modules. In Django you need distinct
  projects, i.e.distinct instances.

 Heh, it seems that I've had good smell to choose one over another. :-)

  Web2py plugins are less structured than Django reusable apps. It is a
  relatively new concept and there is not many of them. i

 When we're on this topic...can we say that component is something like 
 (custom)
 content-type which can be put on the page and one can use several of such
 (content-type) blocks on one page?

 Some CMS-es are fond of inline-editing feature where one can move those blocks
 around, edit them etc. Personally, I do not find it is required to have it

 Sincerely,
 Gour

  For example Django+Pinax is loosely equivalent to
  web2py+plugin_wiki.

 I had expected lot from that project, but it looks it is not advancing very
 rapidly as it was planned. Pinax talk was long ago...

 Sincerely,
 Gour

 --
 “In the material world, conceptions of good and bad are
 all mental speculations…” (Sri Caitanya Mahaprabhu)

 http://atmarama.net| Hlapicina (Croatia) | GPG: 52B5C810

  signature.asc
  1KViewDownload


[web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Gour-Gadadhara Dasa
On Tue, 9 Aug 2011 07:38:50 -0700 (PDT)
Massimo Di Pierro
massimo.dipie...@gmail.com wrote:

 Some plugins define components (plugin_wiki does) and some do not.

Interesting...

 A component is a set of models/views/controller designed to work
 together.
 For example consider a web2py file controllers/plugin_calculator.py
 which contains
 
 def adder():
  form = SQLFORM.factory(Field('a','integer'),Field('b','integer'))
  c = (form.vars.a+form.vars.b) if form.accepts(request) else '...'
  return DIV(form,'result=',c)
 
 The file is the plugin. The function is the component. It is a
 component because anywhere in your app you can do:
 
 {{=LOAD('plugin_calculator','adder',ajax=True)}}
 
 and embed the component into any page. 

Thanks a lot for illustration.

 Typically components are more complex but are used and packaged in the same
 way.

Ahh...I believe I got it..There are Component plugins' are plugins that define
components. and that makes difference between 'just plugin'. I'm anxious to
see new version of paper book to buy it asap!!

Web2py is so well-designed that I'm really impressed. ;)


Sincerely,
Gour


-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810




signature.asc
Description: PGP signature


Re: [web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Furqan Rauf
just following this conversation, is it normal for a newb, to not understand
what are you guys talking about? and to my understanding you are saying that
web2py is an app itself and all we do create different components and deploy
it. and we assign one component as primary or how does this work i mean lets
say i created a web application that is using that calculator so I will just
install that plugin in my web2py and which ever view I want to use i will
use that load command?

I am sorry for sounding stupid.

thanks

On Tue, Aug 9, 2011 at 9:56 AM, Gour-Gadadhara Dasa g...@atmarama.netwrote:

 On Tue, 9 Aug 2011 07:38:50 -0700 (PDT)
 Massimo Di Pierro
 massimo.dipie...@gmail.com wrote:

  Some plugins define components (plugin_wiki does) and some do not.

 Interesting...

  A component is a set of models/views/controller designed to work
  together.
  For example consider a web2py file controllers/plugin_calculator.py
  which contains
 
  def adder():
   form = SQLFORM.factory(Field('a','integer'),Field('b','integer'))
   c = (form.vars.a+form.vars.b) if form.accepts(request) else '...'
   return DIV(form,'result=',c)
 
  The file is the plugin. The function is the component. It is a
  component because anywhere in your app you can do:
 
  {{=LOAD('plugin_calculator','adder',ajax=True)}}
 
  and embed the component into any page.

 Thanks a lot for illustration.

  Typically components are more complex but are used and packaged in the
 same
  way.

 Ahh...I believe I got it..There are Component plugins' are plugins that
 define
 components. and that makes difference between 'just plugin'. I'm anxious
 to
 see new version of paper book to buy it asap!!

 Web2py is so well-designed that I'm really impressed. ;)


 Sincerely,
 Gour


 --
 “In the material world, conceptions of good and bad are
 all mental speculations…” (Sri Caitanya Mahaprabhu)

 http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810





-- 
*-Furqan Rauf*
*Do you love your creator? Love your fellow-beings first. -Prophet Muhammad
*
*http://www.amway.com/furqanrauf*


[web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Massimo Di Pierro
It is ok and I understand the confusion.

web2py is an application from the point of view of a developer. It
serves the purpose of developing web applications and it is required
for those we applications to run. Yet web2py is not an application
from the point of view of the end user.

The end user may see a Blog, a CMS, an E-Store, etc. If they are
written with web2py we call them apps.

One web2py can run many apps (which you can think of as many we
sites). They are all distinct they just share one web server and a
common set of libraries. There is only one web2.py but many
index.html.

All the apps are equivalent in the sense that the are distinct and
none of them is privileged.

Some times two apps (for example a Blog and CMS) may need to share
some functionality that is not provided by the web2py libraries (for
example a something that allows users to comment on a Blog entry or a
CMS entry). This thing would be a component. Because apps are
separated, a component is something that you write once and copy
into multiple apps. It is a piece of code designed to be re-usable but
not shared. Each app must have its own copy of the component so that
you can customize it. Different apps may ship with different versions
of the component and they should not conflict.

A plugin is a subset of an app. It could be the files which define a
component. It could be the files with define the layout of pages. It
could be the files which defined the database tables. Any subset of an
app is a plugin. This concept allows you to packages the subset and
ship it separately from an app.

Here is a practical example:

- This is one web2py (one web server, one python running)
  http://web2py.com/demo_admin/default/site
- It runs three apps:
  http://web2py.com/demo_app1/default/index
  http://web2py.com/demo_app2/default/index
  http://web2py.com/demo_app3/default/index
- Here are two plugins demo_app1
  http://web2py.com//demo_admin/default/design/demo_app1#plugins

I hope this makes some sense.

Massimo










On Aug 9, 10:31 am, Furqan Rauf sfar.fur...@gmail.com wrote:
 just following this conversation, is it normal for a newb, to not understand
 what are you guys talking about? and to my understanding you are saying that
 web2py is an app itself and all we do create different components and deploy
 it. and we assign one component as primary or how does this work i mean lets
 say i created a web application that is using that calculator so I will just
 install that plugin in my web2py and which ever view I want to use i will
 use that load command?

 I am sorry for sounding stupid.

 thanks

 On Tue, Aug 9, 2011 at 9:56 AM, Gour-Gadadhara Dasa g...@atmarama.netwrote:









  On Tue, 9 Aug 2011 07:38:50 -0700 (PDT)
  Massimo Di Pierro
  massimo.dipie...@gmail.com wrote:

   Some plugins define components (plugin_wiki does) and some do not.

  Interesting...

   A component is a set of models/views/controller designed to work
   together.
   For example consider a web2py file controllers/plugin_calculator.py
   which contains

   def adder():
        form = SQLFORM.factory(Field('a','integer'),Field('b','integer'))
        c = (form.vars.a+form.vars.b) if form.accepts(request) else '...'
        return DIV(form,'result=',c)

   The file is the plugin. The function is the component. It is a
   component because anywhere in your app you can do:

   {{=LOAD('plugin_calculator','adder',ajax=True)}}

   and embed the component into any page.

  Thanks a lot for illustration.

   Typically components are more complex but are used and packaged in the
  same
   way.

  Ahh...I believe I got it..There are Component plugins' are plugins that
  define
  components. and that makes difference between 'just plugin'. I'm anxious
  to
  see new version of paper book to buy it asap!!

  Web2py is so well-designed that I'm really impressed. ;)

  Sincerely,
  Gour

  --
  “In the material world, conceptions of good and bad are
  all mental speculations…” (Sri Caitanya Mahaprabhu)

 http://atmarama.net| Hlapicina (Croatia) | GPG: 52B5C810

 --
 *-Furqan Rauf*
 *Do you love your creator? Love your fellow-beings first. -Prophet Muhammad
 *
 *http://www.amway.com/furqanrauf*


Re: [web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Furqan Rauf
make much more sense, just to say in my word web2py is a house that may have
many windows and each window can be packaged into smaller components like
window glass, lock and frame etc?

On Tue, Aug 9, 2011 at 10:52 AM, Massimo Di Pierro 
massimo.dipie...@gmail.com wrote:

 It is ok and I understand the confusion.

 web2py is an application from the point of view of a developer. It
 serves the purpose of developing web applications and it is required
 for those we applications to run. Yet web2py is not an application
 from the point of view of the end user.

 The end user may see a Blog, a CMS, an E-Store, etc. If they are
 written with web2py we call them apps.

 One web2py can run many apps (which you can think of as many we
 sites). They are all distinct they just share one web server and a
 common set of libraries. There is only one web2.py but many
 index.html.

 All the apps are equivalent in the sense that the are distinct and
 none of them is privileged.

 Some times two apps (for example a Blog and CMS) may need to share
 some functionality that is not provided by the web2py libraries (for
 example a something that allows users to comment on a Blog entry or a
 CMS entry). This thing would be a component. Because apps are
 separated, a component is something that you write once and copy
 into multiple apps. It is a piece of code designed to be re-usable but
 not shared. Each app must have its own copy of the component so that
 you can customize it. Different apps may ship with different versions
 of the component and they should not conflict.

 A plugin is a subset of an app. It could be the files which define a
 component. It could be the files with define the layout of pages. It
 could be the files which defined the database tables. Any subset of an
 app is a plugin. This concept allows you to packages the subset and
 ship it separately from an app.

 Here is a practical example:

 - This is one web2py (one web server, one python running)
  http://web2py.com/demo_admin/default/site
 - It runs three apps:
  http://web2py.com/demo_app1/default/index
  http://web2py.com/demo_app2/default/index
  http://web2py.com/demo_app3/default/index
 - Here are two plugins demo_app1
  http://web2py.com//demo_admin/default/design/demo_app1#plugins

 I hope this makes some sense.

 Massimo










 On Aug 9, 10:31 am, Furqan Rauf sfar.fur...@gmail.com wrote:
  just following this conversation, is it normal for a newb, to not
 understand
  what are you guys talking about? and to my understanding you are saying
 that
  web2py is an app itself and all we do create different components and
 deploy
  it. and we assign one component as primary or how does this work i mean
 lets
  say i created a web application that is using that calculator so I will
 just
  install that plugin in my web2py and which ever view I want to use i will
  use that load command?
 
  I am sorry for sounding stupid.
 
  thanks
 
  On Tue, Aug 9, 2011 at 9:56 AM, Gour-Gadadhara Dasa g...@atmarama.net
 wrote:
 
 
 
 
 
 
 
 
 
   On Tue, 9 Aug 2011 07:38:50 -0700 (PDT)
   Massimo Di Pierro
   massimo.dipie...@gmail.com wrote:
 
Some plugins define components (plugin_wiki does) and some do not.
 
   Interesting...
 
A component is a set of models/views/controller designed to work
together.
For example consider a web2py file controllers/plugin_calculator.py
which contains
 
def adder():
 form =
 SQLFORM.factory(Field('a','integer'),Field('b','integer'))
 c = (form.vars.a+form.vars.b) if form.accepts(request) else
 '...'
 return DIV(form,'result=',c)
 
The file is the plugin. The function is the component. It is a
component because anywhere in your app you can do:
 
{{=LOAD('plugin_calculator','adder',ajax=True)}}
 
and embed the component into any page.
 
   Thanks a lot for illustration.
 
Typically components are more complex but are used and packaged in
 the
   same
way.
 
   Ahh...I believe I got it..There are Component plugins' are plugins
 that
   define
   components. and that makes difference between 'just plugin'. I'm
 anxious
   to
   see new version of paper book to buy it asap!!
 
   Web2py is so well-designed that I'm really impressed. ;)
 
   Sincerely,
   Gour
 
   --
   “In the material world, conceptions of good and bad are
   all mental speculations…” (Sri Caitanya Mahaprabhu)
 
  http://atmarama.net| Hlapicina (Croatia) | GPG: 52B5C810
 
  --
  *-Furqan Rauf*
  *Do you love your creator? Love your fellow-beings first. -Prophet
 Muhammad
  *
  *http://www.amway.com/furqanrauf*




-- 
*-Furqan Rauf*
*Do you love your creator? Love your fellow-beings first. -Prophet Muhammad
*
*http://www.amway.com/furqanrauf*


[web2py] Re: what is web2py equivalent of django's reusable app

2011-08-09 Thread Gour-Gadadhara Dasa
On Tue, 9 Aug 2011 11:00:30 -0500
Furqan Rauf sfar.fur...@gmail.com wrote:

 make much more sense, just to say in my word web2py is a house that
 may have many windows and each window can be packaged into smaller
 components like window glass, lock and frame etc?

Why don't you start with rooms instead? ;)


Sincerely,
Gour


-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810




signature.asc
Description: PGP signature


[web2py] Re: What is web2py best practice basis for modular site development?

2011-01-28 Thread kenji4569
I am developing a website with many features required my client, using
web2py.
So, I'd also like to see the best practice for modular site
development.

In my development, I made two applications for a website,
one is for front, and the other is for admin site.
And I think it worked well,
though obviously it required much effort for developing multi-
application.
The choice would depend on the degree of loose coupling required in
each system.
Anyway, components and plugins are still great ideas,
which I found helpful for writing modular codes in web programming.

Besides, it would be important to
minimize the code in models (http://web2py.com/book/default/chapter/
11)
for single large application.
Not only because of performance issue, but also because of clean
global scope.

In this regard, current published plugins are largely written in
models directory,
while I found few plugins written primarily in modules directory.
I think writing in models is much easier,
but would have some deficits for developping a modular large
application.
But it would also depend on ones needs.
Personally, I follow the coding style as in gluon.tools.Auth, Crud,
and Mail,
with writing modules directory.

Kind regards,
Kenji

On 1月28日, 午後3:59, Kenneth Lundström kenneth.t.lundst...@gmail.com
wrote:
 My gut tells one application, having applications share layout, database
 and all is not piece of cake.

 But I guess it depends on the application, but I would make it as one
 application.

 Kenneth







  Dear web2py users,

  I am developing a website that will have many features, some of which
  are not yet specified by my client. Therefore and for other reasons, I
  would like to develop it in a modular fashion.

  Should I base my website on a web2py site with a single application,
  with modularity achieved using Components and Plugins?

  Would it be better and/or easier to have a multi-application web2py
  site with a masterapp and CAS, along with shared layout, database,
  session, etc.?

  Do any of you have any other suggestions for web2py site development
  modularity best practices?

  Thanks for your help in advance.

  Love and peace,

  Joe


[web2py] Re: What is web2py best practice basis for modular site development?

2011-01-28 Thread kenji4569
I am developing a website with many features required my client, using
web2py. So, I'd also like to see the best practice for modular site
development.

In my development, I made two applications for a website, one is for
front, and the other is for admin site. And I think it worked well,
though obviously it required much effort for developing multi-
application. The choice would depend on the degree of loose coupling
required in each system. Anyway, components and plugins are great
ideas, which I found helpful for writing modular codes in web
programming.

Besides, it would be important to minimize the code in
models (http://web2py.com/book/default/chapter/11) for single large
application. Not only because of performance issue, but also because
of clean global scope.

In this regard, current published plugins are largely written in
models directory, while I found few plugins written primarily in
modules directory. I think writing in models is much easier, but would
have some deficits for developping a modular large application.
However it would also depend on ones needs. Personally, I follow the
coding style as in gluon.tools.Auth, Crud, and Mail, with writing
modules directory.

Kind regards,
Kenji

On 1月28日, 午後3:59, Kenneth Lundström kenneth.t.lundst...@gmail.com
wrote:
 My gut tells one application, having applications share layout, database
 and all is not piece of cake.

 But I guess it depends on the application, but I would make it as one
 application.

 Kenneth







  Dear web2py users,

  I am developing a website that will have many features, some of which
  are not yet specified by my client. Therefore and for other reasons, I
  would like to develop it in a modular fashion.

  Should I base my website on a web2py site with a single application,
  with modularity achieved using Components and Plugins?

  Would it be better and/or easier to have a multi-application web2py
  site with a masterapp and CAS, along with shared layout, database,
  session, etc.?

  Do any of you have any other suggestions for web2py site development
  modularity best practices?

  Thanks for your help in advance.

  Love and peace,

  Joe