[web2py:17026] Re: Critical point in web2py

2009-02-26 Thread Greg Fuller
Just a few notes: Sphinx is not part of Trac. Django uses Sphinx -- docs.djangoproject.com is a Sphinx site. The organizational and cross-referencing capabilities of Sphinx outshine any Wiki. Documentation organized by a wiki often becomes jumbled and disorganized. However, a wiki is a good

[web2py:17027] Documentation

2009-02-26 Thread Greg Fuller
Hi Everyone, I was following the thread on documentation and made a post there, but it didn't show up so I'll start a thread here. Django uses trac, but docs.djangoproject.com is not trac - it is a Sphinx site. Sphinx is much better than wiki's at organizing and cross referencing documentation.

[web2py:17029] Re: Documentation

2009-02-26 Thread Greg Fuller
Here is the django documentation, in restructured text, with some sphinx templates, in a svn repository, and referenced by trac: http://code.djangoproject.com/browser/django/trunk/docs On Feb 26, 7:03 pm, Greg Fuller wrote: > Hi Everyone, > > I was following the thread on document

[web2py:17032] Re: Critical point in web2py

2009-02-26 Thread Greg Fuller
An important distinction: 1. http://docs.djangoproject.com is a Sphinx site. 2. http://code.djangoproject.com/browser/django/trunk/docs is the sphinx documentation in an svn repository referenced through Trac. It holds the restructured text and Sphinx templates. HTH, Greg On Feb 25, 9:00 am,

[web2py:17061] Re: Critical point in web2py

2009-02-27 Thread Greg Fuller
You've made some very good points. Would the following make sense? Use the wiki for the initial gathering of doc pages, then after the first sphinx-based documentation is produced, just clean the wiki of those pages. After that, just use the wiki for contributed recipes and other pages, some

[web2py:17173] Custom Template Tags

2009-02-28 Thread Greg Fuller
How can custom template tags be implemented in Web2py. There are times when it is good to let the template designer "pull" information into a template without having the model anticipate everything in advance the template might need. I've used this pattern a lot with php-smarty, django, expressi

[web2py:17172] Custom Template Tags

2009-02-28 Thread Greg Fuller
How can custom template tags be implemented in Web2py. There are times when it is good to let the template designer "pull" information into a template without having the model anticipate everything in advance the template might need. I've used this pattern a lot with php-smarty, django, expressi

[web2py:17175] Re: Custom Template Tags

2009-02-28 Thread Greg Fuller
Oh my, I see you can put any python code in a template. I'm not used to this flexibility (except for a little time with mako). Now I just need to figure out scoping for the external functions I want to call. On Feb 28, 6:26 pm, Greg Fuller wrote: > How can custom template tags be imp

[web2py:17183] Re: Custom Template Tags

2009-02-28 Thread Greg Fuller
clude it {{include 'aux.html'}} > > You would then use it with {{link('http://www.web2py.com'}} > > Massimo > > On Feb 28, 9:26 pm, Greg Fuller wrote: > > > Oh my, I see you can put any python code in a template. I'm not used > > to this flexibil

[web2py:17186] Alternate View

2009-02-28 Thread Greg Fuller
How can I render a different view than the view with the matching controller name? def index(): if condition: # use default/index.html return dict(message=T('Hello World')) else: # use default/alternate.html ??? return dict(message=T('Hello World')) Thanks,

[web2py:17188] Re: Documentation - Scaffold application

2009-02-28 Thread Greg Fuller
I installed it and gave it a quick look. Nice. This could be a really productive way to start apps. Thanks for sharing this. What needs to be done still? --greg-- On Mar 1, 1:32 am, Alexandre Miguel de Andrade Souza wrote: > To easy of use and help in documentation, I start a kind of scaffol

[web2py:17192] Re: Alternate View

2009-03-01 Thread Greg Fuller
Thanks for the suggestion, but I really don't want to do that if it's the kind of redirection that makes a round trip through the client. On Mar 1, 1:51 am, weheh wrote: > I suppose you could always redirect. --~--~-~--~~~---~--~~ You received this message because

[web2py:17196] Re: Alternate View

2009-03-01 Thread Greg Fuller
Thanks Annet and Alexandre. What manual is this in? On Mar 1, 2:20 am, Alexandre Miguel de Andrade Souza wrote: > this is correct. > > From the manual: > > • response.view: the name of the view template that must render the > page. This is set by default to: > 1 "%s/%s.html" % (request.control

[web2py:17230] Distribution with PIL

2009-03-01 Thread Greg Fuller
Web2Py is fantastic for packaging your application into a trial version that can just be downloaded, unpacked and run - without dependencies. No other framework I'm aware of can do this. The one snag is PIL. The applications I write usually require an imaging library. I know that PIL is not p

[web2py:17232] Re: Distribution with PIL

2009-03-01 Thread Greg Fuller
is is not a straight NO. This is a NO for now and a call for > comments. > > Massimo > > On Mar 1, 10:45 am, Greg Fuller wrote: > > > Web2Py  is fantastic for packaging your application into a trial > > version that can just be downloaded, unpacked and run - without >

[web2py:17246] Re: Custom Template Tags

2009-03-01 Thread Greg Fuller
t; Nice, although I wish I understood the language. > > > On Mar 1, 5:58 am, 姚国荣 wrote: > > >http://yao.appspot.com/init/default/showblogpost/3016 > > > > 2009/3/1 Greg Fuller > > > > > Nice; thanks! > > > > > On Feb 28, 10:

[web2py:17247] Re: Really irritating loss of code

2009-03-01 Thread Greg Fuller
I've only been hanging around here a short time, but this is not the first time I've seen Massimo make a patch while the thread is still fresh. Just skip the ticket why don't you. Impressive. On Mar 1, 11:39 am, mdipierro wrote: > Hi Boris, > > Your patch is in trunk with some minor modificat

[web2py:17251] Re: Alternate View

2009-03-01 Thread Greg Fuller
O.K. I bought it. :) On Mar 1, 2:40 am, Alexandre Andrade wrote: > The oficial, sold at LuLu > > http://www.lulu.com/content/4968879 > > worth the purchase to the basic. New tools and resources not included. > > 2009/3/1 Greg Fuller > > > > > > > Th

[web2py:17253] Re: Distribution with PIL

2009-03-01 Thread Greg Fuller
I've noticed a good number, and probably a sizable percentage, of web2py applications are using PIL. Same with Django. I'm not sure that's true of NumPy or any other external app. But I do see the point. On Mar 1, 1:54 pm, Markus Gritsch wrote: > On Sun, Mar 1, 2009 at 6:

[web2py:17258] Re: Distribution with PIL

2009-03-01 Thread Greg Fuller
development support. > > On Sun, Mar 1, 2009 at 1:59 PM, Greg Fuller wrote: > > > I've noticed a good number, and probably a sizable percentage,  of > > web2py applications are using PIL.  Same with Django.   I'm not sure > > that's true of NumPy or any oth

[web2py:17262] Re: Distribution with PIL

2009-03-01 Thread Greg Fuller
t; windows, it would be easier to use the import tools in python to get > PIL, for example.  But in linux distros almost always have packages to > handle this stuff.  You may get an uproar if you skipped the distros way > of installing new python libraries. > Regards, > Jason > >

[web2py:17264] Re: Distribution with PIL

2009-03-01 Thread Greg Fuller
not sure what point is discussed in here. What's the advantage of > including it in web2py if you can simply drop it in the modules > folder? > > On Mar 1, 9:52 pm, Greg Fuller wrote: > > > You're right.  I don't see this for production.  But it would be nice >

[web2py:17275] Re: Distribution with PIL

2009-03-01 Thread Greg Fuller
app needs PIL, it will check if it is there else call > easy_install. It would work with every python module. > > If anybody could send me a patch or an example to make this work > programmatically I will include it. > > Massimo > > On Mar 1, 3:08 pm, Greg Fuller wrote: &